PubSubJS

Dependency free publish/subscribe for JavaScript

MIT License

Downloads
750.1K
Stars
4.8K
Committers
36

Bot releases are hidden (Show)

PubSubJS - Housekeeping Latest Release

Published by mroderick almost 7 years ago

This release removes the jQuery plugin from the repository, but doesn't make ANY changes to the API of the library, and has therefore not become a MAJOR release.

The motivation for the housekeeping was to make it easier for contributors to get their pull requests merged, by not having to battle obsoleted dependencies (buster, jslint, phantomjs).

Changes

  • Remove jQuery plugin. Users that want to continue to use PubSubJS through jQuery, can use [email protected]
  • Simplified test setup to use mocha
  • Replace obsoleted jslint version (could not install on Travis anymore) with latest eslint
PubSubJS - Bug fix: unsubscribe hierarchy

Published by mroderick about 8 years ago

This release has a minor bug fix to unsubscribing hierarchies.

From https://github.com/mroderick/PubSubJS/pull/97

PubSub.subscribe('a', myFunc1);
PubSub.subscribe('a.b', myFunc2);
PubSub.subscribe('a.b.c', myFunc3);

PubSub.unsubscribe('a.b');
// no further notications for 'a.b' and 'a.b.c' topics
// notifications for 'a' will still get published

Thanks to @jbutz for the investigation and the fix

PubSubJS - v1.5.2

Published by mroderick over 9 years ago

Fixes an issue https://github.com/mroderick/PubSubJS/pull/71 with clearing subscriptions by the topic, making it match the documentation https://github.com/mroderick/PubSubJS#clear-all-subscriptions-for-a-topic

PubSubJS - v1.5.1

Published by mroderick over 9 years ago

Fixes an issue with immediateExceptions not working with namespaces https://github.com/mroderick/PubSubJS/pull/75

PubSubJS - v1.5.0

Published by mroderick about 10 years ago

  • Add clearSubscriptions method that clears all subscriptions
  • Add option to unsubscribe all subscriptions for a topic, via PubSub.unsubscribe('mytopic');
  • #64 makes it possible to build the jQuery version without ruby dependency
  • Fixes issues #49 and #51, by using commonjsStrict from UMD
PubSubJS - Minor bug fix: call all subscribers and Buster upgrade

Published by mroderick over 10 years ago

PubSubJS - Bug fix: topic propagation with hierarchical addressing

Published by mroderick over 10 years ago

This release fixes a bug where more specific topic subscribers (rabbit.jumped) would not get notified if a top level subscriber (rabbit) didn't exist.

PubSubJS - Remove version and name properties

Published by mroderick about 11 years ago

Since PubSubJS is now available through both npm and bower, it's easy enough to programmatically determine which version you have, so I've removed the version and name properties from the PubSub object.

PubSubJS - Bugfix, increased compatibility with SnapEngage

Published by mroderick about 11 years ago

  • Fixes #29, where subscribing non-functions would cause exceptions during publish. Reported by @m-btts
  • Increased compatibility with websites using SnapEngage (#28), thanks to @joscha
  • Added versioning script, to keep things aligned when tagging a new version. (Thanks @spmason)
PubSubJS - Fix issue 26, and semver

Published by mroderick about 11 years ago

Fixes #26

This release is recommended for everyone

PubSubJS - Fix issue 18

Published by mroderick over 11 years ago

publish will now return false, when all subscribers for a topic has been removed.