Skip to content

Releases: octokit/webhooks.js

v5.0.1

11 Sep 16:46
Compare
Choose a tag to compare

5.0.1 (2018-09-11)

Bug Fixes

  • package: update debug to version 4.0.0 (2995fd3)

v5.0.0

08 Aug 18:31
Compare
Choose a tag to compare

5.0.0 (2018-08-08)

Bug Fixes

  • trigger error handler when missing headers (#34) (06d375b)

BREAKING CHANGES

  • when X-Hub-Signature header is missing an error event is emitted. Before a message was logged only

v4.0.0

20 Mar 22:18
Compare
Choose a tag to compare

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

14 Mar 15:22
Compare
Choose a tag to compare

3.1.1 (2018-03-14)

Bug Fixes

  • move debug to dependencies (24358e4)

v3.1.0

25 Dec 00:38
Compare
Choose a tag to compare

3.1.0 (2017-12-25)

Features

  • api.verifyAndReceive({id, name, payload, signature}) (4870c65)
  • emit "error" event on api.receive(error) (38ba0d7)
  • middleware: emit "error" event on verification error (c83c774)

v3.0.2

24 Dec 00:32
Compare
Choose a tag to compare

3.0.2 (2017-12-24)

Bug Fixes

  • don’t pass signature to eventHandler.receive in middleware (6f69f01)

v3.0.1

27 Nov 20:56
Compare
Choose a tag to compare

3.0.1 (2017-11-27)

Bug Fixes

  • timing attach vulnerability (b6fcbe5)

v3.0.0

22 Nov 07:44
Compare
Choose a tag to compare

3.0.0 (2017-11-22)

Features

BREAKING CHANGES

  • event.data is now event.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

21 Nov 23:46
Compare
Choose a tag to compare

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)

v1.0.0

21 Nov 04:23
Compare
Choose a tag to compare

1.0.0 (2017-11-21)

Features