Runtime and compatibility
Phase one is ESM-only and requires Web Crypto hashing.
- Use Node
24.14.1or newer. globalThis.crypto.subtle.digestmust be available.- The package does not expose CommonJS entry points.
Browsers
Section titled “Browsers”globalThis.crypto.subtle.digestmust be available.TextEncodermust be available for UTF-8 conversion.- CI verifies digest parity in Chromium, Firefox, and WebKit on desktop, plus Chromium and WebKit mobile emulation through Vitest browser mode and Playwright.
See Browser and worker usage for the supported in-browser calling patterns.
Current compatibility boundary
Section titled “Current compatibility boundary”- The shipped helper uses SHA-256 only.
- Inputs are either UTF-8 strings or raw
Uint8Arrayvalues. - The output is always a lowercase hexadecimal string.
- If the runtime is missing the required Web Crypto surface,
UnsupportedRuntimeErroris thrown.