skuba 10.0.0-node-22-20250115063810 → 10.0.0-node-22-20250115220645

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.
@@ -27,11 +27,15 @@ var import_nodeVersion = require("../../../../../migrate/nodeVersion");
27
27
  const upgradeNode = async ({
28
28
  mode
29
29
  }) => {
30
- if (mode === "lint" || process.env.SKIP_NODE_UPGRADE) {
30
+ if (process.env.SKIP_NODE_UPGRADE) {
31
31
  return {
32
- result: "skip"
32
+ result: "skip",
33
+ reason: "SKIP_NODE_UPGRADE environment variable set"
33
34
  };
34
35
  }
36
+ if (mode === "lint") {
37
+ return { result: "apply" };
38
+ }
35
39
  await (0, import_nodeVersion.nodeVersionMigration)({ nodeVersion: 22, ECMAScriptVersion: "ES2024" });
36
40
  return { result: "apply" };
37
41
  };
@@ -39,7 +43,7 @@ const tryUpgradeNode = async (config) => {
39
43
  try {
40
44
  return await upgradeNode(config);
41
45
  } catch (err) {
42
- import_logging.log.warn("Failed to patch Docker images");
46
+ import_logging.log.warn("Failed to upgrade node version");
43
47
  import_logging.log.subtle((0, import_util.inspect)(err));
44
48
  return { result: "skip", reason: "due to an error" };
45
49
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../src/cli/lint/internalLints/upgrade/patches/10.0.0/upgradeNode.ts"],
4
- "sourcesContent": ["import { inspect } from 'util';\n\nimport type { PatchFunction, PatchReturnType } from '../..';\nimport { log } from '../../../../../../utils/logging';\nimport { nodeVersionMigration } from '../../../../../migrate/nodeVersion';\n\nconst upgradeNode: PatchFunction = async ({\n mode,\n}): Promise<PatchReturnType> => {\n if (mode === 'lint' || process.env.SKIP_NODE_UPGRADE) {\n return {\n result: 'skip',\n };\n }\n\n await nodeVersionMigration({ nodeVersion: 22, ECMAScriptVersion: 'ES2024' });\n\n return { result: 'apply' };\n};\n\nexport const tryUpgradeNode: PatchFunction = async (config) => {\n try {\n return await upgradeNode(config);\n } catch (err) {\n log.warn('Failed to patch Docker images');\n log.subtle(inspect(err));\n return { result: 'skip', reason: 'due to an error' };\n }\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwB;AAGxB,qBAAoB;AACpB,yBAAqC;AAErC,MAAM,cAA6B,OAAO;AAAA,EACxC;AACF,MAAgC;AAC9B,MAAI,SAAS,UAAU,QAAQ,IAAI,mBAAmB;AACpD,WAAO;AAAA,MACL,QAAQ;AAAA,IACV;AAAA,EACF;AAEA,YAAM,yCAAqB,EAAE,aAAa,IAAI,mBAAmB,SAAS,CAAC;AAE3E,SAAO,EAAE,QAAQ,QAAQ;AAC3B;AAEO,MAAM,iBAAgC,OAAO,WAAW;AAC7D,MAAI;AACF,WAAO,MAAM,YAAY,MAAM;AAAA,EACjC,SAAS,KAAK;AACZ,uBAAI,KAAK,+BAA+B;AACxC,uBAAI,WAAO,qBAAQ,GAAG,CAAC;AACvB,WAAO,EAAE,QAAQ,QAAQ,QAAQ,kBAAkB;AAAA,EACrD;AACF;",
4
+ "sourcesContent": ["import { inspect } from 'util';\n\nimport type { PatchFunction, PatchReturnType } from '../..';\nimport { log } from '../../../../../../utils/logging';\nimport { nodeVersionMigration } from '../../../../../migrate/nodeVersion';\n\nconst upgradeNode: PatchFunction = async ({\n mode,\n}): Promise<PatchReturnType> => {\n if (process.env.SKIP_NODE_UPGRADE) {\n return {\n result: 'skip',\n reason: 'SKIP_NODE_UPGRADE environment variable set',\n };\n }\n if (mode === 'lint') {\n return { result: 'apply' };\n }\n\n await nodeVersionMigration({ nodeVersion: 22, ECMAScriptVersion: 'ES2024' });\n\n return { result: 'apply' };\n};\n\nexport const tryUpgradeNode: PatchFunction = async (config) => {\n try {\n return await upgradeNode(config);\n } catch (err) {\n log.warn('Failed to upgrade node version');\n log.subtle(inspect(err));\n return { result: 'skip', reason: 'due to an error' };\n }\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwB;AAGxB,qBAAoB;AACpB,yBAAqC;AAErC,MAAM,cAA6B,OAAO;AAAA,EACxC;AACF,MAAgC;AAC9B,MAAI,QAAQ,IAAI,mBAAmB;AACjC,WAAO;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ;AAAA,IACV;AAAA,EACF;AACA,MAAI,SAAS,QAAQ;AACnB,WAAO,EAAE,QAAQ,QAAQ;AAAA,EAC3B;AAEA,YAAM,yCAAqB,EAAE,aAAa,IAAI,mBAAmB,SAAS,CAAC;AAE3E,SAAO,EAAE,QAAQ,QAAQ;AAC3B;AAEO,MAAM,iBAAgC,OAAO,WAAW;AAC7D,MAAI;AACF,WAAO,MAAM,YAAY,MAAM;AAAA,EACjC,SAAS,KAAK;AACZ,uBAAI,KAAK,gCAAgC;AACzC,uBAAI,WAAO,qBAAQ,GAAG,CAAC;AACvB,WAAO,EAAE,QAAQ,QAAQ,QAAQ,kBAAkB;AAAA,EACrD;AACF;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skuba",
3
- "version": "10.0.0-node-22-20250115063810",
3
+ "version": "10.0.0-node-22-20250115220645",
4
4
  "private": false,
5
5
  "description": "SEEK development toolkit for backend applications and packages",
6
6
  "homepage": "https://github.com/seek-oss/skuba#readme",
@@ -99,7 +99,7 @@
99
99
  "typescript": "~5.7.0",
100
100
  "validate-npm-package-name": "^6.0.0",
101
101
  "zod": "^3.22.4",
102
- "eslint-config-skuba": "5.1.0-node-22-20250115063810"
102
+ "eslint-config-skuba": "5.1.0-node-22-20250115220645"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@changesets/cli": "2.27.11",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^20.9.0",
20
- "skuba": "10.0.0-node-22-20250115063810"
20
+ "skuba": "10.0.0-node-22-20250115220645"
21
21
  },
22
22
  "packageManager": "pnpm@9.15.3",
23
23
  "engines": {
@@ -36,7 +36,7 @@
36
36
  "constructs": "^10.0.17",
37
37
  "datadog-cdk-constructs-v2": "^1.18.0",
38
38
  "pino-pretty": "^13.0.0",
39
- "skuba": "10.0.0-node-22-20250115063810"
39
+ "skuba": "10.0.0-node-22-20250115220645"
40
40
  },
41
41
  "packageManager": "pnpm@9.15.3",
42
42
  "engines": {
@@ -25,7 +25,7 @@ jobs:
25
25
  - name: Set up Node.js
26
26
  uses: actions/setup-node@v4
27
27
  with:
28
- node-version: 20.x
28
+ node-version: 22.x
29
29
 
30
30
  - name: Set up pnpm
31
31
  run: corepack enable pnpm && corepack install
@@ -21,7 +21,7 @@ jobs:
21
21
  - name: Set up Node.js
22
22
  uses: actions/setup-node@v4
23
23
  with:
24
- node-version: 20.x
24
+ node-version: 22.x
25
25
 
26
26
  - name: Set up pnpm
27
27
  run: corepack enable pnpm && corepack install