Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Jul 23, 2015
1 parent 2683fbe commit b3b029a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.0.0] - 2015-07-23
### Changed
- `jsonEncode` will now encode any message (previously, specifying a string to `send` would send a non-JSON encoded string)
- `addClient()` callback is now asyncronous in all cases, and provides an `Error` instance on CORS-failure
- `sendMissedEvents()` is renamed to `sendEventsSinceId()`
- `message` event now provides `channel` as first argument to listeners, to be consistent with `connect` and `disconnect` events

### Added
- A much richer README with proper documentation for options, methods and events
- Examples of usage with Node.js HTTP server, express.js and hapi

## [1.0.6] - 2015-07-23
### Fixed
- Call `flush()` on response object if it exists, fixes compression middleware in express
Expand All @@ -12,5 +23,6 @@ All notable changes to this project will be documented in this file.
### Added
- Changelog!

[2.0.0]: https://github.com/rexxars/sse-channel/compare/1.0.6...2.0.0
[1.0.6]: https://github.com/rexxars/sse-channel/compare/1.0.4...1.0.6
[1.0.4]: https://github.com/rexxars/sse-channel/compare/1.0.3...1.0.4
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sse-channel",
"version": "1.0.6",
"version": "2.0.0",
"description": "Server-Sent Events \"channel\" where all messages are broadcasted to all connected clients, history is maintained automatically and server attempts to keep clients alive by sending \"keep-alive\" packets automatically.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit b3b029a

Please sign in to comment.