@jest/expect-utils 28.1.0 → 28.1.1

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.
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', {
6
6
  exports.equals = void 0;
7
7
  exports.isA = isA;
8
8
  exports.isImmutableList = isImmutableList;
9
+ exports.isImmutableOrderedKeyed = isImmutableOrderedKeyed;
9
10
  exports.isImmutableUnorderedKeyed = isImmutableUnorderedKeyed;
10
11
  exports.isImmutableUnorderedSet = isImmutableUnorderedSet;
11
12
 
@@ -262,3 +263,11 @@ function isImmutableUnorderedSet(maybeSet) {
262
263
  function isImmutableList(maybeList) {
263
264
  return !!(maybeList && maybeList[IS_LIST_SENTINEL]);
264
265
  }
266
+
267
+ function isImmutableOrderedKeyed(maybeKeyed) {
268
+ return !!(
269
+ maybeKeyed &&
270
+ maybeKeyed[IS_KEYED_SENTINEL] &&
271
+ maybeKeyed[IS_ORDERED_SENTINEL]
272
+ );
273
+ }
package/build/utils.js CHANGED
@@ -278,7 +278,10 @@ const iterableEquality = (
278
278
  return false;
279
279
  }
280
280
 
281
- if (!(0, _jasmineUtils.isImmutableList)(a)) {
281
+ if (
282
+ !(0, _jasmineUtils.isImmutableList)(a) &&
283
+ !(0, _jasmineUtils.isImmutableOrderedKeyed)(a)
284
+ ) {
282
285
  const aEntries = Object.entries(a);
283
286
  const bEntries = Object.entries(b);
284
287
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jest/expect-utils",
3
- "version": "28.1.0",
3
+ "version": "28.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/facebook/jest.git",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "immutable": "^4.0.0",
24
- "jest-matcher-utils": "^28.1.0"
24
+ "jest-matcher-utils": "^28.1.1"
25
25
  },
26
26
  "engines": {
27
27
  "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0"
@@ -29,5 +29,5 @@
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
- "gitHead": "f5db241312f46528389e55c38221e6b6968622cf"
32
+ "gitHead": "eb954f8874960920ac50a8f976bb333fbb06ada9"
33
33
  }