@wordpress/is-shallow-equal 4.2.1-next.253d9b6e21.0 → 4.3.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.3.0 (2022-01-27)
6
+
5
7
  ## 4.2.0 (2021-07-21)
6
8
 
7
9
  ## 4.1.0 (2021-05-20)
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Gutenberg
2
2
 
3
- Copyright 2016-2021 by the contributors
3
+ Copyright 2016-2022 by the contributors
4
4
 
5
5
  **License for Contributions (on and after April 15, 2021)**
6
6
 
package/build/index.js CHANGED
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = isShallowEqual;
9
- Object.defineProperty(exports, "isShallowEqualObjects", {
9
+ Object.defineProperty(exports, "isShallowEqualArrays", {
10
10
  enumerable: true,
11
11
  get: function () {
12
- return _objects.default;
12
+ return _arrays.default;
13
13
  }
14
14
  });
15
- Object.defineProperty(exports, "isShallowEqualArrays", {
15
+ Object.defineProperty(exports, "isShallowEqualObjects", {
16
16
  enumerable: true,
17
17
  get: function () {
18
- return _arrays.default;
18
+ return _objects.default;
19
19
  }
20
20
  });
21
21
 
@@ -13,7 +13,5 @@
13
13
  export default function isShallowEqual(a: any[] | ComparableObject, b: any[] | ComparableObject): boolean;
14
14
  export { default as isShallowEqualObjects } from "./objects";
15
15
  export { default as isShallowEqualArrays } from "./arrays";
16
- export type ComparableObject = {
17
- [x: string]: any;
18
- };
16
+ export type ComparableObject = Record<string, any>;
19
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AASA;;GAEG;AAEH;;;;;;;;GAQG;AACH,0CALW,GAAG,EAAE,GAAC,gBAAgB,KACtB,GAAG,EAAE,GAAC,gBAAgB,GAErB,OAAO,CAYlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AASA;;GAEG;AAEH;;;;;;;;GAQG;AACH,0CALW,GAAG,EAAE,GAAC,gBAAgB,KACtB,GAAG,EAAE,GAAC,gBAAgB,GAErB,OAAO,CAYlB;;;+BAtBY,OAAO,MAAM,EAAE,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/is-shallow-equal",
3
- "version": "4.2.1-next.253d9b6e21.0",
3
+ "version": "4.3.0",
4
4
  "description": "Test for shallow equality between two objects or arrays.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -36,10 +36,10 @@
36
36
  "types": "build-types",
37
37
  "sideEffects": false,
38
38
  "dependencies": {
39
- "@babel/runtime": "^7.13.10"
39
+ "@babel/runtime": "^7.16.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "c4b9acee18dfcc1767c35631f90725c7d604c5e9"
44
+ "gitHead": "d95ccb9366e249133cdb1d7b25c382446b9ee502"
45
45
  }