Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Sep 20:31
· 3 commits to main since this release
e4b8a20

2.0.0 (2024-09-08)

Features

  • Convert Buffer and node crypto to web apis (#11) (e4b8a20)

BREAKING CHANGES

  • exported functions are now async
  • the name of the algorithm option has changed from SHA1 / SHA256 / etc. to SHA-1, SHA-256, etc.

NOTE: if you're looking at upgrading to this with the Epic Stack, you'll need to migrate your existing verifications. Here's some SQL you can use:

-- Update SHA1 to SHA-1
UPDATE "Verification"
SET "algorithm" = 'SHA-1'
WHERE "algorithm" = 'SHA1';

-- Update SHA256 to SHA-256
UPDATE "Verification"
SET "algorithm" = 'SHA-256'
WHERE "algorithm" = 'SHA256';

-- Update SHA512 to SHA-512
UPDATE "Verification"
SET "algorithm" = 'SHA-512'
WHERE "algorithm" = 'SHA512';

You could add this as a migration script, or run it as a one-time thing.