Skip to content

Commit 04ff47c

Browse files
authored
feat: Implement standard schemas (#5051)
* chore: added standard schema spec dep * feat: implement standard schema support * chore: added changeset * feat: bring yup to the fold * feat: update docs * docs: added migration guide * feat: kill old packages * chore: update lock * chore: update build scripts * fix: remove typed schema option * feat: package stuff * docs: update best practices * fix: note on schema behavior * chore: entered pre mode * chore: update changeset
1 parent e1daa52 commit 04ff47c

File tree

90 files changed

+4395
-8712
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+4395
-8712
lines changed

.changeset/config.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,7 @@
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": "@changesets/cli/changelog",
44
"commit": false,
5-
"fixed": [
6-
[
7-
"vee-validate",
8-
"@vee-validate/rules",
9-
"@vee-validate/i18n",
10-
"@vee-validate/rules",
11-
"@vee-validate/zod",
12-
"@vee-validate/yup",
13-
"@vee-validate/valibot",
14-
"@vee-validate/nuxt",
15-
"@vee-validate/joi"
16-
]
17-
],
5+
"fixed": [["vee-validate", "@vee-validate/i18n", "@vee-validate/rules", "@vee-validate/nuxt"]],
186
"linked": [],
197
"access": "public",
208
"baseBranch": "main",

.changeset/pre.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"mode": "pre",
3+
"tag": "beta",
4+
"initialVersions": {
5+
"vee-validate-docs": null,
6+
"@vee-validate/i18n": "4.15.1",
7+
"@vee-validate/nuxt": "4.15.1",
8+
"@vee-validate/rules": "4.15.1",
9+
"vee-validate": "4.15.1"
10+
},
11+
"changesets": []
12+
}

.changeset/smart-needles-own.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'vee-validate': major
3+
'@vee-validate/rules': major
4+
'@vee-validate/nuxt': major
5+
'@vee-validate/i18n': major
6+
---
7+
8+
feat: implement standard schema

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Painless Vue forms
1818
<img src="https://img.shields.io/npm/dm/vee-validate.svg?color=05bd6d&label=">
1919
</a>
2020

21-
<a href="https://vee-validate.logaretm.com/v4/" target="_blank">
21+
<a href="https://vee-validate.logaretm.com/v5/" target="_blank">
2222
<img src="https://img.shields.io/badge/-docs%20and%20demos-009f53">
2323
</a>
2424

@@ -117,7 +117,7 @@ const onSubmit = handleSubmit(values => {
117117
</template>
118118
```
119119

120-
You can do so much more than this, for more info [check the composition API documentation](https://vee-validate.logaretm.com/v4/guide/composition-api/getting-started/).
120+
You can do so much more than this, for more info [check the composition API documentation](https://vee-validate.logaretm.com/v5/guide/composition-api/getting-started/).
121121

122122
#### Declarative Components
123123

@@ -150,7 +150,7 @@ function onSubmit(values) {
150150
</template>
151151
```
152152

153-
The `Field` component renders an `input` of type `text` by default but you can [control that](https://vee-validate.logaretm.com/v4/api/field#rendering-fields)
153+
The `Field` component renders an `input` of type `text` by default but you can [control that](https://vee-validate.logaretm.com/v5/api/field#rendering-fields)
154154

155155
## 📚 Documentation
156156

docs/_redirects

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# redirects old component api paths to new one
2-
/guide/validation /v4/guide/components/validation
3-
/guide/handling-forms /v4/guide/components/handling-forms
4-
/guide/nested-objects-and-arrays /v4/guide/components/nested-objects-and-arrays
5-
/tutorials/best-practices /v4/guide/best-practices
2+
/guide/validation /v5/guide/components/validation
3+
/guide/handling-forms /v5/guide/components/handling-forms
4+
/guide/nested-objects-and-arrays /v5/guide/components/nested-objects-and-arrays
65

7-
/v4/guide/composition/validation /v4/guide/composition/getting-started
6+
/v5/guide/composition/validation /v5/guide/composition/getting-started

docs/astro.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import partytown from '@astrojs/partytown';
1313
export default defineConfig({
1414
site: process.env.NODE_ENV === 'production' ? 'https://vee-validate.logaretm.com/' : 'http://localhost:4321/',
1515
trailingSlash: 'always',
16-
base: '/v4',
16+
base: '/v5',
1717
vite: {
1818
ssr: {
1919
noExternal: ['@vue/repl'],
@@ -23,7 +23,7 @@ export default defineConfig({
2323
vue(),
2424
sitemap(),
2525
mdx({
26-
remarkPlugins: [baseLink('/v4'), highlight, remarkGfm],
26+
remarkPlugins: [baseLink('/v5'), highlight, remarkGfm],
2727
}),
2828
svgSprite,
2929
partytown({

docs/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
"@stackblitz/sdk": "^1.9.0",
1818
"@types/fs-extra": "^11.0.4",
1919
"@types/lodash-es": "^4.17.12",
20-
"@vee-validate/valibot": "workspace:*",
21-
"@vee-validate/yup": "workspace:*",
22-
"@vee-validate/zod": "workspace:*",
2320
"@vue/repl": "^3.0.0",
2421
"@vueuse/core": "^10.7.0",
2522
"astro": "^3.6.4",

docs/src/components/DocFlavor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p class="mt-4">Before you go on, you should choose which flavor of vee-validate you want to use.</p>
55

66
<div class="mt-8 grid grid-cols-1 lg:grid-cols-2 gap-x-8 gap-y-8 text-white">
7-
<a :href="`/v4/guide/components/${next}/`" class="bg-gray-600 hover:bg-accent-900 p-6 rounded-lg relative">
7+
<a :href="`/v5/guide/components/${next}/`" class="bg-gray-600 hover:bg-accent-900 p-6 rounded-lg relative">
88
<p class="text-xl font-semibold font-display">Components</p>
99
<p class="mt-8">Simple, high-level, dynamic template-based higher-order components.</p>
1010
<p class="mt-4">Great for simple UI components and native HTML elements with custom styling.</p>
@@ -25,7 +25,7 @@
2525
</svg>
2626
</a>
2727

28-
<a :href="`/v4/guide/composition-api/${next}/`" class="bg-gray-600 hover:bg-accent-900 p-6 rounded-lg relative">
28+
<a :href="`/v5/guide/composition-api/${next}/`" class="bg-gray-600 hover:bg-accent-900 p-6 rounded-lg relative">
2929
<p class="text-xl font-semibold font-display">Composition API</p>
3030
<p class="mt-8">Low level, intuitive composition API functions.</p>
3131
<p class="mt-4">Great for building complex UI form components and general purpose data validation.</p>

docs/src/components/Icon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ const props = defineProps<{
99
name: string;
1010
}>();
1111
12-
const basePath = import.meta.env.DEV ? '' : '/v4/sprite.svg';
12+
const basePath = import.meta.env.DEV ? '' : '/v5/sprite.svg';
1313
</script>

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

0 commit comments

Comments
 (0)