Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/proud-apples-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@astrojs/markdoc': patch
'@astrojs/preact': patch
'@astrojs/svelte': patch
'@astrojs/react': patch
'@astrojs/solid-js': patch
'@astrojs/mdx': patch
'create-astro': patch
'@astrojs/prism': patch
'@astrojs/upgrade': patch
'astro': patch
---

Removes temporary support for Node >=20.19.1 because Stackblitz now uses Node 22 by default
2 changes: 1 addition & 1 deletion packages/astro-prism/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"astro-scripts": "workspace:*"
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
}
}
7 changes: 2 additions & 5 deletions packages/astro/bin/astro.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ const CI_INSTRUCTIONS = {
VERCEL: 'https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version',
};

// TODO: remove once Stackblitz supports Node 22
const IS_STACKBLITZ = !!process.versions.webcontainer;

// Hardcode supported Node.js version so we don't have to read differently in CJS & ESM.
const engines = IS_STACKBLITZ ? '>=20.19.1' : '>=22.12.0';
const skipSemverCheckIfAbove = IS_STACKBLITZ ? 21 : 23;
const engines = '>=22.12.0';
const skipSemverCheckIfAbove = 23;

/** `astro *` */
async function main() {
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
"vitest": "^3.2.4"
},
"engines": {
"node": "^20.19.1 || >=22.12.0",
"node": ">=22.12.0",
"npm": ">=9.6.5",
"pnpm": ">=7.1.0"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/create-astro/create-astro.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

const currentVersion = process.versions.node;
const requiredMajorVersion = Number.parseInt(currentVersion.split('.')[0], 10);
// TODO: remove once Stackblitz supports Node 22
const IS_STACKBLITZ = !!process.versions.webcontainer;
const minimumMajorVersion = IS_STACKBLITZ ? 20 : 22;
const minimumMajorVersion = 22;

if (requiredMajorVersion < minimumMajorVersion) {
console.error(`Node.js v${currentVersion} is out-of-date and unsupported!`);
Expand Down
2 changes: 1 addition & 1 deletion packages/create-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"astro-scripts": "workspace:*"
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"vite": "^7.3.1"
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"vite": "^7.3.1"
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"preact": "^10.6.5"
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0"
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"typescript": "^5.3.3"
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/upgrade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"astro-scripts": "workspace:*"
},
"engines": {
"node": "^20.19.1 || >=22.12.0"
"node": ">=22.12.0"
}
}
4 changes: 1 addition & 3 deletions packages/upgrade/upgrade.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

const currentVersion = process.versions.node;
const requiredMajorVersion = Number.parseInt(currentVersion.split('.')[0], 10);
// TODO: remove once Stackblitz supports Node 22
const IS_STACKBLITZ = !!process.versions.webcontainer;
const minimumMajorVersion = IS_STACKBLITZ ? 20 : 22;
const minimumMajorVersion = 22;

if (requiredMajorVersion < minimumMajorVersion) {
console.error(`Node.js v${currentVersion} is out-of-date and unsupported!`);
Expand Down
Loading