{"version":"2.1.293","anchor":"sha256hex-validates-input-type","canonical_anchor":"sha256hex-validates-input-type","heading":"Hashing helper now rejects input that is not text or bytes","tier":"internal","area":"Internals","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.293\/e\/sha256hex-validates-input-type","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.293","markdown":"### Hashing helper now rejects input that is not text or bytes\n\nAn internal hashing helper now throws a type error when given something other than text or bytes, instead of hashing it anyway\n\n**What**\n\nClaude Code has an internal helper that turns data into a SHA-256 hash, a short fingerprint of the content. That helper now raises a type error (`ERR_INVALID_ARG_TYPE`) when it is given something that is neither text nor raw bytes. Before, it hashed whatever it was handed.\n\n**Why**\n\nBad input now fails loudly at the point where it goes wrong, instead of quietly producing a fingerprint of the wrong thing.\n\n- Area: Internals\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}