@astrojs/upgrade 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/upgrade.mjs +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/upgrade",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "astro-scripts": "0.0.14"
35
35
  },
36
36
  "engines": {
37
- "node": "^20.19.1 || >=22.12.0"
37
+ "node": ">=22.12.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "astro-scripts build \"src/index.ts\" --bundle && tsc",
package/upgrade.mjs CHANGED
@@ -4,9 +4,7 @@
4
4
 
5
5
  const currentVersion = process.versions.node;
6
6
  const requiredMajorVersion = Number.parseInt(currentVersion.split('.')[0], 10);
7
- // TODO: remove once Stackblitz supports Node 22
8
- const IS_STACKBLITZ = !!process.versions.webcontainer;
9
- const minimumMajorVersion = IS_STACKBLITZ ? 20 : 22;
7
+ const minimumMajorVersion = 22;
10
8
 
11
9
  if (requiredMajorVersion < minimumMajorVersion) {
12
10
  console.error(`Node.js v${currentVersion} is out-of-date and unsupported!`);