From 8fd41316832801d3007dff1a7bd8a472e1e91783 Mon Sep 17 00:00:00 2001 From: unadlib Date: Wed, 11 Dec 2024 23:02:53 +0800 Subject: [PATCH] fix(react): upgrade use-mutative to v1.2.0 and support react19 --- package.json | 6 +++--- yarn.lock | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 2bf1b8c..f60ccd4 100644 --- a/package.json +++ b/package.json @@ -91,11 +91,11 @@ } }, "peerDependencies": { - "@types/react": "^18.0 || ^17.0", + "@types/react": "^17.0 || ^18.0 || ^19.0", "mutative": "^1.0", - "react": "^18.0 || ^17.0" + "react": "^17.0 || ^18.0 || ^19.0" }, "dependencies": { - "use-mutative": "^1.1.8" + "use-mutative": "^1.2.0" } } diff --git a/yarn.lock b/yarn.lock index 49675cd..259cc23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5483,10 +5483,10 @@ url-parse@^1.5.3: querystringify "^2.1.1" requires-port "^1.0.0" -use-mutative@^1.1.8: - version "1.1.8" - resolved "https://registry.yarnpkg.com/use-mutative/-/use-mutative-1.1.8.tgz#ffeb8feff652c344d3258fa0e22b736f8618bca1" - integrity sha512-kkgZN0E0xkE/YilwNixjzrY3dI/xSPKmleKyBO+G5AI3uQa5cXYhJnwe7vFkG7gP5pyM9JGIwMgoAZ0Pps9UxQ== +use-mutative@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/use-mutative/-/use-mutative-1.2.0.tgz#260fdaace917ab01789b5c3a9a32e526dc33e8da" + integrity sha512-pckbyvPjiL8+5zSx+YRzQjdJ+LAkX1k0zjStR5HRLJr1sWN29Iich2+fHa5TmlYjycE7sYU87TqqoMkiosr/2g== util-deprecate@^1.0.1: version "1.0.2"