Skip to content

Commit

Permalink
feat: bump to vue 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 29, 2023
1 parent 30dc252 commit 7f192ea
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 100 deletions.
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@vuepress/bundler-webpack": "workspace:*",
"sass": "^1.69.5",
"sass-loader": "^13.3.3",
"vue": "^3.3.13",
"vue": "^3.4.0",
"vuepress": "workspace:*"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"postcss-load-config": "^5.0.2",
"rollup": "^4.9.1",
"vite": "~5.0.10",
"vue": "^3.3.13",
"vue": "^3.4.0",
"vue-router": "^4.2.5"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"postcss-csso": "^6.0.1",
"postcss-loader": "^7.3.3",
"style-loader": "^3.3.3",
"vue": "^3.3.13",
"vue": "^3.4.0",
"vue-loader": "^17.4.0",
"vue-router": "^4.2.5",
"webpack": "^5.89.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@vue/devtools-api": "^6.5.1",
"@vuepress/shared": "workspace:*",
"@vueuse/core": "^10.7.0",
"vue": "^3.3.13",
"vue": "^3.4.0",
"vue-router": "^4.2.5"
},
"publishConfig": {
Expand Down
9 changes: 4 additions & 5 deletions packages/client/src/setupGlobalComputed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { computedEager, computedWithControl } from '@vueuse/core'
import { computedWithControl } from '@vueuse/core'
import type { App } from 'vue'
import { computed } from 'vue'
import type { Router } from 'vue-router'
Expand Down Expand Up @@ -63,10 +63,9 @@ export const setupGlobalComputed = (
router: Router,
clientConfigs: ClientConfig[],
): GlobalComputed => {
// create eager computed for route path and locale, so that route changes
// won't make all downstream computed re-evaluate
const routePath = computedEager(() => router.currentRoute.value.path)
const routeLocale = computedEager(() =>
// route path and locale
const routePath = computed(() => router.currentRoute.value.path)
const routeLocale = computed(() =>
resolvers.resolveRouteLocale(siteData.value.locales, routePath.value),
)

Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@vuepress/markdown": "workspace:*",
"@vuepress/shared": "workspace:*",
"@vuepress/utils": "workspace:*",
"vue": "^3.3.13"
"vue": "^3.4.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"@mdit-vue/types": "^2.0.0",
"@vue/shared": "^3.3.13"
"@vue/shared": "^3.4.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/vuepress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
"@vuepress/markdown": "workspace:*",
"@vuepress/shared": "workspace:*",
"@vuepress/utils": "workspace:*",
"vue": "^3.3.13"
"vue": "^3.4.0"
},
"peerDependencies": {
"@vuepress/bundler-vite": "workspace:*",
"@vuepress/bundler-webpack": "workspace:*",
"vue": "^3.3.13"
"vue": "^3.4.0"
},
"peerDependenciesMeta": {
"@vuepress/bundler-vite": {
Expand Down
Loading

0 comments on commit 7f192ea

Please sign in to comment.