Agent-JS Changelog
Version 0.10.1
-
Fix for the auth-client identity option and added JSDOC comment for the timeToLive option
-
Sets the default Internet Identity expiration to 1 day for the authClient, up from 15
minutes
-
No longer checks instanceof Principal in @dfinity/agent, which should allow non-identical
versions of packages to interoperate, as long as they share the same API
Version 0.10.0
- Adds changelog for agent-js packages
-
Buffer and Pipe refactor
-
In previous versions of dfinity packages, we relied on Buffer, a polyfilled version of
the Node.js Buffer utility. In a significant refactor, we have removed all cases of
this, along with Pipe and the nonstandard Blob packages, in favor of ArrayBuffer,
Uint8Array, and DataView
- Utility methods such as
blobToUint8Array
have been removed.
-
Interfaces that relied on Buffer and related packages have been updated to accept
ArrayBuffer, and the type interfaces are updated to reflect this
-
Secp256k1 Support
-
Adds two new exports to @dfinity/identity - Secp256k1KeyIdentity and
Secp256k1PublicKey
-
API mirrors the ed25519 components, and relies on the
secp256k1 npm package for
signing and verification.