You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,19 @@
1
1
# Changelog
2
2
3
-
## UNRELEASED
3
+
## 3.0.0 (2020-01-31)
4
4
5
5
**Features:**
6
-
- Update library to include ES.next support for `Map`, `Set`, `ArrayBuffer`. [#36](https://github.com/FormidableLabs/react-fast-compare/pull/36).
6
+
7
+
-[#36](https://github.com/FormidableLabs/react-fast-compare/pull/36). Update to `fast-deep-equal@3.1.1` with modified support for ES.next data types: `Map`, `Set`, `ArrayBuffer`.
7
8
8
9
**Breaking changes:**
9
-
- Update to `fast-deep-equal@3.1.1` with modified support for ES.next data types.
10
+
11
+
- instances of different classes are now considered unequal
12
+
- support for ES6 Map and Set instances
13
+
- support for ES6 typed arrays
10
14
11
15
**Infrastructure:**
16
+
12
17
- Upgrade lots of `devDependenices`
13
18
- Use `fast-deep-equal` tests directly in our correctness tests.
14
19
- Update CI to modern Node.js versions.
@@ -38,6 +43,7 @@
38
43
-[#21](https://github.com/FormidableLabs/react-fast-compare/pull/21). Upgrade to `fast-deep-equal@2.0.1`. Thanks @samwhale!
39
44
40
45
**Breaking changes:**
46
+
41
47
-`null` and `Object` comparison
42
48
- new behavior: functions are no longer treated as equal
Each "operation" consists of running all relevant tests. The React benchmark
81
87
uses both the generic tests and the react tests; these runs will be slower
82
88
simply because there are more tests in each operation.
83
89
90
+
The results below are from a local test on a laptop.
91
+
84
92
### Generic Data
85
93
86
94
```
@@ -115,14 +123,14 @@ $ yarn install
115
123
$ yarn run benchmark
116
124
```
117
125
118
-
## fast-deep-equal Versioning
126
+
## Differences between this library and `fast-deep-equal`
119
127
120
-
react-fast-compare@3 tracks fast-deep-equal@3.1.1
128
+
`react-fast-compare` is based on `fast-deep-equal`, with some additions:
121
129
122
-
Now that `fast-deep-equal` has separate es5, es6, and es6 + React entry points, the main differences with this library are:
130
+
-`react-fast-compare` has `try`/`catch` guardrails for stack overflows from undetected (non-React) circular references.
131
+
-`react-fast-compare` has a _single_ unified entry point for all uses. No matter what your target application is, `import equal from 'react-fast-compare'` just works. `fast-deep-equal` has multiple entry points for different use cases.
123
132
124
-
-`try/catch` guardrails for stack overflows from undetected circular references.
125
-
- A single unified entry point for **all** uses. No matter what your target application is, `import equal from 'react-fast-compare'` just works.
133
+
This version of `react-fast-compare` tracks `fast-deep-equal@3.1.1`.
0 commit comments