Skip to content

Commit

Permalink
chore: use non-deprecated valibot output instead of data
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Jan 28, 2024
1 parent 9eda544 commit 998ca37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-bags-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vee-validate/valibot": patch
---

"chore: use non-deprecated output property"
4 changes: 2 additions & 2 deletions packages/valibot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function toTypedSchema<
const result = await safeParseAsync(valibotSchema, value);
if (result.success) {
return {
value: result.data,
value: result.output,
errors: [],
};
}
Expand All @@ -45,7 +45,7 @@ export function toTypedSchema<

const result = safeParse(valibotSchema, values);
if (result.success) {
return result.data;
return result.output;
}

const defaults = getDefault(optional(valibotSchema));
Expand Down

0 comments on commit 998ca37

Please sign in to comment.