Js.signals

Latest version: v0.8.1

Safety actively analyzes 628598 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.6

API changes

- Added:
- `Signal.active`
- `SignalBinding.active`

- Removed:
- `Signal.protytpe.enable()`
- `Signal.protytpe.disable()`
- `Signal.protytpe.isEnabled()`
- `SignalBinding.protytpe.enable()`
- `SignalBinding.protytpe.disable()`
- `SignalBinding.protytpe.isEnabled()`

Other

- created AMD wrapped version.
- switched from "module pattern" to a closure with a global export.

0.5.3

API changes

- added priority parameter to `add` and `addOnce`.

Other

- improved code structure.

0.5.2

Other

- changed to a module pattern.
- added YUI test coverage.
- improved build and src files structure.
- simplified `remove`, `removeAll`, `add`.
- improved error messages.

0.5.1

API changes

- made `SignalBinding` constructor private. (15)
- changed params order on `SignalBinding` constructor.
- removed `signals.isDef()`. (14)

Other

- added JSLint to the build process. (12)
- validated source code using JSLint. (13)
- improved docs.

0.5

API changes

- Added:
- `SignalBinding.prototype.getListener()` (3)
- `Signal.prototype.dispose()` (6)
- `signals.VERSION`
- `signals.isDef()`

- Removed:
- `SignalBinding.listener` (3)

- Renamed:
- `SignalBinding.listenerScope` -> `SignalBinding.context` (4)

Fixes

- Removed unnecessary function names (5)
- Improved `remove()`, `removeAll()` to dispose binding (10)

Test Changes

- Added different HTML files to test dev/dist/min files.
- Updated test cases to match new API.

Other

- Improved source code comments and documentation.
- Small refactoring for better organization and DRY.
- Added error messages for required params.
- Removed unnecessary info from `SignalBinding.toString()`.

0.4

API changes

- Added:
- `SignalBinding.prototype.detach()`
- `SignalBinding.prototype.dispose()`

Test Changes

- Added test cases for `detach` and `dispose`.

Other

- Improved docs for a few methods.
- Added internal method `Signal.prototype._addBinding()`.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.