From b2f671ab3b25acb2b08f80428bdc16c649966840 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Tue, 8 Aug 2023 15:51:58 +0530 Subject: [PATCH] chore(build)!: drop node 16 support (#2744) --- .github/workflows/test.yml | 2 +- docs/guide/deploy.md | 2 +- docs/guide/getting-started.md | 2 +- netlify.toml | 2 +- rollup.config.ts | 2 +- src/node/tsconfig.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 516ff3f2..70b6828d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: - node_version: [16, 18, 20] + node_version: [18, 20] steps: - name: Checkout diff --git a/docs/guide/deploy.md b/docs/guide/deploy.md index 679d9ff9..4994b320 100644 --- a/docs/guide/deploy.md +++ b/docs/guide/deploy.md @@ -111,7 +111,7 @@ Set up a new project and change these settings using your dashboard: - **Build Command:** `npm run docs:build` - **Output Directory:** `docs/.vitepress/dist` -- **Node Version:** `16` (or above, by default it usually will be 14 or 16, but on Cloudflare Pages the default is still 12, so you may need to [change that](https://developers.cloudflare.com/pages/platform/build-configuration/)) +- **Node Version:** `18` (or above) ::: warning Don't enable options like _Auto Minify_ for HTML code. It will remove comments from output which have meaning to Vue. You may see hydration mismatch errors if they get removed. diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index acb29568..f285d3ce 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -8,7 +8,7 @@ You can try VitePress directly in your browser on [StackBlitz](https://vitepress ### Prerequisites -- [Node.js](https://nodejs.org/) version 16 or higher. +- [Node.js](https://nodejs.org/) version 18 or higher. - Terminal for accessing VitePress via its command line interface (CLI). - Text Editor with [Markdown](https://en.wikipedia.org/wiki/Markdown) syntax support. - [VSCode](https://code.visualstudio.com/) is recommended, along with the [official Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar). diff --git a/netlify.toml b/netlify.toml index c1ae33d3..f4e5c802 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build.environment] - NODE_VERSION = "16" + NODE_VERSION = "18" [build] publish = "docs/.vitepress/dist" diff --git a/rollup.config.ts b/rollup.config.ts index 9c43ac3d..91255ea4 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -42,7 +42,7 @@ const plugins = [ }), commonjs(), nodeResolve({ preferBuiltins: false }), - esbuild({ target: 'node14' }), + esbuild({ target: 'node18' }), json() ] diff --git a/src/node/tsconfig.json b/src/node/tsconfig.json index 26db4671..44906f44 100644 --- a/src/node/tsconfig.json +++ b/src/node/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "target": "es2020", + "target": "es2022", "baseUrl": ".", "outDir": "../../dist/node", "module": "esnext",