Skip to content

Commit

Permalink
chore: bump valibot to the latest version (#4691)
Browse files Browse the repository at this point in the history
Co-authored-by: Abdelrahman Awad <[email protected]>
  • Loading branch information
remonke and logaretm authored Mar 9, 2024
1 parent ed7cd77 commit 941334f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 85 deletions.
2 changes: 1 addition & 1 deletion packages/valibot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
"dependencies": {
"type-fest": "^4.8.3",
"valibot": "^0.28.1",
"valibot": "^0.30.0",
"vee-validate": "4.12.6"
}
}
12 changes: 6 additions & 6 deletions packages/valibot/tests/valibot.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Ref } from 'vue';
import { useField, useForm } from '@/vee-validate';
import { string, minLength, email as emailV, object, coerce, any, number, withDefault, optional, array } from 'valibot';
import { string, minLength, email as emailV, object, coerce, any, number, optional, array } from 'valibot';
import { toTypedSchema } from '@/valibot';
import { mountWithHoc, flushPromises, setValue } from '../../vee-validate/tests/helpers';

Expand Down Expand Up @@ -229,7 +229,7 @@ describe('valibot', () => {
setup() {
const schema = toTypedSchema(
object({
age: withDefault(number(), 11),
age: optional(number(), 11),
}),
);

Expand Down Expand Up @@ -263,13 +263,13 @@ describe('valibot', () => {
setup() {
const schema = toTypedSchema(
object({
name: withDefault(string(), 'test'),
age: withDefault(number(), 11),
name: optional(string(), 'test'),
age: optional(number(), 11),
unknownKey: optional(string()),
object: withDefault(
object: optional(
object({
nestedKey: optional(string()),
nestedDefault: withDefault(string(), 'nested'),
nestedDefault: optional(string(), 'nested'),
}),
{} as any,
),
Expand Down
107 changes: 29 additions & 78 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 941334f

Please sign in to comment.