Releases: octokit/webhooks.js
Releases · octokit/webhooks.js
v5.0.1
v5.0.0
v4.0.0
4.0.0 (2018-03-20)
breaking
- log warning instead of throwing error for unknown events (bf41e16)
BREAKING CHANGES
- Before, this code would throw an error
webhooks.on(woodstock, handler)
Now it logs a warning: "woodstock" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
v3.1.1
v3.1.0
v3.0.2
v3.0.1
v3.0.0
3.0.0 (2017-11-22)
Features
BREAKING CHANGES
event.data
is nowevent.payload
- event handlers are no called with single
{id, name, payload}
object
Before
webhooks.on(push, (data, {id, name}) => {})
Now
webhooks.on(push, ({id, name, payload}) => {})
v2.0.0
2.0.0 (2017-11-21)
Features
- event-handler: add
.sign()
and.verify()
methods (6c6e9ea)
BREAKING CHANGES
Before, this would throw an error
webhooks.receive({id, name, data, signature: invalid})
Now, the signature
option is ignored as it’s assumed that the request has been already validated. This makes testing much easier, see probot/probot#335 (comment). If you use the EventHandler directly in a framework like hapi, make sure to verify the request before using the receive method using eventHandler.verify(data, signature)