@wordpress/is-shallow-equal
Advanced tools
Comparing version 5.16.0 to 5.17.0
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 5.17.0 (2025-01-29) | ||
## 5.16.0 (2025-01-15) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@wordpress/is-shallow-equal", | ||
"version": "5.16.0", | ||
"version": "5.17.0", | ||
"description": "Test for shallow equality between two objects or arrays.", | ||
@@ -46,3 +46,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "f48b9f56629e400891abb5ae491504de475237ff" | ||
"gitHead": "68a831c3178197fe87db284d4b94e5743bfb6b6c" | ||
} |
@@ -32,3 +32,3 @@ # Is Shallow Equal | ||
Shallow comparison differs from deep comparison by the fact that it compares members from each as being strictly equal to the other, meaning that arrays and objects will be compared by their _references_, not by their values (see also [_Object Equality in JavaScript_.](http://adripofjavascript.com/blog/drips/object-equality-in-javascript.html)) In situations where nested objects must be compared by value, consider using [`fast-deep-equal`](https://github.com/epoberezkin/fast-deep-equal) instead. | ||
Shallow comparison differs from deep comparison by the fact that it compares members from each as being strictly equal to the other, meaning that arrays and objects will be compared by their _references_, not by their values (see also [_Object Equality in JavaScript_.](https://adripofjavascript.com/blog/drips/object-equality-in-javascript.html)) In situations where nested objects must be compared by value, consider using [`fast-deep-equal`](https://github.com/epoberezkin/fast-deep-equal) instead. | ||
@@ -35,0 +35,0 @@ ```js |
70449