Skip to content

Release 2.1.3

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 23 Oct 17:04
· 6 commits to main since this release
6ef8afb

What's Changed

We have a couple fixes and some improvements to errors in this release.

Fixes

  • Fixed an issue where read_state polling requests would fail after the initial expiry, but before the request was processed
    • This was an edge case for subnets under high load. The read_state is allowed to use a fresh ingress_expiry, so pollForResponse and retry logic now uses this pattern
  • Added a check to handle a regression when calling the management canister using the new sync_call flow

Error handling

  • Fixed an issue where reject_code and reject_message weren't passed correctly to the error in synchronous call reject or trap responses.

  • new ActorCallError class

  • AgentError and ActorCallError support instanceof checks, as well as a name attribute that you can use for easier error handling

    • some old generic Errors are now labeled more preciesely
  • chore: Correct the typo in agent/src/actor.ts by @AlexV525 in #939

  • fix: trap and throw handling in v3 sync call by @krpeacock in #940

  • fix: read state with fresh expiry by @krpeacock in #938

  • test: automatically deploys trap canister if it doesn't exist yet dur… by @krpeacock in #942

  • chore: skip range check when the certificate comes from the management canister by @dfx-json in #945

  • feat: allow for setting HttpAgent ingress expiry using ingressExpiryInMinutes option by @krpeacock in #905

  • feat: improved assertion options for agent errors by @krpeacock in #908

New Contributors

Full Changelog: v2.1.2...v2.1.3