Skip to content

Releases: dfinity/agent-js

v0.20.0

14 Nov 19:45
0d73ffd
Compare
Choose a tag to compare

Significant new features in this release!

Most notably, @dfinity/agent version 0.20.0 now handles query signature verification. All queries will automatically check for signatures in the state tree signed by the node that replies. This enables the client to verify that there have been no man-in-the-middle attacks without a developer needing to implement certified variables or use update calls.

note: if you are using a lower version of dfx than 0.15.2, you will need to set {verifyQuerySignatures: false} in your HttpAgent options, as the signatures were not present in earlier replica versions.

Additionally, this change replaces the package tweetnacl with @noble/curves for Ed25519 curve signatures and validation.

What's Changed

New Contributors

Full Changelog: v0.19.3...v0.20.0

v0.20.0-beta.0

07 Nov 22:27
963ef63
Compare
Choose a tag to compare
v0.20.0-beta.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.19.3...v0.20.0-beta.0

v0.19.3

25 Sep 22:02
8330773
Compare
Choose a tag to compare

What's Changed

Noteworthy change: Principal now contains a toJSON method, returning an object with {"__principal__": <principal-string>}. This is compatible with the JSON reviver that is provided in @dfinity/utils, allowing you to easily serialize and deserialize structures containing Principals into and out of JSON

Full Changelog: v0.19.2...v0.19.3

v0.19.2

25 Aug 17:59
b7abf4a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.19.1...v0.19.2

v0.19.1

24 Aug 15:52
ca2a1ad
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.19.0...v0.19.1

v0.19.0

22 Aug 18:52
2aa2edc
Compare
Choose a tag to compare

Notable Changes

Now sets a default host of https://icp-api.io for HttpAgent
Replaces js-sha256 with @noble/hash

Package sizes are reduced as a result of that dependency change!

Screenshot 2023-08-22 at 9 56 29 AM

What's Changed

Full Changelog: v0.18.1...v0.19.0

v0.18.1

24 Jul 17:26
67b1e38
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.18.0...v0.18.1

v0.18.0

12 Jul 22:40
1b80eac
Compare
Choose a tag to compare

What's Changed

  • feat: expose boundary node http headers to calls by @keplervital in #736
  • chore: release v0.18.0 by @dfx-json in #738

New Contributors

Full Changelog: v0.17.0...v0.18.0

v0.17.0

07 Jul 01:28
8254c47
Compare
Choose a tag to compare
chore: release v0.17.0 (#735)

* chore: release v0.17.0

* update package-lock.json

v0.16.0

29 Jun 17:31
e292412
Compare
Choose a tag to compare

Small breaking change - typo in JsonnableWebAuthnIdentity type
Reverts use of Headers struct in HttpAgent for better node.js fetch library compatibility

What's Changed

Full Changelog: v0.15.7...v0.16.0