From b3b029a91ba22c433311cea519c1ade86b2603f4 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Thu, 23 Jul 2015 21:27:08 +0200 Subject: [PATCH] 2.0.0 --- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b5d442..ef600eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/package.json b/package.json index 121ac62..0372e7d 100644 --- a/package.json +++ b/package.json @@ -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": {