Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dfx-json authored Oct 24, 2024
2 parents 642198b + 343eb09 commit 81747ad
Show file tree
Hide file tree
Showing 15 changed files with 260 additions and 90 deletions.
26 changes: 15 additions & 11 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [2.1.3] - 2024-10-23

### Added

- feat: allow for setting HttpAgent ingress expiry using `ingressExpiryInMinutes` option
Expand Down Expand Up @@ -57,6 +59,8 @@ AgentError: Call failed:
- docs: clarifies meaning of `effectiveCanisterId` in `CallOptions`

### Changed

- feat: adds management canister support for canister snapshots
- feat: replaces hdkey and bip32 implementations with `@scure/bip39` and `@scure/bip32` due to vulnerability and lack of maintenance for `elliptic`
- chore: bumps dev dependency versions to remove warnings
- chore: addresses eslint errors uncovered by bumping eslint version
Expand Down Expand Up @@ -239,8 +243,8 @@ const result = await management.bitcoin_get_balance_query({
### Added

* feat: uses expirable map for subnet keys in `agent-js`, with a timeout of 1 hour
* **feat!: node signature verification**
This feature includes additional changes in support of testing and releasing the feature:
* **feat!: node signature verification**
This feature includes additional changes in support of testing and releasing the feature:
* Mainnet e2e tests for queries and calls
* published counter canister
* New `HttpAgent` option - `verifyQuerySignatures`. Defaults to true, but allows you to opt out of verification. Useful for testing against older replica versions
Expand Down Expand Up @@ -372,7 +376,7 @@ Changes default stored key for `auth-client` to use ECDSAKey* Also updates the

* _Breaking change:_ Moves `Secp256k1KeyIdentity` to its own package. `@dfinity/identity-secp256k1`
* _Breaking change:_ Deprecates `@dfinity/authentication`. If you relied on the `isDelegationValid` check, it has been moved to `@dfinity/identity`

* Deprecates `@dfinity/identity-ledgerhq`. Use `@zondax/ledger-icp` instead.
* chore: links assets docs in index
* chore: sets up new size-limit job for packages, in preparation for CI
Expand Down Expand Up @@ -465,9 +469,9 @@ Changes default stored key for `auth-client` to use ECDSAKey* Also updates the
### Changed

* Adds a default callback to the `IdleManager` that will refresh the page after clearing the storage
* Adds a new utility method, `canisterStatus`, to `agent-js`. Canister status now allows you to query paths from the canister certificate with a simple interface, using the API from the[interface specification](https://internetcomputer.org/docs/current/references/ic-interface-spec#state-tree-canister-information)
* Adds a new utility method, `canisterStatus`, to `agent-js`. Canister status now allows you to query paths from the canister certificate with a simple interface, using the API from the[interface specification](https://internetcomputer.org/docs/current/references/ic-interface-spec#state-tree-canister-information)
Comes with nicely configured options for

`time`, `controllers`, `subnet`, `module_hash`, `candid`. Additionally, has a utility for reading custom MetaData set using [ic-wasm](https://github.com/dfinity/ic-wasm), as well as generic custom paths in the format of ArrayBuffers.
* updates to package.json files for metadata in npm

Expand All @@ -487,9 +491,9 @@ Changes default stored key for `auth-client` to use ECDSAKey* Also updates the
* Versioning tool now sets patch version to 0 for minor version updates, or patch and minor versions to 0 for major version updates
* Removes jest-expect-message, which was making test error messages less useful
* `HttpAgent` now generates a nonce to ensure that calls are unique by default. If you want to opt out or provide your own nonce logic, you can now pass an option of `disableNonce: true`during the agent initialization.

If you are currently using `agent.addTransform(makeNonceTransform())` , please note that you should remove that logic, or add the `disableNonce` option to your agent when upgrading.


## [0.10.3]

Expand All @@ -504,13 +508,13 @@ Changes default stored key for `auth-client` to use ECDSAKey* Also updates the
### Changed

* Security enhancement - adds a rewrite for urls to subdomains of

`\*.ic0.app/api`

to

`ic0.app/api`

* Improves error messages for when `HttpAgent` cannot infer `fetch` implementation

## [0.10.1]
Expand Down
10 changes: 5 additions & 5 deletions e2e/node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@do-not-publish/ic-node-e2e-tests",
"version": "2.1.2",
"version": "2.1.3",
"type": "module",
"scripts": {
"ci": "npm run e2e",
Expand All @@ -16,10 +16,10 @@
"test": ""
},
"dependencies": {
"@dfinity/agent": "^2.1.2",
"@dfinity/assets": "^2.1.2",
"@dfinity/identity": "^2.1.2",
"@dfinity/principal": "^2.1.2",
"@dfinity/agent": "^2.1.3",
"@dfinity/assets": "^2.1.3",
"@dfinity/identity": "^2.1.3",
"@dfinity/principal": "^2.1.3",
"whatwg-fetch": "^3.6.2"
},
"devDependencies": {
Expand Down
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/agent-monorepo",
"version": "2.1.2",
"version": "2.1.3",
"private": true,
"description": "Use an Agent to interact with the Internet Computer from your JavaScript program.",
"workspaces": {
Expand Down
6 changes: 3 additions & 3 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/agent",
"version": "2.1.2",
"version": "2.1.3",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to interact with the Internet Computer",
Expand Down Expand Up @@ -47,8 +47,8 @@
"test:coverage": "jest --collectCoverage"
},
"peerDependencies": {
"@dfinity/candid": "^2.1.2",
"@dfinity/principal": "^2.1.2"
"@dfinity/candid": "^2.1.3",
"@dfinity/principal": "^2.1.3"
},
"dependencies": {
"@noble/curves": "^1.4.0",
Expand Down
Loading

0 comments on commit 81747ad

Please sign in to comment.