@octanejs/hook-form 0.1.9 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/hook-form",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -30,19 +30,19 @@
30
30
  ".": "./src/index.ts"
31
31
  },
32
32
  "peerDependencies": {
33
- "octane": "0.1.12"
33
+ "octane": "0.1.13"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@testing-library/jest-dom": "^6.9.1",
37
- "@tsrx/react": "^0.2.44",
37
+ "@tsrx/react": "^0.2.46",
38
38
  "esbuild": "^0.28.1",
39
- "react": "^19.2.0",
40
- "react-dom": "^19.2.0",
39
+ "react": "^19.2.7",
40
+ "react-dom": "^19.2.7",
41
41
  "react-hook-form": "7.81.0",
42
- "vitest": "^4.1.9",
42
+ "vitest": "^4.1.10",
43
43
  "zod": "^3.25.76",
44
- "@octanejs/testing-library": "0.1.9",
45
- "octane": "0.1.12"
44
+ "@octanejs/testing-library": "0.1.10",
45
+ "octane": "0.1.13"
46
46
  },
47
47
  "scripts": {
48
48
  "test": "vitest run"
@@ -36,9 +36,7 @@ export type FieldArray<
36
36
  TFieldArrayName extends FieldArrayPath<TFieldValues> = FieldArrayPath<TFieldValues>,
37
37
  > =
38
38
  FieldArrayPathValue<TFieldValues, TFieldArrayName> extends
39
- | ReadonlyArray<infer U>
40
- | null
41
- | undefined
39
+ ReadonlyArray<infer U> | null | undefined
42
40
  ? U
43
41
  : never;
44
42
 
@@ -25,10 +25,7 @@ export type FieldValues = Record<string, any>;
25
25
  export type NativeFieldValue = string | number | boolean | null | undefined | unknown[];
26
26
 
27
27
  export type FieldElement<TFieldValues extends FieldValues = FieldValues> =
28
- | HTMLInputElement
29
- | HTMLSelectElement
30
- | HTMLTextAreaElement
31
- | CustomElement<TFieldValues>;
28
+ HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | CustomElement<TFieldValues>;
32
29
 
33
30
  export type Ref = FieldElement;
34
31
 
@@ -19,8 +19,7 @@ type AnyIsEqual<T1, T2> = T1 extends T2 ? (IsEqual<T1, T2> extends true ? true :
19
19
  * See {@link Path}
20
20
  */
21
21
  type PathImpl<K extends string | number, V, TraversedTypes> = V extends
22
- | Primitive
23
- | BrowserNativeObject
22
+ Primitive | BrowserNativeObject
24
23
  ? `${K}`
25
24
  : // Check so that we don't recurse into the same type
26
25
  // by ensuring that the types are mutually assignable
@@ -71,8 +70,7 @@ export type FieldPath<TFieldValues extends FieldValues> = Path<TFieldValues>;
71
70
  * See {@link ArrayPath}
72
71
  */
73
72
  type ArrayPathImpl<K extends string | number, V, TraversedTypes> = V extends
74
- | Primitive
75
- | BrowserNativeObject
73
+ Primitive | BrowserNativeObject
76
74
  ? IsAny<V> extends true
77
75
  ? string
78
76
  : never
@@ -9,8 +9,7 @@ import type { FieldPath, FieldPathValue } from './path';
9
9
  export type ValidationValue = boolean | number | string | RegExp;
10
10
 
11
11
  export type ValidationRule<TValidationValue extends ValidationValue = ValidationValue> =
12
- | TValidationValue
13
- | ValidationValueMessage<TValidationValue>;
12
+ TValidationValue | ValidationValueMessage<TValidationValue>;
14
13
 
15
14
  export type ValidationValueMessage<TValidationValue extends ValidationValue = ValidationValue> = {
16
15
  value: TValidationValue;