Releases: pusher/pusher-http-node
v5.2.0
v5.1.3
5.1.3
[FIXED] Parsing of the extraTokens in webhook's isValid method
v5.1.2
5.1.2
- [CHANGED] Add types/node-fetch to dependencies.
v5.1.1-beta
5.1.1-beta (2022-06-01)
[FIXED] Updated typescript types with new user features.
v5.1.1-beta
[FIXED] Updated typescript types with new user features.
v5.1.0-beta
[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
v5.0.1
[FIXED] Incorrect require
on version.js
was causing a compilation error in Webpack
[FIXED] Inconsistent encoding for shared secret between other SDKs
v5.0.0
[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.
v4.0.0
[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!
v3.0.1
[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