@astrojs/upgrade 0.7.0-beta.1 → 0.7.0

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.
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  // ../../node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.js
28
28
  var require_arg = __commonJS({
29
29
  "../../node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.js"(exports, module) {
30
- var flagSymbol = Symbol("arg flag");
30
+ var flagSymbol = /* @__PURE__ */ Symbol("arg flag");
31
31
  var ArgError = class _ArgError extends Error {
32
32
  constructor(msg, code) {
33
33
  super(msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/upgrade",
3
- "version": "0.7.0-beta.1",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -25,8 +25,8 @@
25
25
  "dependencies": {
26
26
  "@astrojs/cli-kit": "^0.4.1",
27
27
  "package-manager-detector": "^1.6.0",
28
- "semver": "^7.7.3",
29
- "terminal-link": "^4.0.0"
28
+ "semver": "^7.7.4",
29
+ "terminal-link": "^5.0.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/semver": "^7.7.1",
@@ -34,7 +34,7 @@
34
34
  "astro-scripts": "0.0.14"
35
35
  },
36
36
  "engines": {
37
- "node": "^20.19.5 || >=22.12.0"
37
+ "node": "^20.19.1 || >=22.12.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "astro-scripts build \"src/index.ts\" --bundle && tsc",
package/upgrade.mjs CHANGED
@@ -3,13 +3,13 @@
3
3
  'use strict';
4
4
 
5
5
  const currentVersion = process.versions.node;
6
- const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10);
6
+ const requiredMajorVersion = Number.parseInt(currentVersion.split('.')[0], 10);
7
7
  // TODO: remove once Stackblitz supports Node 22
8
8
  const IS_STACKBLITZ = !!process.versions.webcontainer;
9
9
  const minimumMajorVersion = IS_STACKBLITZ ? 20 : 22;
10
10
 
11
11
  if (requiredMajorVersion < minimumMajorVersion) {
12
- console.error(`Node.js v${currentVersion} is out of date and unsupported!`);
12
+ console.error(`Node.js v${currentVersion} is out-of-date and unsupported!`);
13
13
  console.error(`Please use Node.js v${minimumMajorVersion} or higher.`);
14
14
  process.exit(1);
15
15
  }