Skip to content

Commit 10b0aa9

Browse files
committed
build: drop support for node 16
BREAKING CHANGE: drop support for node 16
1 parent eefcd86 commit 10b0aa9

File tree

17 files changed

+25
-21
lines changed

17 files changed

+25
-21
lines changed

Diff for: .github/workflows/check-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-latest, windows-latest, macos-latest]
21-
node: ['16', '18', '20']
21+
node: ['18', '20']
2222
bundler: ['vite', 'webpack']
2323

2424
runs-on: ${{ matrix.os }}

Diff for: .github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-latest, windows-latest, macos-latest]
21-
node: ['16', '18', '20']
21+
node: ['18', '20']
2222

2323
runs-on: ${{ matrix.os }}
2424

Diff for: docs/guide/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VuePress v2 is currently in `beta` stage. It's ready to be used for building you
66

77
## Prerequisites
88

9-
- [Node.js v16.19.0+](https://nodejs.org/)
9+
- [Node.js v18.16.0+](https://nodejs.org/)
1010
- [Yarn v1 classic](https://classic.yarnpkg.com/en/) (Optional)
1111

1212
::: tip

Diff for: docs/guide/markdown.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
Make sure you already know Markdown well before reading this section. If not, please learn some [Markdown tutorials](https://commonmark.org/help/) first.
44

5-
## Syntax Extensions
6-
75
The Markdown content in VuePress will be parsed by [markdown-it](https://github.com/markdown-it/markdown-it), which supports [syntax extensions](https://github.com/markdown-it/markdown-it#syntax-extensions) via markdown-it plugins.
86

9-
This section will introduce built-in Markdown syntax extensions of VuePress.
10-
117
You can also configure those built-in extensions, load more markdown-it plugins and implement your own extensions via [markdown](../reference/config.md#markdown) option and [extendsMarkdown](../reference/plugin-api.md#extendsmarkdown) option.
128

9+
## Syntax Extensions
10+
11+
This section will introduce built-in Markdown syntax extensions of VuePress.
12+
1313
### Embedded
1414

1515
Embedded by markdown-it:
@@ -414,6 +414,10 @@ Check out the [Built-in Components](../reference/components.md) for a full list
414414
Check out the [Default Theme > Built-in Components](../reference/default-theme/components.md) for a full list of default theme built-in components.
415415
:::
416416

417+
## Custom Markdown Plugins
418+
419+
Sometimes #940
420+
417421
## Cautions
418422

419423
### Non-Standard HTML Tags

Diff for: docs/zh/guide/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VuePress v2 目前仍处于 `beta` 阶段。你已经可以用它来构建你的
66

77
## 依赖环境
88

9-
- [Node.js v16.19.0+](https://nodejs.org/)
9+
- [Node.js v18.16.0+](https://nodejs.org/)
1010
- [Yarn v1 classic](https://classic.yarnpkg.com/zh-Hans/) (可选)
1111

1212
::: tip

Diff for: ecosystem/vuepress-vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"vue": "^3.3.4"
5454
},
5555
"engines": {
56-
"node": ">=16.19.0"
56+
"node": ">=18.16.0"
5757
}
5858
}

Diff for: ecosystem/vuepress-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
"vue": "^3.3.4"
5151
},
5252
"engines": {
53-
"node": ">=16.19.0"
53+
"node": ">=18.16.0"
5454
}
5555
}

Diff for: ecosystem/vuepress/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
"vuepress-vite": "workspace:*"
4242
},
4343
"engines": {
44-
"node": ">=16.19.0"
44+
"node": ">=18.16.0"
4545
}
4646
}

Diff for: packages/bundler-vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
],
6262
"outDir": "./dist",
6363
"sourcemap": false,
64-
"target": "es2020",
64+
"target": "es2022",
6565
"tsconfig": "../tsconfig.dts.json"
6666
}
6767
}

Diff for: packages/bundler-webpack/tsup.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const shared = defineConfig({
44
clean: true,
55
outDir: './dist',
66
sourcemap: false,
7-
target: 'es2020',
7+
target: 'es2022',
88
tsconfig: '../tsconfig.dts.json',
99
})
1010

Diff for: packages/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
],
6262
"outDir": "./dist",
6363
"sourcemap": false,
64-
"target": "es2020",
64+
"target": "es2022",
6565
"tsconfig": "../tsconfig.dts.json"
6666
}
6767
}

Diff for: packages/client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
],
6767
"outDir": "./dist",
6868
"sourcemap": false,
69-
"target": "es2020",
69+
"target": "es2022",
7070
"tsconfig": "./tsconfig.dts.json"
7171
}
7272
}

Diff for: packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
],
5252
"outDir": "./dist",
5353
"sourcemap": false,
54-
"target": "es2020",
54+
"target": "es2022",
5555
"tsconfig": "../tsconfig.dts.json"
5656
}
5757
}

Diff for: packages/markdown/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
],
6666
"outDir": "./dist",
6767
"sourcemap": false,
68-
"target": "es2020",
68+
"target": "es2022",
6969
"tsconfig": "../tsconfig.dts.json"
7070
}
7171
}

Diff for: packages/shared/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
],
5151
"outDir": "./dist",
5252
"sourcemap": false,
53-
"target": "es2020",
53+
"target": "es2022",
5454
"tsconfig": "../tsconfig.dts.json"
5555
}
5656
}

Diff for: packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
],
5858
"outDir": "./dist",
5959
"sourcemap": false,
60-
"target": "es2020",
60+
"target": "es2022",
6161
"tsconfig": "../tsconfig.dts.json"
6262
}
6363
}

Diff for: tsconfig.base.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"extends": "tsconfig-vuepress/base.json",
33
"compilerOptions": {
44
"allowSyntheticDefaultImports": true,
5-
"lib": ["DOM", "ES2020"],
5+
"lib": ["DOM", "ES2022"],
66
"module": "ESNext",
77
"moduleResolution": "Bundler",
88
"noEmitOnError": true,
99
"noImplicitAny": false,
1010
"skipLibCheck": true,
11-
"target": "ES2021"
11+
"target": "ES2022"
1212
}
1313
}

0 commit comments

Comments
 (0)