2.0.0 (2024-09-08)
Features
BREAKING CHANGES
- exported functions are now async
- the name of the algorithm option has changed from
SHA1
/SHA256
/ etc. toSHA-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.