skuba 11.0.1 → 11.1.0-jest30-20250605034438

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/jest/transform.js CHANGED
@@ -15,8 +15,6 @@ const TS_JEST_PATH = require.resolve(TS_JEST_NAME);
15
15
 
16
16
  const maybeTsConfig = tryParseTsConfig();
17
17
 
18
- const isolatedModules = maybeTsConfig?.options.isolatedModules ?? true;
19
-
20
18
  const BROKEN_MODULE_RESOLUTIONS = new Set([
21
19
  ModuleResolutionKind.Bundler,
22
20
  ModuleResolutionKind.NodeNext,
@@ -45,18 +43,7 @@ const tsconfig = BROKEN_MODULE_RESOLUTIONS.has(
45
43
  module.exports.transform = Object.fromEntries(
46
44
  Object.entries(defaults.transform).map(([key, value]) => {
47
45
  if (typeof value === 'string') {
48
- return [
49
- key,
50
- value === TS_JEST_NAME
51
- ? [
52
- TS_JEST_PATH,
53
- {
54
- ...tsconfig,
55
- isolatedModules,
56
- },
57
- ]
58
- : value,
59
- ];
46
+ return [key, value === TS_JEST_NAME ? [TS_JEST_PATH, tsconfig] : value];
60
47
  }
61
48
 
62
49
  return [
@@ -67,7 +54,6 @@ module.exports.transform = Object.fromEntries(
67
54
  {
68
55
  ...value[1],
69
56
  ...tsconfig,
70
- isolatedModules,
71
57
  },
72
58
  ]
73
59
  : value,
@@ -1,4 +1,4 @@
1
- import prettier from 'prettier';
1
+ import type prettier from 'prettier';
2
2
  type Options = Pick<prettier.Options, 'filepath' | 'parser'>;
3
3
  export declare const formatPrettier: (source: string, options: Options) => Promise<string>;
4
4
  export {};
@@ -31,12 +31,14 @@ __export(prettier_exports, {
31
31
  formatPrettier: () => formatPrettier
32
32
  });
33
33
  module.exports = __toCommonJS(prettier_exports);
34
- var import_prettier = __toESM(require("prettier"));
35
- var import_prettier2 = __toESM(require("../../../../config/prettier"));
36
- const formatPrettier = (source, options) => import_prettier.default.format(source, {
37
- ...options,
38
- ...import_prettier2.default
39
- });
34
+ var import_prettier = __toESM(require("../../../../config/prettier"));
35
+ const formatPrettier = async (source, options) => {
36
+ const prettier = await import("prettier");
37
+ return prettier.format(source, {
38
+ ...options,
39
+ ...import_prettier.default
40
+ });
41
+ };
40
42
  // Annotate the CommonJS export names for ESM import in node:
41
43
  0 && (module.exports = {
42
44
  formatPrettier
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/cli/configure/processing/prettier.ts"],
4
- "sourcesContent": ["import prettier from 'prettier';\n\nimport prettierConfig from '../../../../config/prettier';\n\ntype Options = Pick<prettier.Options, 'filepath' | 'parser'>;\n\nexport const formatPrettier = (source: string, options: Options) =>\n prettier.format(source, {\n ...options,\n ...prettierConfig,\n });\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAqB;AAErB,IAAAA,mBAA2B;AAIpB,MAAM,iBAAiB,CAAC,QAAgB,YAC7C,gBAAAC,QAAS,OAAO,QAAQ;AAAA,EACtB,GAAG;AAAA,EACH,GAAG,iBAAAC;AACL,CAAC;",
6
- "names": ["import_prettier", "prettier", "prettierConfig"]
4
+ "sourcesContent": ["import type prettier from 'prettier';\n\nimport prettierConfig from '../../../../config/prettier';\n\ntype Options = Pick<prettier.Options, 'filepath' | 'parser'>;\n\nexport const formatPrettier = async (source: string, options: Options) => {\n const prettier = await import('prettier');\n return prettier.format(source, {\n ...options,\n ...prettierConfig,\n });\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAA2B;AAIpB,MAAM,iBAAiB,OAAO,QAAgB,YAAqB;AACxE,QAAM,WAAW,MAAM,OAAO,UAAU;AACxC,SAAO,SAAS,OAAO,QAAQ;AAAA,IAC7B,GAAG;AAAA,IACH,GAAG,gBAAAA;AAAA,EACL,CAAC;AACH;",
6
+ "names": ["prettierConfig"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skuba",
3
- "version": "11.0.1",
3
+ "version": "11.1.0-jest30-20250605034438",
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",
@@ -76,7 +76,7 @@
76
76
  "ignore": "^7.0.0",
77
77
  "is-installed-globally": "^0.4.0",
78
78
  "isomorphic-git": "^1.11.1",
79
- "jest": "^29.0.1",
79
+ "jest": "^30.0.0-beta.4",
80
80
  "jest-watch-typeahead": "^2.1.1",
81
81
  "lodash.mergewith": "^4.6.2",
82
82
  "minimist": "^1.2.6",
@@ -6,7 +6,8 @@
6
6
  "paths": {
7
7
  "src": ["src"]
8
8
  },
9
- "target": "ES2024"
9
+ "target": "ES2024",
10
+ "isolatedModules": true
10
11
  },
11
12
  "exclude": ["lib*/**/*"],
12
13
  "extends": "skuba/config/tsconfig.json"
@@ -1,4 +1,4 @@
1
- # syntax=docker/dockerfile:1.15
1
+ # syntax=docker/dockerfile:1.16
2
2
 
3
3
  FROM public.ecr.aws/docker/library/node:22-alpine AS dev-deps
4
4
 
@@ -1,4 +1,4 @@
1
- # syntax=docker/dockerfile:1.15
1
+ # syntax=docker/dockerfile:1.16
2
2
 
3
3
  FROM public.ecr.aws/docker/library/node:22-alpine AS dev-deps
4
4
 
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^22.13.10",
20
- "skuba": "*"
20
+ "skuba": "11.1.0-jest30-20250605034438"
21
21
  },
22
22
  "packageManager": "pnpm@10.10.0",
23
23
  "engines": {
@@ -1,4 +1,4 @@
1
- # syntax=docker/dockerfile:1.15
1
+ # syntax=docker/dockerfile:1.16
2
2
 
3
3
  FROM public.ecr.aws/docker/library/node:22-alpine AS dev-deps
4
4
 
@@ -1,4 +1,4 @@
1
- # syntax=docker/dockerfile:1.15
1
+ # syntax=docker/dockerfile:1.16
2
2
 
3
3
  FROM public.ecr.aws/docker/library/node:22-alpine AS dev-deps
4
4
 
@@ -187,6 +187,8 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
187
187
  "DD_SERVERLESS_APPSEC_ENABLED": "false",
188
188
  "DD_SERVERLESS_LOGS_ENABLED": "false",
189
189
  "DD_SITE": "datadoghq.com",
190
+ "DD_TRACE_CLOUD_REQUEST_PAYLOAD_TAGGING": "$.*",
191
+ "DD_TRACE_CLOUD_RESPONSE_PAYLOAD_TAGGING": "$.*",
190
192
  "DD_TRACE_ENABLED": "true",
191
193
  "DESTINATION_SNS_TOPIC_ARN": {
192
194
  "Ref": "destinationtopicDCE2E0B8",
@@ -915,6 +917,8 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
915
917
  "DD_SERVERLESS_APPSEC_ENABLED": "false",
916
918
  "DD_SERVERLESS_LOGS_ENABLED": "false",
917
919
  "DD_SITE": "datadoghq.com",
920
+ "DD_TRACE_CLOUD_REQUEST_PAYLOAD_TAGGING": "$.*",
921
+ "DD_TRACE_CLOUD_RESPONSE_PAYLOAD_TAGGING": "$.*",
918
922
  "DD_TRACE_ENABLED": "true",
919
923
  "DESTINATION_SNS_TOPIC_ARN": {
920
924
  "Ref": "destinationtopicDCE2E0B8",
@@ -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": "*"
40
+ "skuba": "11.1.0-jest30-20250605034438"
41
41
  },
42
42
  "packageManager": "pnpm@10.10.0",
43
43
  "engines": {
@@ -1,18 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "lib": [
5
- // open-telemetry/opentelemetry-js#3580
6
- "DOM",
7
-
8
- "ES2024"
9
- ],
10
- "outDir": "lib",
11
- "paths": {
12
- "src": ["src"]
13
- },
14
- "target": "ES2024"
15
- },
16
- "exclude": ["lib*/**/*"],
17
- "extends": "skuba/config/tsconfig.json"
18
- }