Skip to content

Commit 242b21d

Browse files
Change redux dependency to peer dependency
1 parent ad8f06e commit 242b21d

File tree

2 files changed

+49
-27
lines changed

2 files changed

+49
-27
lines changed

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"size": "size-limit",
1919
"analyze": "size-limit --why"
2020
},
21-
"peerDependencies": {},
2221
"husky": {
2322
"hooks": {
2423
"pre-commit": "dts lint"
@@ -44,9 +43,13 @@
4443
}
4544
],
4645
"devDependencies": {
46+
"@babel/core": "^7.28.3",
47+
"@babel/plugin-syntax-flow": "^7.27.1",
48+
"@babel/plugin-transform-react-jsx": "^7.27.1",
4749
"@eslint/eslintrc": "^3.3.1",
4850
"@eslint/js": "^9.31.0",
4951
"@size-limit/preset-small-lib": "^11.2.0",
52+
"@types/node": "^24.3.0",
5053
"dts-cli": "^2.0.5",
5154
"eslint": "^9.31.0",
5255
"eslint-plugin-tsdoc": "^0.4.0",
@@ -56,10 +59,11 @@
5659
"size-limit": "^11.2.0",
5760
"tslib": "^2.8.1",
5861
"typescript": "^5.8.3",
59-
"typescript-eslint": "^8.38.0"
62+
"typescript-eslint": "^8.38.0",
63+
"@reduxjs/toolkit": ">=2.1.0"
6064
},
61-
"dependencies": {
62-
"@reduxjs/toolkit": "^2.8.2"
65+
"peerDependencies": {
66+
"@reduxjs/toolkit": ">=2.1.0"
6367
},
6468
"resolutions": {
6569
"@types/minimatch": "5.1.2"

yarn.lock

Lines changed: 41 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.28.0.tgz#9fc6fd58c2a6a15243cd13983224968392070790"
2525
integrity sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==
2626

27-
"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9", "@babel/core@^7.24.3":
27+
"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9", "@babel/core@^7.24.3", "@babel/core@^7.28.3":
2828
version "7.28.3"
2929
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.3.tgz#aceddde69c5d1def69b839d09efa3e3ff59c97cb"
3030
integrity sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==
@@ -294,6 +294,13 @@
294294
dependencies:
295295
"@babel/helper-plugin-utils" "^7.14.5"
296296

297+
"@babel/plugin-syntax-flow@^7.27.1":
298+
version "7.27.1"
299+
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.27.1.tgz#6c83cf0d7d635b716827284b7ecd5aead9237662"
300+
integrity sha512-p9OkPbZ5G7UT1MofwYFigGebnrzGJacoBSQM0/6bi/PUMVE+qlWDD/OalvQKbwgQzU6dl0xAv6r4X7Jme0RYxA==
301+
dependencies:
302+
"@babel/helper-plugin-utils" "^7.27.1"
303+
297304
"@babel/plugin-syntax-import-assertions@^7.27.1":
298305
version "7.27.1"
299306
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.27.1.tgz#88894aefd2b03b5ee6ad1562a7c8e1587496aecd"
@@ -322,7 +329,7 @@
322329
dependencies:
323330
"@babel/helper-plugin-utils" "^7.8.0"
324331

325-
"@babel/plugin-syntax-jsx@^7.7.2":
332+
"@babel/plugin-syntax-jsx@^7.27.1", "@babel/plugin-syntax-jsx@^7.7.2":
326333
version "7.27.1"
327334
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz#2f9beb5eff30fa507c5532d107daac7b888fa34c"
328335
integrity sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==
@@ -708,6 +715,17 @@
708715
dependencies:
709716
"@babel/helper-plugin-utils" "^7.27.1"
710717

718+
"@babel/plugin-transform-react-jsx@^7.27.1":
719+
version "7.27.1"
720+
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.27.1.tgz#1023bc94b78b0a2d68c82b5e96aed573bcfb9db0"
721+
integrity sha512-2KH4LWGSrJIkVf5tSiBFYuXDAoWRq2MMwgivCf+93dd0GQi8RXLjKA/0EvRnVV5G0hrHczsquXuD01L8s6dmBw==
722+
dependencies:
723+
"@babel/helper-annotate-as-pure" "^7.27.1"
724+
"@babel/helper-module-imports" "^7.27.1"
725+
"@babel/helper-plugin-utils" "^7.27.1"
726+
"@babel/plugin-syntax-jsx" "^7.27.1"
727+
"@babel/types" "^7.27.1"
728+
711729
"@babel/plugin-transform-regenerator@^7.28.3":
712730
version "7.28.3"
713731
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.28.3.tgz#b8eee0f8aed37704bbcc932fd0b1a0a34d0b7344"
@@ -1127,10 +1145,10 @@
11271145
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2"
11281146
integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==
11291147

1130-
"@eslint/js@9.33.0", "@eslint/js@^9.31.0":
1131-
version "9.33.0"
1132-
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.33.0.tgz#475c92fdddab59b8b8cab960e3de2564a44bf368"
1133-
integrity sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==
1148+
"@eslint/js@9.34.0", "@eslint/js@^9.31.0":
1149+
version "9.34.0"
1150+
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.34.0.tgz#fc423168b9d10e08dea9088d083788ec6442996b"
1151+
integrity sha512-EoyvqQnBNsV1CWaEJ559rxXL4c8V92gxirbawSmVUOWXlsRxxQXl6LmCpdUblgxgSkDIqKnhzba2SjRTI/A5Rw==
11341152

11351153
"@eslint/object-schema@^2.1.6":
11361154
version "2.1.6"
@@ -1416,7 +1434,7 @@
14161434
"@jridgewell/gen-mapping" "^0.3.5"
14171435
"@jridgewell/trace-mapping" "^0.3.25"
14181436

1419-
"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.13", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0":
1437+
"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.13", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0", "@jridgewell/sourcemap-codec@^1.5.5":
14201438
version "1.5.5"
14211439
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba"
14221440
integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==
@@ -1473,7 +1491,7 @@
14731491
"@nodelib/fs.scandir" "2.1.5"
14741492
fastq "^1.6.0"
14751493

1476-
"@reduxjs/toolkit@^2.8.2":
1494+
"@reduxjs/toolkit@>=2.1.0":
14771495
version "2.8.2"
14781496
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-2.8.2.tgz#f4e9f973c6fc930c1e0f3bf462cc95210c28f5f9"
14791497
integrity sha512-MYlOhQ0sLdw4ud48FoC5w0dH9VfWQjtCjreKwYTT3l+r427qYC5Y8PihNutepr8XrNaBUDQo9khWUwQxZaqt5A==
@@ -1742,7 +1760,7 @@
17421760
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca"
17431761
integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==
17441762

1745-
"@types/node@*":
1763+
"@types/node@*", "@types/node@^24.3.0":
17461764
version "24.3.0"
17471765
resolved "https://registry.yarnpkg.com/@types/node/-/node-24.3.0.tgz#89b09f45cb9a8ee69466f18ee5864e4c3eb84dec"
17481766
integrity sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==
@@ -2493,9 +2511,9 @@ camelcase@^6.2.0, camelcase@^6.3.0:
24932511
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
24942512

24952513
caniuse-lite@^1.0.30001735:
2496-
version "1.0.30001736"
2497-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001736.tgz#3710a99cf154b653590fb6a57f81ee34173c3b47"
2498-
integrity sha512-ImpN5gLEY8gWeqfLUyEF4b7mYWcYoR2Si1VhnrbM4JizRFmfGaAQ12PhNykq6nvI4XvKLrsp8Xde74D5phJOSw==
2514+
version "1.0.30001737"
2515+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001737.tgz#8292bb7591932ff09e9a765f12fdf5629a241ccc"
2516+
integrity sha512-BiloLiXtQNrY5UyF0+1nSJLXUENuhka2pzy2Fx5pGxqavdrxSCW4U6Pn/PoG3Efspi2frRbHpBV2XsrPE6EDlw==
24992517

25002518
chalk@^2.4.1:
25012519
version "2.4.2"
@@ -2965,9 +2983,9 @@ dunder-proto@^1.0.0, dunder-proto@^1.0.1:
29652983
gopd "^1.2.0"
29662984

29672985
electron-to-chromium@^1.5.204:
2968-
version "1.5.207"
2969-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.207.tgz#0fedde3eec615065ee95531c09a10578644c5552"
2970-
integrity sha512-mryFrrL/GXDTmAtIVMVf+eIXM09BBPlO5IQ7lUyKmK8d+A4VpRGG+M3ofoVef6qyF8s60rJei8ymlJxjUA8Faw==
2986+
version "1.5.208"
2987+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.208.tgz#609c29502fd7257b4d721e3446f3ae391a0ca1b3"
2988+
integrity sha512-ozZyibehoe7tOhNaf16lKmljVf+3npZcJIEbJRVftVsmAg5TeA1mGS9dVCZzOwr2xT7xK15V0p7+GZqSPgkuPg==
29712989

29722990
emittery@^0.13.1:
29732991
version "0.13.1"
@@ -3411,17 +3429,17 @@ eslint@^8.37.0:
34113429
text-table "^0.2.0"
34123430

34133431
eslint@^9.31.0:
3414-
version "9.33.0"
3415-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.33.0.tgz#cc186b3d9eb0e914539953d6a178a5b413997b73"
3416-
integrity sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==
3432+
version "9.34.0"
3433+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.34.0.tgz#0ea1f2c1b5d1671db8f01aa6b8ce722302016f7b"
3434+
integrity sha512-RNCHRX5EwdrESy3Jc9o8ie8Bog+PeYvvSR8sDGoZxNFTvZ4dlxUB3WzQ3bQMztFrSRODGrLLj8g6OFuGY/aiQg==
34173435
dependencies:
34183436
"@eslint-community/eslint-utils" "^4.2.0"
34193437
"@eslint-community/regexpp" "^4.12.1"
34203438
"@eslint/config-array" "^0.21.0"
34213439
"@eslint/config-helpers" "^0.3.1"
34223440
"@eslint/core" "^0.15.2"
34233441
"@eslint/eslintrc" "^3.3.1"
3424-
"@eslint/js" "9.33.0"
3442+
"@eslint/js" "9.34.0"
34253443
"@eslint/plugin-kit" "^0.3.5"
34263444
"@humanfs/node" "^0.16.6"
34273445
"@humanwhocodes/module-importer" "^1.0.1"
@@ -5072,11 +5090,11 @@ magic-string@^0.27.0:
50725090
"@jridgewell/sourcemap-codec" "^1.4.13"
50735091

50745092
magic-string@^0.30.2, magic-string@^0.30.3:
5075-
version "0.30.17"
5076-
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.17.tgz#450a449673d2460e5bbcfba9a61916a1714c7453"
5077-
integrity sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==
5093+
version "0.30.18"
5094+
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.18.tgz#905bfbbc6aa5692703a93db26a9edcaa0007d2bb"
5095+
integrity sha512-yi8swmWbO17qHhwIBNeeZxTceJMeBvWJaId6dyvTSOwTipqeHhMhOrz6513r1sOKnpvQ7zkhlG8tPrpilwTxHQ==
50785096
dependencies:
5079-
"@jridgewell/sourcemap-codec" "^1.5.0"
5097+
"@jridgewell/sourcemap-codec" "^1.5.5"
50805098

50815099
make-dir@^3.0.2:
50825100
version "3.1.0"

0 commit comments

Comments
 (0)