@dfinity/principal 2.4.1
JavaScript and TypeScript library to work with Internet Computer principals
@dfinity/principal@2.4.1 was published on 2025-04-10. Its manifest declares 1 runtime dependency and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
Deprecated: This package has been deprecated. Use @icp-sdk/core/principal instead. Migration guide: https://js.icp.build/core/latest/upgrading/v5
All @dfinity/principal versions · Permanent reference to 2.4.1 · View npm registry JSON · Latest release
Package specifications
| Version | 2.4.1 |
|---|---|
| License declaration | Apache-2.0 |
| Published | 2025-04-10T23:20:06.835Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 159.58 KiB |
| Published file count | 29 |
| Package type | Not declared |
| ES module entry | ./lib/esm/index.js |
| Default entry | ./lib/cjs/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 1 |
| Repository stars | 171 |
| Repository forks | 97 |
Install @dfinity/principal 2.4.1
npm install @dfinity/principal@2.4.1 pnpm add @dfinity/principal@2.4.1 yarn add @dfinity/principal@2.4.1
Runtime dependencies
- @noble/hashes ^1.3.1
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @noble/hashes@1.8.0 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Evidence and freshness
- Readable npm registry JSON — retrieved 2026-11-05T15:29:41.166Z
- https://api.deps.dev/v3/projects/github.com%2Fdfinity%2Ficp-js-core — retrieved 2026-11-05T13:41:17.874Z
- https://api.deps.dev/v3/systems/npm/packages/%40dfinity%2Fprincipal/versions/2.4.1 — retrieved 2026-11-05T15:29:41.247Z
- https://api.deps.dev/v3/systems/npm/packages/%40dfinity%2Fprincipal/versions/2.4.1:dependencies — retrieved 2026-11-05T15:29:41.300Z