[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!