defaultNodeVersionHash()
Default synchronous D112 V1 node-version hash over strict canonical JSON UTF-8 bytes.
When hashing a host value directly, encode first:
defaultNodeVersionHash(strictCanonicalJsonBytes(value)).
Import
Section titled “Import”import { defaultNodeVersionHash } from "@graphrefly/ts/core";Signature
Section titled “Signature”function defaultNodeVersionHash(bytes: Uint8Array): stringParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
bytes | Uint8Array | Canonical bytes to decode. |
Returns
Section titled “Returns”A string value.
Example
Section titled “Example”import { defaultNodeVersionHash } from "@graphrefly/ts/core";Source
Section titled “Source”packages/ts/src/node/versioning.ts