Skip to content

Commit

Permalink
feat: upgrade vue
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Oct 20, 2023
1 parent 20038bb commit 6307026
Show file tree
Hide file tree
Showing 34 changed files with 225 additions and 209 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"vite-plugin-pwa": "^0.16.5",
"vite-plugin-vue-devtools": "1.0.0-rc.5",
"vitepress": "1.0.0-rc.22",
"vue": "^3.3.4",
"vue": "^3.3.5",
"workbox-window": "^7.0.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"unplugin-macros": "^0.8.3",
"vite": "^4.4.11",
"vitest": "^0.34.6",
"vue": "^3.3.4",
"vue": "^3.3.5",
"vue-tsc": "1.8.19",
"vue2": "npm:vue@^2.7.14",
"webpack": "^5.89.0"
Expand Down
10 changes: 6 additions & 4 deletions packages/better-define/tests/__snapshots__/fixtures.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
trigger: { required: true }
},
setup(__props) {
const props = __props;
const Trigger = {
click: \\"click\\",
focus: \\"focus\\",
hover: \\"hover\\"
};
const props = __props;
return (_ctx, _cache) => {
return openBlock(), createElementBlock(
\\"button\\",
Expand Down Expand Up @@ -544,12 +544,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
trigger: null
},
setup(__props) {
const props = __props;
const Trigger = {
click: \\"click\\",
focus: \\"focus\\",
hover: \\"hover\\"
};
const props = __props;
return (_ctx, _cache) => {
return openBlock(), createElementBlock(
\\"button\\",
Expand Down Expand Up @@ -1099,7 +1099,8 @@ import _export_sfc from '[NULL]/plugin-vue/export-helper';
var _sfc_main = /* @__PURE__ */ defineComponent({
__name: \\"union-emits\\",
emits: [\\"some\\", \\"emit\\", \\"another\\"],
setup(__props, { emit }) {
setup(__props, { emit: __emit }) {
const emit = __emit;
return () => {
};
}
Expand All @@ -1118,7 +1119,8 @@ import _export_sfc from '[NULL]/plugin-vue/export-helper';
var _sfc_main = /* @__PURE__ */ defineComponent({
__name: \\"union-emits\\",
emits: [\\"some\\", \\"emit\\", \\"another\\"],
setup(__props, { emit }) {
setup(__props, { emit: __emit }) {
const emit = __emit;
return () => {
};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/boolean-prop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
},
"dependencies": {
"@vue-macros/common": "workspace:*",
"@vue/compiler-core": "^3.3.4"
"@vue/compiler-core": "^3.3.5"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.3.4",
"@vue/compiler-sfc": "^3.3.5",
"rollup": "^4.1.3"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"dependencies": {
"@babel/types": "^7.23.0",
"@rollup/pluginutils": "^5.0.5",
"@vue/compiler-sfc": "^3.3.4",
"@vue/compiler-sfc": "^3.3.5",
"ast-kit": "^0.11.2",
"local-pkg": "^0.5.0",
"magic-string-ast": "^0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/define-emit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/define-models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"devDependencies": {
"@vue-macros/api": "workspace:^",
"@vueuse/core": "^10.5.0",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/define-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
},
"devDependencies": {
"rollup": "^4.1.3",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/define-prop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/define-props-refs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/define-props/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
"devDependencies": {
"@vue-macros/reactivity-transform": "workspace:*",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/define-render/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/define-slots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"dependencies": {
"sirv": "^2.0.3",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"devDependencies": {
"@unocss/reset": "^0.56.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/export-expose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
},
"dependencies": {
"@vue-macros/common": "workspace:*",
"@vue/compiler-sfc": "^3.3.4",
"@vue/compiler-sfc": "^3.3.5",
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/export-props/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/export-render/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
},
"dependencies": {
"@vue-macros/common": "workspace:*",
"@vue/compiler-sfc": "^3.3.4",
"@vue/compiler-sfc": "^3.3.5",
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx-directive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/macros/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
},
"devDependencies": {
"esbuild": "^0.18.20",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
6 changes: 4 additions & 2 deletions packages/macros/tests/__snapshots__/fixtures.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
modelValue: { type: String, required: true }
},
emits: [\\"change\\", \\"update:modelValue\\"],
setup(__props, { emit }) {
setup(__props, { emit: __emit }) {
const emit = __emit;
let { modelValue } = __MACROS_useVModel(\\"modelValue\\");
const handleClick = () => {
emit(\\"change\\");
Expand Down Expand Up @@ -225,7 +226,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
value: { type: String, required: true }
},
emits: [\\"change\\", \\"input\\", \\"changeInput\\"],
setup(__props, { emit }) {
setup(__props, { emit: __emit }) {
const emit = __emit;
let { modelValue, value } = __MACROS_useVModel([\\"modelValue\\", \\"value\\", \\"input\\"], [\\"value\\", void 0, \\"changeInput\\"]);
const handleClick = () => {
emit(\\"change\\");
Expand Down
4 changes: 2 additions & 2 deletions packages/named-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
},
"dependencies": {
"@vue-macros/common": "workspace:*",
"@vue/compiler-dom": "^3.3.4",
"@vue/compiler-dom": "^3.3.5",
"unplugin": "^1.5.0"
},
"devDependencies": {
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/reactivity-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
"dependencies": {
"@babel/parser": "^7.23.0",
"@vue-macros/common": "workspace:*",
"@vue/compiler-core": "^3.3.4",
"@vue/shared": "^3.3.4",
"@vue/compiler-core": "^3.3.5",
"@vue/shared": "^3.3.5",
"magic-string": "^0.30.5",
"unplugin": "^1.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/setup-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
},
"dependencies": {
"@vue-macros/common": "workspace:*",
"@vue/compiler-dom": "^3.3.4",
"@vue/compiler-dom": "^3.3.5",
"unplugin": "^1.5.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/setup-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
"devDependencies": {
"rollup": "^4.1.3",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/setup-sfc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
},
"devDependencies": {
"rollup": "^4.1.3",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/short-bind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
},
"dependencies": {
"@vue-macros/common": "workspace:*",
"@vue/compiler-core": "^3.3.4"
"@vue/compiler-core": "^3.3.5"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.3.4",
"@vue/compiler-sfc": "^3.3.5",
"rollup": "^4.1.3"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/short-vmodel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
},
"dependencies": {
"@vue-macros/common": "workspace:*",
"@vue/compiler-core": "^3.3.4"
"@vue/compiler-core": "^3.3.5"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.3.4",
"@vue/compiler-sfc": "^3.3.5",
"rollup": "^4.1.3"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"devDependencies": {
"@rollup/plugin-json": "^6.0.1",
"vite": "^4.4.11",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"engines": {
"node": ">=16.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/volar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@vue/language-core": "1.8.19"
},
"devDependencies": {
"@vue/compiler-dom": "^3.3.4",
"@vue/compiler-dom": "^3.3.5",
"typescript": "~5.2.2",
"vue-tsc": "1.8.19"
},
Expand Down
2 changes: 1 addition & 1 deletion playground/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@vue-macros/astro": "workspace:*",
"@vueuse/core": "^10.5.0",
"astro": "^3.3.0",
"vue": "^3.3.4"
"vue": "^3.3.5"
}
}
Binary file modified playground/nuxt/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion playground/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@vueuse/core": "^10.5.0",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"devDependencies": {
"@nuxt/devtools": "^1.0.0-beta.2",
Expand Down
2 changes: 1 addition & 1 deletion playground/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@vueuse/core": "^10.5.0",
"quasar": "^2.12.7",
"vue": "^3.3.4"
"vue": "^3.3.5"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
Expand Down

0 comments on commit 6307026

Please sign in to comment.