Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

aurelia-event-aggregator

aurelia45.6kMIT1.0.3TypeScript support: included

A lightweight pub/sub messaging system for app-wide or per-object loosely coupled events.

aurelia, event aggregator, events, pub/sub

readme

aurelia-event-aggregator

npm Version ZenHub Join the chat at https://gitter.im/aurelia/discuss CircleCI

This library is part of the Aurelia platform and contains a lightweight pub/sub messaging system for app-wide or per-object loosely coupled events.

To keep up to date on Aurelia, please visit and subscribe to the official blog and our email list. We also invite you to follow us on twitter. If you have questions, please join our community on Gitter or use stack overflow. Documentation can be found in our developer hub. If you would like to have deeper insight into our development process, please install the ZenHub Chrome or Firefox Extension and visit any of our repository's boards.

Platform Support

This library can be used in the browser as well as on the server.

Building The Code

To build the code, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:

     npm install
  3. Ensure that Gulp is installed. If you need to install it, use the following command:

     npm install -g gulp
  4. To build the code, you can now run:

     gulp build
  5. You will find the compiled code in the dist folder, available in three module formats: AMD, CommonJS and ES6.

  6. See gulpfile.js for other tasks related to generating the docs and linting.

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:

  1. Ensure that the Karma CLI is installed. If you need to install it, use the following command:

     npm install -g karma-cli
  2. Ensure that jspm is installed. If you need to install it, use the following commnand:

     npm install -g jspm
  3. Download the SystemJS module loader:

     jspm dl-loader
  4. You can now run the tests with this command:

     karma start

changelog

1.0.3 (2019-02-04)

Bug Fixes

  • all: change es2015 back to native-modules (38c3b31)

1.0.2 (2019-01-18)

  • Add module field to package.json

1.0.1 (2016-12-03)

Bug Fixes

  • index: handle errors per callback invocation (dc7819f)

1.0.0 (2016-07-27)

1.0.0-rc.1.0.0 (2016-06-22)

1.0.0-beta.1.2.1 (2016-05-10)

1.0.0-beta.1.2.0 (2016-03-22)

  • Update to Babel 6

1.0.0-beta.1.1.1 (2016-02-08)

Bug Fixes

  • index: add some error checking to guard args (e1661a00, closes #15)

1.0.0-beta.1.1.0 (2016-01-29)

Features

  • all: update jspm meta; core-js; aurelia deps (05e6674d)

1.0.0-beta.1 (2015-11-16)

0.10.0 (2015-11-10)

0.9.0 (2015-10-13)

Bug Fixes

  • all:
  • build:
    • update linting, testing and tools (172366a4)
    • add missing bower bump (31130469)
  • event-aggregator: removing another callback when called twice (50e01cd7)
  • index:
    • update to latest framework configuration api (87083a44)
    • remove invalid character (96642658)
  • package: change jspm directories (84c67fbc)
  • publish: catch errors thrown in subscribers (9dafe002)

Features

  • all:
    • subscribe methods now return subscription object with dispose method (862cb83f, closes #10)
    • add more type info (7b08cae1)
  • build: update compiler and switch to register module format (302c2870)
  • docs: generate api.json from .d.ts file (36ac335d)
  • event-aggregator:

0.8.0 (2015-09-04)

Bug Fixes

  • build: update linting, testing and tools (172366a4)

Features

  • docs: generate api.json from .d.ts file (36ac335d)

0.7.0 (2015-08-14)

Bug Fixes

  • index: update to latest framework configuration api (87083a44)

Features

0.6.2 (2015-07-29)

  • improve output file name

0.6.1 (2015-07-07)

0.6.0 (2015-07-02)

0.5.0 (2015-06-08)

Bug Fixes

  • publish: catch errors thrown in subscribers (9dafe002)

0.4.0 (2015-04-30)

Bug Fixes

  • all: update to latest plugin api (2a17472d)
  • event-aggregator: removing another callback when called twice (50e01cd7)

0.3.0 (2015-04-09)

Bug Fixes

  • all: upgrade to latest compiler (ae84b313)

Features

  • event-aggregator: subscribeOnce function (076264e7)

0.2.4 (2015-02-28)

Bug Fixes

  • package: change jspm directories (84c67fbc)

0.2.3 (2015-02-28)

Bug Fixes

  • build: add missing bower bump (31130469)

0.2.2 (2015-01-22)

  • Update compiler.

0.2.1 (2015-01-12)

  • Updated compiled output.

0.2.0 (2015-01-06)

Bug Fixes

  • index: remove invalid character (96642658)

Features

  • build: update compiler and switch to register module format (302c2870)
  • event-aggregator: enable plugin usage (2c597329)