fast-equals
Advanced tools
Changelog
3.0.0
When creating a custom equality comparator via createCustomEqual
, the equality method has an expanded contract:
// Before
type EqualityComparator = (objectA: any, objectB: any, meta: any) => boolean;
// After
type InternalEqualityComparator = (
objectA: any,
objectB: any,
indexOrKeyA: any,
indexOrKeyB: any,
parentA: any,
parentB: any,
meta: any,
) => boolean;
If you have a custom equality comparator, you can ignore the differences by just passing additional undefined
parameters, or you can use the parameters to further improve / clarify the logic.
Changelog
2.0.2
Changelog
2.0.1
.rpt2_cache
directory from being published for better CI environment support (thanks @herberttn)Changelog
2.0.0
fast-equals/es
, fast-equals/lib
, fast-equals/mjs
locations
dist
for different consumption types:
fast-equals.js
(UMD / browser
)fast-equals.esm.js
(ESM / module
)fast-equals.cjs.js
(CommonJS / main
)import * as fe from 'fast-equals
Map
/ Set
comparisonsObject.create(null)
) to be plain objectscreateCustomEqual
Changelog
1.6.3
Changelog
1.6.1
babel@7
"sideEffects": false
to package.json
for better tree-shaking in webpack