# ICP JavaScript SDK v3.0.0 is released!

**URL:** <https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679>\
**Category:** JavaScript\
**Created:** [July 22, 2025, 10:31am UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679 "2025-07-22T10:31:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilbert](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ilbert/32/8717_2.png) [@ilbert](https://forum.dfinity.org/u/ilbert)\
**Post date:** [July 22, 2025, 10:31am UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/1 "2025-07-22T10:31:37Z")

</div>

We have released **v3.0.0** of the [ICP JavaScript SDK libraries](https://github.com/dfinity/agent-js). This is a major release that introduces significant refactoring, API improvements, and breaking changes.

Among the key improvements, this release eliminates Buffer and similar dependencies, significantly [reducing bundle size](https://agent-js.icp.xyz/release-notes/v300/#bundle-size) and improving performance across all packages.

## What’s New

Here are some of the key changes introduced in this release:

- **API Refinements** :

- **Dependency Modernization** : Thanks to the new [@dfinity/cbor](https://npmjs.com/package/@dfinity/cbor) package dependency, legacy libraries like `Buffer` and `BigNumber` have been removed. This led us to a [significant reduction in the packages’ bundle size](https://agent-js.icp.xyz/release-notes/v300/#bundle-size).

- **Support for Presigned Requests** : The polling strategy for `read_state` has been updated to support presigned requests, a key feature for integrating with hardware wallets or other external signing solutions.

- **IC Spec Alignment** : The lookup methods of the `Certificate` have been updated and renamed to align with the [IC Interface Specification](https://internetcomputer.org/docs/references/ic-interface-spec#lookup).

- **Clock Drift Calculation** : The `HttpAgent` will now automatically adjust the ingress expiry time based on the latest subnet’s certified time. You can also sync the local time with the IC network before an error occurs by using the `shouldSyncTime` option.

- **New Documentation Site** : The documentation has been completely rebuilt and is still available at [agent-js.icp.xyz](https://agent-js.icp.xyz). The new site offers better search, navigation, and comprehensive API references.

Here’s the list of all the packages that have been upgraded to v3:

- [@dfinity/agent](https://npmjs.com/package/@dfinity/agent)
- [@dfinity/assets](https://npmjs.com/package/@dfinity/assets)
- [@dfinity/auth-client](https://npmjs.com/package/@dfinity/auth-client)
- [@dfinity/candid](https://npmjs.com/package/@dfinity/candid)
- [@dfinity/identity](https://npmjs.com/package/@dfinity/identity)
- [@dfinity/identity-secp265k1](https://npmjs.com/package/@dfinity/identity-secp265k1)
- [@dfinity/principal](https://npmjs.com/package/@dfinity/principal)
- [@dfinity/use-auth-client](https://npmjs.com/package/@dfinity/use-auth-client)

This release contains important breaking changes. We strongly recommend reviewing the full release notes for a complete list of changes and a guide to upgrading your projects.

**Release Notes** : [https://agent-js.icp.xyz/release-notes/v300/](https://agent-js.icp.xyz/release-notes/v300/).  
**Changelog** : [Release v3.0.0 · dfinity/icp-js-core · GitHub](https://github.com/dfinity/agent-js/releases/tag/v3.0.0).

## Future work

- A fix for the long-standing issue of importing the IDL module from the `@dfinity/candid` package is on the way. It will likely be available in the **v3.0.1** patch release.
- More security improvements to how the `HttpAgent` manages the ingress expiry, clock drift and certificate freshness checks will come in the next weeks.
- We are in the process of rebranding the packages names, and eventually publish them under a single modular package. This will likely lead us to deprecate some of the current `@dfinity/...` packages. In any case, we will make sure that the migration to the new package(s) will be as straightforward as possible. More on this soon.
- We are planning to deprecate `@dfinity/use-auth-client` in favor of more adopted packages like [ic-use-internet-identity](https://www.npmjs.com/package/ic-use-internet-identity), [ic-use-actor](https://www.npmjs.com/package/ic-use-actor) or [@ic-reactor/react](https://www.npmjs.com/package/@ic-reactor/react). Again, more on this soon.

---

<div class="post-metadata">

**Author:** ![ilbert](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ilbert/32/8717_2.png) [@ilbert](https://forum.dfinity.org/u/ilbert)\
**Post date:** [July 22, 2025, 4:43pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/2 "2025-07-22T16:43:53Z")

</div>

> [@ilbert](#):
>
> - A fix for the long-standing issue of importing the IDL module from the `@dfinity/candid` package is on the way. It will likely be available in the **v3.0.1** patch release.

Here we go! **v3.0.1** is out, fixing the long-standing IDL imports issue.

**Changelog** : [Release v3.0.1 · dfinity/agent-js · GitHub](https://github.com/dfinity/agent-js/releases/tag/v3.0.1)

---

<div class="post-metadata">

**Author:** ![ZenVoich](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/zenvoich/32/5969_2.png) [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Post date:** [July 22, 2025, 7:08pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/3 "2025-07-22T19:08:35Z")

</div>

Please update peer deps in @dfinity/ledger-icrc package too

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 22, 2025, 7:17pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/4 "2025-07-22T19:17:55Z")

</div>

We can’t at this time. It requires changes in both the NNS dapp and OISY to handle the breaking changes introduced in Agent-js v3. Until those are addressed, tested and validated on mainnet, `@dfinity/ledger-icrc` and other `ic-js` libraries won’t be officially upgraded and released.

---

<div class="post-metadata">

**Author:** ![b3hr4d](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/b3hr4d/32/9755_2.png) [@b3hr4d](https://forum.dfinity.org/u/b3hr4d)\
**Post date:** [July 23, 2025, 5:35am UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/5 "2025-07-23T05:35:18Z")

</div>

🎉 Amazing work on this major release! The improvements in bundle size, API clarity, and IC spec alignment are incredibly valuable for the ecosystem. Kudos to the team for pushing this forward 👏

As the maintainer of the [@ic-reactor](https://www.npmjs.com/org/ic-reactor) packages, I’m excited to announce that I’ll be updating the libraries to support `v3.0.0` very soon. This aligns perfectly with several new features we’ve been preparing, including enhanced canister management, better auth handling, and deeper modularity for IC dapps. 🚀

Looking forward to seeing how the ecosystem evolves around this cleaner, leaner SDK. Thanks again for the awesome work!

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [July 23, 2025, 1:41pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/6 "2025-07-23T13:41:52Z")

</div>

Why can’t those apps keep using the old libraries?

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 23, 2025, 2:05pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/7 "2025-07-23T14:05:15Z")

</div>

For context: Until now, the approach for these feature libraries has always been to first integrate them into the NNS dapp and OISY. Once stabilized, we release updated versions to the community. For example, we update the `.did` files weekly, apply necessary patches, and develop new features. As a result, dapps often integrate new versions of the libraries multiple times a week—we iterate continuously. The goal is to improve the libraries, test them thoroughly through our pipelines and manual QA, and release only once everything has passed our acceptance criteria.

To answer your question: yes, I guess, we can technically modify our pipelines to support, say, two branches and apply patches to both. However, that would introduce additional overhead. And as mentioned above, our general practice is to ship once a feature has gone through the full development, testing and release flow.

That said, I need to clarify two things based on internal discussions this afternoon: the Foundation — and specifically the SDK team — is working on making the dapps compatible with `v3.0.0`.

Also, if anyone is interested in beta-testing a version of the `ic-js` libraries compatible with `v3.0.0`, you can try it. I didn’t share this yesterday because I wasn’t aware the versions had been manually tested. But for example, if you’re using `@dfinity/ledger-icp` and want to migrate to `v3.0.0`, you can try installing the beta version: `npm i @dfinity/ledger-icp@beta`.

---

<div class="post-metadata">

**Author:** ![b3hr4d](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/b3hr4d/32/9755_2.png) [@b3hr4d](https://forum.dfinity.org/u/b3hr4d)\
**Post date:** [July 28, 2025, 3:31pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/8 "2025-07-28T15:31:56Z")

</div>

> [@b3hr4d](#):
>
> I’m excited to announce that I’ll be updating the libraries to support `v3.0.0` very soon.

[ic-reactor v2](https://forum.dfinity.org/t/introduction-ic-reactor-react-for-react-developers/27930/40) has just been released with full support for `agent-js v3` right out of the box.

---

<div class="post-metadata">

**Author:** ![ilbert](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ilbert/32/8717_2.png) [@ilbert](https://forum.dfinity.org/u/ilbert)\
**Post date:** [August 25, 2025, 6:55pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/9 "2025-08-25T18:55:33Z")

</div>

Cross posting for reference: [ICP JavaScript SDK v4.0.0 is released!](https://forum.dfinity.org/t/icp-javascript-sdk-v4-0-0-is-released/55915)

---

<div class="post-metadata">

**Author:** ![ilbert](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ilbert/32/8717_2.png) [@ilbert](https://forum.dfinity.org/u/ilbert)\
**Post date:** [September 3, 2025, 3:11pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/10 "2025-09-03T15:11:07Z")

</div>

@ZenVoich the [dfinity/ic-js](https://github.com/dfinity/ic-js) libraries have been updated to use the v3 version.

---

<div class="post-metadata">

**Author:** ![ilbert](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ilbert/32/8717_2.png) [@ilbert](https://forum.dfinity.org/u/ilbert)\
**Post date:** [November 5, 2025, 4:04pm UTC](https://forum.dfinity.org/t/icp-javascript-sdk-v3-0-0-is-released/53679/11 "2025-11-05T16:04:14Z")

</div>

@ZenVoich the `ic-js` libraries have been updated to use the [latest version](https://js.icp.build/core/latest) (v4 today) of the core library, see:

> [@package ic-js & oisy-wallet-signer are now powered by @icp-sdk/core](https://forum.dfinity.org/t/ic-js-oisy-wallet-signer-are-now-powered-by-icp-sdk-core/59635):
>
> Hey waving_hand We just upgraded the peer dependencies of [ic-js](http://github.com/dfinity/ic-js/) and [oisy-wallet-signer](https://github.com/dfinity/oisy-wallet-signer/) from the good old AgentJS stack (@dfinity/agent, @dfinity/principal, etc.) to the shiny new multi-entrypoint package @icp-sdk/core that was announced in [this forum post](https://forum.dfinity.org/t/icp-javascript-sdk-v4-0-0-is-released/55915). light_bulb What does this mean? This is mostly a structural change, no behavior changes are expected. However, since you’ll have to pull this peer dependency (or npm will do it automatically), we marked these as major releases to make …
