@dfinity/principal 0.21.1
JavaScript and TypeScript library to work with Internet Computer principals
@dfinity/principal@0.21.1 was published on 2024-01-22. 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 0.21.1 · View npm registry JSON · Latest release
Package specifications
| Version | 0.21.1 |
|---|---|
| License declaration | Apache-2.0 |
| Published | 2024-01-22T23:48:40.513Z |
| 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 | 151.73 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 0.21.1
npm install @dfinity/principal@0.21.1 pnpm add @dfinity/principal@0.21.1 yarn add @dfinity/principal@0.21.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-06T21:18:19.545Z
- https://api.deps.dev/v3/projects/github.com%2Fdfinity%2Ficp-js-core — retrieved 2026-11-06T20:35:46.009Z
- https://api.deps.dev/v3/systems/npm/packages/%40dfinity%2Fprincipal/versions/0.21.1 — retrieved 2026-11-06T21:18:19.630Z
- https://api.deps.dev/v3/systems/npm/packages/%40dfinity%2Fprincipal/versions/0.21.1:dependencies — retrieved 2026-11-06T21:18:19.716Z