react-hook-form 7.52.2 → 7.53.0

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 +1 @@
1
- {"version":3,"file":"createFormControl.d.ts","sourceRoot":"","sources":["../../src/logic/createFormControl.ts"],"names":[],"mappings":"AACA,OAAO,EAaL,WAAW,EAgBX,YAAY,EAIZ,aAAa,EASd,MAAM,UAAU,CAAC;AAkDlB,wBAAgB,iBAAiB,CAC/B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,QAAQ,GAAG,GAAG,EAEd,KAAK,GAAE,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAM,GAC/C,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,CA8zC1D"}
1
+ {"version":3,"file":"createFormControl.d.ts","sourceRoot":"","sources":["../../src/logic/createFormControl.ts"],"names":[],"mappings":"AACA,OAAO,EAaL,WAAW,EAgBX,YAAY,EAIZ,aAAa,EASd,MAAM,UAAU,CAAC;AAmDlB,wBAAgB,iBAAiB,CAC/B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,QAAQ,GAAG,GAAG,EAEd,KAAK,GAAE,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAM,GAC/C,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,CAm1C1D"}
@@ -0,0 +1,4 @@
1
+ import { Field } from '../types';
2
+ declare const _default: (fieldReference: Field["_f"]) => boolean;
3
+ export default _default;
4
+ //# sourceMappingURL=hasPromiseValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasPromiseValidation.d.ts","sourceRoot":"","sources":["../../src/logic/hasPromiseValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAY,MAAM,UAAU,CAAC;yCAMX,KAAK,CAAC,IAAI,CAAC;AAA3C,wBAUI"}
@@ -1,4 +1,4 @@
1
1
  import { FieldRefs, InternalFieldName, Ref } from '../types';
2
- declare const iterateFieldsByAction: (fields: FieldRefs, action: (ref: Ref, name: string) => 1 | undefined | void, fieldsNames?: Set<InternalFieldName> | InternalFieldName[] | 0, abortEarly?: boolean) => void;
2
+ declare const iterateFieldsByAction: (fields: FieldRefs, action: (ref: Ref, name: string) => 1 | undefined | void, fieldsNames?: Set<InternalFieldName> | InternalFieldName[] | 0, abortEarly?: boolean) => true | undefined;
3
3
  export default iterateFieldsByAction;
4
4
  //# sourceMappingURL=iterateFieldsByAction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"iterateFieldsByAction.d.ts","sourceRoot":"","sources":["../../src/logic/iterateFieldsByAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI7D,QAAA,MAAM,qBAAqB,WACjB,SAAS,UACT,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,GAAG,IAAI,gBAC1C,GAAG,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,EAAE,GAAG,CAAC,eACjD,OAAO,SAqBrB,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"iterateFieldsByAction.d.ts","sourceRoot":"","sources":["../../src/logic/iterateFieldsByAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI7D,QAAA,MAAM,qBAAqB,WACjB,SAAS,UACT,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,GAAG,IAAI,gBAC1C,GAAG,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,EAAE,GAAG,CAAC,eACjD,OAAO,qBA0BrB,CAAC;AACF,eAAe,qBAAqB,CAAC"}
@@ -214,8 +214,8 @@ export type NumericKeys<T extends Traversable> = UnionToIntersection<T extends R
214
214
  * @typeParam T - object type
215
215
  * @example
216
216
  * ```
217
- * ObjectKeys<{foo: string, bar: string}, string> = 'foo' | 'bar'
218
- * ObjectKeys<{foo: string, bar: number}, string> = 'foo'
217
+ * ObjectKeys<{foo: string, bar: string}> = 'foo' | 'bar'
218
+ * ObjectKeys<{foo: string, bar: number} | { foo: string }> = 'foo'
219
219
  * ```
220
220
  */
221
221
  export type ObjectKeys<T extends Traversable> = Exclude<ToKey<keyof T>, `${string}.${string}` | ''>;
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.52.2",
4
+ "version": "7.53.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.mjs",
7
7
  "umd:main": "dist/index.umd.js",