Releases: haxxnz/nzcp-js
Releases · haxxnz/nzcp-js
1.2.0
1.1.1
1.1.0
What's Changed
- Format for DOB in readme doesn't match actual returned format by @adamreisnz in #54
- Minor documentation change
- Add project where this library is used by @adamreisnz in #55
- Minor documentation change
- added exp and nbf properties to successful verification return by @J-eld in #53
- NEW!
expires
,validFrom
andraw
fields are available inVerificationResult
- NEW!
- Feature/sveltekit fixes by @noway in #57
- The library now works in SvelteKit environment - thanks to @Fallstop for testing
New Contributors
- @adamreisnz made their first contribution in #54
Full Changelog: 1.0.2...1.1.0
1.0.2
What's Changed
- Feature/return credential if valid sign by @noway in #51
VerificationResult
now returnscredentialSubject
even if pass is expired/not active, but the signature is valid. You should continue usingsuccess
to determine if the pass is valid.
Full Changelog: 1.0.1...1.0.2
1.0.1
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