Skip to content

Commit b55b6b4

Browse files
committed
feat: upgrade to Vite 5
1 parent 0395a0b commit b55b6b4

File tree

10 files changed

+1515
-767
lines changed

10 files changed

+1515
-767
lines changed

cypress/fixtures/basic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"@slidev/theme-default": "^0.21.2",
1111
"@slidev/theme-seriph": "^0.21.3",
1212
"@slidev/types": "workspace:*",
13-
"nodemon": "^3.0.1"
13+
"nodemon": "^3.0.2"
1414
}
1515
}

demo/composable-vue/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"export:clicks": "slidev export --with-clicks"
88
},
99
"devDependencies": {
10-
"@iconify-json/mdi": "^1.1.55",
11-
"@iconify-json/ri": "^1.1.12",
10+
"@iconify-json/mdi": "^1.1.58",
11+
"@iconify-json/ri": "^1.1.15",
1212
"@slidev/cli": "workspace:*",
1313
"@slidev/theme-default": "^0.21.2",
1414
"@slidev/theme-seriph": "^0.21.3",
1515
"@slidev/types": "workspace:*",
16-
"nodemon": "^3.0.1"
16+
"nodemon": "^3.0.2"
1717
}
1818
}

demo/starter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"@slidev/theme-default": "^0.21.2",
1212
"@slidev/theme-seriph": "^0.21.3",
1313
"@slidev/types": "workspace:*",
14-
"nodemon": "^3.0.1"
14+
"nodemon": "^3.0.2"
1515
}
1616
}

package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"version": "0.44.0",
44
"private": true,
5-
"packageManager": "pnpm@8.10.5",
5+
"packageManager": "pnpm@8.11.0",
66
"engines": {
77
"node": ">=18.0.0"
88
},
@@ -23,48 +23,48 @@
2323
"test": "vitest test"
2424
},
2525
"devDependencies": {
26-
"@antfu/eslint-config": "^1.1.3",
27-
"@antfu/ni": "^0.21.9",
26+
"@antfu/eslint-config": "^2.2.2",
27+
"@antfu/ni": "^0.21.12",
2828
"@antfu/utils": "^0.7.6",
2929
"@slidev/cli": "workspace:*",
3030
"@slidev/parser": "workspace:*",
3131
"@slidev/types": "workspace:*",
3232
"@types/cli-progress": "^3.11.5",
33-
"@types/codemirror": "^5.60.13",
33+
"@types/codemirror": "^5.60.15",
3434
"@types/connect": "^3.4.38",
3535
"@types/debug": "^4.1.12",
3636
"@types/file-saver": "^2.0.7",
3737
"@types/fs-extra": "^11.0.4",
3838
"@types/js-yaml": "^4.0.9",
39-
"@types/katex": "^0.16.6",
39+
"@types/katex": "^0.16.7",
4040
"@types/localtunnel": "^2.0.4",
41-
"@types/markdown-it": "^13.0.6",
42-
"@types/node": "^20.9.0",
41+
"@types/markdown-it": "^13.0.7",
42+
"@types/node": "^20.10.3",
4343
"@types/prismjs": "^1.26.3",
44-
"@types/prompts": "^2.4.8",
44+
"@types/prompts": "^2.4.9",
4545
"@types/recordrtc": "^5.6.14",
46-
"@types/resolve": "^1.20.5",
47-
"@types/semver": "^7.5.5",
48-
"@types/yargs": "^17.0.31",
46+
"@types/resolve": "^1.20.6",
47+
"@types/semver": "^7.5.6",
48+
"@types/yargs": "^17.0.32",
4949
"@vueuse/core": "^10.6.1",
5050
"bumpp": "^9.2.0",
5151
"cross-env": "^7.0.3",
5252
"cypress": "^12.17.4",
53-
"eslint": "^8.53.0",
53+
"eslint": "^8.55.0",
5454
"esno": "^4.0.0",
5555
"katex": "^0.16.9",
56-
"lint-staged": "^15.1.0",
56+
"lint-staged": "^15.2.0",
5757
"mermaid": "^10.6.1",
58-
"playwright-chromium": "^1.39.0",
59-
"pnpm": "^8.10.5",
58+
"playwright-chromium": "^1.40.1",
59+
"pnpm": "^8.11.0",
6060
"rimraf": "^5.0.5",
6161
"simple-git-hooks": "^2.9.0",
62-
"tsup": "^7.2.0",
63-
"typescript": "^5.2.2",
64-
"vite": "^4.5.0",
65-
"vite-plugin-windicss": "^1.9.1",
62+
"tsup": "^8.0.1",
63+
"typescript": "^5.3.2",
64+
"vite": "^5.0.5",
65+
"vite-plugin-windicss": "^1.9.2",
6666
"vitest": "^0.34.6",
67-
"vue-tsc": "^1.8.22",
67+
"vue-tsc": "^1.8.24",
6868
"zx": "^7.2.3"
6969
},
7070
"simple-git-hooks": {

packages/client/internals/Draggable.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useDraggable, useLocalStorage } from '@vueuse/core'
44
55
const props = defineProps<{
66
storageKey?: string
7-
initial?: { x: number; y: number }
7+
initial?: { x: number, y: number }
88
}>()
99
1010
const el = ref<HTMLElement | null>(null)

