From 683d51a5eecafbbfbfed3910a3f1fbf0b3531b99 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 10 Apr 2024 14:53:55 +0100 Subject: [PATCH] feat: upgrade the minimum Node.js maintainance LTS version (#10689) * feat: upgrade the minimum Node.js maintainance LTS version * chore: update minimum npm version * chore: revert npm change * chore: address Erika's feedback * chore: apply further suggestions * Update .changeset/empty-rules-type.md Co-authored-by: Sarah Rainsberger --------- Co-authored-by: Sarah Rainsberger --- .changeset/empty-rules-type.md | 17 +++++++++++++++++ package.json | 2 +- packages/astro-prism/package.json | 2 +- packages/astro/package.json | 5 +++-- packages/create-astro/package.json | 2 +- packages/integrations/markdoc/package.json | 2 +- packages/integrations/mdx/package.json | 2 +- packages/integrations/preact/package.json | 2 +- packages/integrations/react/package.json | 2 +- packages/integrations/solid/package.json | 2 +- packages/integrations/svelte/package.json | 2 +- packages/integrations/vue/package.json | 2 +- packages/telemetry/package.json | 2 +- packages/upgrade/package.json | 2 +- 14 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 .changeset/empty-rules-type.md diff --git a/.changeset/empty-rules-type.md b/.changeset/empty-rules-type.md new file mode 100644 index 000000000000..fd4933291b7f --- /dev/null +++ b/.changeset/empty-rules-type.md @@ -0,0 +1,17 @@ +--- +"@astrojs/markdoc": minor +"@astrojs/preact": minor +"@astrojs/svelte": minor +"@astrojs/react": minor +"@astrojs/solid-js": minor +"@astrojs/mdx": minor +"@astrojs/vue": minor +"create-astro": minor +"@astrojs/prism": minor +"@astrojs/telemetry": minor +"@astrojs/upgrade": minor +"astro": minor +--- + +Upgrades the minimum version of Node.js to `v18.20.1`. This change is in line with Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support). + diff --git a/package.json b/package.json index 0222a1a302b6..009cf5445426 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "packages/*" ], "engines": { - "node": ">=18.14.1", + "node": "^18.17.1 || ^20.3.0 || >=21.0.0", "pnpm": ">=8.6.12" }, "packageManager": "pnpm@8.6.12", diff --git a/packages/astro-prism/package.json b/packages/astro-prism/package.json index d62e819a8253..584ebce935e3 100644 --- a/packages/astro-prism/package.json +++ b/packages/astro-prism/package.json @@ -39,6 +39,6 @@ "astro-scripts": "workspace:*" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" } } diff --git a/packages/astro/package.json b/packages/astro/package.json index 4eaeb6fe13f6..ed449d256f9a 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -224,8 +224,9 @@ "unified": "^11.0.4" }, "engines": { - "node": ">=18.14.1", - "npm": ">=6.14.0" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0" }, "publishConfig": { "provenance": true diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index dceda919481b..4b2fc5872d7e 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -41,7 +41,7 @@ "strip-json-comments": "^5.0.1" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index d67001e75ce1..883d61f30c7e 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -86,7 +86,7 @@ "vite": "^5.1.4" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 89dba4e92b87..4fc7d2b9a1a3 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -75,7 +75,7 @@ "vite": "^5.1.4" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 37ac943311d9..9861046d1583 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -52,7 +52,7 @@ "preact": "^10.6.5" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 87a104de5835..b7555bf28cc1 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -66,7 +66,7 @@ "react-dom": "^17.0.2 || ^18.0.0" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index 3efd536fe599..819759a7b870 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -46,7 +46,7 @@ "solid-js": "^1.8.5" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index d20d3c5a27eb..0c7c77b50230 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -57,7 +57,7 @@ "typescript": "^5.3.3" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index 28f3655efc59..18f48bfff678 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -58,7 +58,7 @@ "vue": "^3.2.30" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json index 206ecf54cb42..d325fec14eb7 100644 --- a/packages/telemetry/package.json +++ b/packages/telemetry/package.json @@ -45,7 +45,7 @@ "astro-scripts": "workspace:*" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json index 8d31efaf5db4..4869b0b0b420 100644 --- a/packages/upgrade/package.json +++ b/packages/upgrade/package.json @@ -42,6 +42,6 @@ "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=18.14.1" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" } }