Skip to content

v9.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Apr 08:19
024e3ee

BREAKING CHANGES

  • createWebhooksApi() has been removed. Use new Webhooks() instead

  • webhooks.middleware has been removed. Use createNodeMiddleware() instead

  • createMiddleware has been removed. Use createNodeMiddleware() instead

  • deprecated path option for Webhooks constructor has been removed. Use createNodeMiddleware(webhooks, { path }) instead

  • all usage of debug has been removed. Use the log option instead

  • webhooks.sign now default to sha256 algorithm. In order to continue to use sha1, replace

    webhooks.sign(secret, payload)

    with

    webhooks.sign({ secret, algorith: "sha1" }, payload)
  • webhooks.sign() and webhooks.verify() are now asynchronous

  • static sign and verify methods are no longer exported. Use @octokit/webhooks-methods package instead