Skip to content

Commit 220bbe3

Browse files
committed
chore: upgrade dependencies and type fixes
1 parent dd320ea commit 220bbe3

File tree

6 files changed

+1214
-1496
lines changed

6 files changed

+1214
-1496
lines changed

docs/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
"build": "astro build && node scripts/afterBuild.js"
88
},
99
"dependencies": {
10-
"@astrojs/mdx": "^0.18.2",
11-
"@astrojs/sitemap": "^1.2.2",
10+
"@astrojs/mdx": "^0.19.1",
11+
"@astrojs/sitemap": "^1.3.1",
1212
"@astrojs/vue": "^2.1.1",
1313
"@docsearch/css": "^3.3.3",
1414
"@docsearch/js": "^3.3.3",
15-
"@floating-ui/dom": "^1.2.0",
16-
"@stackblitz/sdk": "^1.8.2",
15+
"@floating-ui/dom": "^1.2.8",
16+
"@stackblitz/sdk": "^1.9.0",
1717
"@types/fs-extra": "^11.0.1",
18-
"@vueuse/core": "^9.12.0",
19-
"astro": "^2.2.0",
18+
"@vueuse/core": "^10.1.2",
19+
"astro": "^2.4.5",
2020
"autoprefixer": "^10.4.13",
21-
"fs-extra": "^11.1.0",
22-
"jsdom": "^21.1.0",
21+
"fs-extra": "^11.1.1",
22+
"jsdom": "^22.0.0",
2323
"remark-gfm": "^3.0.1",
24-
"shiki": "^0.14.0",
25-
"tailwindcss": "^3.3.1",
24+
"shiki": "^0.14.2",
25+
"tailwindcss": "^3.3.2",
2626
"unist-util-visit": "^4.1.2",
27-
"vue": "^3.2.47"
27+
"vue": "^3.3.2"
2828
}
2929
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"@commitlint/cli": "^17.6.3",
2525
"@commitlint/config-conventional": "^17.6.3",
2626
"@rollup/plugin-replace": "^5.0.2",
27-
"@rollup/plugin-typescript": "^11.1.0",
28-
"@typescript-eslint/eslint-plugin": "^5.59.2",
29-
"@typescript-eslint/parser": "^5.59.2",
27+
"@rollup/plugin-typescript": "^11.1.1",
28+
"@typescript-eslint/eslint-plugin": "^5.59.5",
29+
"@typescript-eslint/parser": "^5.59.5",
3030
"@vitest/coverage-c8": "^0.31.0",
3131
"@vue/devtools-api": "^6.5.0",
3232
"chalk": "^5.2.0",
@@ -47,20 +47,20 @@
4747
"klona": "^2.0.6",
4848
"lint-staged": "^13.2.2",
4949
"prettier": "^2.8.8",
50-
"prettier-plugin-astro": "^0.8.0",
50+
"prettier-plugin-astro": "^0.8.1",
5151
"raf-stub": "^3.0.0",
52-
"rollup": "^3.21.5",
52+
"rollup": "^3.21.7",
5353
"rollup-plugin-commonjs": "^10.1.0",
5454
"rollup-plugin-dts": "^5.3.0",
5555
"rollup-plugin-json": "^4.0.0",
5656
"rollup-plugin-node-resolve": "^5.2.0",
57-
"terser": "^5.17.1",
57+
"terser": "^5.17.3",
5858
"tslint-config-prettier": "^1.18.0",
5959
"tslint-config-standard": "^9.0.0",
6060
"type-fest": "^3.10.0",
6161
"typescript": "5.0.4",
6262
"vitest": "^0.31.0",
63-
"vue": "^3.2.47",
63+
"vue": "^3.3.2",
6464
"yup": "^1.1.1"
6565
},
6666
"peerDependencies": {

packages/nuxt/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
"dist/*"
3636
],
3737
"dependencies": {
38-
"@nuxt/kit": "^3.4.0",
38+
"@nuxt/kit": "^3.4.3",
3939
"local-pkg": "^0.4.3",
4040
"vee-validate": "^4.9.3"
4141
},
4242
"devDependencies": {
4343
"@nuxt/eslint-config": "^0.1.1",
44-
"@nuxt/module-builder": "^0.3.0",
45-
"@nuxt/schema": "^3.4.0",
46-
"@nuxt/test-utils": "^3.4.0",
47-
"nuxt": "^3.4.0"
44+
"@nuxt/module-builder": "^0.3.1",
45+
"@nuxt/schema": "^3.4.3",
46+
"@nuxt/test-utils": "^3.4.3",
47+
"nuxt": "^3.4.3"
4848
}
4949
}

packages/vee-validate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dist/*.d.ts"
2929
],
3030
"peerDependencies": {
31-
"vue": "^3.2.0"
31+
"vue": "^3.3.0"
3232
},
3333
"dependencies": {
3434
"@vue/devtools-api": "^6.5.0",

packages/vee-validate/src/useForm.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,17 @@ export function useForm<
133133

134134
const pathStates = ref<PathState<unknown>[]>([]);
135135

136-
const extraErrorsBag = ref<FormErrorBag<TValues>>({});
136+
const extraErrorsBag: Ref<FormErrorBag<TValues>> = ref({});
137137

138138
/**
139139
* Manually sets an error message on a specific field
140140
*/
141141
function setFieldError(field: Path<TValues> | PathState, message: string | undefined | string[]) {
142142
const state = findPathState(field);
143143
if (!state) {
144-
extraErrorsBag.value[field as string] = normalizeErrorItem(message);
144+
if (typeof field === 'string') {
145+
extraErrorsBag.value[field] = normalizeErrorItem(message);
146+
}
145147
return;
146148
}
147149

@@ -1029,7 +1031,7 @@ function useFormInitialValues<TValues extends GenericObject>(
10291031
const values = resolveInitialValues(opts) as PartialDeep<TValues>;
10301032
const providedValues = opts?.initialValues;
10311033
// these are the mutable initial values as the fields are mounted/unmounted
1032-
const initialValues = ref<PartialDeep<TValues>>(values);
1034+
const initialValues = ref(values) as Ref<PartialDeep<TValues>>;
10331035
// these are the original initial value as provided by the user initially, they don't keep track of conditional fields
10341036
// this is important because some conditional fields will overwrite the initial values for other fields who had the same name
10351037
// like array fields, any push/insert operation will overwrite the initial values because they "create new fields"

0 commit comments

Comments
 (0)