react-hook-form 7.21.1 → 7.22.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/CHANGELOG.md +29 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.mjs +7 -7
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/logic/mapCurrentIds.d.ts +1 -1
- package/dist/types/controller.d.ts +1 -1
- package/dist/types/form.d.ts +1 -1
- package/package.json +16 -16
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import React from 'react';
|
2
2
|
import { RegisterOptions } from './validator';
|
3
3
|
import { Control, FieldError, FieldPath, FieldPathValue, FieldValues, Noop, RefCallBack, UnpackNestedValue, UseFormStateReturn } from './';
|
4
4
|
export declare type ControllerFieldState = {
|
package/dist/types/form.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-hook-form",
|
3
3
|
"description": "Performant, flexible and extensible forms library for React Hooks",
|
4
|
-
"version": "7.
|
4
|
+
"version": "7.22.1",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.mjs",
|
7
7
|
"umd:main": "dist/index.umd.js",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"clean": "rimraf dist",
|
27
27
|
"prebuild": "yarn clean",
|
28
28
|
"build": "yarn build:modern",
|
29
|
-
"postbuild": "rimraf dist/__tests__; node ./scripts/rollup/assert-esm-exports.mjs",
|
29
|
+
"postbuild": "rimraf dist/__tests__; node ./scripts/rollup/assert-esm-exports.mjs && node ./scripts/rollup/assert-cjs-exports.cjs",
|
30
30
|
"build:modern": "rollup -c ./scripts/rollup/rollup.config.js",
|
31
31
|
"build:esm": "rollup -c ./scripts/rollup/rollup.esm.config.js",
|
32
32
|
"prettier:fix": "prettier --config .prettierrc --write \"**/*.{ts,tsx}\"",
|
@@ -67,20 +67,20 @@
|
|
67
67
|
"devDependencies": {
|
68
68
|
"@rollup/plugin-commonjs": "^21.0.1",
|
69
69
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
70
|
-
"@testing-library/jest-dom": "^5.
|
70
|
+
"@testing-library/jest-dom": "^5.16.1",
|
71
71
|
"@testing-library/react": "^12.1.2",
|
72
72
|
"@testing-library/react-hooks": "^7.0.2",
|
73
|
-
"@testing-library/react-native": "^
|
73
|
+
"@testing-library/react-native": "^9.0.0",
|
74
74
|
"@types/jest": "^27.0.3",
|
75
75
|
"@types/react": "^17.0.37",
|
76
|
-
"@types/react-native": "^0.66.
|
77
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
78
|
-
"@typescript-eslint/parser": "^5.
|
76
|
+
"@types/react-native": "^0.66.8",
|
77
|
+
"@typescript-eslint/eslint-plugin": "^5.6.0",
|
78
|
+
"@typescript-eslint/parser": "^5.6.0",
|
79
79
|
"@vitejs/plugin-react-refresh": "^1.3.6",
|
80
|
-
"babel-jest": "^27.4.
|
80
|
+
"babel-jest": "^27.4.4",
|
81
81
|
"bundlesize": "^0.18.0",
|
82
|
-
"cypress": "9.1.
|
83
|
-
"eslint": "^8.
|
82
|
+
"cypress": "9.1.1",
|
83
|
+
"eslint": "^8.4.1",
|
84
84
|
"eslint-config-prettier": "^8.3.0",
|
85
85
|
"eslint-plugin-cypress": "^2.12.1",
|
86
86
|
"eslint-plugin-prettier": "^4.0.0",
|
@@ -88,21 +88,21 @@
|
|
88
88
|
"eslint-plugin-react-hooks": "^4.3.0",
|
89
89
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
90
90
|
"husky": "^7.0.4",
|
91
|
-
"jest": "^27.4.
|
91
|
+
"jest": "^27.4.4",
|
92
92
|
"lint-staged": "^12.1.2",
|
93
|
-
"prettier": "^2.5.
|
93
|
+
"prettier": "^2.5.1",
|
94
94
|
"react": "^17.0.1",
|
95
95
|
"react-dom": "^17.0.1",
|
96
|
-
"react-native": "^0.66.
|
96
|
+
"react-native": "^0.66.4",
|
97
97
|
"react-test-renderer": "^17.0.1",
|
98
98
|
"rimraf": "^3.0.2",
|
99
|
-
"rollup": "^2.
|
99
|
+
"rollup": "^2.61.1",
|
100
100
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
101
101
|
"rollup-plugin-sourcemaps": "^0.6.2",
|
102
102
|
"rollup-plugin-terser": "^7.0.2",
|
103
103
|
"rollup-plugin-typescript2": "^0.31.1",
|
104
|
-
"ts-jest": "^27.
|
105
|
-
"typescript": "^4.5.
|
104
|
+
"ts-jest": "^27.1.1",
|
105
|
+
"typescript": "^4.5.3"
|
106
106
|
},
|
107
107
|
"resolutions": {
|
108
108
|
"react-native/@jest/create-cache-key-function": "^27.0.2"
|