Releases: observ33r/jsoncmp
Releases · observ33r/jsoncmp
v1.0.4
Refactor
- Extracted
JSONCmpValueinto separateJSONCmpArrayandJSONCmpObjecttypes for improved clarity and stricter type safety. - Removed all internal
as anycasts in favor of properly typed structures.
Documentation
- Expanded
Usagesection in README to show full type signatures and improve clarity. - Updated
Benchmarksection with latest results.
Build
- Added
tslibdependency required for@rollup/plugin-typescript.
Other
- Minor internal cleanups and comment improvements.
v1.0.3
Chore
- Added
sideEffects: falseflag topackage.jsonfor proper tree-shaking in ESM-aware bundlers.
Documentation
- Added JSR Score badge to the README.
- Improved usage example to include all valid JSON primitives (
string,null,boolean). - Merged "Benchmark" and "Running Benchmark" sections into one for better structure.
- Linked to benchmark data source for transparency and easier navigation.
v1.0.2
v1.0.1
Features
- Strict deep structural equality for JSON-compatible values:
number,string,boolean,null- nested arrays and plain objects
- Runtime-optimized comparison:
- Tailored branch orderings for V8 and JavaScriptCore
- Tiny output (~2.5 kB minified)
- Zero dependencies
- Fully type-safe with
JSONCmpValueunion type
Benchmarked against
lodash.isEqualfast-equalsdequal/lite- native
JSON.stringifyfallback - Node’s built-in
isDeepStrictEqual
See benchmark for full results.
Environment support
- Node.js ≥ 18
- Modern browsers
- Cloudflare Workers
- Deno
- Bun