skuba 12.1.0-auto-map-experimental-vm-modules-20250808074558 → 12.1.0-auto-map-experimental-vm-modules-20250809002953

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.
@@ -34,17 +34,10 @@ module.exports = __toCommonJS(test_exports);
34
34
  var import_exec = require("../../utils/exec.js");
35
35
  const test = async () => {
36
36
  const argv = process.argv.slice(2);
37
- const nodeOptions = process.env.NODE_OPTIONS || "";
37
+ const nodeOptions = process.env.NODE_OPTIONS ?? "";
38
38
  const execWithEnv = (0, import_exec.createExec)({
39
39
  env: {
40
- // This is usually set in `jest-cli`'s binary wrapper
41
- NODE_ENV: process.env.NODE_ENV ?? "test",
42
- // ts-jest is logging a warning about `isolatedModules`.
43
- // This is a workaround until we can remove the `isolatedModules` option.
44
- // https://github.com/seek-oss/skuba/issues/1841
45
- TS_JEST_LOG: process.env.TS_JEST_LOG ?? "stdout:error",
46
- // Add experimental VM modules support if not already present
47
- NODE_OPTIONS: !nodeOptions.includes("--experimental-vm-modules") ? `${nodeOptions} --experimental-vm-modules` : nodeOptions
40
+ NODE_OPTIONS: !nodeOptions.includes("--experimental-vm-modules") ? `${nodeOptions} --experimental-vm-modules --no-warnings=ExperimentalWarning` : nodeOptions
48
41
  }
49
42
  });
50
43
  return execWithEnv(require.resolve("jest/bin/jest"), ...argv);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/cli/test/index.ts"],
4
- "sourcesContent": ["import { createExec } from '../../utils/exec.js';\n\nexport const test = async () => {\n const argv = process.argv.slice(2);\n\n // Prepare environment variables for Jest\n const nodeOptions = process.env.NODE_OPTIONS || '';\n\n const execWithEnv = createExec({\n env: {\n // This is usually set in `jest-cli`'s binary wrapper\n NODE_ENV: process.env.NODE_ENV ?? 'test',\n\n // ts-jest is logging a warning about `isolatedModules`.\n // This is a workaround until we can remove the `isolatedModules` option.\n // https://github.com/seek-oss/skuba/issues/1841\n TS_JEST_LOG: process.env.TS_JEST_LOG ?? 'stdout:error',\n\n // Add experimental VM modules support if not already present\n NODE_OPTIONS: !nodeOptions.includes('--experimental-vm-modules')\n ? `${nodeOptions} --experimental-vm-modules`\n : nodeOptions,\n },\n });\n\n // Run Jest in a child process with proper environment\n return execWithEnv(require.resolve('jest/bin/jest'), ...argv);\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA2B;AAEpB,MAAM,OAAO,YAAY;AAC9B,QAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAGjC,QAAM,cAAc,QAAQ,IAAI,gBAAgB;AAEhD,QAAM,kBAAc,wBAAW;AAAA,IAC7B,KAAK;AAAA;AAAA,MAEH,UAAU,QAAQ,IAAI,YAAY;AAAA;AAAA;AAAA;AAAA,MAKlC,aAAa,QAAQ,IAAI,eAAe;AAAA;AAAA,MAGxC,cAAc,CAAC,YAAY,SAAS,2BAA2B,IAC3D,GAAG,WAAW,+BACd;AAAA,IACN;AAAA,EACF,CAAC;AAGD,SAAO,YAAY,gBAAgB,eAAe,GAAG,GAAG,IAAI;AAC9D;",
4
+ "sourcesContent": ["import { createExec } from '../../utils/exec.js';\n\nexport const test = async () => {\n const argv = process.argv.slice(2);\n\n const nodeOptions = process.env.NODE_OPTIONS ?? '';\n\n const execWithEnv = createExec({\n env: {\n NODE_OPTIONS: !nodeOptions.includes('--experimental-vm-modules')\n ? `${nodeOptions} --experimental-vm-modules --no-warnings=ExperimentalWarning`\n : nodeOptions,\n },\n });\n\n // Run Jest in a child process with proper environment\n return execWithEnv(require.resolve('jest/bin/jest'), ...argv);\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA2B;AAEpB,MAAM,OAAO,YAAY;AAC9B,QAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,QAAM,cAAc,QAAQ,IAAI,gBAAgB;AAEhD,QAAM,kBAAc,wBAAW;AAAA,IAC7B,KAAK;AAAA,MACH,cAAc,CAAC,YAAY,SAAS,2BAA2B,IAC3D,GAAG,WAAW,iEACd;AAAA,IACN;AAAA,EACF,CAAC;AAGD,SAAO,YAAY,gBAAgB,eAAe,GAAG,GAAG,IAAI;AAC9D;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skuba",
3
- "version": "12.1.0-auto-map-experimental-vm-modules-20250808074558",
3
+ "version": "12.1.0-auto-map-experimental-vm-modules-20250809002953",
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",
@@ -97,7 +97,7 @@
97
97
  "tsx": "^4.16.2",
98
98
  "typescript": "~5.9.0",
99
99
  "zod": "^4.0.0",
100
- "eslint-config-skuba": "7.1.0-auto-map-experimental-vm-modules-20250808074558"
100
+ "eslint-config-skuba": "7.1.0-auto-map-experimental-vm-modules-20250809002953"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@changesets/cli": "2.29.5",
@@ -162,7 +162,7 @@
162
162
  "lint:packages": "pnpm --filter '!./template/**' lint",
163
163
  "release": "pnpm --silent build && changeset publish",
164
164
  "skuba": "pnpm --silent build && pnpm --silent skuba:exec",
165
- "skuba:exec": "node --no-warnings=ExperimentalWarning lib/skuba",
165
+ "skuba:exec": "node lib/skuba",
166
166
  "stage": "changeset version && node ./.changeset/inject.js && pnpm format",
167
167
  "test": "pnpm --silent skuba test --selectProjects unit",
168
168
  "test:ci": "pnpm --silent skuba test --runInBand",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^22.13.10",
20
- "skuba": "12.1.0-auto-map-experimental-vm-modules-20250808074558"
20
+ "skuba": "12.1.0-auto-map-experimental-vm-modules-20250809002953"
21
21
  },
22
22
  "packageManager": "pnpm@10.14.0",
23
23
  "engines": {
@@ -222,7 +222,7 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
222
222
  ],
223
223
  },
224
224
  ],