packages/client/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"@antfu/utils": "^0.7.6",
2323
"@slidev/parser": "workspace:*",
2424
"@slidev/types": "workspace:*",
25-
"@unhead/vue": "^1.8.4",
26-
"@unocss/reset": "^0.57.4",
25+
"@unhead/vue": "^1.8.8",
26+
"@unocss/reset": "^0.58.0",
2727
"@vueuse/core": "^10.6.1",
2828
"@vueuse/math": "^10.6.1",
2929
"@vueuse/motion": "^2.0.0",
@@ -37,18 +37,18 @@
3737
"katex": "^0.16.9",
3838
"mermaid": "^10.6.1",
3939
"monaco-editor": "^0.37.1",
40-
"nanoid": "^5.0.3",
40+
"nanoid": "^5.0.4",
4141
"prettier": "^3.1.0",
4242
"recordrtc": "^5.6.2",
4343
"resolve": "^1.22.8",
44-
"unocss": "^0.57.4",
45-
"vite-plugin-windicss": "^1.9.1",
46-
"vue": "^3.3.8",
44+
"unocss": "^0.58.0",
45+
"vite-plugin-windicss": "^1.9.2",
46+
"vue": "^3.3.9",
4747
"vue-router": "^4.2.5",
4848
"vue-starport": "^0.4.0",
4949
"windicss": "^3.5.6"
5050
},
5151
"devDependencies": {
52-
"vite": "^4.5.0"
52+
"vite": "^5.0.5"
5353
}
5454
}

packages/create-theme/template/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@slidev/types": "^0.44.0",
1919
"codemirror-theme-vars": "^0.1.2",
2020
"prism-theme-vars": "^0.2.4",
21-
"theme-vitesse": "^0.7.3"
21+
"theme-vitesse": "^0.7.5"
2222
},
2323
"devDependencies": {
2424
"@slidev/cli": "^0.44.0"

packages/slidev/node/cli.ts

+5
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ cli.command(
133133
strictPort: true,
134134
open,
135135
host: remote !== undefined ? '0.0.0.0' : 'localhost',
136+
// @ts-expect-error Vite <= 4
137+
force,
138+
},
139+
optimizeDeps: {
140+
// Vite 5
136141
force,
137142
},
138143
logLevel: log as LogLevel,

packages/slidev/package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,24 @@
5050
"dependencies": {
5151
"@antfu/utils": "^0.7.6",
5252
"@hedgedoc/markdown-it-plugins": "^2.1.4",
53-
"@iconify-json/carbon": "^1.1.21",
54-
"@iconify-json/ph": "^1.1.6",
53+
"@iconify-json/carbon": "^1.1.24",
54+
"@iconify-json/ph": "^1.1.8",
5555
"@lillallol/outline-pdf": "^4.0.0",
5656
"@mrdrogdrog/optional": "^1.2.1",
5757
"@slidev/client": "workspace:*",
5858
"@slidev/parser": "workspace:*",
5959
"@slidev/types": "workspace:*",
60-
"@unocss/extractor-mdc": "^0.57.4",
61-
"@unocss/reset": "^0.57.4",
62-
"@vitejs/plugin-vue": "^4.4.1",
63-
"@vitejs/plugin-vue-jsx": "^3.0.2",
64-
"@windicss/config": "^1.9.1",
60+
"@unocss/extractor-mdc": "^0.58.0",
61+
"@unocss/reset": "^0.58.0",
62+
"@vitejs/plugin-vue": "^4.5.1",
63+
"@vitejs/plugin-vue-jsx": "^3.1.0",
64+
"@windicss/config": "^1.9.2",
6565
"cli-progress": "^3.12.0",
6666
"codemirror": "^5.65.5",
6767
"connect": "^3.7.0",
6868
"debug": "^4.3.4",
6969
"fast-glob": "^3.3.2",
70-
"fs-extra": "^11.1.1",
70+
"fs-extra": "^11.2.0",
7171
"get-port-please": "^3.1.1",
7272
"global-directory": "^4.0.1",
7373
"htmlparser2": "^9.0.0",
@@ -83,7 +83,7 @@
8383
"markdown-it-link-attributes": "^4.0.1",
8484
"markdown-it-mdc": "^0.1.4",
8585
"monaco-editor": "^0.37.1",
86-
"nanoid": "^5.0.3",
86+
"nanoid": "^5.0.4",
8787
"open": "^9.1.0",
8888
"pdf-lib": "^1.17.1",
8989
"plantuml-encoder": "^1.4.0",
@@ -94,20 +94,20 @@
9494
"resolve": "^1.22.8",
9595
"resolve-from": "^5.0.0",
9696
"resolve-global": "^2.0.0",
97-
"shiki": "npm:shikiji-compat@^0.6.13",
98-
"unocss": "^0.57.4",
99-
"unplugin-icons": "^0.17.4",
100-
"unplugin-vue-components": "^0.25.2",
101-
"unplugin-vue-markdown": "^0.25.1",
97+
"shiki": "npm:shikiji-compat@^0.7.6",
98+
"unocss": "^0.58.0",
99+
"unplugin-icons": "^0.18.1",
100+
"unplugin-vue-components": "^0.26.0",
101+
"unplugin-vue-markdown": "^0.25.2",
102102
"uqr": "^0.1.2",
103-
"vite": "^4.5.0",
104-
"vite-plugin-inspect": "^0.7.42",
105-
"vite-plugin-remote-assets": "^0.3.2",
106-
"vite-plugin-static-copy": "^0.17.0",
107-
"vite-plugin-vue-server-ref": "^0.3.4",
108-
"vite-plugin-windicss": "^1.9.1",
103+
"vite": "^5.0.5",
104+
"vite-plugin-inspect": "^0.8.1",
105+
"vite-plugin-remote-assets": "^0.4.0",
106+
"vite-plugin-static-copy": "^1.0.0",
107+
"vite-plugin-vue-server-ref": "^0.4.0",
108+
"vite-plugin-windicss": "^1.9.2",
109109
"vitefu": "^0.2.5",
110-
"vue": "^3.3.8",
110+
"vue": "^3.3.9",
111111
"windicss": "^3.5.6",
112112
"yargs": "^17.7.2"
113113
},

0 commit comments

Comments
 (0)