react-hook-form 7.20.0 → 7.20.4
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 +25 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +80 -79
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/logic/generateWatchOutput.d.ts +2 -1
- package/dist/logic/getDirtyFields.d.ts +2 -0
- package/dist/logic/{getControllerValue.d.ts → getEventValue.d.ts} +0 -0
- package/dist/useWatch.d.ts +1 -1
- package/dist/utils/objectHasFunction.d.ts +2 -0
- package/package.json +3 -4
- package/dist/logic/setFieldArrayDirtyFields.d.ts +0 -2
- package/dist/logic/unsetEmptyArray.d.ts +0 -2
@@ -1,2 +1,3 @@
|
|
1
1
|
import { FieldValues, Names } from '../types';
|
2
|
-
|
2
|
+
declare const _default: (names: string | string[] | undefined, _names: Names, formValues?: FieldValues | undefined, isGlobal?: boolean | undefined) => any;
|
3
|
+
export default _default;
|
File without changes
|
package/dist/useWatch.d.ts
CHANGED
@@ -13,7 +13,7 @@ export declare function useWatch<TFieldValues extends FieldValues = FieldValues,
|
|
13
13
|
exact?: boolean;
|
14
14
|
}): FieldPathValue<TFieldValues, TFieldName>;
|
15
15
|
export declare function useWatch<TFieldValues extends FieldValues = FieldValues, TFieldNames extends readonly FieldPath<TFieldValues>[] = readonly FieldPath<TFieldValues>[]>(props: {
|
16
|
-
name: TFieldNames;
|
16
|
+
name: readonly [...TFieldNames];
|
17
17
|
defaultValue?: UnpackNestedValue<DeepPartialSkipArrayKey<TFieldValues>>;
|
18
18
|
control?: Control<TFieldValues>;
|
19
19
|
disabled?: boolean;
|
package/package.json
CHANGED
@@ -1,8 +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.20.
|
5
|
-
"type": "module",
|
4
|
+
"version": "7.20.4",
|
6
5
|
"main": "dist/index.cjs.js",
|
7
6
|
"module": "dist/index.esm.js",
|
8
7
|
"umd:main": "dist/index.umd.js",
|
@@ -35,7 +34,7 @@
|
|
35
34
|
"lint:fix": "yarn lint -- --fix",
|
36
35
|
"type": "tsc --noEmit",
|
37
36
|
"coverage": "jest --coverage --coverageReporters=text-lcov",
|
38
|
-
"test": "jest --config ./scripts/jest/jest.config.
|
37
|
+
"test": "jest --config ./scripts/jest/jest.config.js",
|
39
38
|
"test:coverage": "yarn test -- --coverage",
|
40
39
|
"test:watch": "yarn test -- --onlyChanged --watch",
|
41
40
|
"test:web": "TEST_ENV=web yarn test",
|
@@ -136,6 +135,6 @@
|
|
136
135
|
"url": "https://opencollective.com/react-hook-form"
|
137
136
|
},
|
138
137
|
"engines": {
|
139
|
-
"node": ">=
|
138
|
+
"node": ">=12.0"
|
140
139
|
}
|
141
140
|
}
|