Back to Explore

shuding/stable-hash

GitHub
3 watchersOpen source

Last release:

stable-hash is a tiny JavaScript library for “stably hashing” any JavaScript value, returning a string that stays consistent for the same input. It handles non-JSON values like BigInt, NaN, Symbol, functions, and circular objects, and it sorts object keys to make hashes stable. It was originally created for SWR and is useful when you need value-based identifiers for JS data that goes beyond JSON.stringify.

Project status

  • The source appears to be maintained at a low level, with the last known upstream push on 2026-01-25, but the last documented update (0.0.6) was on 2025-06-02.
  • Update cadence looks sparse, roughly several months between changes (no evidence of frequent updates as of today, 2026-09-10).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 0.0.6

    Release 0.0.6 is a small internal refactor that replaces `==` with `===`. The change is intended to improve performance and may also affect behavior where equality comparisons previously relied on type coercion.

    Breaking