@k8ordo/form 1.0.0 → 1.1.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.
- package/README.md +1 -1
- package/dist/parse/paths.d.mts +2 -1
- package/dist/paths.d.mts +2 -1
- package/dist/rules/rules.d.mts +2 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ pnpm add @k8ordo/form zod
|
|
|
28
28
|
| -------------- | ------- | -------- | ----------------------------- |
|
|
29
29
|
| `react` | ≥19.3.0 | yes | `useForm` and Server Actions |
|
|
30
30
|
| `react-dom` | ≥19.3.0 | yes | rendering |
|
|
31
|
-
| `zod` | ^4.
|
|
31
|
+
| `zod` | ^4.6.6 | yes | the schema (`zod/mini` works) |
|
|
32
32
|
| `typescript` | ≥7.0.0 | optional | the shipped type declarations |
|
|
33
33
|
| `@types/react` | ≥19.3.0 | optional | the shipped type declarations |
|
|
34
34
|
|
package/dist/parse/paths.d.mts
CHANGED
|
@@ -16,4 +16,5 @@ export declare const stepsOf: (name: string) => Step[];
|
|
|
16
16
|
export declare const setPath: (root: Record<string, unknown>, name: string, value: unknown) => void;
|
|
17
17
|
/** Turn a zod issue path into the `name` of the input that produced it. */
|
|
18
18
|
export declare const nameOf: (path: readonly PropertyKey[]) => string;
|
|
19
|
-
//#endregion
|
|
19
|
+
//#endregion
|
|
20
|
+
export {};
|
package/dist/paths.d.mts
CHANGED
|
@@ -82,4 +82,5 @@ type EncodesTrueAsString<Schema> = Schema extends {
|
|
|
82
82
|
export type StringCheckboxPathsOf<Schema, Prefix extends string = ''> = Unwrap<Schema> extends (infer Bare) ? Bare extends {
|
|
83
83
|
shape: infer Shape;
|
|
84
84
|
} ? { [Key in keyof Shape & string]: StringCheckboxPathsOf<Shape[Key], Join<Prefix, Key>>; }[keyof Shape & string] : Prefix extends '' ? never : EncodesTrueAsString<Bare> extends true ? Prefix : never : never;
|
|
85
|
-
//#endregion
|
|
85
|
+
//#endregion
|
|
86
|
+
export {};
|
package/dist/rules/rules.d.mts
CHANGED
|
@@ -53,4 +53,5 @@ export declare const requiredWhen: <Field extends string>(field: Field, when: Fi
|
|
|
53
53
|
export declare const deriveRule: (rule: Rule) => DerivedRule;
|
|
54
54
|
/** The message when the rule is broken, or undefined when it holds. */
|
|
55
55
|
export declare const breachOf: (rule: Rule, values: Values) => string | undefined;
|
|
56
|
-
//#endregion
|
|
56
|
+
//#endregion
|
|
57
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k8ordo/form",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Derive HTML constraint attributes and per-field errors from one zod schema. Works without JavaScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"constraint-validation",
|
|
@@ -43,26 +43,26 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@arethetypeswrong/cli": "0.18.5",
|
|
46
|
-
"@k8ordo/state": "^1.
|
|
46
|
+
"@k8ordo/state": "^1.1.0",
|
|
47
47
|
"@types/react": "19.3.0",
|
|
48
48
|
"@vitejs/plugin-react": "6.1.2",
|
|
49
|
-
"@vitest/browser-playwright": "5.0.
|
|
49
|
+
"@vitest/browser-playwright": "5.0.5",
|
|
50
50
|
"publint": "0.3.25",
|
|
51
|
-
"react": "19.3.
|
|
52
|
-
"react-dom": "19.3.
|
|
51
|
+
"react": "19.3.1",
|
|
52
|
+
"react-dom": "19.3.1",
|
|
53
53
|
"typescript": "7.0.2",
|
|
54
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@1.
|
|
55
|
-
"vite-plus": "1.
|
|
56
|
-
"vitest": "5.0.
|
|
54
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.3.0",
|
|
55
|
+
"vite-plus": "1.3.0",
|
|
56
|
+
"vitest": "5.0.5",
|
|
57
57
|
"vitest-browser-react": "2.3.0",
|
|
58
|
-
"zod": "4.6.
|
|
58
|
+
"zod": "4.6.6"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@types/react": ">=19.3.0",
|
|
62
62
|
"react": ">=19.3.0",
|
|
63
63
|
"react-dom": ">=19.3.0",
|
|
64
64
|
"typescript": ">=7.0.0",
|
|
65
|
-
"zod": "^4.
|
|
65
|
+
"zod": "^4.6.6"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@types/react": {
|