From eeac2d2e217ddbca79d5b1dfde9bb5097e821b6a Mon Sep 17 00:00:00 2001 From: Shinigami Date: Thu, 5 May 2022 16:17:37 +0200 Subject: [PATCH] build!: remove node v12 support (#7833) --- .github/workflows/ci.yml | 2 +- docs/guide/index.md | 2 +- package.json | 2 +- packages/create-vite/README.md | 2 +- packages/create-vite/package.json | 2 +- packages/plugin-legacy/package.json | 2 +- packages/plugin-react/package.json | 2 +- packages/plugin-vue-jsx/package.json | 2 +- packages/plugin-vue/package.json | 2 +- packages/vite/package.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2832dab118e279..4818124be2430f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node_version: [12, 14, 16, 17, 18] + node_version: [14, 16, 18] include: - os: macos-latest node_version: 16 diff --git a/docs/guide/index.md b/docs/guide/index.md index 5af7c29c17ac3c..338bd42a565aa3 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -38,7 +38,7 @@ The supported template presets are: ## Scaffolding Your First Vite Project ::: tip Compatibility Note -Vite requires [Node.js](https://nodejs.org/en/) version >=12.2.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it. +Vite requires [Node.js](https://nodejs.org/en/) version >=14.6.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it. ::: With NPM: diff --git a/package.json b/package.json index cf18c4ee36e894..269f1bb99cb826 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vite-monorepo", "private": true, "engines": { - "node": ">=12.2.0" + "node": ">=14.6.0" }, "homepage": "https://vitejs.dev/", "keywords": [ diff --git a/packages/create-vite/README.md b/packages/create-vite/README.md index 79d5ae12d93597..e22c268ab99f9c 100644 --- a/packages/create-vite/README.md +++ b/packages/create-vite/README.md @@ -3,7 +3,7 @@ ## Scaffolding Your First Vite Project > **Compatibility Note:** -> Vite requires [Node.js](https://nodejs.org/en/) version >=12.2.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it. +> Vite requires [Node.js](https://nodejs.org/en/) version >=14.6.0. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it. With NPM: diff --git a/packages/create-vite/package.json b/packages/create-vite/package.json index b78537705cc14d..38ffa81a2768ee 100644 --- a/packages/create-vite/package.json +++ b/packages/create-vite/package.json @@ -13,7 +13,7 @@ ], "main": "index.js", "engines": { - "node": ">=12.0.0" + "node": ">=14.6.0" }, "repository": { "type": "git", diff --git a/packages/plugin-legacy/package.json b/packages/plugin-legacy/package.json index 948bbb152ce56f..057cf6513bc11a 100644 --- a/packages/plugin-legacy/package.json +++ b/packages/plugin-legacy/package.json @@ -10,7 +10,7 @@ "main": "index.js", "types": "index.d.ts", "engines": { - "node": ">=12.0.0" + "node": ">=14.6.0" }, "repository": { "type": "git", diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index 4c8280a3a5ff9a..813db5ecf23aed 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -21,7 +21,7 @@ "prepublishOnly": "(cd ../vite && npm run build) && npm run build" }, "engines": { - "node": ">=12.0.0" + "node": ">=14.6.0" }, "repository": { "type": "git", diff --git a/packages/plugin-vue-jsx/package.json b/packages/plugin-vue-jsx/package.json index 32f346f6ea0024..91ef19c2049850 100644 --- a/packages/plugin-vue-jsx/package.json +++ b/packages/plugin-vue-jsx/package.json @@ -10,7 +10,7 @@ "main": "index.js", "types": "index.d.ts", "engines": { - "node": ">=12.0.0" + "node": ">=14.6.0" }, "repository": { "type": "git", diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index d9e1e0cc9c4ba1..ef775fb0b1d15f 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -19,7 +19,7 @@ "prepublishOnly": "(cd ../vite && npm run build) && npm run build" }, "engines": { - "node": ">=12.0.0" + "node": ">=14.6.0" }, "repository": { "type": "git", diff --git a/packages/vite/package.json b/packages/vite/package.json index 07d0025c449e75..55c86878622111 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -17,7 +17,7 @@ "types" ], "engines": { - "node": ">=12.2.0" + "node": ">=14.6.0" }, "repository": { "type": "git",