Skip to content

Commit 2227b2b

Browse files
authored
Merge branch 'main' into meteorlxy-markdown-to-vue
2 parents 2d5e934 + cd192c2 commit 2227b2b

File tree

22 files changed

+2434
-2340
lines changed

22 files changed

+2434
-2340
lines changed

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
"[markdown]": {
1111
"files.trimTrailingWhitespace": false
1212
},
13-
"eslint.options": {
14-
"flags": ["unstable_ts_config"]
15-
},
1613
"eslint.validate": [
1714
"javascript",
1815
"javascriptreact",

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# [2.0.0-rc.19](https://github.com/vuepress/core/compare/v2.0.0-rc.18...v2.0.0-rc.19) (2024-12-11)
2+
3+
4+
### Features
5+
6+
* **bundler-vite:** upgrade vite to v6 ([faddbe6](https://github.com/vuepress/core/commit/faddbe64e4c71a115bf300b4fc831118dbf3eca7))
7+
8+
9+
110
# [2.0.0-rc.18](https://github.com/vuepress/core/compare/v2.0.0-rc.17...v2.0.0-rc.18) (2024-10-10)
211

312

e2e/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/e2e",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -20,14 +20,14 @@
2020
"@vuepress-e2e/style-exports": "file:./modules/style-exports",
2121
"@vuepress/bundler-vite": "workspace:*",
2222
"@vuepress/bundler-webpack": "workspace:*",
23-
"sass": "^1.79.4",
24-
"sass-embedded": "^1.79.4",
25-
"sass-loader": "^16.0.2",
26-
"vue": "^3.5.11",
23+
"sass": "^1.85.0",
24+
"sass-embedded": "^1.85.0",
25+
"sass-loader": "^16.0.5",
26+
"vue": "^3.5.13",
2727
"vuepress": "workspace:*"
2828
},
2929
"devDependencies": {
30-
"@playwright/test": "^1.48.0",
30+
"@playwright/test": "^1.50.1",
3131
"anywhere": "^1.6.0",
3232
"cross-env": "^7.0.3"
3333
}

package.json

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@vuepress/monorepo",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"private": true,
55
"type": "module",
66
"scripts": {
77
"build": "pnpm -r --workspace-concurrency=1 --stream build",
88
"check-types": "vue-tsc --noEmit",
99
"clean": "pnpm --parallel --stream clean",
1010
"format": "prettier --write .",
11-
"lint": "eslint --flag unstable_ts_config . && prettier --check .",
12-
"lint:fix": "eslint --flag unstable_ts_config --fix . && prettier --write .",
11+
"lint": "eslint . && prettier --check .",
12+
"lint:fix": "eslint --fix . && prettier --write .",
1313
"prepare": "husky",
1414
"release": "pnpm release:check && pnpm release:version && pnpm release:publish",
1515
"release:changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
@@ -25,37 +25,43 @@
2525
"lint-staged": {
2626
"*.!(cjs|js|ts|vue)": "prettier --write --ignore-unknown",
2727
"*.(cjs|js|ts|vue)": [
28-
"eslint --flag unstable_ts_config --fix",
28+
"eslint --fix",
2929
"prettier --write"
3030
],
3131
"package.json": "sort-package-json"
3232
},
3333
"prettier": "prettier-config-vuepress",
3434
"devDependencies": {
35-
"@commitlint/cli": "^19.5.0",
36-
"@commitlint/config-conventional": "^19.5.0",
35+
"@commitlint/cli": "^19.7.1",
36+
"@commitlint/config-conventional": "^19.7.1",
3737
"@commitlint/types": "^19.5.0",
38-
"@types/node": "^22.7.5",
39-
"@types/webpack-env": "^1.18.5",
40-
"@vitest/coverage-istanbul": "^2.1.2",
41-
"bumpp": "^9.7.1",
38+
"@types/node": "^22.13.4",
39+
"@types/webpack-env": "^1.18.8",
40+
"@vitest/coverage-istanbul": "^3.0.6",
41+
"bumpp": "^10.0.3",
4242
"conventional-changelog-cli": "^5.0.0",
43-
"eslint": "^9.12.0",
44-
"eslint-config-vuepress": "^5.2.0",
45-
"husky": "^9.1.6",
46-
"jiti": "^2.3.3",
47-
"lint-staged": "^15.2.10",
48-
"prettier": "^3.3.3",
43+
"eslint": "^9.20.1",
44+
"eslint-config-vuepress": "^5.2.4",
45+
"husky": "^9.1.7",
46+
"jiti": "^2.4.2",
47+
"lint-staged": "^15.4.3",
48+
"prettier": "^3.5.1",
4949
"prettier-config-vuepress": "^5.0.0",
5050
"rimraf": "^6.0.1",
51-
"sort-package-json": "^2.10.1",
52-
"taze": "^0.17.2",
53-
"tsconfig-vuepress": "^5.2.0",
54-
"tsup": "^8.3.0",
55-
"typescript": "^5.6.3",
56-
"vite": "~5.4.8",
57-
"vitest": "^2.1.2",
58-
"vue-tsc": "^2.1.6"
51+
"sort-package-json": "^2.14.0",
52+
"taze": "^18.6.0",
53+
"tsconfig-vuepress": "^5.2.1",
54+
"tsup": "^8.3.6",
55+
"typescript": "~5.7.3",
56+
"vite": "~6.1.0",
57+
"vitest": "^3.0.6",
58+
"vue-tsc": "^2.2.2"
5959
},
60-
"packageManager": "[email protected]"
60+
"packageManager": "[email protected]",
61+
"pnpm": {
62+
"onlyBuiltDependencies": [
63+
"@parcel/watcher",
64+
"esbuild"
65+
]
66+
}
6167
}

packages/bundler-vite/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/bundler-vite",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"description": "Bundler vite package of VuePress",
55
"keywords": [
66
"vuepress-bundler",
@@ -35,20 +35,20 @@
3535
"clean": "rimraf dist"
3636
},
3737
"dependencies": {
38-
"@vitejs/plugin-vue": "^5.1.4",
38+
"@vitejs/plugin-vue": "^5.2.1",
3939
"@vuepress/bundlerutils": "workspace:*",
4040
"@vuepress/client": "workspace:*",
4141
"@vuepress/core": "workspace:*",
4242
"@vuepress/shared": "workspace:*",
4343
"@vuepress/utils": "workspace:*",
4444
"autoprefixer": "^10.4.20",
4545
"connect-history-api-fallback": "^2.0.0",
46-
"postcss": "^8.4.47",
46+
"postcss": "^8.5.2",
4747
"postcss-load-config": "^6.0.1",
48-
"rollup": "^4.24.0",
49-
"vite": "~5.4.8",
50-
"vue": "^3.5.11",
51-
"vue-router": "^4.4.5"
48+
"rollup": "^4.34.8",
49+
"vite": "~6.1.0",
50+
"vue": "^3.5.13",
51+
"vue-router": "^4.5.0"
5252
},
5353
"devDependencies": {
5454
"@types/connect-history-api-fallback": "^1.5.4"

packages/bundler-vite/src/plugins/vuepressConfigPlugin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ export const vuepressConfigPlugin = ({
151151
host: app.options.host,
152152
port: app.options.port,
153153
open: app.options.open,
154-
// ref: https://github.com/vitejs/vite/issues/15784#issuecomment-1923683823
155-
fs: { cachedChecks: false },
156154
},
157155
build: {
158156
ssr: isServer,

packages/bundler-webpack/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/bundler-webpack",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"description": "Bundler webpack package of VuePress",
55
"keywords": [
66
"vuepress-bundler",
@@ -38,7 +38,7 @@
3838
},
3939
"dependencies": {
4040
"@types/express": "^4.17.21",
41-
"@types/webpack-env": "^1.18.5",
41+
"@types/webpack-env": "^1.18.8",
4242
"@vuepress/bundlerutils": "workspace:*",
4343
"@vuepress/client": "workspace:*",
4444
"@vuepress/core": "workspace:*",
@@ -49,20 +49,20 @@
4949
"copy-webpack-plugin": "^12.0.2",
5050
"css-loader": "^7.1.2",
5151
"css-minimizer-webpack-plugin": "^7.0.0",
52-
"esbuild-loader": "~4.2.2",
53-
"express": "^4.21.1",
54-
"html-webpack-plugin": "^5.6.0",
55-
"lightningcss": "^1.27.0",
56-
"mini-css-extract-plugin": "^2.9.1",
57-
"postcss": "^8.4.47",
52+
"esbuild-loader": "~4.3.0",
53+
"express": "^4.21.2",
54+
"html-webpack-plugin": "^5.6.3",
55+
"lightningcss": "^1.29.1",
56+
"mini-css-extract-plugin": "^2.9.2",
57+
"postcss": "^8.5.2",
5858
"postcss-loader": "^8.1.1",
5959
"style-loader": "^4.0.0",
60-
"vue": "^3.5.11",
60+
"vue": "^3.5.13",
6161
"vue-loader": "^17.4.2",
62-
"vue-router": "^4.4.5",
63-
"webpack": "^5.95.0",
62+
"vue-router": "^4.5.0",
63+
"webpack": "^5.98.0",
6464
"webpack-5-chain": "^8.0.2",
65-
"webpack-dev-server": "^5.1.0",
65+
"webpack-dev-server": "^5.2.0",
6666
"webpack-merge": "^6.0.1"
6767
},
6868
"publishConfig": {

packages/bundler-webpack/tsup.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { Options } from 'tsup'
12
import { defineConfig } from 'tsup'
23

34
const shared = defineConfig({
@@ -6,7 +7,7 @@ const shared = defineConfig({
67
sourcemap: false,
78
target: 'es2022',
89
tsconfig: '../tsconfig.dts.json',
9-
})
10+
}) as Options
1011

1112
export default defineConfig([
1213
{

packages/bundlerutils/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/bundlerutils",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"description": "Utils package of VuePress bundler",
55
"keywords": [
66
"bundler",
@@ -36,8 +36,8 @@
3636
"@vuepress/core": "workspace:*",
3737
"@vuepress/shared": "workspace:*",
3838
"@vuepress/utils": "workspace:*",
39-
"vue": "^3.5.11",
40-
"vue-router": "^4.4.5"
39+
"vue": "^3.5.13",
40+
"vue-router": "^4.5.0"
4141
},
4242
"publishConfig": {
4343
"access": "public"

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/cli",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"description": "CLI package of VuePress",
55
"keywords": [
66
"vuepress",
@@ -42,7 +42,7 @@
4242
"cac": "^6.7.14",
4343
"chokidar": "^3.6.0",
4444
"envinfo": "^7.14.0",
45-
"esbuild": "~0.21.5"
45+
"esbuild": "^0.24.2"
4646
},
4747
"devDependencies": {
4848
"@types/envinfo": "^7.8.4"

packages/client/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/client",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"description": "Client package of VuePress",
55
"keywords": [
66
"vuepress",
@@ -37,10 +37,10 @@
3737
"clean": "rimraf dist"
3838
},
3939
"dependencies": {
40-
"@vue/devtools-api": "^7.4.6",
40+
"@vue/devtools-api": "^7.7.2",
4141
"@vuepress/shared": "workspace:*",
42-
"vue": "^3.5.11",
43-
"vue-router": "^4.4.5"
42+
"vue": "^3.5.13",
43+
"vue-router": "^4.5.0"
4444
},
4545
"publishConfig": {
4646
"access": "public"

packages/client/src/composables/clientData.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ export const clientDataSymbol: InjectionKey<ClientData> = Symbol(
1212
/**
1313
* Returns client data
1414
*/
15-
export const useClientData = (): ClientData => {
16-
const clientData = inject(clientDataSymbol)
15+
export const useClientData = <
16+
Frontmatter extends Record<string, unknown> = Record<string, unknown>,
17+
Data extends Record<string, unknown> = Record<string, unknown>,
18+
>(): ClientData<Frontmatter, Data> => {
19+
const clientData = inject<ClientData<Frontmatter, Data>>(clientDataSymbol)
1720
if (!clientData) {
1821
throw new Error('useClientData() is called without provider.')
1922
}

packages/client/src/composables/clientDataUtils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ export const usePageComponent = (): PageComponentRef =>
2222

2323
export const usePageData = <
2424
T extends Record<string, unknown> = Record<string, unknown>,
25-
>(): PageDataRef<T> => useClientData().pageData as PageDataRef<T>
25+
>(): PageDataRef<T> => useClientData<Record<string, unknown>, T>().pageData
2626

2727
export const usePageFrontmatter = <
2828
T extends Record<string, unknown> = Record<string, unknown>,
29-
>(): PageFrontmatterRef<T> =>
30-
useClientData().pageFrontmatter as PageFrontmatterRef<T>
29+
>(): PageFrontmatterRef<T> => useClientData<T>().pageFrontmatter
3130

3231
export const usePageHead = (): PageHeadRef => useClientData().pageHead
3332

packages/client/src/types/clientData.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ export type RoutesRef = Ref<Routes>
5454
export type SiteDataRef = Ref<SiteData>
5555
export type SiteLocaleDataRef = ComputedRef<SiteLocaleData>
5656

57-
export interface ClientData {
57+
export interface ClientData<
58+
Frontmatter extends Record<string, unknown> = Record<string, unknown>,
59+
Data extends Record<string, unknown> = Record<string, unknown>,
60+
> {
5861
layouts: LayoutsRef
5962
pageComponent: PageComponentRef
60-
pageData: PageDataRef
61-
pageFrontmatter: PageFrontmatterRef
63+
pageData: PageDataRef<Data>
64+
pageFrontmatter: PageFrontmatterRef<Frontmatter>
6265
pageHead: PageHeadRef
6366
pageHeadTitle: PageHeadTitleRef
6467
pageLang: PageLangRef

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/core",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"description": "Core package of VuePress",
55
"keywords": [
66
"vuepress",
@@ -35,7 +35,7 @@
3535
"@vuepress/markdown": "workspace:*",
3636
"@vuepress/shared": "workspace:*",
3737
"@vuepress/utils": "workspace:*",
38-
"vue": "^3.5.11"
38+
"vue": "^3.5.13"
3939
},
4040
"publishConfig": {
4141
"access": "public"

packages/core/src/app/createBaseApp.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ import { resolveAppWriteTemp } from './resolveAppWriteTemp.js'
2020
*
2121
* Notice that the base app could not be used for dev nor build.
2222
*
23-
* It would be used for creating dev app or build app, or for testing.
23+
* It would be used for creating dev app or build app internally.
24+
*
25+
* @internal
2426
*/
2527
export const createBaseApp = (config: AppConfig): App => {
2628
const options = resolveAppOptions(config)

packages/markdown/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/markdown",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"description": "Markdown package of VuePress",
55
"keywords": [
66
"vuepress",

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuepress/shared",
3-
"version": "2.0.0-rc.18",
3+
"version": "2.0.0-rc.19",
44
"description": "Utils that shared between VuePress node and client",
55
"keywords": [
66
"vuepress",

0 commit comments

Comments
 (0)