diff --git a/package.json b/package.json index da4f740..8e2f14e 100644 --- a/package.json +++ b/package.json @@ -35,20 +35,22 @@ "tsc": "tsc --noEmit" }, "dependencies": { - "@rc-component/util": "^1.3.0" + "@rc-component/util": "^1.11.0" }, "devDependencies": { - "@rc-component/father-plugin": "^2.0.2", + "@rc-component/father-plugin": "^2.2.0", "@rc-component/np": "^1.0.4", "@types/jest": "^29.5.0", "@types/node": "^24.5.2", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@types/warning": "^3.0.0", + "@typescript-eslint/eslint-plugin": "^5.62.0", + "@typescript-eslint/parser": "^5.62.0", "@umijs/fabric": "^4.0.0", "dumi": "^2.0.15", "eslint": "^8.54.0", - "eslint-plugin-jest": "^28.2.0", + "eslint-plugin-jest": "^27.9.0", "eslint-plugin-unicorn": "^52.0.0", "father": "^4.0.0", "rc-test": "^7.0.14", @@ -57,7 +59,7 @@ "typescript": "^5.0.2" }, "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" + "react": ">=18.0.0", + "react-dom": ">=18.0.0" } } diff --git a/src/Immutable.tsx b/src/Immutable.tsx index 67a3b2d..4a70674 100644 --- a/src/Immutable.tsx +++ b/src/Immutable.tsx @@ -1,4 +1,4 @@ -import { supportRef } from '@rc-component/util/lib/ref'; +import { supportRef } from '@rc-component/util'; import * as React from 'react'; export type CompareProps> = ( diff --git a/src/context.tsx b/src/context.tsx index 3e2285e..c8ddcca 100644 --- a/src/context.tsx +++ b/src/context.tsx @@ -1,6 +1,4 @@ -import useEvent from '@rc-component/util/lib/hooks/useEvent'; -import useLayoutEffect from '@rc-component/util/lib/hooks/useLayoutEffect'; -import isEqual from '@rc-component/util/lib/isEqual'; +import { isEqual, useEvent, useLayoutEffect } from '@rc-component/util'; import * as React from 'react'; import { unstable_batchedUpdates } from 'react-dom';