Creates a deterministic hash.
Normalizes value using stable JSON serialization for non-string values and generates a SHA-256 hash.
value
Note: Non-JSON-serializable values (undefined, Symbol, functions, circular refs) may be dropped or cause errors during serialization.
Value to hash (string, string[], object, etc.).
A hex string representing the hash.
Creates a deterministic hash.
Normalizes
valueusing stable JSON serialization for non-string values and generates a SHA-256 hash.Note: Non-JSON-serializable values (undefined, Symbol, functions, circular refs) may be dropped or cause errors during serialization.