@guardian/cdk 64.2.0 → 64.4.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +1591 -0
  2. package/lib/bin/commands/new-project/index.d.ts.map +1 -1
  3. package/lib/bin/commands/new-project/index.js +4 -2
  4. package/lib/bin/commands/new-project/index.js.map +1 -1
  5. package/lib/bin/commands/new-project/utils/imports.d.ts.map +1 -1
  6. package/lib/bin/commands/new-project/utils/imports.js +8 -0
  7. package/lib/bin/commands/new-project/utils/imports.js.map +1 -1
  8. package/lib/constructs/acm/certificate.js +1 -1
  9. package/lib/constructs/acm/certificate.js.map +1 -1
  10. package/lib/constructs/cloudwatch/api-gateway-alarms.js +1 -1
  11. package/lib/constructs/cloudwatch/api-gateway-alarms.js.map +1 -1
  12. package/lib/constructs/cloudwatch/ec2-alarms.js +3 -3
  13. package/lib/constructs/cloudwatch/ec2-alarms.js.map +1 -1
  14. package/lib/constructs/core/identity.d.ts +3 -1
  15. package/lib/constructs/core/identity.d.ts.map +1 -1
  16. package/lib/constructs/core/identity.js +8 -3
  17. package/lib/constructs/core/identity.js.map +1 -1
  18. package/lib/constructs/core/parameters/acm.js +1 -1
  19. package/lib/constructs/core/parameters/acm.js.map +1 -1
  20. package/lib/constructs/core/parameters/ec2.js +1 -1
  21. package/lib/constructs/core/parameters/ec2.js.map +1 -1
  22. package/lib/constructs/ecs/ecs-task.js +1 -1
  23. package/lib/constructs/ecs/ecs-task.js.map +1 -1
  24. package/lib/constructs/loadbalancing/alb/application-load-balancer.js +1 -1
  25. package/lib/constructs/loadbalancing/alb/application-load-balancer.js.map +1 -1
  26. package/lib/experimental/patterns/gu-load-balanced-app.d.ts.map +1 -1
  27. package/lib/experimental/patterns/gu-load-balanced-app.js +24 -14
  28. package/lib/experimental/patterns/gu-load-balanced-app.js.map +1 -1
  29. package/lib/patterns/ec2-app/base.js +1 -1
  30. package/lib/patterns/ec2-app/base.js.map +1 -1
  31. package/lib/utils/mixin/app-aware-construct.js +1 -1
  32. package/lib/utils/mixin/app-aware-construct.js.map +1 -1
  33. package/package.json +10 -9
