Big changes coming to Agent JS! We’d love for you to test them out before they go live.
You can install and test the beta versions with
npm install --save @dfinity/agent@beta
or
npm install --save @dfinity/agent@3.0.0-beta.0
Many thanks to @ilbert and @NathanosDev, this release will be the biggest reduction in tech debt in the agent since Genesis, and brings the JS agent into closer compliance with the IC Specification and will behave more closely to the Rust agent. And there’s more to come soon!
Breaking changes:
- Removes the management canister in favor of
@dfinity/ic-management - changes all interfaces to
Uint8Array<ArrayBuffer>instead of a mix ofArrayBufferandUint8Array - Replaces buffer methods with exports from
@noble/hashes - Finally removes
BigNumberandBufferin favor of @NathanosDev’s newcborlibrary
- includes up to a 50% bundle size reduction!
- Big changes to our errors to be more typesafe and legible
- A new syncTime strategy that’s safe enough we can do it by default (no more ingress_expiry) errors
And more!
See the full changelog at:
