diff --git a/package-lock.json b/package-lock.json index aa77867f..ec569454 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "jest": "^29.7.0", "lint-staged": "^15.2.2", "prettier": "^3.2.5", - "reselect": "^5.0.1", + "reselect": "^5.1.0", "rimraf": "^5.0.5", "rollup": "^4.13.2", "rollup-plugin-copy": "^3.5.0", @@ -6111,9 +6111,9 @@ "dev": true }, "node_modules/reselect": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.0.1.tgz", - "integrity": "sha512-D72j2ubjgHpvuCiORWkOUxndHJrxDaSolheiz5CO+roz8ka97/4msh2E8F5qay4GawR5vzBt5MkbDHT+Rdy/Wg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.0.tgz", + "integrity": "sha512-aw7jcGLDpSgNDyWBQLv2cedml85qd95/iszJjN988zX1t7AVRJi19d9kto5+W7oCfQ94gyo40dVbT6g2k4/kXg==", "dev": true }, "node_modules/resolve": { @@ -11419,9 +11419,9 @@ "dev": true }, "reselect": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.0.1.tgz", - "integrity": "sha512-D72j2ubjgHpvuCiORWkOUxndHJrxDaSolheiz5CO+roz8ka97/4msh2E8F5qay4GawR5vzBt5MkbDHT+Rdy/Wg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.0.tgz", + "integrity": "sha512-aw7jcGLDpSgNDyWBQLv2cedml85qd95/iszJjN988zX1t7AVRJi19d9kto5+W7oCfQ94gyo40dVbT6g2k4/kXg==", "dev": true }, "resolve": { diff --git a/package.json b/package.json index 09485eda..e6b12ce6 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "jest": "^29.7.0", "lint-staged": "^15.2.2", "prettier": "^3.2.5", - "reselect": "^5.0.1", + "reselect": "^5.1.0", "rimraf": "^5.0.5", "rollup": "^4.13.2", "rollup-plugin-copy": "^3.5.0", diff --git a/src/typescript_tests/createCachedSelector.ts b/src/typescript_tests/createCachedSelector.ts index 2922480a..d24eb569 100644 --- a/src/typescript_tests/createCachedSelector.ts +++ b/src/typescript_tests/createCachedSelector.ts @@ -1,4 +1,4 @@ -import {createSelectorCreator, lruMemoize} from 'reselect'; +import {createSelectorCreator, lruMemoize, weakMapMemoize} from 'reselect'; import {createCachedSelector, KeySelector} from '../index'; function assertType(value: T): T { @@ -418,7 +418,9 @@ function testSelectorCreatorOptionNonLruMemoize() { foo => foo )({ keySelector: (state: State) => state.foo, - selectorCreator: createSelectorCreator(func => func), + selectorCreator: createSelectorCreator({ + memoize: weakMapMemoize, + }), }); }