@@ -1 +1 @@
1
- {"version":3,"file":"app-aware-construct.js","sourceRoot":"","sources":["../../../src/utils/mixin/app-aware-construct.ts"],"names":[],"mappings":";;AAIA,kDAuCC;AA3CD,2CAAuC;AACvC,gDAAoD;AAGpD,SAAgB,mBAAmB,CAA+B,SAAgB;IAChF,MAAM,KAAM,SAAQ,SAAS;QAO3B,wGAAwG;QACxG,YAAsB,GAAG,IAAW;YAClC,4EAA4E;YAC5E,MAAM,CAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;YAEzC,IAAI,CAAC,kBAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;YACrF,CAAC;YAED,MAAM,GAAG,GAAW,KAAK,CAAC,GAAG,CAAC;YAC9B,MAAM,SAAS,GAAG,kBAAW,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,EAAE,EAAY,CAAC,CAAC;YAEhE,4EAA4E;YAC5E,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;YACnD,0EAA0E;YAC1E,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC;YAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAE3B;;;;;iBAKK;YACL,IAAI,sBAAS,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;gBAChC,kBAAW,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import { Construct } from \"constructs\";\nimport { AppIdentity } from \"../../constructs/core\";\nimport type { AnyConstructor } from \"./types\";\n\nexport function GuAppAwareConstruct<TBase extends AnyConstructor>(BaseClass: TBase) {\n class Mixin extends BaseClass {\n /**\n * The ID of the construct with the App suffix.\n * This should be used in place of `id` when trying to reference the construct.\n */\n readonly idWithApp: string;\n\n // eslint-disable-next-line custom-rules/valid-constructors, @typescript-eslint/no-explicit-any -- mixin\n protected constructor(...args: any[]) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- mixin\n const [scope, id, props, ...rest] = args;\n\n if (!AppIdentity.isAppIdentity(props)) {\n throw new Error(\"Cannot use the GuAppAwareConstruct mixin without an AppIdentity\");\n }\n\n const app: string = props.app;\n const idWithApp = AppIdentity.suffixText({ app }, id as string);\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- mixin\n const newArgs = [scope, idWithApp, props, ...rest];\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- mixin\n super(...newArgs);\n\n this.idWithApp = idWithApp;\n\n /*\n Add the `App` tag to the construct.\n Although not every resource can be tagged, it's still safe to make the call.\n If AWS support tags on a new resource one day, our test suite will fail and we can celebrate!\n See https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html\n */\n if (Construct.isConstruct(this)) {\n AppIdentity.taggedConstruct({ app }, this);\n }\n }\n }\n return Mixin;\n}\n"]}
1
+ {"version":3,"file":"app-aware-construct.js","sourceRoot":"","sources":["../../../src/utils/mixin/app-aware-construct.ts"],"names":[],"mappings":";;AAIA,kDAuCC;AA3CD,2CAAuC;AACvC,gDAAoD;AAGpD,SAAgB,mBAAmB,CAA+B,SAAgB;IAChF,MAAM,KAAM,SAAQ,SAAS;QAO3B,wGAAwG;QACxG,YAAsB,GAAG,IAAW;YAClC,4EAA4E;YAC5E,MAAM,CAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;YAEzC,IAAI,CAAC,kBAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;YACrF,CAAC;YAED,MAAM,GAAG,GAAW,KAAK,CAAC,GAAG,CAAC;YAC9B,MAAM,SAAS,GAAG,kBAAW,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,EAAE,EAAY,CAAC,CAAC;YAEvE,4EAA4E;YAC5E,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;YACnD,0EAA0E;YAC1E,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC;YAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAE3B;;;;;iBAKK;YACL,IAAI,sBAAS,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;gBAChC,kBAAW,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import { Construct } from \"constructs\";\nimport { AppIdentity } from \"../../constructs/core\";\nimport type { AnyConstructor } from \"./types\";\n\nexport function GuAppAwareConstruct<TBase extends AnyConstructor>(BaseClass: TBase) {\n class Mixin extends BaseClass {\n /**\n * The ID of the construct with the App suffix.\n * This should be used in place of `id` when trying to reference the construct.\n */\n readonly idWithApp: string;\n\n // eslint-disable-next-line custom-rules/valid-constructors, @typescript-eslint/no-explicit-any -- mixin\n protected constructor(...args: any[]) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- mixin\n const [scope, id, props, ...rest] = args;\n\n if (!AppIdentity.isAppIdentity(props)) {\n throw new Error(\"Cannot use the GuAppAwareConstruct mixin without an AppIdentity\");\n }\n\n const app: string = props.app;\n const idWithApp = AppIdentity.addAppToStringEnd({ app }, id as string);\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- mixin\n const newArgs = [scope, idWithApp, props, ...rest];\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- mixin\n super(...newArgs);\n\n this.idWithApp = idWithApp;\n\n /*\n Add the `App` tag to the construct.\n Although not every resource can be tagged, it's still safe to make the call.\n If AWS support tags on a new resource one day, our test suite will fail and we can celebrate!\n See https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html\n */\n if (Construct.isConstruct(this)) {\n AppIdentity.taggedConstruct({ app }, this);\n }\n }\n }\n return Mixin;\n}\n"]}
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@guardian/cdk",
3
3
  "description": "Generic Guardian flavoured AWS CDK components",
4
- "version": "64.2.0",
4
+ "version": "64.4.0",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "files": [
8
- "lib"
8
+ "lib",
9
+ "CHANGELOG.md"
9
10
  ],
10
11
  "bin": {
11
12
  "gu-cdk": "bin/gu-cdk"
@@ -40,9 +41,9 @@
40
41
  "@types/js-yaml": "^4.0.9",
41
42
  "@types/node": "26.1.1",
42
43
  "@types/yargs": "^17.0.33",
43
- "aws-cdk": "2.1110.0",
44
- "aws-cdk-lib": "2.241.0",
45
- "constructs": "10.5.1",
44
+ "aws-cdk": "2.1135.0",
45
+ "aws-cdk-lib": "2.263.0",
46
+ "constructs": "10.8.1",
46
47
  "eslint": "^9.39.2",
47
48
  "eslint-plugin-custom-rules": "file:tools/eslint",
48
49
  "gh-pages": "^6.3.0",
@@ -60,13 +61,13 @@
60
61
  "chalk": "^4.1.2",
61
62
  "codemaker": "^1.138.0",
62
63
  "git-url-parse": "^16.0.1",
63
- "js-yaml": "^4.3.0",
64
+ "js-yaml": "^4.3.1",
64
65
  "read-pkg-up": "7.0.1",
65
66
  "yargs": "^17.7.2"
66
67
  },
67
68
  "peerDependencies": {
68
- "aws-cdk": "^2.1110.0",
69
- "aws-cdk-lib": "^2.241.0",
70
- "constructs": "^10.5.1"
69
+ "aws-cdk": "^2.1135.0",
70
+ "aws-cdk-lib": "^2.263.0",
71
+ "constructs": "^10.8.1"
71
72
  }
72
73
  }