Skip to content

Commit abd0983

Browse files
committed
chore: change yup@^1.0.0 to recommended version
1 parent 920f69a commit abd0983

File tree

5 files changed

+59
-117
lines changed

5 files changed

+59
-117
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The following versions are supported:
1515
- 2.7.x
1616
- 2.6.14 + [`@vue/composition-api`](https://www.npmjs.com/package/@vue/composition-api) plugin
1717
- [yup](https://www.npmjs.com/package/yup)
18+
- `^1.0.0`
1819
- `^0.32.11`
19-
- `^1.0.0-beta.4`
2020
- [TypeScript](https://www.npmjs.com/package/typescript)
2121
- `>=4.4.0`
2222

docs/guide/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ yarn add yup vue-yup-form
1616
- Headless form validation: i.e. vue-yup-form does not export UI-related components.
1717
- High version compatibility
1818
- both Vue 2 and 3 are supported (powered by [vue-demi](https://github.com/vueuse/vue-demi))
19-
- yup next (`1.0.0-beta`) is also supported
19+
- compatible with both yup `^1.0.0` and yup `^0.32.11`
2020
- This library is inspired by [`useValidation()` in vue-composable](https://pikax.me/vue-composable/composable/validation/validation.html).
2121

2222
## Code

package-lock.json

Lines changed: 53 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"peerDependencies": {
5656
"vue": "^2.0.0 || >=3.0.0",
57-
"yup": "^0.32.11 || ^1.0.0-beta.4"
57+
"yup": "^1.0.0 || ^0.32.11"
5858
},
5959
"devDependencies": {
6060
"@antfu/ni": "^0.19.0",
@@ -66,6 +66,7 @@
6666
"vitepress": "^1.0.0-alpha.40",
6767
"vitest": "^0.27.2",
6868
"vue": "^3.2.45",
69-
"vue2": "npm:vue@^2.7.14"
69+
"vue2": "npm:vue@^2.7.14",
70+
"yup": "^1.0.0"
7071
}
7172
}

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type ValidateOptions = {
1616

1717
type IfYupVersion1_0_0<Y, N> = keyof yup.Schema extends never
1818
? N // tested with [email protected]
19-
: Y; // tested with [email protected]-beta.4
19+
: Y; // tested with [email protected]
2020

2121
type YupSchema = IfYupVersion1_0_0<yup.Schema, yup.AnySchema>;
2222
export type FieldSchema = YupSchema | (() => YupSchema);

0 commit comments

Comments
 (0)