1.0.0
Major version bump
The v1 release of NZCP.js marks the maturity and stability of the library.
What's Changed
- Feature/byo did documents by @noway in #46
- BREAKING:
verifyPassURIWithTrustedIssuers
function is removed. UseverifyPassURI
with options argument instead. - new feature:
verifyPassURIOffline
function to verify a pass without making a network request. (fixes #42) - bug fix:
r.match isn't a function
error now returns easier to debug error message (fixes #45)
- BREAKING:
- Make sure discord link doesn't expire by @noway in #40
- minor README changes
Migration guide
Replace any usage of
const result = await verifyPassURIWithTrustedIssuers(uri, ["did:web:nzcp.covid19.health.nz"]);
to
const result = await verifyPassURI(uri, { trustedIssuer: "did:web:nzcp.covid19.health.nz" });
Full Changelog: 0.1.5...1.0.0