Releases: dfinity/agent-js
Release 1.3.0
What's Changed
New feature - exponential backoff for retries, using a new HttpAgent option - backoffStrategy
. The agent can accept a BackoffStrategyFactory
, which is a function that returns a BackoffStrategy
. The strategy itself must include a next
method, which yields a number
or null
The default strategy mimics the one used by agent-rs
. It will increase the interval using exponential backoff, and adding in a "jitter", randomizing the result a little to decrease the likelihood of calls firing at the same time as your application scales, which could cause performance issues under certain conditions.
If you prefer a constant backoff, a custom factory would look something like this in TypeScript:
import { HttpAgent, BackoffStrategy } from '@dfinity/agent';
const strat: BackoffStrategy = {
next: () => 1000
}
const agent = new HttpAgent({
backoffStrategy: () => strat
});
- chore: adds required
npm audit
check to PRs by @krpeacock in #880 - feat: retry delay strategy by @krpeacock in #871
- docs: adds instructions on how to run unit and e2e tests to the README by @krpeacock in #881
Full Changelog: v1.2.1...v1.3.0
Release 1.2.1
What's Changed
- feat: make
IdbStorage
get/set
methods generic by @hpeebles in #869 - chore: Add context to errors thrown on cbor decode by @frederikrothenberger in #874
- chore: replaces global npm install with setup-node by @krpeacock in #875
Full Changelog: v1.2.0...v1.2.1
Release 1.2.0
What's Changed
- feat: allow passing
DBCreateOptions
toIdbStorage
constructor by @hpeebles in #850 - fix: pads date numbers in changelog automation by @krpeacock in #862
- feat: support for management canister logging by @krpeacock in #863
- feat: pure JS BLS verification by @krpeacock in #817
- feat: support for restricting II auth methods by @krpeacock in #856
- chore: npm audit by @krpeacock in #865
Full Changelog: v1.1.1...v1.2.0
Release 1.1.1
What's Changed
- fix: Work around credentials not being enumerable by @frederikrothenberger in #860
Full Changelog: v1.1.0...v1.1.1
Release 1.1.0
What's Changed
- feat: adds fromPem method for identity-secp256k1 by @krpeacock in #816
- chore: switch changelog to markdown by @krpeacock in #853
- feat: replay attack prevention using watermarks by @krpeacock in #854
- fix: Remove ArrayBuffer checks from WebAuthnIdentity by @frederikrothenberger in #857
Full Changelog: v1.0.1...v1.1.0
Release 1.0.1
What's Changed
- chore: export
AuthClientStorage
to aid with custom implementations by @hpeebles in #848 - fix: ed25519KeyIdentity generates unique identities when no seed is provided by @krpeacock in #851
Full Changelog: v1.0.0...v1.0.1
Release 1.0.0
What's Changed
- feat: Export AgentHTTPResponseError by @kristoferlund in #823
- chore: adding new controller to mainnet test snapshots by @krpeacock in #841
- feat: customPath changes by @krpeacock in #840
- feat: introduces Observable Log for HttpAgent by @krpeacock in #842
- chore: update management canister interface by @krpeacock in #844
- fix: adds npm run build to publish script by @krpeacock in #845
- chore: npm audit fix by @krpeacock in #846
New Contributors
- @kristoferlund made their first contribution in #823
Full Changelog: v0.21.4...v1.0.0
Release 0.21.4
What's Changed
- fix: distinguish remote dev environments from known hosts by @rvanasa in #830
- feat: release automation changes by @krpeacock in #832
- chore: updating package-lock by @krpeacock in #831
- fix: export partial identity from index of @dfinity/identity by @krpeacock in #833
- fix: edit to the post-release script by @krpeacock in #834
- fix: edit to the post-release script by @krpeacock in #836
Full Changelog: v0.21.2...v0.21.4
Release 0.21.2
What's Changed
- fix: incorrectly propogated package-lock by @krpeacock in #828
Full Changelog: v0.21.1...v0.21.2