fix(deps): update dependency fast-equals to v5 #154
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.0.3
->5.2.2
Release Notes
planttheidea/fast-equals (fast-equals)
v5.2.2
Compare Source
NodeNext
module resolutionv5.2.1
Compare Source
Bugfixes
src
code inindex.d.ts
by flattening types in filev5.2.0
Compare Source
Enhancements
Bugfixes
v5.1.3
Compare Source
Enhancements
Map
/Set
) equality comparisonsMaintenance
dequal
anddequal/lite
in benchmark comparisonsv5.1.2
Compare Source
Maintenance
Re-release of
5.1.0
with correct pre-release setup.v5.1.1
Compare Source
DO NOT USE
This was an accidental pre-release when cleaning up release setup.
v5.1.0
Compare Source
Enhancements
Function
instance comparisons (resolves #118)URL
instance comparisons (resolves #121)Error
instance comparisons (resolves #123)Number
instance comparisons (resolves #112)Bugfixes
assert.deepEqual
check in benchmark (resolves #125)export type
(attempts to resolve #114)v5.0.1
Compare Source
Bugfixes
metaOverride
in typings and documentation (holdover from temporary API in v5 beta)v5.0.0
Compare Source
Breaking changes
constructor
equality now requiredTo align with other implementations common in the community, but also to be more functionally correct, the two objects being compared now must have equal
constructor
s.Map
/Set
comparisons no longer support IE11In previous verisons,
.forEach()
was used to ensure that support forSymbol
was not required, as IE11 did not haveSymbol
and therefore bothMap
andSet
did not have iterator-based methods such as.values()
or.entries()
. Since IE11 is no longer a supported browser, and support for those methods is present in all browsers and Node for quite a while, the comparison has moved to use these methods. This results in a ~20% performance increase.createCustomEqual
contract has changedTo better facilitate strict comparisons, but also to allow for
meta
use separate from caching, the contract forcreateCustomEqual
has changed. See the README documentation for more details, but froma high-level:meta
is no longer passed through to equality comparators, but rather a generalstate
object which containsmeta
cache
now also lives on thestate
object, which allows for use of themeta
property separate from but in parallel with the circular cacheequals
is now onstate
, which prevents the need to pass through the separateisEqual
method for the equality comparatorcreateCustomCircularEqual
has been removedYou can create a custom circular equality comparator through
createCustomEqual
now by providingcircular: true
to the options.Custom
meta
values are no longer passed at callsiteTo use
meta
properties for comparisons, they must be returned in acreateState
method.Deep links have changed
If you were deep-linking into a specific asset type (ESM / CJS / UMD), they have changed location.
NOTE: You may no longer need to deep-link, as the build resolution has improved.
Enhancements
New "strict" comparators available
The following new comparators are available:
strictDeepEqual
strictShallowEqual
strictCircularDeepEqual
strictCircularShallowEqual
This will perform the same comparisons as their non-strict counterparts, but will verify additional properties (non-enumerable properties on objects, keyed objects on
Array
/Map
/Set
) and that the descriptors for the properties align.TypedArray
supportSupport for comparing all typed array values is now supported, and you can provide a custom comparator via the new
areTypedArraysEqual
option in thecreateCustomEqual
configuration.Better build system resolution
The library now leverages the
exports
property in thepackage.json
to provide builds specific to your method of consumption (ESM / CommonJS / UMD). There is still a minified UMD version available if you want to use it instead.arePrimitiveWrappersEqual
option added tocreateCustomEqual
configurationIf you want a custom comparator for primitive wrappers (
new Boolean()
/new Number()
/new String()
) it is now available.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.