Skip to content

Commit

Permalink
build: drop support for node 16
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop support for node 16
  • Loading branch information
meteorlxy committed Sep 11, 2023
1 parent eefcd86 commit 10b0aa9
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ['16', '18', '20']
node: ['18', '20']
bundler: ['vite', 'webpack']

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ['16', '18', '20']
node: ['18', '20']

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

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ VuePress v2 is currently in `beta` stage. It's ready to be used for building you

## Prerequisites

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

::: tip
Expand Down
12 changes: 8 additions & 4 deletions docs/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

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

## Syntax Extensions

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.

This section will introduce built-in Markdown syntax extensions of VuePress.

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.

## Syntax Extensions

This section will introduce built-in Markdown syntax extensions of VuePress.

### Embedded

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

## Custom Markdown Plugins

Sometimes #940

## Cautions

### Non-Standard HTML Tags
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ VuePress v2 目前仍处于 `beta` 阶段。你已经可以用它来构建你的

## 依赖环境

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

::: tip
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/vuepress-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"vue": "^3.3.4"
},
"engines": {
"node": ">=16.19.0"
"node": ">=18.16.0"
}
}
2 changes: 1 addition & 1 deletion ecosystem/vuepress-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"vue": "^3.3.4"
},
"engines": {
"node": ">=16.19.0"
"node": ">=18.16.0"
}
}
2 changes: 1 addition & 1 deletion ecosystem/vuepress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"vuepress-vite": "workspace:*"
},
"engines": {
"node": ">=16.19.0"
"node": ">=18.16.0"
}
}
2 changes: 1 addition & 1 deletion packages/bundler-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
],
"outDir": "./dist",
"sourcemap": false,
"target": "es2020",
"target": "es2022",
"tsconfig": "../tsconfig.dts.json"
}
}
2 changes: 1 addition & 1 deletion packages/bundler-webpack/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const shared = defineConfig({
clean: true,
outDir: './dist',
sourcemap: false,
target: 'es2020',
target: 'es2022',
tsconfig: '../tsconfig.dts.json',
})

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
],
"outDir": "./dist",
"sourcemap": false,
"target": "es2020",
"target": "es2022",
"tsconfig": "../tsconfig.dts.json"
}
}
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
],
"outDir": "./dist",
"sourcemap": false,
"target": "es2020",
"target": "es2022",
"tsconfig": "./tsconfig.dts.json"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
],
"outDir": "./dist",
"sourcemap": false,
"target": "es2020",
"target": "es2022",
"tsconfig": "../tsconfig.dts.json"
}
}
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
],
"outDir": "./dist",
"sourcemap": false,
"target": "es2020",
"target": "es2022",
"tsconfig": "../tsconfig.dts.json"
}
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
],
"outDir": "./dist",
"sourcemap": false,
"target": "es2020",
"target": "es2022",
"tsconfig": "../tsconfig.dts.json"
}
}
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
],
"outDir": "./dist",
"sourcemap": false,
"target": "es2020",
"target": "es2022",
"tsconfig": "../tsconfig.dts.json"
}
}
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"extends": "tsconfig-vuepress/base.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"lib": ["DOM", "ES2020"],
"lib": ["DOM", "ES2022"],
"module": "ESNext",
"moduleResolution": "Bundler",
"noEmitOnError": true,
"noImplicitAny": false,
"skipLibCheck": true,
"target": "ES2021"
"target": "ES2022"
}
}

0 comments on commit 10b0aa9

Please sign in to comment.