@sjsf/zod-validator 1.7.0 → 1.9.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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -14,7 +14,7 @@ npm install @sjsf/zod-validator zod zod-to-json-schema json-schema-to-zod
14
14
  ## Usage
15
15
 
16
16
  ```typescript
17
- import { useForm2, type Schema } from '@sjsf/form'
17
+ import { createForm3, type Schema } from '@sjsf/form'
18
18
  import { createValidator } from "@sjsf/zod-validator";
19
19
  import { zodToJsonSchema } from "zod-to-json-schema";
20
20
  import { z } from "zod";
@@ -27,7 +27,7 @@ const validator = createValidator({
27
27
  schema,
28
28
  });
29
29
 
30
- const form = useForm2({
30
+ const form = createForm3({
31
31
  schema: zodToJsonSchema(schema) as Schema,
32
32
  validator
33
33
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjsf/zod-validator",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "The zod based validator for svelte-jsonschema-form",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -37,14 +37,14 @@
37
37
  }
38
38
  },
39
39
  "peerDependencies": {
40
- "@sjsf/form": "^1.7.0",
40
+ "@sjsf/form": "^1.9.0",
41
41
  "zod": "^3.23.0",
42
42
  "json-schema-to-zod": "^2.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "zod": "^3.23.8",
46
- "json-schema-to-zod": "^2.4.1",
47
- "@sjsf/form": "1.7.0"
45
+ "zod": "^3.24.1",
46
+ "json-schema-to-zod": "^2.6.0",
47
+ "@sjsf/form": "1.9.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsc && publint",