Skip to content

Releases: dfinity/agent-js

v3.1.0

24 Jul 13:03
836188b
Compare
Choose a tag to compare

What's Changed

  • feat: export the getCrc32 function from @dfinity/principal by @ilbertt in #1077

Full Changelog: v3.0.2...v3.1.0

v3.0.2

23 Jul 12:37
a863ce1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.0.2

v3.0.1

22 Jul 16:32
5179cad
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v3.0.1

v3.0.0

17 Jul 18:39
e9ff264
Compare
Choose a tag to compare

Release Notes

For detailed upgrade guidelines, check out our release notes.

Changelog

New Contributors

Full Changelog: v2.4.1...v3.0.0

v3.0.0-beta.4

17 Jul 16:42
7a09091
Compare
Choose a tag to compare
v3.0.0-beta.4 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v3.0.0-beta.1...v3.0.0-beta.4

v3.0.0-beta.1

19 Jun 15:55
e44149b
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

What's Changed

Full Changelog: v3.0.0-beta.0...v3.0.0-beta.1

v3.0.0-beta.0

17 Jun 21:25
72d2e32
Compare
Choose a tag to compare
v3.0.0-beta.0 Pre-release
Pre-release

What's Changed

  • chore: npm audit fix by @krpeacock in #998
  • feat!: removes proxyagent and getDefaultAgent exports by @krpeacock in #992
  • chore: formatting files and changelog by @krpeacock in #999
  • ci: ubuntu latest for unit tests by @krpeacock in #1003
  • test: cover invalid tree leaf structure case in lookup_path by @ilbertt in #1001
  • style: fix linter errors and commands by @ilbertt in #1002
  • fix: checks subtyping relation when decoding reference types in Candid by @christoph-dfinity in #994
  • refactor: use new error system and error codes by @ilbertt in #1004
  • feat!: breaking out readState into signed and unsigned by @krpeacock in #1000
  • ci: node v22 for unit tests by @ilbertt in #1006
  • feat!: use new error system in Agent and Actor by @ilbertt in #1005
  • test: avoid skipping tests where possible, replace deprecated Jest assertions by @ilbertt in #1007
  • feat!: Expiry JSON serialization and deserialization by @ilbertt in #1008
  • feat: isCertified flag on errors by @ilbertt in #1010
  • feat!: make lookup_path compliant with the spec and introduce lookup_subtree by @ilbertt in #1009
  • chore: removes unused bs58check dependency from `@dfinity/identity-… by @krpeacock in #1013
  • feat!: standardizes on uint8array for agent-js interfaces by @krpeacock in #1012
  • fix: make isAuthenticated validate delegation expiry by @asabates-dfinity in #985
  • refactor: remove unnecessary uint8FromBufLike calls by @ilbertt in #1017
  • ci: prepare node action by @ilbertt in #1018
  • feat: remove base64-arraybuffer dependency by @ilbertt in #1016
  • feat!: replace hash with sha256 from @noble/hashes/sha2 to take advantage of existing dependencies by @ilbertt in #1019
  • refactor: use @noble/hashes/sha2 consistently by @ilbertt in #1020
  • feat!: replace concat with concatBytes from @noble/hashes/utils by @ilbertt in #1021
  • refactor: use hex utils from @noble/hashes by @ilbertt in #1022
  • chore!: deprecate management canister by @krpeacock in #1023
  • chore!: drop support for node v19 or lower, and for node v21 by @ilbertt in #1025
  • refactor: update typescript config by @ilbertt in #1026
  • ci: test docs builds by @ilbertt in #1029
  • ci: use bundle command in size-limit action by @ilbertt in #1030
  • fix: handle response.arrayBuffer() throws in #requestAndRetry by @ilbertt in #1031
  • feat: sync time with the network when an ingress expiry error was received by @nathanosdev in #1014
  • test: re-add removed assertion by @nathanosdev in #1032
  • feat: use new cbor library by @nathanosdev in #1015

New Contributors

Full Changelog: v2.4.1...v3.0.0-beta.0

Release 2.4.1

10 Apr 23:17
fe13fa7
Compare
Choose a tag to compare

What's Changed

  • chore: changes trap e2e test to check for the response "trapping" by @krpeacock in #986
  • feat: Change auth-client's default identity provider url by @lmuntaner in #987
  • fix: fixes a bug in the Principal library where the management can… by @krpeacock in #990
  • fix: fixes a bug in the Ed25519KeyIdentity verify implementation by @krpeacock in #991
  • test: fixes e2e tests for compatibility with dfx 0.26.0 by @krpeacock in #996
  • fix: fixes a bug in Ed25519KeyIdentity toRaw by @krpeacock in #995

Full Changelog: v2.4.0...v2.4.1

Release 2.4.0

24 Mar 19:44
16fde47
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.0...v2.4.0

Release 2.3.0

07 Feb 19:15
2e9efe2
Compare
Choose a tag to compare

What's Changed

FetchRootKey

  • refactors logic so that fetchrootkey is awaited before the first async call is made if shouldFetchRootKey is set. This resolves potential race conditions during local development

ReadState Expiry Rollback

  • rolls back an intermittent bug introduced in v2.1.3, where a re-used readstate request would be sent with a mismatching ingress_expiry for a re-used signature. Should reduce the frequency of Invalid Signature errors. An improved strategy will be released in a future update

SyncTime

  • HttpAgent now uses an anonymous identity for syncTime calls, which the replica will allow to have an invalid ingress_expiry provided. This (at last) allows clients with clocks diverging by >5 minutes to sync their time with the replica and behave normally

Enhanced Errors

  • HttpAgent Errors now include more useful information when thrown, including the signature, the request id, the public key, and a stack trace. The agent's ObservableLog utility is now also exported, and can be used for testing or independently. Reminder that the log exists! You can subscribe to events in the agent, and it is helpful for debugging

New Contributors

Full Changelog: v2.2.0...v2.3.0