225
- "ReservedConcurrentExecutions": 2,
225
+ "ReservedConcurrentExecutions": 3,
226
226
  "Role": {
227
227
  "Fn::GetAtt": [
228
228
  "workerServiceRole2130CC7F",
@@ -1104,7 +1104,7 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
1104
1104
  "ReportBatchItemFailures",
1105
1105
  ],
1106
1106
  "ScalingConfig": {
1107
- "MaximumConcurrency": 20,
1107
+ "MaximumConcurrency": 19,
1108
1108
  },
1109
1109
  "Tags": [
1110
1110
  {
@@ -142,7 +142,7 @@ export class AppStack extends Stack {
142
142
 
143
143
  workerDeployment.alias.addEventSource(
144
144
  new aws_lambda_event_sources.SqsEventSource(queue, {
145
- maxConcurrency: config.workerLambda.reservedConcurrency,
145
+ maxConcurrency: config.workerLambda.reservedConcurrency - 1, // Ensure we have capacity reserved for our blue/green deployment
146
146
  batchSize: config.workerLambda.batchSize,
147
147
  reportBatchItemFailures: true,
148
148
  }),
@@ -26,7 +26,7 @@ const configs: Record<Environment, Config> = {
26
26
  appName: '<%- serviceName %>',
27
27
  workerLambda: {
28
28
  batchSize: 10,
29
- reservedConcurrency: 2,
29
+ reservedConcurrency: 3,
30
30
  environment: {
31
31
  ENVIRONMENT: 'dev',
32
32
  SERVICE: '<%- serviceName %>',
@@ -37,7 +37,7 @@
37
37
  "constructs": "^10.0.17",
38
38
  "datadog-cdk-constructs-v2": "^2.0.0",
39
39
  "pino-pretty": "^13.0.0",
40
- "skuba": "12.1.0-auto-map-experimental-vm-modules-20250808074558"
40
+ "skuba": "12.1.0-auto-map-experimental-vm-modules-20250809002953"
41
41
  },
42
42
  "packageManager": "pnpm@10.14.0",
43
43
  "engines": {