-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move to `module` infrastructure, and modern build setup * get non-custom implementation working * fix benchmarks and make `cache` generic * get custom working as expected * finish tests and typing * add `arePrimitiveWrappersEqual` handler * bind `toString` for better performance * simplify custom class comparison * move to `tinybench` for benchmarking * inline `isPlainObject` and `isPromiseLike` * remove duplicate `mixed types` benchmark * add strict exports, and centralize custom equality * add tests for `strictDeepEqual`, specifically testing the issue use-cases * update recipes for custom equality * update dependencies to latest * include strict in tests, and add to benchmarks * reduce `Map` / `Set` logic size with simpler gate * update dependencies to latest * avoid variable assignment for react check * compare descriptors with strict mode, and update README * update CHANGELOG with description of v5 * Release 5.0.0-beta.0 * add test based on existing issue * include checking of `Symbol` keys in the documentation for strict checks * include `index.d.ts` fallback location * Release 5.0.0-beta.1 * eliminate imports to runtime files in `index.d.ts`, per feedback * Release 5.0.0-beta.2 * use `createCustomEqual` for all equality comparator constructions, and support better merging and circular handling * cleaner custom state usage * restore simple config building, and avoid storage of entire `options` in `createCustomEqual` * Release 5.0.0-beta.3 * include `engines` in `package.json` * add TypedArray support * remove `BigInt64Array` / `BigUint64Array` from type to make it easier for older consumers (but still support it at runtime) * add documentation for `areTypedArraysEqual` and call it out in CHANGELOG * leverage `isView` instead of tag check * if in strict mode, `constructor` must match * put strict check after POJO check to fast-path a common use-case * Release 5.0.0-beta.4 * simplify the `areTypedArraysEqual` check * update dependencies * simplify the description of support in README * Release 5.0.0-beta.5 * ensure constructors are equal, and fast-path common constructor types * loose comparison to `null` seems to be faster than `!` * might as well do loose null comparson for `isTypedArray` * clean up typing * renames, better typing, and update README to reflect `createCustomEqual` options change * clean up recipes with changes * add tests to validate TypedArray class differences * update documentation for `constructor` equality checks * more CHANGELOG tweaks * improve README documentation, and set `fast-deep-equal` comparison to be more apples-to-apples (es6 + react) * use iterator-based methods for `Map` / `Set` comparison * update dependencies * Release 5.0.0-beta.6 * add more code comments for better IDE feedback * update dependencies to latest * update benchmarks in README
- Loading branch information
1 parent
e6b76c8
commit acd7bcb
Showing
56 changed files
with
4,493 additions
and
3,549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"env": { | ||
"lib": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"loose": true | ||
} | ||
] | ||
] | ||
}, | ||
"test": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"loose": true | ||
} | ||
] | ||
] | ||
} | ||
}, | ||
"presets": [ | ||
"@babel/preset-typescript", | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"loose": true, | ||
"modules": false | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"extends": ["plugin:@typescript-eslint/recommended"], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".js", ".jsx", ".ts", ".tsx"] | ||
} | ||
} | ||
"parserOptions": { | ||
"ecmaVersion": 2021, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"max-len": 0, | ||
"operator-linebreak": 0, | ||
"no-plusplus": 0, | ||
"no-proto": 0, | ||
"no-self-compare": 0, | ||
"no-underscore-dangle": 0, | ||
"no-unused-vars": 0, | ||
"valid-typeof": 0, | ||
"prefer-rest-params": 0, | ||
|
||
"import/extensions": 0, | ||
"import/prefer-default-export": 0, | ||
|
||
"@typescript-eslint/ban-types": 0, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/no-explicit-any": 0 | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-non-null-assertion": 0 | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{ | ||
"arrowParens": "always", | ||
"bracketSpacing": true, | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.