use-custom-compare
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -0,1 +1,8 @@ | ||
## [1.0.5](https://github.com/kotarella1110/use-custom-compare/compare/v1.0.4...v1.0.5) (2020-08-29) | ||
### Bug Fixes | ||
* **deps:** [security] bump lodash from 4.17.15 to 4.17.20 ([399730e](https://github.com/kotarella1110/use-custom-compare/commit/399730ed6390f11b0dbf66f0e0c2df7616edf3b8)) | ||
## [1.0.4](https://github.com/kotarella1110/use-custom-compare/compare/v1.0.3...v1.0.4) (2020-07-07) | ||
@@ -2,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).useCustomCompare={},e.React)}(this,(function(e,t){"use strict";function o(e){return null==e||/^[sbn]/.test(typeof e)}function r(e,t,r){var n="React."+r.replace(/CustomCompare/,"");if(!(e instanceof Array)||0===e.length)throw new Error(r+" should not be used with no dependencies. Use "+n+" instead.");if(e.every(o))throw new Error(r+" should not be used with dependencies that are all primitive values. Use "+n+" instead.");if("function"!=typeof t)throw new Error(r+" should be used with depsEqual callback for comparing deps list")}function n(e,o){var r=t.useRef([]);return r.current&&o(r.current,e)||(r.current=e),r.current}e.useCustomCompareCallback=function(e,o,u){return"production"!==process.env.NODE_ENV&&r(o,u,"useCustomCompareCallback"),t.useCallback(e,n(o,u))},e.useCustomCompareEffect=function(e,o,u){"production"!==process.env.NODE_ENV&&r(o,u,"useCustomCompareEffect"),t.useEffect(e,n(o,u))},e.useCustomCompareMemo=function(e,o,u){return"production"!==process.env.NODE_ENV&&r(o,u,"useCustomCompareMemo"),t.useMemo(e,n(o,u))},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).useCustomCompare={},e.React)}(this,(function(e,t){"use strict";function o(e){return null==e||/^[sbn]/.test(typeof e)}function r(e,t,r){var n="React."+r.replace(/CustomCompare/,"");if(!(e instanceof Array)||0===e.length)throw new Error(r+" should not be used with no dependencies. Use "+n+" instead.");if(e.every(o))throw new Error(r+" should not be used with dependencies that are all primitive values. Use "+n+" instead.");if("function"!=typeof t)throw new Error(r+" should be used with depsEqual callback for comparing deps list")}function n(e,o){var r=t.useRef([]);return r.current&&o(r.current,e)||(r.current=e),r.current}e.useCustomCompareCallback=function(e,o,u){return"production"!==process.env.NODE_ENV&&r(o,u,"useCustomCompareCallback"),t.useCallback(e,n(o,u))},e.useCustomCompareEffect=function(e,o,u){"production"!==process.env.NODE_ENV&&r(o,u,"useCustomCompareEffect"),t.useEffect(e,n(o,u))},e.useCustomCompareMemo=function(e,o,u){return"production"!==process.env.NODE_ENV&&r(o,u,"useCustomCompareMemo"),t.useMemo(e,n(o,u))},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=use-custom-compare.umd.min.js.map |
{ | ||
"name": "use-custom-compare", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "It's React's useEffect/useMemo/useCallback hooks, except using custom comparison on the inputs, not reference equality", | ||
@@ -41,13 +41,13 @@ "main": "dist/use-custom-compare.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "^9.0.1", | ||
"@commitlint/config-conventional": "^9.0.1", | ||
"@commitlint/cli": "^9.1.2", | ||
"@commitlint/config-conventional": "^9.1.2", | ||
"@semantic-release/changelog": "^5.0.1", | ||
"@semantic-release/git": "^9.0.0", | ||
"@testing-library/react-hooks": "^3.3.0", | ||
"@types/jest": "^26.0.4", | ||
"@types/react": "^16.9.41", | ||
"@testing-library/react-hooks": "^3.4.1", | ||
"@types/jest": "^26.0.10", | ||
"@types/react": "^16.9.47", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"commitizen": "^4.1.2", | ||
"cz-conventional-changelog": "^3.2.0", | ||
"dequal": "^1.0.0", | ||
"commitizen": "^4.2.1", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"dequal": "^1.0.1", | ||
"eslint": "^6.8.0", | ||
@@ -59,21 +59,21 @@ "eslint-config-airbnb-typescript": "^7.2.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.20.3", | ||
"eslint-plugin-react-hooks": "^4.0.5", | ||
"git-cz": "^4.7.0", | ||
"eslint-plugin-react": "^7.20.6", | ||
"eslint-plugin-react-hooks": "^4.1.0", | ||
"git-cz": "^4.7.1", | ||
"husky": "^4.2.5", | ||
"jest": "^25.5.4", | ||
"lint-staged": "^10.2.11", | ||
"prettier": "^2.0.5", | ||
"lint-staged": "^10.2.13", | ||
"prettier": "^2.1.1", | ||
"react": "^16.13.1", | ||
"react-test-renderer": "^16.13.1", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.20.0", | ||
"rollup": "^2.26.6", | ||
"rollup-plugin-filesize": "^9.0.2", | ||
"rollup-plugin-peer-deps-external": "^2.2.3", | ||
"rollup-plugin-sourcemaps": "^0.6.2", | ||
"rollup-plugin-terser": "^6.1.0", | ||
"rollup-plugin-typescript2": "^0.27.1", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"semantic-release": "^17.1.1", | ||
"ts-jest": "^25.5.1", | ||
"typescript": "^3.9.6" | ||
"typescript": "^3.9.7" | ||
}, | ||
@@ -80,0 +80,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
31925