Skip to content

1.0.0

Compare
Choose a tag to compare
@noway noway released this 19 Nov 10:20
52104f2

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. Use verifyPassURI 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)
  • 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