Skip to content

v2.0.0

Compare
Choose a tag to compare
@gr2m gr2m released this 21 Nov 23:46

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)