Skip to content

Commit 68edc28

Browse files
committed
feat: package stuff
1 parent 03fc7b0 commit 68edc28

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

docs/src/components/MdxRepl.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="my-8 h-[500px] relative">
2+
<div class="my-8 relative">
33
<Suspense v-if="editor">
44
<Repl :editor="editor" :files="files" />
55

docs/src/pages/guide/migration.mdx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@ vee-validate v5 is a major release yet it does not introduce any breaking change
1111

1212
This means most of the companion packages like `@vee-validate/zod`, `@vee-validate/yup`, `@vee-validate/valibot` are no longer needed and are now deprecated.
1313

14-
The only needed step is to remove all calls to `toTypedSchema` and replace them with the standard schema library of your choice.
14+
## Changes to Nuxt Module
15+
16+
The nuxt module won't suggest installing any packages anymore since most providers that were supported in v4 are now supported in v5 via standard schema API.
17+
18+
## Replace Typed Schema calls
19+
20+
Typed schemas were a way for vee-validate v4 to support a common interface for multiple validation providers. However, there is a community driven package called [standard schema](https://standardschema.dev/) that provides a common interface for multiple validation providers that is becoming very popular and is already supported by the most popular validation providers.
1521

16-
## Replace `toTypedSchema` schema calls
22+
So in v5 we now introduced support for standard schema libraries, which means you can use any of the most popular validation providers with vee-validate v5 without installing any resolvers or adapter packages. This includes almost all the previous providers like zod, yup, and valibot.
23+
24+
The only needed step is to remove all calls to `toTypedSchema` and replace them with the standard schema library of your choice.
1725

1826
### Zod
1927

@@ -72,7 +80,3 @@ const { value, errorMessage } = useForm({ validationSchema: schema });
7280
### Joi
7381

7482
Joi is no longer supported in vee-validate v5, you can create a custom adapter using the `@standard-schema/spec` for it or ask their maintainers to add support for standard schema.
75-
76-
### Changes to Nuxt Module
77-
78-
The nuxt module won't suggest installing any packages anymore since most providers that were supported in v4 are now supported in v5 via standard schema API.

0 commit comments

Comments
 (0)