- [CHANGED] Remove old notification references. It's no longer being used
[FIXED] Parsing of the extraTokens in webhook's isValid method
- [CHANGED] Add types/node-fetch to dependencies.
[FIXED] Updated typescript types with new user features.
[ADDED] Support for terminating user connections based on user id [ADDED] Support for sending messages to users based on user id [ADDED] Support for implementing user authentication endpoints [DEPRECATED] authenticate function is deprecated. The same functionality (and interface) is now provided by authorizeChannel
[FIXED] Incorrect require
on version.js
was causing a compilation error in Webpack
[FIXED] Inconsistent encoding for shared secret between other SDKs
[BREAKING CHANGE] trigger
now accepts a params
object instead of a socket_id
as the third parameter.
[ADDED] Support for requesting channel attributes as part of a trigger
and triggerBatch
request via an info
parameter.
[FIXED] Workaround for a Webpack bug (thanks @JJ-Kidd)
[FIXED] The type definitions had drifted out of sync with the implementation.
[BREAKING CHANGE] Methods that previously took callbacks now return promises.
trigger
,triggerBatch
,get
, andpost
return a promise which resolves to aResponse
(as provided by node-fetch), or rejects to aRequestError
. Of particular note:
[BREAKING CHANGE] The Pusher
constructor no longer accepts proxy
or keepAlive
, but instead accepts agent
.
- To configure a proxy, use
https://www.npmjs.com/package/https-proxy-agent
or similar:
const pusher = new Pusher.forURL(process.env.PUSHER_URL, {
agent: new HttpsProxyAgent("http://localhost:8321"),
})
- To configure keep alive:
const pusher = new Pusher.forURL(process.env.PUSHER_URL, {
agent: new https.Agent({ keepAlive: true }),
})
[REMOVED] Specific Parse Cloud build. I don't believe it is required any more, but please open an issue if there are any problems using this release on Parse Cloud!
[UPGRADED] development dependencies
[ADDED] encryptionMasterKeyBase64 constructor parameter to make it easier to use the full range of 32 byte binary values in encryption key
[DEPRECATED] encryptionMasterKey constructor parameter - use encryptionMasterKeyBase64
[REMOVED] Support for Node versions < 8
[UPGRADED] Upgraded versions of nock
, and mocha
[FIXED] an issue where a function that generated signatures behaved differently in different versions of node. Improved the underlying compare function to unify behaviour between versions.
[ADDED] Supported platforms to the Readme and TravisCI config.
no-op release to fix the description on https://www.npmjs.com/package/pusher
[ADDED] This release adds support for end-to-end encryption, a new feature for Channels. Read more in our docs.
[DEPRECATED] Renamed encrypted
option to useTLS
- encrypted
will still work!
[UPGRADED] Upgraded versions of request
, nock
, and mocha
[FIXED] incorrect channels limit when triggering
[FIXED] typescript dependency issue
[ADDED] typescript type declarations file
no-op release to remove some files from npm
[FIXED] remove security vulnerability by updating requests.
[REMOVED] support for versions of node < 4
[FIXED] fix the version of request we are using, new minor version break backwards compatibility
[ADDED] support for publishing on up to 10 interests.
[ADDED] support for sending push notifications.
[ADDED] Support for triggering batch events.
[FIXED] remove security vulnerability by updating requests.
[ADDED] cluster
option in the Pusher constructor.
[ADDED] Build option for Parse Cloud.
[FIXED] compatibility issue with node 0.12 (issue #12)
Optimisation: Use Date.now() instead of (new Date).getTime()
Run tests with Travis-CI
[FIXED] Add validation to channel names and socket ids
[FIXED] Auth signatures being incorrect when channel data included utf-8 characters
[FIXED] Fixed trigger not accepting '=', '@', ',', '.' and ';' in channel names
[FIXED] Upgraded request
to 2.45.0 to prevent DoS vulnerability caused by qs
dependency.
[CHANGED] Incorrect arguments to authenticate
will raise an error
First stable release.