fast-equals 5.3.3-beta.1 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +128 -77
- package/dist/cjs/comparator.d.cts +58 -0
- package/dist/cjs/index.cjs +133 -156
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/{types/index.d.cts → index.d.cts} +21 -2
- package/{src/internalTypes.ts → dist/cjs/internalTypes.d.cts} +7 -43
- package/dist/cjs/{types/utils.d.cts → utils.d.cts} +7 -2
- package/dist/es/comparator.d.mts +58 -0
- package/dist/{esm/types → es}/index.d.mts +21 -2
- package/dist/{esm → es}/index.mjs +133 -156
- package/dist/es/index.mjs.map +1 -0
- package/dist/es/internalTypes.d.mts +174 -0
- package/dist/{esm/types → es}/utils.d.mts +7 -2
- package/dist/{min/types → umd}/comparator.d.ts +2 -2
- package/dist/{min/types → umd}/equals.d.ts +1 -1
- package/dist/umd/{types/index.d.ts → index.d.ts} +2 -2
- package/dist/umd/index.js +133 -156
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/{types/utils.d.ts → utils.d.ts} +1 -1
- package/index.d.ts +62 -68
- package/package.json +46 -54
- package/CHANGELOG.md +0 -364
- package/dist/cjs/types/comparator.d.cts +0 -26
- package/dist/cjs/types/internalTypes.d.cts +0 -157
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/types/comparator.d.mts +0 -26
- package/dist/esm/types/internalTypes.d.mts +0 -157
- package/dist/min/index.js +0 -1
- package/dist/min/types/index.d.ts +0 -47
- package/dist/min/types/utils.d.ts +0 -28
- package/dist/umd/types/comparator.d.ts +0 -26
- package/dist/umd/types/equals.d.ts +0 -54
- package/dist/umd/types/internalTypes.d.ts +0 -157
- package/src/comparator.ts +0 -376
- package/src/equals.ts +0 -355
- package/src/index.ts +0 -112
- package/src/utils.ts +0 -96
- package/dist/cjs/{types/equals.d.cts → equals.d.cts} +1 -1
- package/dist/{esm/types → es}/equals.d.mts +1 -1
- /package/dist/{min/types → umd}/internalTypes.d.ts +0 -0
package/CHANGELOG.md
DELETED
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
# fast-equals CHANGELOG
|
|
2
|
-
|
|
3
|
-
## 5.3.3
|
|
4
|
-
|
|
5
|
-
- [#147](https://github.com/planttheidea/fast-equals/pull/147) - Fix type resolution when using `Node16` as `moduleResolution` in TypeScript (fixes [#145](https://github.com/planttheidea/fast-equals/issues/145))
|
|
6
|
-
|
|
7
|
-
## 5.3.2
|
|
8
|
-
|
|
9
|
-
- [#154](https://github.com/planttheidea/fast-equals/pull/154) - Use include with `"files"` instead of exclude with `.npmignore` (Thanks [@43081j](https://github.com/43081j))
|
|
10
|
-
- [#155](https://github.com/planttheidea/fast-equals/pull/155) - Upgrade build dependencies to resolve security vulnerabilities
|
|
11
|
-
|
|
12
|
-
## 5.3.1
|
|
13
|
-
|
|
14
|
-
- [#153](https://github.com/planttheidea/fast-equals/pull/153) - Avoid publishing `.yarn` folder
|
|
15
|
-
|
|
16
|
-
## 5.3.0
|
|
17
|
-
|
|
18
|
-
- [#150](https://github.com/planttheidea/fast-equals/pull/150/files) - Add support for `unknownTagComparators` in custom configuration (thanks to @mrcljx for the idea)
|
|
19
|
-
|
|
20
|
-
## 5.2.2
|
|
21
|
-
|
|
22
|
-
- [#139](https://github.com/planttheidea/fast-equals/pull/139/files) - Add file extensions to type definition files to allow it to work in projects with `NodeNext` module resolution
|
|
23
|
-
|
|
24
|
-
## 5.2.1
|
|
25
|
-
|
|
26
|
-
### Bugfixes
|
|
27
|
-
|
|
28
|
-
- [#138](https://github.com/planttheidea/fast-equals/pull/138) - Actually fix reference to `src` code in `index.d.ts` by flattening types in file
|
|
29
|
-
|
|
30
|
-
## 5.2.0
|
|
31
|
-
|
|
32
|
-
### Enhancements
|
|
33
|
-
|
|
34
|
-
- Support Preact objects in equality comparison
|
|
35
|
-
|
|
36
|
-
### Bugfixes
|
|
37
|
-
|
|
38
|
-
- [#137](https://github.com/planttheidea/fast-equals/pull/137) - Fix circular React references in object comparisons
|
|
39
|
-
|
|
40
|
-
## 5.1.3
|
|
41
|
-
|
|
42
|
-
### Enhancements
|
|
43
|
-
|
|
44
|
-
- [#136](https://github.com/planttheidea/fast-equals/pull/136) - More than double speed of iterables (`Map` / `Set`) equality comparisons
|
|
45
|
-
|
|
46
|
-
### Maintenance
|
|
47
|
-
|
|
48
|
-
- [#135](https://github.com/planttheidea/fast-equals/pull/135) - Include `dequal` and `dequal/lite` in benchmark comparisons
|
|
49
|
-
|
|
50
|
-
## 5.1.2
|
|
51
|
-
|
|
52
|
-
### Maintenance
|
|
53
|
-
|
|
54
|
-
Re-release of `5.1.0` with correct pre-release setup.
|
|
55
|
-
|
|
56
|
-
## 5.1.1
|
|
57
|
-
|
|
58
|
-
**DO NOT USE**
|
|
59
|
-
|
|
60
|
-
This was an accidental pre-release when cleaning up release setup.
|
|
61
|
-
|
|
62
|
-
## 5.1.0
|
|
63
|
-
|
|
64
|
-
### Enhancements
|
|
65
|
-
|
|
66
|
-
- [#127](https://github.com/planttheidea/fast-equals/pull/127) - Add support for custom `Function` instance comparisons (resolves [#118](https://github.com/planttheidea/fast-equals/issues/118))
|
|
67
|
-
- [#128](https://github.com/planttheidea/fast-equals/pull/128) - Add support for `URL` instance comparisons (resolves [#121](https://github.com/planttheidea/fast-equals/issues/121))
|
|
68
|
-
- [#129](https://github.com/planttheidea/fast-equals/pull/129) - Add support for `Error` instance comparisons (resolves [#123](https://github.com/planttheidea/fast-equals/issues/123))
|
|
69
|
-
- [#130](https://github.com/planttheidea/fast-equals/pull/130) - Add support for custom `Number` instance comparisons (resolves [#112](https://github.com/planttheidea/fast-equals/issues/112))
|
|
70
|
-
|
|
71
|
-
### Bugfixes
|
|
72
|
-
|
|
73
|
-
- [#132](https://github.com/planttheidea/fast-equals/pull/126) - Fix `assert.deepEqual` check in benchmark (resolves [#125](https://github.com/planttheidea/fast-equals/issues/125))
|
|
74
|
-
- [#126](https://github.com/planttheidea/fast-equals/pull/132) - Export explicit types via `export type` (attempts to resolve [#114](https://github.com/planttheidea/fast-equals/issues/114))
|
|
75
|
-
|
|
76
|
-
## 5.0.1
|
|
77
|
-
|
|
78
|
-
### Bugfixes
|
|
79
|
-
|
|
80
|
-
- Fix reference to `metaOverride` in typings and documentation (holdover from temporary API in v5 beta)
|
|
81
|
-
|
|
82
|
-
## 5.0.0
|
|
83
|
-
|
|
84
|
-
### Breaking changes
|
|
85
|
-
|
|
86
|
-
#### `constructor` equality now required
|
|
87
|
-
|
|
88
|
-
To 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.
|
|
89
|
-
|
|
90
|
-
#### `Map` / `Set` comparisons no longer support IE11
|
|
91
|
-
|
|
92
|
-
In previous verisons, `.forEach()` was used to ensure that support for `Symbol` was not required, as IE11 did not have `Symbol` and therefore both `Map` and `Set` 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.
|
|
93
|
-
|
|
94
|
-
#### `createCustomEqual` contract has changed
|
|
95
|
-
|
|
96
|
-
To better facilitate strict comparisons, but also to allow for `meta` use separate from caching, the contract for `createCustomEqual` has changed. See the [README documentation](./README.md#createcustomequal) for more details, but froma high-level:
|
|
97
|
-
|
|
98
|
-
- `meta` is no longer passed through to equality comparators, but rather a general `state` object which contains `meta`
|
|
99
|
-
- `cache` now also lives on the `state` object, which allows for use of the `meta` property separate from but in parallel with the circular cache
|
|
100
|
-
- `equals` is now on `state`, which prevents the need to pass through the separate `isEqual` method for the equality comparator
|
|
101
|
-
|
|
102
|
-
#### `createCustomCircularEqual` has been removed
|
|
103
|
-
|
|
104
|
-
You can create a custom circular equality comparator through `createCustomEqual` now by providing `circular: true` to the options.
|
|
105
|
-
|
|
106
|
-
#### Custom `meta` values are no longer passed at callsite
|
|
107
|
-
|
|
108
|
-
To use `meta` properties for comparisons, they must be returned in a `createState` method.
|
|
109
|
-
|
|
110
|
-
#### Deep links have changed
|
|
111
|
-
|
|
112
|
-
If you were deep-linking into a specific asset type (ESM / CJS / UMD), they have changed location.
|
|
113
|
-
|
|
114
|
-
**NOTE**: You may no longer need to deep-link, as [the build resolution has improved](#better-build-system-resolution).
|
|
115
|
-
|
|
116
|
-
### Enhancements
|
|
117
|
-
|
|
118
|
-
#### New "strict" comparators available
|
|
119
|
-
|
|
120
|
-
The following new comparators are available:
|
|
121
|
-
|
|
122
|
-
- `strictDeepEqual`
|
|
123
|
-
- `strictShallowEqual`
|
|
124
|
-
- `strictCircularDeepEqual`
|
|
125
|
-
- `strictCircularShallowEqual`
|
|
126
|
-
|
|
127
|
-
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.
|
|
128
|
-
|
|
129
|
-
#### `TypedArray` support
|
|
130
|
-
|
|
131
|
-
Support for comparing all typed array values is now supported, and you can provide a custom comparator via the new `areTypedArraysEqual` option in the `createCustomEqual` configuration.
|
|
132
|
-
|
|
133
|
-
#### Better build system resolution
|
|
134
|
-
|
|
135
|
-
The library now leverages the `exports` property in the `package.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.
|
|
136
|
-
|
|
137
|
-
#### `arePrimitiveWrappersEqual` option added to `createCustomEqual` configuration
|
|
138
|
-
|
|
139
|
-
If you want a custom comparator for primitive wrappers (`new Boolean()` / `new Number()` / `new String()`) it is now available.
|
|
140
|
-
|
|
141
|
-
## 4.0.3
|
|
142
|
-
|
|
143
|
-
- Remove unnecessary second strict equality check for objects in edge-case scenarios
|
|
144
|
-
|
|
145
|
-
## 4.0.2
|
|
146
|
-
|
|
147
|
-
- [#85](https://github.com/planttheidea/fast-equals/issues/85) - `createCustomCircularEqual` typing is incorrect
|
|
148
|
-
|
|
149
|
-
## 4.0.1
|
|
150
|
-
|
|
151
|
-
- [#81](https://github.com/planttheidea/fast-equals/issues/81) - Fix typing issues related to importing in `index.d.ts` file
|
|
152
|
-
|
|
153
|
-
## 4.0.0
|
|
154
|
-
|
|
155
|
-
### Breaking Changes
|
|
156
|
-
|
|
157
|
-
#### Certain ES2015 features are now required
|
|
158
|
-
|
|
159
|
-
In previous versions, there were automatic fallbacks for certain ES2015 features if they did not exist:
|
|
160
|
-
|
|
161
|
-
- [`RegExp.prototype.flags`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags)
|
|
162
|
-
- [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap)
|
|
163
|
-
|
|
164
|
-
Due to the omnipresence of support in both browser and NodeJS, these have been deprecated. There is still an option if you require support for these legacy environments, however; see [`createCustomEqual`](./README.md#createcustomequal) and [`createCustomCircularEqual`](./README.md#createcustomcircularequal) for more details.
|
|
165
|
-
|
|
166
|
-
#### `createCustomEqual` contract has changed
|
|
167
|
-
|
|
168
|
-
To allow more flexibility and customizability for a variety of edge cases, `createCustomEqual` now allows override of specific type value comparisons in addition to the general comparator it did prior. See [the documentation](./README.md#createcustomequal) for more details.
|
|
169
|
-
|
|
170
|
-
### Enhancements
|
|
171
|
-
|
|
172
|
-
#### `createCustomCircularEqual` added
|
|
173
|
-
|
|
174
|
-
Like `createCustomEqual`, it will create a custom equality comparator, with the exception that it will handle circular references. See [the documentation](./README.md#createcustomcircularequal) for more details.
|
|
175
|
-
|
|
176
|
-
#### Cross-realm comparisons are now supported
|
|
177
|
-
|
|
178
|
-
Prior to `4.x.x.`, `instanceof` was used internally for checking of object classes, which only worked when comparing objects from the same [Realm](https://262.ecma-international.org/6.0/#sec-code-realms). This has changed to instead use an object's [StringTag](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag), which is not realm-specific.
|
|
179
|
-
|
|
180
|
-
#### TypeScript typings improved
|
|
181
|
-
|
|
182
|
-
For better typing in edge-case scenarios like custom comparators with `meta` values, typings have been refactored for accuracy and better narrow flow-through.
|
|
183
|
-
|
|
184
|
-
## 3.0.3
|
|
185
|
-
|
|
186
|
-
- Fix [#77](https://github.com/planttheidea/fast-equals/issues/73) - better circular object validation
|
|
187
|
-
|
|
188
|
-
## 3.0.2
|
|
189
|
-
|
|
190
|
-
- Fix [#73](https://github.com/planttheidea/fast-equals/issues/73) - support comparison of primitive wrappers
|
|
191
|
-
- [#76](https://github.com/planttheidea/fast-equals/pull/76) - improve speed and accuracy of `RegExp` comparison in modern environments
|
|
192
|
-
|
|
193
|
-
## 3.0.1
|
|
194
|
-
|
|
195
|
-
- Fix [#71](https://github.com/planttheidea/fast-equals/pull/71) - use generic types for better type flow-through
|
|
196
|
-
|
|
197
|
-
## 3.0.0
|
|
198
|
-
|
|
199
|
-
### Breaking changes
|
|
200
|
-
|
|
201
|
-
When creating a custom equality comparator via `createCustomEqual`, the equality method has an expanded contract:
|
|
202
|
-
|
|
203
|
-
```ts
|
|
204
|
-
// Before
|
|
205
|
-
type EqualityComparator = (objectA: any, objectB: any, meta: any) => boolean;
|
|
206
|
-
|
|
207
|
-
// After
|
|
208
|
-
type InternalEqualityComparator = (
|
|
209
|
-
objectA: any,
|
|
210
|
-
objectB: any,
|
|
211
|
-
indexOrKeyA: any,
|
|
212
|
-
indexOrKeyB: any,
|
|
213
|
-
parentA: any,
|
|
214
|
-
parentB: any,
|
|
215
|
-
meta: any,
|
|
216
|
-
) => boolean;
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
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.
|
|
220
|
-
|
|
221
|
-
- Add [#57](https://github.com/planttheidea/fast-equals/pull/57) - support additional metadata for custom equality comparators
|
|
222
|
-
|
|
223
|
-
## 2.0.4
|
|
224
|
-
|
|
225
|
-
- Fix [#58](https://github.com/planttheidea/fast-equals/issues/58) - duplicate entries in `Map` / `Set` can create false equality success
|
|
226
|
-
- [#60](https://github.com/planttheidea/fast-equals/issues/60) - Add documentation for key equality of `Map` being a part of `deepEqual`
|
|
227
|
-
|
|
228
|
-
## 2.0.3
|
|
229
|
-
|
|
230
|
-
- Fix [#50](https://github.com/planttheidea/fast-equals/pull/50) - copy-pasta in cacheable check
|
|
231
|
-
|
|
232
|
-
## 2.0.2
|
|
233
|
-
|
|
234
|
-
- Optimize iterables comparisons to not double-iterate
|
|
235
|
-
- Optimize loop-based comparisons for speed
|
|
236
|
-
- Improve cache handling in circular handlers
|
|
237
|
-
- Improve stability of memory by reducing variable instantiation
|
|
238
|
-
|
|
239
|
-
## 2.0.1
|
|
240
|
-
|
|
241
|
-
- Fix [#41](https://github.com/planttheidea/fast-equals/pull/41) - prevent `.rpt2_cache` directory from being published for better CI environment support (thanks [@herberttn](https://github.com/herberttn))
|
|
242
|
-
|
|
243
|
-
## 2.0.0
|
|
244
|
-
|
|
245
|
-
### Breaking changes
|
|
246
|
-
|
|
247
|
-
- There are longer `fast-equals/es`, `fast-equals/lib`, `fast-equals/mjs` locations
|
|
248
|
-
- Instead, there are 3 builds in `dist` for different consumption types:
|
|
249
|
-
- `fast-equals.js` (UMD / `browser`)
|
|
250
|
-
- `fast-equals.esm.js` (ESM / `module`)
|
|
251
|
-
- `fast-equals.cjs.js` (CommonJS / `main`)
|
|
252
|
-
- There is no default export anymore, only the previously-existing named exports
|
|
253
|
-
- To get all into a namespace, use `import * as fe from 'fast-equals`
|
|
254
|
-
|
|
255
|
-
### Updates
|
|
256
|
-
|
|
257
|
-
- Rewritten completely in TypeScript
|
|
258
|
-
- Improve speed of `Map` / `Set` comparisons
|
|
259
|
-
- Improve speed of React element comparisons
|
|
260
|
-
|
|
261
|
-
### Fixes
|
|
262
|
-
|
|
263
|
-
- Consider pure objects (`Object.create(null)`) to be plain objects
|
|
264
|
-
- Fix typings for `createCustomEqual`
|
|
265
|
-
|
|
266
|
-
## 1.6.3
|
|
267
|
-
|
|
268
|
-
- Check the size of the iterable before converting to arrays
|
|
269
|
-
|
|
270
|
-
## 1.6.2
|
|
271
|
-
|
|
272
|
-
- Fix [#23](https://github.com/planttheidea/fast-equals/issues/23) - false positives for map
|
|
273
|
-
- Replace `uglify` with `terser`
|
|
274
|
-
- Use `rollup` to build all the distributables (`main`, `module`, and `browser`)
|
|
275
|
-
- Maintain `lib` and `es` transpilations in case consumers were deep-linking
|
|
276
|
-
|
|
277
|
-
## 1.6.1
|
|
278
|
-
|
|
279
|
-
- Upgrade to `babel@7`
|
|
280
|
-
- Add `"sideEffects": false` to `package.json` for better tree-shaking in `webpack`
|
|
281
|
-
|
|
282
|
-
## 1.6.0
|
|
283
|
-
|
|
284
|
-
- Add ESM support for NodeJS with separate [`.mjs` extension](https://nodejs.org/api/esm.html) exports
|
|
285
|
-
|
|
286
|
-
## 1.5.3
|
|
287
|
-
|
|
288
|
-
- Fix `Map` / `Set` comparison to not require order to match to be equal
|
|
289
|
-
|
|
290
|
-
## 1.5.2
|
|
291
|
-
|
|
292
|
-
- Improve speed of object comparison through custom `hasKey` method
|
|
293
|
-
|
|
294
|
-
## 1.5.1
|
|
295
|
-
|
|
296
|
-
- Fix lack of support for `unicode` and `sticky` RegExp flag checks
|
|
297
|
-
|
|
298
|
-
## 1.5.0
|
|
299
|
-
|
|
300
|
-
- Add [`circularDeepEqual`](README.md#circulardeepequal) and [`circularShallowEqual`](README.md#circularshallowequal) methods
|
|
301
|
-
- Add `meta` third parameter to `comparator` calls, for use with `createCustomEqual` method
|
|
302
|
-
|
|
303
|
-
## 1.4.1
|
|
304
|
-
|
|
305
|
-
- Fix issue where `lastIndex` was not being tested on `RegExp` objects
|
|
306
|
-
|
|
307
|
-
## 1.4.0
|
|
308
|
-
|
|
309
|
-
- Add support for comparing promise-like objects (strict equality only)
|
|
310
|
-
|
|
311
|
-
## 1.3.1
|
|
312
|
-
|
|
313
|
-
- Make `react` comparison more accurate, and a touch faster
|
|
314
|
-
|
|
315
|
-
## 1.3.0
|
|
316
|
-
|
|
317
|
-
- Add support for deep-equal comparisons between `react` elements
|
|
318
|
-
- Add comparison with `react-fast-compare`
|
|
319
|
-
- Use `rollup` for `dist` file builds
|
|
320
|
-
|
|
321
|
-
## 1.2.1
|
|
322
|
-
|
|
323
|
-
- Fix errors from TypeScript typings in strict mode (thanks [@HitoriSensei](https://github.com/HitoriSensei))
|
|
324
|
-
|
|
325
|
-
## 1.2.0
|
|
326
|
-
|
|
327
|
-
- Surface `isSameValueZero` as [`sameValueZeroEqual`](#samevaluezeroequal) option
|
|
328
|
-
|
|
329
|
-
## 1.1.0
|
|
330
|
-
|
|
331
|
-
- Add TypeScript typings (thanks [@josh-sachs](https://github.com/josh-sachs))
|
|
332
|
-
|
|
333
|
-
## 1.0.6
|
|
334
|
-
|
|
335
|
-
- Support invalid date equality via `isSameValueZero`
|
|
336
|
-
|
|
337
|
-
## 1.0.5
|
|
338
|
-
|
|
339
|
-
- Replace `isStrictlyEqual` with `isSameValueZero` to ensure that `shallowEqual` accounts for `NaN` equality
|
|
340
|
-
|
|
341
|
-
## 1.0.4
|
|
342
|
-
|
|
343
|
-
- Only check values when comparing `Set` objects (improves performance of `Set` check by ~12%)
|
|
344
|
-
|
|
345
|
-
## 1.0.3
|
|
346
|
-
|
|
347
|
-
- Make `Map` and `Set` comparisons more explicit
|
|
348
|
-
|
|
349
|
-
## 1.0.2
|
|
350
|
-
|
|
351
|
-
- Fix symmetrical comparison of iterables
|
|
352
|
-
- Reduce footprint
|
|
353
|
-
|
|
354
|
-
## 1.0.1
|
|
355
|
-
|
|
356
|
-
- Prevent babel transpilation of `typeof` into helper for faster runtime
|
|
357
|
-
|
|
358
|
-
## 1.0.0
|
|
359
|
-
|
|
360
|
-
- Initial release
|
|
361
|
-
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
```
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ComparatorConfig, CreateState, CustomEqualCreatorOptions, EqualityComparator, InternalEqualityComparator } from './internalTypes.d.cts';
|
|
2
|
-
interface CreateIsEqualOptions<Meta> {
|
|
3
|
-
circular: boolean;
|
|
4
|
-
comparator: EqualityComparator<Meta>;
|
|
5
|
-
createState: CreateState<Meta> | undefined;
|
|
6
|
-
equals: InternalEqualityComparator<Meta>;
|
|
7
|
-
strict: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create a comparator method based on the type-specific equality comparators passed.
|
|
11
|
-
*/
|
|
12
|
-
export declare function createEqualityComparator<Meta>({ areArraysEqual, areDatesEqual, areErrorsEqual, areFunctionsEqual, areMapsEqual, areNumbersEqual, areObjectsEqual, arePrimitiveWrappersEqual, areRegExpsEqual, areSetsEqual, areTypedArraysEqual, areUrlsEqual, unknownTagComparators, }: ComparatorConfig<Meta>): EqualityComparator<Meta>;
|
|
13
|
-
/**
|
|
14
|
-
* Create the configuration object used for building comparators.
|
|
15
|
-
*/
|
|
16
|
-
export declare function createEqualityComparatorConfig<Meta>({ circular, createCustomConfig, strict, }: CustomEqualCreatorOptions<Meta>): ComparatorConfig<Meta>;
|
|
17
|
-
/**
|
|
18
|
-
* Default equality comparator pass-through, used as the standard `isEqual` creator for
|
|
19
|
-
* use inside the built comparator.
|
|
20
|
-
*/
|
|
21
|
-
export declare function createInternalEqualityComparator<Meta>(compare: EqualityComparator<Meta>): InternalEqualityComparator<Meta>;
|
|
22
|
-
/**
|
|
23
|
-
* Create the `isEqual` function used by the consuming application.
|
|
24
|
-
*/
|
|
25
|
-
export declare function createIsEqual<Meta>({ circular, comparator, createState, equals, strict, }: CreateIsEqualOptions<Meta>): <A, B>(a: A, b: B) => boolean;
|
|
26
|
-
export {};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cache used to store references to objects, used for circular
|
|
3
|
-
* reference checks.
|
|
4
|
-
*/
|
|
5
|
-
export interface Cache<Key extends object, Value> {
|
|
6
|
-
delete(key: Key): boolean;
|
|
7
|
-
get(key: Key): Value | undefined;
|
|
8
|
-
set(key: Key, value: any): any;
|
|
9
|
-
}
|
|
10
|
-
export interface State<Meta> {
|
|
11
|
-
/**
|
|
12
|
-
* Cache used to identify circular references
|
|
13
|
-
*/
|
|
14
|
-
readonly cache: Cache<any, any> | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Method used to determine equality of nested value.
|
|
17
|
-
*/
|
|
18
|
-
readonly equals: InternalEqualityComparator<Meta>;
|
|
19
|
-
/**
|
|
20
|
-
* Additional value that can be used for comparisons.
|
|
21
|
-
*/
|
|
22
|
-
meta: Meta;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the equality comparison is strict, meaning it matches
|
|
25
|
-
* all properties (including symbols and non-enumerable properties)
|
|
26
|
-
* with equal shape of descriptors.
|
|
27
|
-
*/
|
|
28
|
-
readonly strict: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface CircularState<Meta> extends State<Meta> {
|
|
31
|
-
readonly cache: Cache<any, any>;
|
|
32
|
-
}
|
|
33
|
-
export interface DefaultState<Meta> extends State<Meta> {
|
|
34
|
-
readonly cache: undefined;
|
|
35
|
-
}
|
|
36
|
-
export interface Dictionary<Value = any> {
|
|
37
|
-
[key: string | symbol]: Value;
|
|
38
|
-
$$typeof?: any;
|
|
39
|
-
}
|
|
40
|
-
export interface ComparatorConfig<Meta> {
|
|
41
|
-
/**
|
|
42
|
-
* Whether the arrays passed are equal in value. In strict mode, this includes
|
|
43
|
-
* additional properties added to the array.
|
|
44
|
-
*/
|
|
45
|
-
areArraysEqual: TypeEqualityComparator<any, Meta>;
|
|
46
|
-
/**
|
|
47
|
-
* Whether the dates passed are equal in value.
|
|
48
|
-
*/
|
|
49
|
-
areDatesEqual: TypeEqualityComparator<any, Meta>;
|
|
50
|
-
/**
|
|
51
|
-
* Whether the errors passed are equal in value.
|
|
52
|
-
*/
|
|
53
|
-
areErrorsEqual: TypeEqualityComparator<any, Meta>;
|
|
54
|
-
/**
|
|
55
|
-
* Whether the functions passed are equal in value.
|
|
56
|
-
*/
|
|
57
|
-
areFunctionsEqual: TypeEqualityComparator<any, Meta>;
|
|
58
|
-
/**
|
|
59
|
-
* Whether the maps passed are equal in value. In strict mode, this includes
|
|
60
|
-
* additional properties added to the map.
|
|
61
|
-
*/
|
|
62
|
-
areMapsEqual: TypeEqualityComparator<any, Meta>;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the numbers passed are equal in value.
|
|
65
|
-
*/
|
|
66
|
-
areNumbersEqual: TypeEqualityComparator<any, Meta>;
|
|
67
|
-
/**
|
|
68
|
-
* Whether the objects passed are equal in value. In strict mode, this includes
|
|
69
|
-
* non-enumerable properties added to the map, as well as symbol properties.
|
|
70
|
-
*/
|
|
71
|
-
areObjectsEqual: TypeEqualityComparator<any, Meta>;
|
|
72
|
-
/**
|
|
73
|
-
* Whether the primitive wrappers passed are equal in value.
|
|
74
|
-
*/
|
|
75
|
-
arePrimitiveWrappersEqual: TypeEqualityComparator<any, Meta>;
|
|
76
|
-
/**
|
|
77
|
-
* Whether the regexps passed are equal in value.
|
|
78
|
-
*/
|
|
79
|
-
areRegExpsEqual: TypeEqualityComparator<any, Meta>;
|
|
80
|
-
/**
|
|
81
|
-
* Whether the sets passed are equal in value. In strict mode, this includes
|
|
82
|
-
* additional properties added to the set.
|
|
83
|
-
*/
|
|
84
|
-
areSetsEqual: TypeEqualityComparator<any, Meta>;
|
|
85
|
-
/**
|
|
86
|
-
* Whether the typed arrays passed are equal in value. In strict mode, this includes
|
|
87
|
-
* additional properties added to the typed array.
|
|
88
|
-
*/
|
|
89
|
-
areTypedArraysEqual: TypeEqualityComparator<any, Meta>;
|
|
90
|
-
/**
|
|
91
|
-
* Whether the URLs passed are equal in value.
|
|
92
|
-
*/
|
|
93
|
-
areUrlsEqual: TypeEqualityComparator<any, Meta>;
|
|
94
|
-
/**
|
|
95
|
-
* Whether two values with unknown `@@toStringTag` are equal in value. This comparator is
|
|
96
|
-
* called when no other comparator applies.
|
|
97
|
-
*
|
|
98
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag
|
|
99
|
-
*/
|
|
100
|
-
unknownTagComparators: Record<string, TypeEqualityComparator<any, Meta>> | undefined;
|
|
101
|
-
}
|
|
102
|
-
export type CreateCustomComparatorConfig<Meta> = (config: ComparatorConfig<Meta>) => Partial<ComparatorConfig<Meta>>;
|
|
103
|
-
export type CreateState<Meta> = () => {
|
|
104
|
-
cache?: Cache<any, any> | undefined;
|
|
105
|
-
meta?: Meta;
|
|
106
|
-
};
|
|
107
|
-
export type EqualityComparator<Meta> = <A, B>(a: A, b: B, state: State<Meta>) => boolean;
|
|
108
|
-
export type AnyEqualityComparator<Meta> = (a: any, b: any, state: State<Meta>) => boolean;
|
|
109
|
-
export type EqualityComparatorCreator<Meta> = (fn: EqualityComparator<Meta>) => InternalEqualityComparator<Meta>;
|
|
110
|
-
export type InternalEqualityComparator<Meta> = (a: any, b: any, indexOrKeyA: any, indexOrKeyB: any, parentA: any, parentB: any, state: State<Meta>) => boolean;
|
|
111
|
-
export type PrimitiveWrapper = Boolean | Number | String;
|
|
112
|
-
/**
|
|
113
|
-
* Type which encompasses possible instances of TypedArray
|
|
114
|
-
* classes.
|
|
115
|
-
*
|
|
116
|
-
* **NOTE**: This does not include `BigInt64Array` and
|
|
117
|
-
* `BitUint64Array` because those are part of ES2020 and
|
|
118
|
-
* not supported by certain TS configurations. If using
|
|
119
|
-
* either in `areTypedArraysEqual`, you can cast the
|
|
120
|
-
* instance as `TypedArray` and it will work as expected,
|
|
121
|
-
* because runtime checks will still work for those classes.
|
|
122
|
-
*/
|
|
123
|
-
export type TypedArray = Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Uint8Array | Uint8ClampedArray;
|
|
124
|
-
export type TypeEqualityComparator<Type, Meta = undefined> = (a: Type, b: Type, state: State<Meta>) => boolean;
|
|
125
|
-
export interface CustomEqualCreatorOptions<Meta> {
|
|
126
|
-
/**
|
|
127
|
-
* Whether circular references should be supported. It causes the
|
|
128
|
-
* comparison to be slower, but for objects that have circular references
|
|
129
|
-
* it is required to avoid stack overflows.
|
|
130
|
-
*/
|
|
131
|
-
circular?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* Create a custom configuration of type-specific equality comparators.
|
|
134
|
-
* This receives the default configuration, which allows either replacement
|
|
135
|
-
* or supersetting of the default methods.
|
|
136
|
-
*/
|
|
137
|
-
createCustomConfig?: CreateCustomComparatorConfig<Meta>;
|
|
138
|
-
/**
|
|
139
|
-
* Create a custom internal comparator, which is used as an override to the
|
|
140
|
-
* default entry point for nested value equality comparisons. This is often
|
|
141
|
-
* used for doing custom logic for specific types (such as handling a specific
|
|
142
|
-
* class instance differently than other objects) or to incorporate `meta` in
|
|
143
|
-
* the comparison. See the recipes for examples.
|
|
144
|
-
*/
|
|
145
|
-
createInternalComparator?: (compare: EqualityComparator<Meta>) => InternalEqualityComparator<Meta>;
|
|
146
|
-
/**
|
|
147
|
-
* Create a custom `state` object passed between the methods. This allows for
|
|
148
|
-
* custom `cache` and/or `meta` values to be used.
|
|
149
|
-
*/
|
|
150
|
-
createState?: CreateState<Meta>;
|
|
151
|
-
/**
|
|
152
|
-
* Whether the equality comparison is strict, meaning it matches
|
|
153
|
-
* all properties (including symbols and non-enumerable properties)
|
|
154
|
-
* with equal shape of descriptors.
|
|
155
|
-
*/
|
|
156
|
-
strict?: boolean;
|
|
157
|
-
}
|
package/dist/esm/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/utils.ts","../../../src/equals.ts","../../../src/comparator.ts","../../../src/index.ts"],"sourcesContent":["import type {\n AnyEqualityComparator,\n Cache,\n CircularState,\n Dictionary,\n State,\n TypeEqualityComparator,\n} from './internalTypes.ts';\n\nconst { getOwnPropertyNames, getOwnPropertySymbols } = Object;\nconst { hasOwnProperty } = Object.prototype;\n\n/**\n * Combine two comparators into a single comparators.\n */\nexport function combineComparators<Meta>(\n comparatorA: AnyEqualityComparator<Meta>,\n comparatorB: AnyEqualityComparator<Meta>,\n) {\n return function isEqual<A, B>(a: A, b: B, state: State<Meta>) {\n return comparatorA(a, b, state) && comparatorB(a, b, state);\n };\n}\n\n/**\n * Wrap the provided `areItemsEqual` method to manage the circular state, allowing\n * for circular references to be safely included in the comparison without creating\n * stack overflows.\n */\nexport function createIsCircular<\n AreItemsEqual extends TypeEqualityComparator<any, any>,\n>(areItemsEqual: AreItemsEqual): AreItemsEqual {\n return function isCircular(\n a: any,\n b: any,\n state: CircularState<Cache<any, any>>,\n ) {\n if (!a || !b || typeof a !== 'object' || typeof b !== 'object') {\n return areItemsEqual(a, b, state);\n }\n\n const { cache } = state;\n\n const cachedA = cache.get(a);\n const cachedB = cache.get(b);\n\n if (cachedA && cachedB) {\n return cachedA === b && cachedB === a;\n }\n\n cache.set(a, b);\n cache.set(b, a);\n\n const result = areItemsEqual(a, b, state);\n\n cache.delete(a);\n cache.delete(b);\n\n return result;\n } as AreItemsEqual;\n}\n\n/**\n * Get the `@@toStringTag` of the value, if it exists.\n */\nexport function getShortTag(value: any): string | undefined {\n return value != null ? value[Symbol.toStringTag] : undefined;\n}\n\n/**\n * Get the properties to strictly examine, which include both own properties that are\n * not enumerable and symbol properties.\n */\nexport function getStrictProperties(\n object: Dictionary,\n): Array<string | symbol> {\n return (getOwnPropertyNames(object) as Array<string | symbol>).concat(\n getOwnPropertySymbols(object),\n );\n}\n\n/**\n * Whether the object contains the property passed as an own property.\n */\nexport const hasOwn =\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n Object.hasOwn ||\n ((object: Dictionary, property: number | string | symbol) =>\n hasOwnProperty.call(object, property));\n\n/**\n * Whether the values passed are strictly equal or both NaN.\n */\nexport function sameValueZeroEqual(a: any, b: any): boolean {\n return a === b || (!a && !b && a !== a && b !== b);\n}\n","import { getStrictProperties, hasOwn, sameValueZeroEqual } from './utils.js';\nimport type {\n Dictionary,\n PrimitiveWrapper,\n State,\n TypedArray,\n} from './internalTypes.ts';\n\nconst PREACT_VNODE = '__v';\nconst PREACT_OWNER = '__o';\nconst REACT_OWNER = '_owner';\n\nconst { getOwnPropertyDescriptor, keys } = Object;\n\n/**\n * Whether the arrays are equal in value.\n */\nexport function areArraysEqual(a: any[], b: any[], state: State<any>) {\n let index = a.length;\n\n if (b.length !== index) {\n return false;\n }\n\n while (index-- > 0) {\n if (!state.equals(a[index], b[index], index, index, a, b, state)) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Whether the dates passed are equal in value.\n */\nexport function areDatesEqual(a: Date, b: Date): boolean {\n return sameValueZeroEqual(a.getTime(), b.getTime());\n}\n\n/**\n * Whether the errors passed are equal in value.\n */\nexport function areErrorsEqual(a: Error, b: Error): boolean {\n return (\n a.name === b.name &&\n a.message === b.message &&\n a.cause === b.cause &&\n a.stack === b.stack\n );\n}\n\n/**\n * Whether the functions passed are equal in value.\n */\nexport function areFunctionsEqual(\n a: (...args: any[]) => any,\n b: (...args: any[]) => any,\n): boolean {\n return a === b;\n}\n\n/**\n * Whether the `Map`s are equal in value.\n */\nexport function areMapsEqual(\n a: Map<any, any>,\n b: Map<any, any>,\n state: State<any>,\n): boolean {\n const size = a.size;\n\n if (size !== b.size) {\n return false;\n }\n\n if (!size) {\n return true;\n }\n\n const matchedIndices = new Array<true | undefined>(size);\n const aIterable = a.entries();\n\n let aResult: IteratorResult<[any, any]>;\n let bResult: IteratorResult<[any, any]>;\n let index = 0;\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((aResult = aIterable.next())) {\n if (aResult.done) {\n break;\n }\n\n const bIterable = b.entries();\n\n let hasMatch = false;\n let matchIndex = 0;\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((bResult = bIterable.next())) {\n if (bResult.done) {\n break;\n }\n\n if (matchedIndices[matchIndex]) {\n matchIndex++;\n continue;\n }\n\n const aEntry = aResult.value;\n const bEntry = bResult.value;\n\n if (\n state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b, state) &&\n state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b, state)\n ) {\n hasMatch = matchedIndices[matchIndex] = true;\n break;\n }\n\n matchIndex++;\n }\n\n if (!hasMatch) {\n return false;\n }\n\n index++;\n }\n\n return true;\n}\n\n/**\n * Whether the numbers are equal in value.\n */\nexport const areNumbersEqual = sameValueZeroEqual;\n\n/**\n * Whether the objects are equal in value.\n */\nexport function areObjectsEqual(\n a: Dictionary,\n b: Dictionary,\n state: State<any>,\n): boolean {\n const properties = keys(a);\n\n let index = properties.length;\n\n if (keys(b).length !== index) {\n return false;\n }\n\n // Decrementing `while` showed faster results than either incrementing or\n // decrementing `for` loop and than an incrementing `while` loop. Declarative\n // methods like `some` / `every` were not used to avoid incurring the garbage\n // cost of anonymous callbacks.\n while (index-- > 0) {\n if (!isPropertyEqual(a, b, state, properties[index]!)) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Whether the objects are equal in value with strict property checking.\n */\nexport function areObjectsEqualStrict(\n a: Dictionary,\n b: Dictionary,\n state: State<any>,\n): boolean {\n const properties = getStrictProperties(a);\n\n let index = properties.length;\n\n if (getStrictProperties(b).length !== index) {\n return false;\n }\n\n let property: string | symbol;\n let descriptorA: ReturnType<typeof getOwnPropertyDescriptor>;\n let descriptorB: ReturnType<typeof getOwnPropertyDescriptor>;\n\n // Decrementing `while` showed faster results than either incrementing or\n // decrementing `for` loop and than an incrementing `while` loop. Declarative\n // methods like `some` / `every` were not used to avoid incurring the garbage\n // cost of anonymous callbacks.\n while (index-- > 0) {\n property = properties[index]!;\n\n if (!isPropertyEqual(a, b, state, property)) {\n return false;\n }\n\n descriptorA = getOwnPropertyDescriptor(a, property);\n descriptorB = getOwnPropertyDescriptor(b, property);\n\n if (\n (descriptorA || descriptorB) &&\n (!descriptorA ||\n !descriptorB ||\n descriptorA.configurable !== descriptorB.configurable ||\n descriptorA.enumerable !== descriptorB.enumerable ||\n descriptorA.writable !== descriptorB.writable)\n ) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Whether the primitive wrappers passed are equal in value.\n */\nexport function arePrimitiveWrappersEqual(\n a: PrimitiveWrapper,\n b: PrimitiveWrapper,\n): boolean {\n return sameValueZeroEqual(a.valueOf(), b.valueOf());\n}\n\n/**\n * Whether the regexps passed are equal in value.\n */\nexport function areRegExpsEqual(a: RegExp, b: RegExp): boolean {\n return a.source === b.source && a.flags === b.flags;\n}\n\n/**\n * Whether the `Set`s are equal in value.\n */\nexport function areSetsEqual(\n a: Set<any>,\n b: Set<any>,\n state: State<any>,\n): boolean {\n const size = a.size;\n\n if (size !== b.size) {\n return false;\n }\n\n if (!size) {\n return true;\n }\n\n const matchedIndices = new Array<true | undefined>(size);\n const aIterable = a.values();\n\n let aResult: IteratorResult<any>;\n let bResult: IteratorResult<any>;\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((aResult = aIterable.next())) {\n if (aResult.done) {\n break;\n }\n\n const bIterable = b.values();\n\n let hasMatch = false;\n let matchIndex = 0;\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((bResult = bIterable.next())) {\n if (bResult.done) {\n break;\n }\n\n if (\n !matchedIndices[matchIndex] &&\n state.equals(\n aResult.value,\n bResult.value,\n aResult.value,\n bResult.value,\n a,\n b,\n state,\n )\n ) {\n hasMatch = matchedIndices[matchIndex] = true;\n break;\n }\n\n matchIndex++;\n }\n\n if (!hasMatch) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Whether the TypedArray instances are equal in value.\n */\nexport function areTypedArraysEqual(a: TypedArray, b: TypedArray) {\n let index = a.length;\n\n if (b.length !== index) {\n return false;\n }\n\n while (index-- > 0) {\n if (a[index] !== b[index]) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Whether the URL instances are equal in value.\n */\nexport function areUrlsEqual(a: URL, b: URL): boolean {\n return (\n a.hostname === b.hostname &&\n a.pathname === b.pathname &&\n a.protocol === b.protocol &&\n a.port === b.port &&\n a.hash === b.hash &&\n a.username === b.username &&\n a.password === b.password\n );\n}\n\nfunction isPropertyEqual(\n a: Dictionary,\n b: Dictionary,\n state: State<any>,\n property: string | symbol,\n) {\n if (\n (property === REACT_OWNER ||\n property === PREACT_OWNER ||\n property === PREACT_VNODE) &&\n (a.$$typeof || b.$$typeof)\n ) {\n return true;\n }\n\n return (\n hasOwn(b, property) &&\n state.equals(a[property], b[property], property, property, a, b, state)\n );\n}\n","import {\n areArraysEqual as areArraysEqualDefault,\n areDatesEqual as areDatesEqualDefault,\n areErrorsEqual as areErrorsEqualDefault,\n areFunctionsEqual as areFunctionsEqualDefault,\n areMapsEqual as areMapsEqualDefault,\n areNumbersEqual as areNumbersEqualDefault,\n areObjectsEqual as areObjectsEqualDefault,\n areObjectsEqualStrict as areObjectsEqualStrictDefault,\n arePrimitiveWrappersEqual as arePrimitiveWrappersEqualDefault,\n areRegExpsEqual as areRegExpsEqualDefault,\n areSetsEqual as areSetsEqualDefault,\n areTypedArraysEqual as areTypedArraysEqualDefault,\n areUrlsEqual as areUrlsEqualDefault,\n} from './equals.js';\nimport { combineComparators, createIsCircular, getShortTag } from './utils.js';\nimport type {\n ComparatorConfig,\n CreateState,\n CustomEqualCreatorOptions,\n EqualityComparator,\n InternalEqualityComparator,\n State,\n} from './internalTypes.ts';\n\nconst ARGUMENTS_TAG = '[object Arguments]';\nconst BOOLEAN_TAG = '[object Boolean]';\nconst DATE_TAG = '[object Date]';\nconst ERROR_TAG = '[object Error]';\nconst MAP_TAG = '[object Map]';\nconst NUMBER_TAG = '[object Number]';\nconst OBJECT_TAG = '[object Object]';\nconst REG_EXP_TAG = '[object RegExp]';\nconst SET_TAG = '[object Set]';\nconst STRING_TAG = '[object String]';\nconst URL_TAG = '[object URL]';\n\nconst { isArray } = Array;\nconst isTypedArray =\n typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function'\n ? ArrayBuffer.isView\n : null;\nconst { assign } = Object;\nconst getTag = Object.prototype.toString.call.bind(\n Object.prototype.toString,\n) as (a: object) => string;\n\ninterface CreateIsEqualOptions<Meta> {\n circular: boolean;\n comparator: EqualityComparator<Meta>;\n createState: CreateState<Meta> | undefined;\n equals: InternalEqualityComparator<Meta>;\n strict: boolean;\n}\n\n/**\n * Create a comparator method based on the type-specific equality comparators passed.\n */\nexport function createEqualityComparator<Meta>({\n areArraysEqual,\n areDatesEqual,\n areErrorsEqual,\n areFunctionsEqual,\n areMapsEqual,\n areNumbersEqual,\n areObjectsEqual,\n arePrimitiveWrappersEqual,\n areRegExpsEqual,\n areSetsEqual,\n areTypedArraysEqual,\n areUrlsEqual,\n unknownTagComparators,\n}: ComparatorConfig<Meta>): EqualityComparator<Meta> {\n /**\n * compare the value of the two objects and return true if they are equivalent in values\n */\n return function comparator(a: any, b: any, state: State<Meta>): boolean {\n // If the items are strictly equal, no need to do a value comparison.\n if (a === b) {\n return true;\n }\n\n // If either of the items are nullish and fail the strictly equal check\n // above, then they must be unequal.\n if (a == null || b == null) {\n return false;\n }\n\n const type = typeof a;\n\n if (type !== typeof b) {\n return false;\n }\n\n if (type !== 'object') {\n if (type === 'number') {\n return areNumbersEqual(a, b, state);\n }\n\n if (type === 'function') {\n return areFunctionsEqual(a, b, state);\n }\n\n // If a primitive value that is not strictly equal, it must be unequal.\n return false;\n }\n\n const constructor = a.constructor;\n\n // Checks are listed in order of commonality of use-case:\n // 1. Common complex object types (plain object, array)\n // 2. Common data values (date, regexp)\n // 3. Less-common complex object types (map, set)\n // 4. Less-common data values (promise, primitive wrappers)\n // Inherently this is both subjective and assumptive, however\n // when reviewing comparable libraries in the wild this order\n // appears to be generally consistent.\n\n // Constructors should match, otherwise there is potential for false positives\n // between class and subclass or custom object and POJO.\n if (constructor !== b.constructor) {\n return false;\n }\n\n // `isPlainObject` only checks against the object's own realm. Cross-realm\n // comparisons are rare, and will be handled in the ultimate fallback, so\n // we can avoid capturing the string tag.\n if (constructor === Object) {\n return areObjectsEqual(a, b, state);\n }\n\n // `isArray()` works on subclasses and is cross-realm, so we can avoid capturing\n // the string tag or doing an `instanceof` check.\n if (isArray(a)) {\n return areArraysEqual(a, b, state);\n }\n\n // `isTypedArray()` works on all possible TypedArray classes, so we can avoid\n // capturing the string tag or comparing against all possible constructors.\n if (isTypedArray?.(a)) {\n return areTypedArraysEqual(a, b, state);\n }\n\n // Try to fast-path equality checks for other complex object types in the\n // same realm to avoid capturing the string tag. Strict equality is used\n // instead of `instanceof` because it is more performant for the common\n // use-case. If someone is subclassing a native class, it will be handled\n // with the string tag comparison.\n\n if (constructor === Date) {\n return areDatesEqual(a, b, state);\n }\n\n if (constructor === RegExp) {\n return areRegExpsEqual(a, b, state);\n }\n\n if (constructor === Map) {\n return areMapsEqual(a, b, state);\n }\n\n if (constructor === Set) {\n return areSetsEqual(a, b, state);\n }\n\n // Since this is a custom object, capture the string tag to determing its type.\n // This is reasonably performant in modern environments like v8 and SpiderMonkey.\n const tag = getTag(a as object);\n\n if (tag === DATE_TAG) {\n return areDatesEqual(a, b, state);\n }\n\n // For RegExp, the properties are not enumerable, and therefore will give false positives if\n // tested like a standard object.\n if (tag === REG_EXP_TAG) {\n return areRegExpsEqual(a, b, state);\n }\n\n if (tag === MAP_TAG) {\n return areMapsEqual(a, b, state);\n }\n\n if (tag === SET_TAG) {\n return areSetsEqual(a, b, state);\n }\n\n if (tag === OBJECT_TAG) {\n // The exception for value comparison is custom `Promise`-like class instances. These should\n // be treated the same as standard `Promise` objects, which means strict equality, and if\n // it reaches this point then that strict equality comparison has already failed.\n return (\n typeof a.then !== 'function' &&\n typeof b.then !== 'function' &&\n areObjectsEqual(a, b, state)\n );\n }\n\n // If a URL tag, it should be tested explicitly. Like RegExp, the properties are not\n // enumerable, and therefore will give false positives if tested like a standard object.\n if (tag === URL_TAG) {\n return areUrlsEqual(a, b, state);\n }\n\n // If an error tag, it should be tested explicitly. Like RegExp, the properties are not\n // enumerable, and therefore will give false positives if tested like a standard object.\n if (tag === ERROR_TAG) {\n return areErrorsEqual(a, b, state);\n }\n\n // If an arguments tag, it should be treated as a standard object.\n if (tag === ARGUMENTS_TAG) {\n return areObjectsEqual(a, b, state);\n }\n\n // As the penultimate fallback, check if the values passed are primitive wrappers. This\n // is very rare in modern JS, which is why it is deprioritized compared to all other object\n // types.\n if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {\n return arePrimitiveWrappersEqual(a, b, state);\n }\n\n if (unknownTagComparators) {\n let unknownTagComparator = unknownTagComparators[tag];\n\n if (!unknownTagComparator) {\n const shortTag = getShortTag(a);\n\n if (shortTag) {\n unknownTagComparator = unknownTagComparators[shortTag];\n }\n }\n\n // If the custom config has an unknown tag comparator that matches the captured tag or the\n // @@toStringTag, it is the source of truth for whether the values are equal.\n if (unknownTagComparator) {\n return unknownTagComparator(a, b, state);\n }\n }\n\n // If not matching any tags that require a specific type of comparison, then we hard-code false because\n // the only thing remaining is strict equality, which has already been compared. This is for a few reasons:\n // - Certain types that cannot be introspected (e.g., `WeakMap`). For these types, this is the only\n // comparison that can be made.\n // - For types that can be introspected, but rarely have requirements to be compared\n // (`ArrayBuffer`, `DataView`, etc.), the cost is avoided to prioritize the common\n // use-cases (may be included in a future release, if requested enough).\n // - For types that can be introspected but do not have an objective definition of what\n // equality is (`Error`, etc.), the subjective decision is to be conservative and strictly compare.\n // In all cases, these decisions should be reevaluated based on changes to the language and\n // common development practices.\n return false;\n };\n}\n\n/**\n * Create the configuration object used for building comparators.\n */\nexport function createEqualityComparatorConfig<Meta>({\n circular,\n createCustomConfig,\n strict,\n}: CustomEqualCreatorOptions<Meta>): ComparatorConfig<Meta> {\n let config = {\n areArraysEqual: strict\n ? areObjectsEqualStrictDefault\n : areArraysEqualDefault,\n areDatesEqual: areDatesEqualDefault,\n areErrorsEqual: areErrorsEqualDefault,\n areFunctionsEqual: areFunctionsEqualDefault,\n areMapsEqual: strict\n ? combineComparators(areMapsEqualDefault, areObjectsEqualStrictDefault)\n : areMapsEqualDefault,\n areNumbersEqual: areNumbersEqualDefault,\n areObjectsEqual: strict\n ? areObjectsEqualStrictDefault\n : areObjectsEqualDefault,\n arePrimitiveWrappersEqual: arePrimitiveWrappersEqualDefault,\n areRegExpsEqual: areRegExpsEqualDefault,\n areSetsEqual: strict\n ? combineComparators(areSetsEqualDefault, areObjectsEqualStrictDefault)\n : areSetsEqualDefault,\n areTypedArraysEqual: strict\n ? areObjectsEqualStrictDefault\n : areTypedArraysEqualDefault,\n areUrlsEqual: areUrlsEqualDefault,\n unknownTagComparators: undefined,\n };\n\n if (createCustomConfig) {\n config = assign({}, config, createCustomConfig(config));\n }\n\n if (circular) {\n const areArraysEqual = createIsCircular(config.areArraysEqual);\n const areMapsEqual = createIsCircular(config.areMapsEqual);\n const areObjectsEqual = createIsCircular(config.areObjectsEqual);\n const areSetsEqual = createIsCircular(config.areSetsEqual);\n\n config = assign({}, config, {\n areArraysEqual,\n areMapsEqual,\n areObjectsEqual,\n areSetsEqual,\n });\n }\n\n return config;\n}\n\n/**\n * Default equality comparator pass-through, used as the standard `isEqual` creator for\n * use inside the built comparator.\n */\nexport function createInternalEqualityComparator<Meta>(\n compare: EqualityComparator<Meta>,\n): InternalEqualityComparator<Meta> {\n return function (\n a: any,\n b: any,\n _indexOrKeyA: any,\n _indexOrKeyB: any,\n _parentA: any,\n _parentB: any,\n state: State<Meta>,\n ) {\n return compare(a, b, state);\n };\n}\n\n/**\n * Create the `isEqual` function used by the consuming application.\n */\nexport function createIsEqual<Meta>({\n circular,\n comparator,\n createState,\n equals,\n strict,\n}: CreateIsEqualOptions<Meta>) {\n if (createState) {\n return function isEqual<A, B>(a: A, b: B): boolean {\n const { cache = circular ? new WeakMap() : undefined, meta } =\n createState();\n\n return comparator(a, b, {\n cache,\n equals,\n meta,\n strict,\n } as State<Meta>);\n };\n }\n\n if (circular) {\n return function isEqual<A, B>(a: A, b: B): boolean {\n return comparator(a, b, {\n cache: new WeakMap(),\n equals,\n meta: undefined as Meta,\n strict,\n } as State<Meta>);\n };\n }\n\n const state = {\n cache: undefined,\n equals,\n meta: undefined,\n strict,\n } as State<Meta>;\n\n return function isEqual<A, B>(a: A, b: B): boolean {\n return comparator(a, b, state);\n };\n}\n","import {\n createEqualityComparatorConfig,\n createEqualityComparator,\n createInternalEqualityComparator,\n createIsEqual,\n} from './comparator.js';\nimport type { CustomEqualCreatorOptions } from './internalTypes.ts';\nimport { sameValueZeroEqual } from './utils.js';\n\nexport { sameValueZeroEqual };\nexport type {\n AnyEqualityComparator,\n Cache,\n CircularState,\n ComparatorConfig,\n CreateCustomComparatorConfig,\n CreateState,\n CustomEqualCreatorOptions,\n DefaultState,\n Dictionary,\n EqualityComparator,\n EqualityComparatorCreator,\n InternalEqualityComparator,\n PrimitiveWrapper,\n State,\n TypeEqualityComparator,\n TypedArray,\n} from './internalTypes.ts';\n\n/**\n * Whether the items passed are deeply-equal in value.\n */\nexport const deepEqual = createCustomEqual();\n\n/**\n * Whether the items passed are deeply-equal in value based on strict comparison.\n */\nexport const strictDeepEqual = createCustomEqual({ strict: true });\n\n/**\n * Whether the items passed are deeply-equal in value, including circular references.\n */\nexport const circularDeepEqual = createCustomEqual({ circular: true });\n\n/**\n * Whether the items passed are deeply-equal in value, including circular references,\n * based on strict comparison.\n */\nexport const strictCircularDeepEqual = createCustomEqual({\n circular: true,\n strict: true,\n});\n\n/**\n * Whether the items passed are shallowly-equal in value.\n */\nexport const shallowEqual = createCustomEqual({\n createInternalComparator: () => sameValueZeroEqual,\n});\n\n/**\n * Whether the items passed are shallowly-equal in value based on strict comparison\n */\nexport const strictShallowEqual = createCustomEqual({\n strict: true,\n createInternalComparator: () => sameValueZeroEqual,\n});\n\n/**\n * Whether the items passed are shallowly-equal in value, including circular references.\n */\nexport const circularShallowEqual = createCustomEqual({\n circular: true,\n createInternalComparator: () => sameValueZeroEqual,\n});\n\n/**\n * Whether the items passed are shallowly-equal in value, including circular references,\n * based on strict comparison.\n */\nexport const strictCircularShallowEqual = createCustomEqual({\n circular: true,\n createInternalComparator: () => sameValueZeroEqual,\n strict: true,\n});\n\n/**\n * Create a custom equality comparison method.\n *\n * This can be done to create very targeted comparisons in extreme hot-path scenarios\n * where the standard methods are not performant enough, but can also be used to provide\n * support for legacy environments that do not support expected features like\n * `RegExp.prototype.flags` out of the box.\n */\nexport function createCustomEqual<Meta = undefined>(\n options: CustomEqualCreatorOptions<Meta> = {},\n) {\n const {\n circular = false,\n createInternalComparator: createCustomInternalComparator,\n createState,\n strict = false,\n } = options;\n\n const config = createEqualityComparatorConfig<Meta>(options);\n const comparator = createEqualityComparator(config);\n const equals = createCustomInternalComparator\n ? createCustomInternalComparator(comparator)\n : createInternalEqualityComparator(comparator);\n\n return createIsEqual({ circular, comparator, createState, equals, strict });\n}\n"],"names":["areObjectsEqualStrictDefault","areArraysEqualDefault","areDatesEqualDefault","areErrorsEqualDefault","areFunctionsEqualDefault","areMapsEqualDefault","areNumbersEqualDefault","areObjectsEqualDefault","arePrimitiveWrappersEqualDefault","areRegExpsEqualDefault","areSetsEqualDefault","areTypedArraysEqualDefault","areUrlsEqualDefault","areArraysEqual","areMapsEqual","areObjectsEqual","areSetsEqual"],"mappings":"AASQ,IAAA,mBAAmB,GAA4B,MAAM,CAAA,mBAAlC,EAAE,qBAAqB,GAAK,MAAM,CAAA,qBAAX;AAC1C,IAAA,cAAc,GAAK,MAAM,CAAC,SAAS,eAArB;AAEtB;;AAEG;AACG,SAAU,kBAAkB,CAChC,WAAwC,EACxC,WAAwC,EAAA;AAExC,IAAA,OAAO,SAAS,OAAO,CAAO,CAAI,EAAE,CAAI,EAAE,KAAkB,EAAA;AAC1D,QAAA,OAAO,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC;AAC7D,IAAA,CAAC;AACH;AAEA;;;;AAIG;AACG,SAAU,gBAAgB,CAE9B,aAA4B,EAAA;AAC5B,IAAA,OAAO,SAAS,UAAU,CACxB,CAAM,EACN,CAAM,EACN,KAAqC,EAAA;AAEr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