Skip to content

Releases: haxxnz/nzcp-js

1.2.0

10 Mar 04:35
82c5134
Compare
Choose a tag to compare

This release features 61-66% improvement in bundle size. API remained the same.

What's Changed

  • Feature/custom did tests by @noway in #62
    • more tests added
  • Feature/remove cbor package by @noway in #64
    • removed cbor dependency to improve the bundle size

Full Changelog: 1.1.1...1.2.0

1.1.1

19 Dec 13:29
fa8c682
Compare
Choose a tag to compare

What's Changed

  • Fix example for Unsuccessful Verification in README.md by @noway in #58
    • minor documentation fixes
  • Feature/use upstream cbor by @noway in #60
    • we're now using upstream version of CBOR without any patches

Full Changelog: 1.1.0...1.1.1

1.1.0

04 Dec 12:06
859f66c
Compare
Choose a tag to compare

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 and raw fields are available in VerificationResult
  • Feature/sveltekit fixes by @noway in #57
    • The library now works in SvelteKit environment - thanks to @Fallstop for testing

New Contributors

Full Changelog: 1.0.2...1.1.0

1.0.2

24 Nov 11:28
ef4ce21
Compare
Choose a tag to compare

What's Changed

  • Feature/return credential if valid sign by @noway in #51
    • VerificationResult now returns credentialSubject even if pass is expired/not active, but the signature is valid. You should continue using success to determine if the pass is valid.

Full Changelog: 1.0.1...1.0.2

1.0.1

23 Nov 11:05
34b4639
Compare
Choose a tag to compare

What's Changed

  • added user friendly error messages to errors by @J-eld in #48
    • violates object returned as part of VerificationResult now has description property
  • Feature/refactoring by @noway in #49
    • minor internal refactoring

Full Changelog: 1.0.0...1.0.1

1.0.0

19 Nov 10:20
52104f2
Compare
Choose a tag to compare

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

0.1.5

14 Nov 09:32
941904c
Compare
Choose a tag to compare

What's Changed

  • export types in main.ts by @noway in #38
    • now you should be able to cleanly import VerificationResult, CredentialSubject and Violates types from the library

Full Changelog: 0.1.4...0.1.5

0.1.4

12 Nov 23:54
d8ea030
Compare
Choose a tag to compare

What's Changed

  • Feature/description and lint by @noway in #36
    • minor improvements

Full Changelog: 0.1.3...0.1.4

0.1.3

12 Nov 14:52
d4ea872
Compare
Choose a tag to compare

What's Changed

  • Feature/cbor fix by @noway in #34
    • NZCP.js should now correctly verify signature when js bundle is minified

Full Changelog: 0.1.2...0.1.3

0.1.2

10 Nov 09:14
48f985d
Compare
Choose a tag to compare
0.1.2 Pre-release
Pre-release

What's Changed

  • Feature/minor improvements by @noway in #31
    • tests improvements
    • docs
  • Fix/invalid signature by @noway in #32
    • fixed invalid signature error in browser environments
    • fixed cwtClaims.jti missing in browser environments

Full Changelog: 0.1.1...0.1.2