@formkit/zod 1.1.0 → 1.2.0-5253413

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/dist/index.cjs CHANGED
@@ -155,7 +155,7 @@ function createZodPlugin(zodSchema, submitCallback) {
155
155
  function zodErrorToFormKitErrors(zodError, node) {
156
156
  const fieldErrors = {};
157
157
  const formErrors = [];
158
- zodError.errors.forEach((error) => {
158
+ zodError.issues.forEach((error) => {
159
159
  const path = error.path.join('.');
160
160
  const targetNode = node.at(path);
161
161
  if (targetNode) {
package/dist/index.mjs CHANGED
@@ -153,7 +153,7 @@ function createZodPlugin(zodSchema, submitCallback) {
153
153
  function zodErrorToFormKitErrors(zodError, node) {
154
154
  const fieldErrors = {};
155
155
  const formErrors = [];
156
- zodError.errors.forEach((error) => {
156
+ zodError.issues.forEach((error) => {
157
157
  const path = error.path.join('.');
158
158
  const targetNode = node.at(path);
159
159
  if (targetNode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formkit/zod",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-5253413",
4
4
  "type": "module",
5
5
  "description": "Zod validation for FormKit.",
6
6
  "main": "dist/index.cjs",
@@ -31,10 +31,10 @@
31
31
  ],
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@formkit/core": "1.1.0"
34
+ "@formkit/core": "1.2.0-5253413"
35
35
  },
36
36
  "devDependencies": {
37
- "@formkit/vue": "1.0.0"
37
+ "@formkit/vue": "1.1.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "zod": "^3.0.0"