Skip to content

Commit bddf74e

Browse files
committed
chore: bump to Vue 3.4 beta
1 parent 93122ee commit bddf74e

File tree

3 files changed

+101
-82
lines changed

3 files changed

+101
-82
lines changed

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"@docsearch/css": "^3.5.2",
9494
"@docsearch/js": "^3.5.2",
9595
"@types/markdown-it": "^13.0.7",
96-
"@vitejs/plugin-vue": "^4.5.2",
96+
"@vitejs/plugin-vue": "^5.0.0-beta.1",
9797
"@vue/devtools-api": "^6.5.1",
9898
"@vueuse/core": "^10.7.0",
9999
"@vueuse/integrations": "^10.7.0",
@@ -104,7 +104,7 @@
104104
"shikiji": "^0.9.7",
105105
"shikiji-transformers": "^0.9.7",
106106
"vite": "^5.0.10",
107-
"vue": "^3.3.12"
107+
"vue": "^3.4.0-beta.4"
108108
},
109109
"peerDependencies": {
110110
"markdown-it-mathjax3": "^4.3.2",

Diff for: pnpm-lock.yaml

+93-77
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/client/theme-default/components/VPAlgoliaSearchBox.vue

+6-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ async function update() {
4242
}
4343
4444
function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
45-
const options = Object.assign<{}, {}, DocSearchProps>({}, userOptions, {
45+
const options = Object.assign<
46+
{},
47+
DefaultTheme.AlgoliaSearchOptions,
48+
Partial<DocSearchProps>
49+
>({}, userOptions, {
4650
container: '#docsearch',
4751
4852
navigator: {
@@ -69,7 +73,6 @@ function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
6973
})
7074
},
7175
72-
// @ts-expect-error vue-tsc thinks this should return Vue JSX but it returns the required React one
7376
hitComponent({ hit, children }) {
7477
return {
7578
__v: null,
@@ -80,7 +83,7 @@ function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
8083
props: { href: hit.url, children }
8184
}
8285
}
83-
})
86+
}) as DocSearchProps
8487
8588
docsearch(options)
8689
}

0 commit comments

Comments
 (0)