react-hook-form 7.20.1 → 7.20.5

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.
@@ -1,2 +1,3 @@
1
1
  import { FieldValues, Names } from '../types';
2
- export declare function generateWatchOutput(names: string | string[] | undefined, _names: Names, formValues?: FieldValues, isGlobal?: boolean): any;
2
+ declare const _default: (names: string | string[] | undefined, _names: Names, formValues?: FieldValues | undefined, isGlobal?: boolean | undefined) => any;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: <T>(defaultValues: T, formValues: T) => any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: <T>(data: T) => boolean;
2
+ export default _default;
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.1",
5
- "type": "module",
4
+ "version": "7.20.5",
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.cjs",
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": ">=14.16"
138
+ "node": ">=12.0"
140
139
  }
141
140
  }
@@ -1,2 +0,0 @@
1
- declare const _default: <T extends U, U extends Record<string, unknown>[]>(values: T, defaultValues: U, dirtyFields: Record<string, boolean | []>[]) => Record<string, boolean | []>[];
2
- export default _default;