react-fast-compare
Advanced tools
Comparing version 3.1.1 to 3.2.0
# Changelog | ||
## 3.2.0 (2020-05-28) | ||
- [#80](https://github.com/FormidableLabs/react-fast-compare/pull/80). Update types to use generic `any`s. | ||
- [#77](https://github.com/FormidableLabs/react-fast-compare/pull/77). Add tests for our TypeScript type definitions. | ||
## 3.1.0 (2020-05-08) | ||
@@ -20,2 +25,3 @@ | ||
**Features:** | ||
- [#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`. | ||
@@ -22,0 +28,0 @@ - [#57](https://github.com/FormidableLabs/react-fast-compare/pull/57). Minor refactoring to reduce min+gz size. |
@@ -1,3 +0,2 @@ | ||
declare function isEqual(a: any, b: any): boolean; | ||
declare namespace isEqual {} | ||
declare function isEqual<A = any, B = any>(a: A, b: B): boolean; | ||
export = isEqual; |
{ | ||
"name": "react-fast-compare", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "Fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.", | ||
"main": "index.js", | ||
"typings": "index.d.ts", | ||
"scripts": { | ||
@@ -10,2 +11,3 @@ "preversion": "yarn test", | ||
"eslint": "eslint \"*.js\" benchmark test", | ||
"tslint": "eslint test/typescript/*.tsx", | ||
"test-browser": "karma start test/browser/karma.conf.js", | ||
@@ -15,5 +17,6 @@ "test-browser-ie": "karma start test/browser/karma.conf.ie.js", | ||
"test-node-cov": "nyc mocha \"test/node/*.spec.js\"", | ||
"test-ts": "tsc --target ES5 --noImplicitAny index.d.ts", | ||
"test": "builder concurrent --buffer eslint test-ts test-node-cov test-browser", | ||
"test-ie": "builder concurrent --buffer eslint test-ts test-node-cov test-browser-ie", | ||
"test-ts-usage": "tsc --esModuleInterop --jsx react --noEmit test/typescript/sample-react-redux-usage.tsx test/typescript/sample-usage.tsx", | ||
"test-ts-defs": "tsc --target ES5 index.d.ts", | ||
"test": "builder concurrent --buffer eslint tslint test-ts-usage test-ts-defs test-node-cov test-browser", | ||
"test-ie": "builder concurrent --buffer eslint tslint test-ts-usage test-ts-defs test-node-cov test-browser-ie", | ||
"compress": "terser --compress --mangle=\"toplevel:true\" -- index.js", | ||
@@ -45,2 +48,7 @@ "size-min-gz": "yarn -s compress | gzip -9 | wc -c" | ||
"@testing-library/preact": "^1.0.2", | ||
"@types/node": "^14.0.1", | ||
"@types/react": "^16.9.35", | ||
"@types/react-dom": "^16.9.8", | ||
"@types/react-redux": "^7.1.9", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"babel-loader": "^8.0.6", | ||
@@ -52,2 +60,3 @@ "benchmark": "^2.1.4", | ||
"eslint": "^6.7.2", | ||
"eslint-plugin-react": "^7.20.0", | ||
"fast-deep-equal": "3.1.1", | ||
@@ -71,3 +80,6 @@ "fast-deep-equal-git": "epoberezkin/fast-deep-equal#v3.1.1", | ||
"react": "^16.3.1", | ||
"react-dom": "^16.13.1", | ||
"react-redux": "^7.2.0", | ||
"react-test-renderer": "^16.13.1", | ||
"redux": "^4.0.5", | ||
"shallow-equal-fuzzy": "0.0.2", | ||
@@ -74,0 +86,0 @@ "sinon": "^7.5.0", |
18517
43
118