Skip to content

Releases: dfinity/agent-js

Release 1.3.0

01 May 22:44
21e8d2b
Compare
Choose a tag to compare

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
});

Full Changelog: v1.2.1...v1.3.0

Release 1.2.1

25 Apr 17:14
f000c7d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

Release 1.2.0

25 Mar 20:44
d73d5e9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.1...v1.2.0

Release 1.1.1

19 Mar 16:03
4ba3407
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

Release 1.1.0

18 Mar 17:50
ad6ba89
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.1...v1.1.0

Release 1.0.1

20 Feb 23:41
0f0e10a
Compare
Choose a tag to compare

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

13 Feb 22:22
31f1dc1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.21.4...v1.0.0

Release 0.21.4

24 Jan 19:59
2063948
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.21.2...v0.21.4

Release 0.21.2

23 Jan 00:34
cc489d9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.21.1...v0.21.2

Release 0.21.1

22 Jan 23:33
ec2b65b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.21.0...v0.21.1