Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 17 Jun 19:31
· 332 commits to main since this release
fb84879

BREAKING CHANGES

sign or verify no longer accept an object for the event payload argument.

If you only have access to an already parsed object, stringify it with

const eventPayloadString = (
  JSON.stringify(eventPayload, null, 2) + "\n"
).replace(/[^\\]\\u[\da-f]{4}/g, (s) => {
  return s.substr(0, 3) + s.substr(3).toUpperCase();
});