From 33560b13d7ee28f5aef86c42bb1be97995606b6b Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 5 Apr 2024 09:13:18 +0100 Subject: [PATCH 1/6] feat: upgrade the minimum Node.js maintainance LTS version --- .changeset/empty-rules-type.md | 17 +++++++++++++++++ package.json | 2 +- packages/astro-prism/package.json | 2 +- packages/astro/package.json | 2 +- 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, 30 insertions(+), 13 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..c9cb813538bb --- /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 [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support) + diff --git a/package.json b/package.json index b68cdf1b44b7..9d16f5370923 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "packages/*" ], "engines": { - "node": ">=18.14.1", + "node": ">=18.20.1", "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..142be20af3ee 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.20.1" } } diff --git a/packages/astro/package.json b/packages/astro/package.json index 3d8910d1c397..aff144a5978e 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -224,7 +224,7 @@ "unified": "^11.0.4" }, "engines": { - "node": ">=18.14.1", + "node": ">=18.20.1", "npm": ">=6.14.0" }, "publishConfig": { diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index dceda919481b..4525523f3df8 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.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index d67001e75ce1..cb04e9bba543 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.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 89dba4e92b87..ee3624344696 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.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 37ac943311d9..b3fdd907f605 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.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 574740d991fe..1bb884057aeb 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.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index 3efd536fe599..40ece82afb8b 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.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index d20d3c5a27eb..ec958ec90d22 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.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index 341dd8ef0dc4..e925bb81c2af 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -59,7 +59,7 @@ "vue": "^3.2.30" }, "engines": { - "node": ">=18.14.1" + "node": ">=18.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json index 206ecf54cb42..33669521f958 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.20.1" }, "publishConfig": { "provenance": true diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json index 8d31efaf5db4..9e59c745eb3a 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.20.1" } } From e084a300886d8f74d30719988605718585652ea3 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 5 Apr 2024 10:33:33 +0100 Subject: [PATCH 2/6] chore: update minimum npm version --- packages/astro/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/package.json b/packages/astro/package.json index aff144a5978e..9365a9181d56 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -225,7 +225,7 @@ }, "engines": { "node": ">=18.20.1", - "npm": ">=6.14.0" + "npm": ">=10.5.0" }, "publishConfig": { "provenance": true From e812bdaf32d6da55908db45ad6893b3d8ec56127 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 5 Apr 2024 11:06:46 +0100 Subject: [PATCH 3/6] chore: revert npm change --- packages/astro/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/package.json b/packages/astro/package.json index 9365a9181d56..aff144a5978e 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -225,7 +225,7 @@ }, "engines": { "node": ">=18.20.1", - "npm": ">=10.5.0" + "npm": ">=6.14.0" }, "publishConfig": { "provenance": true From bbd273376496124dd78ba32d1169edd0e6af4422 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 8 Apr 2024 10:53:43 +0100 Subject: [PATCH 4/6] chore: address Erika's feedback --- package.json | 2 +- packages/astro-prism/package.json | 2 +- packages/astro/package.json | 2 +- 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 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 9d16f5370923..89c22d798457 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "packages/*" ], "engines": { - "node": ">=18.20.1", + "node": "^18.20.0 || ^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 142be20af3ee..a8f8a1476c55 100644 --- a/packages/astro-prism/package.json +++ b/packages/astro-prism/package.json @@ -39,6 +39,6 @@ "astro-scripts": "workspace:*" }, "engines": { - "node": ">=18.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" } } diff --git a/packages/astro/package.json b/packages/astro/package.json index aff144a5978e..b89eaf630155 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -224,7 +224,7 @@ "unified": "^11.0.4" }, "engines": { - "node": ">=18.20.1", + "node": "^18.20.0 || ^20.3.0 || >=21.0.0", "npm": ">=6.14.0" }, "publishConfig": { diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index 4525523f3df8..073b40d1b7c0 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.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index cb04e9bba543..0c4febbef3de 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -86,7 +86,7 @@ "vite": "^5.1.4" }, "engines": { - "node": ">=18.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index ee3624344696..16c9981202a1 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -75,7 +75,7 @@ "vite": "^5.1.4" }, "engines": { - "node": ">=18.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index b3fdd907f605..4f3b631f7f5d 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -52,7 +52,7 @@ "preact": "^10.6.5" }, "engines": { - "node": ">=18.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 1bb884057aeb..f470602d052f 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.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index 40ece82afb8b..061a8e37e134 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.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index ec958ec90d22..e6f2b6ff3e0a 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -57,7 +57,7 @@ "typescript": "^5.3.3" }, "engines": { - "node": ">=18.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index e925bb81c2af..f6dec05af5e1 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -59,7 +59,7 @@ "vue": "^3.2.30" }, "engines": { - "node": ">=18.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json index 33669521f958..7fc1bda1b47d 100644 --- a/packages/telemetry/package.json +++ b/packages/telemetry/package.json @@ -45,7 +45,7 @@ "astro-scripts": "workspace:*" }, "engines": { - "node": ">=18.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" }, "publishConfig": { "provenance": true diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json index 9e59c745eb3a..406bc38de361 100644 --- a/packages/upgrade/package.json +++ b/packages/upgrade/package.json @@ -42,6 +42,6 @@ "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=18.20.1" + "node": "^18.20.0 || ^20.3.0 || >=21.0.0" } } From d5df7860d54f05d2e58c074f9c17c6ecbebb9a41 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 8 Apr 2024 11:29:24 +0100 Subject: [PATCH 5/6] chore: apply further suggestions --- 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 +- 13 files changed, 15 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 89c22d798457..46d0e624a5c1 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "packages/*" ], "engines": { - "node": "^18.20.0 || ^20.3.0 || >=21.0.0", + "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 a8f8a1476c55..584ebce935e3 100644 --- a/packages/astro-prism/package.json +++ b/packages/astro-prism/package.json @@ -39,6 +39,6 @@ "astro-scripts": "workspace:*" }, "engines": { - "node": "^18.20.0 || ^20.3.0 || >=21.0.0" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" } } diff --git a/packages/astro/package.json b/packages/astro/package.json index b89eaf630155..1fa545323d3e 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -224,8 +224,9 @@ "unified": "^11.0.4" }, "engines": { - "node": "^18.20.0 || ^20.3.0 || >=21.0.0", - "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 073b40d1b7c0..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.20.0 || ^20.3.0 || >=21.0.0" + "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 0c4febbef3de..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.20.0 || ^20.3.0 || >=21.0.0" + "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 16c9981202a1..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.20.0 || ^20.3.0 || >=21.0.0" + "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 4f3b631f7f5d..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.20.0 || ^20.3.0 || >=21.0.0" + "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 f470602d052f..a39659eb1991 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.20.0 || ^20.3.0 || >=21.0.0" + "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 061a8e37e134..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.20.0 || ^20.3.0 || >=21.0.0" + "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 e6f2b6ff3e0a..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.20.0 || ^20.3.0 || >=21.0.0" + "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 f6dec05af5e1..2d6b2e92620d 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -59,7 +59,7 @@ "vue": "^3.2.30" }, "engines": { - "node": "^18.20.0 || ^20.3.0 || >=21.0.0" + "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 7fc1bda1b47d..d325fec14eb7 100644 --- a/packages/telemetry/package.json +++ b/packages/telemetry/package.json @@ -45,7 +45,7 @@ "astro-scripts": "workspace:*" }, "engines": { - "node": "^18.20.0 || ^20.3.0 || >=21.0.0" + "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 406bc38de361..4869b0b0b420 100644 --- a/packages/upgrade/package.json +++ b/packages/upgrade/package.json @@ -42,6 +42,6 @@ "strip-ansi": "^7.1.0" }, "engines": { - "node": "^18.20.0 || ^20.3.0 || >=21.0.0" + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" } } From 9fd8c155f128a8a7535aec27192f8b6a39a4206a Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Tue, 9 Apr 2024 14:55:36 +0100 Subject: [PATCH 6/6] Update .changeset/empty-rules-type.md Co-authored-by: Sarah Rainsberger --- .changeset/empty-rules-type.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/empty-rules-type.md b/.changeset/empty-rules-type.md index c9cb813538bb..fd4933291b7f 100644 --- a/.changeset/empty-rules-type.md +++ b/.changeset/empty-rules-type.md @@ -13,5 +13,5 @@ "astro": minor --- -Upgrades the minimum version of Node.js to `v18.20.1`. This change is in line with [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support) +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).