@pdg/react-hook 1.0.43 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/change/index.d.ts +1 -0
- package/dist/change/useChange.d.ts +1 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.esm.js +432 -269
- package/dist/index.js +432 -269
- package/dist/ref/index.d.ts +0 -1
- package/package.json +12 -5
- package/dist/effect/index.d.ts +0 -2
- package/dist/effect/useFirstSkipEffect.d.ts +0 -2
- package/dist/effect/useFirstSkipLayoutEffect.d.ts +0 -2
- package/dist/forceUpdate/index.d.ts +0 -2
- package/dist/forceUpdate/useAutoForceUpdate.d.ts +0 -1
- package/dist/forceUpdate/useForceUpdate.d.ts +0 -1
- package/dist/forwardRef/index.d.ts +0 -2
- package/dist/forwardRef/useForwardLayoutRef.d.ts +0 -2
- package/dist/forwardRef/useForwardRef.d.ts +0 -2
- package/dist/performance/index.d.ts +0 -2
- package/dist/performance/useLayoutPerformance.d.ts +0 -1
- package/dist/performance/usePerformance.d.ts +0 -1
- package/dist/ref/useAutoUpdateLayoutRef.d.ts +0 -2
package/dist/ref/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@pdg/react-hook",
|
|
3
3
|
"title": "Typescript React Hook Module",
|
|
4
4
|
"description": "Typescript React Hook Module",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.0.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.esm.js",
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
"git:commit:push": "npm run git:commit && npm run git:push",
|
|
38
38
|
"git:merge:mirror": "node .git-merge.cjs mirror main",
|
|
39
39
|
"reset:gitignore": "git rm -r --cached . && git add .",
|
|
40
|
-
"pub": "npm i && npm run build:examples && npm run build && npm publish --access=public && rm ./.git/hooks/pre-commit",
|
|
40
|
+
"pub": "npm i && npm run build:examples && npm run build && npm publish --access=public && [ -f ./.git/hooks/pre-commit ] && rm ./.git/hooks/pre-commit || true",
|
|
41
41
|
"lint": "eslint './src/**/*.{ts,tsx}'",
|
|
42
|
+
"tsc": "tsc --noEmit",
|
|
42
43
|
"reinstall": "npm run reinstall:module",
|
|
43
44
|
"reinstall:module": "rm -rf node_modules && rm -f package-lock.json && npm i"
|
|
44
45
|
},
|
|
@@ -51,24 +52,30 @@
|
|
|
51
52
|
"javascript"
|
|
52
53
|
],
|
|
53
54
|
"peerDependencies": {
|
|
54
|
-
"react": ">=
|
|
55
|
-
"react-dom": ">=
|
|
55
|
+
"react": ">=19.0.0",
|
|
56
|
+
"react-dom": ">=19.0.0"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
59
|
"@pdg/types": "^1.0.9"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
62
|
+
"@babel/core": "^7.28.5",
|
|
63
|
+
"@babel/preset-env": "^7.28.5",
|
|
64
|
+
"@babel/preset-react": "^7.28.5",
|
|
65
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
61
66
|
"@eslint/js": "9.39.1",
|
|
67
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
62
68
|
"@rollup/plugin-commonjs": "29.0.0",
|
|
63
69
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
64
70
|
"@types/node": "^22.19.2",
|
|
65
71
|
"@types/react": "19.2.7",
|
|
66
72
|
"@typescript-eslint/parser": "8.49.0",
|
|
73
|
+
"babel-plugin-react-compiler": "1.0.0",
|
|
67
74
|
"eslint": "9.39.1",
|
|
68
75
|
"eslint-config-prettier": "10.1.8",
|
|
69
76
|
"eslint-plugin-prettier": "5.5.4",
|
|
70
77
|
"eslint-plugin-react": "7.37.5",
|
|
71
|
-
"eslint-plugin-react-hooks": "
|
|
78
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
72
79
|
"eslint-plugin-react-refresh": "0.4.24",
|
|
73
80
|
"globals": "^16.5.0",
|
|
74
81
|
"prettier": "3.7.4",
|
package/dist/effect/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useAutoForceUpdate(interval: number): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useForceUpdate(delayMilliseconds?: number): (delay?: number) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useLayoutPerformance(name: string): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function usePerformance(name: string): void;
|