Skip to content

chore: upgrade dependencies to @icp-sdk/canisters v3.2.0#73

Merged
mducroux merged 13 commits intomainfrom
mducroux/upgrade-nns-sns-dependencies
Jan 13, 2026
Merged

chore: upgrade dependencies to @icp-sdk/canisters v3.2.0#73
mducroux merged 13 commits intomainfrom
mducroux/upgrade-nns-sns-dependencies

Conversation

@mducroux
Copy link
Copy Markdown
Contributor

@mducroux mducroux commented Dec 19, 2025

This PR updates the various packages by switching to @icp-sdk/canisters v3.2.0 and @icp-sdk/core v5.0.0 as recommended here. Changes are as follows:

  • Replace @dfinity/nns, @dfinity/sns, @dfinity/agent, @dfinity/principal with @icp-sdk/canisters and @icp-sdk/core
  • Switch to ESM build output (.mjs)
  • Remove node-fetch dependency (use Node.js 18+ native fetch)
  • Add ESM/CJS interop handling for Ledger packages

@mducroux mducroux marked this pull request as ready for review December 19, 2025 15:47
@mducroux mducroux requested review from a team, ielashi and maciejdfinity December 19, 2025 15:47
@mducroux mducroux changed the title Mducroux/upgrade nns sns dependencies chore: upgrade dependencies to @icp-sdk/canisters v3.2.0 Dec 19, 2025
Copy link
Copy Markdown
Collaborator

@ielashi ielashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Curious, why did we switch to esm build?

Comment thread package.json
@@ -60,7 +55,7 @@
"ts-node": "^10.9.1"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need the ts-node dependency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is needed to run ./script/get-tokens-list.ts

@mducroux
Copy link
Copy Markdown
Contributor Author

Switching to ESM is not necessary actually. But since it is the modern best practice, I would suggest we can leave it as is. I don't think it makes a big difference.

@mducroux mducroux merged commit 580032d into main Jan 13, 2026
3 checks passed
@mducroux mducroux deleted the mducroux/upgrade-nns-sns-dependencies branch January 13, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants