Back to Explore

shuding/stable-hash

GitHub
1 watchersOpen source

Last release: 6/2/2025

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 is backed by a GitHub repository and shows at least one tagged update (0.0.6), with a recent upstream push on 2026-01-25, which suggests it is still being maintained, though there is limited evidence about ongoing release frequency.
  • Apparent update cadence is unclear from the provided history, but the last known tagged update is 0.0.6 dated 2025-06-02, while the repo received a push in 2026-01-25, indicating some activity after the last published update.

AI summary generated Today

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

Recent updates

  • 0.0.6

    6/2/2025

    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