diff --git a/.changeset/chilled-jeans-wink.md b/.changeset/chilled-jeans-wink.md new file mode 100644 index 0000000000..9a35efff4f --- /dev/null +++ b/.changeset/chilled-jeans-wink.md @@ -0,0 +1,9 @@ +--- +"@guardian/cdk": patch +--- + +Remove direct dependencies that should be peer ones: +- `aws-cdk-lib` +- `constructs` + +No change for consumers that provide compatible packages diff --git a/package-lock.json b/package-lock.json index 1535376431..f4db955dae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,9 @@ "version": "53.0.2", "dependencies": { "@oclif/core": "2.15.0", - "aws-cdk-lib": "2.121.1", "aws-sdk": "^2.1538.0", "chalk": "^4.1.2", "codemaker": "^1.94.0", - "constructs": "10.3.0", "git-url-parse": "^14.0.0", "js-yaml": "^4.1.0", "lodash.camelcase": "^4.3.0", @@ -39,6 +37,8 @@ "@types/node": "20.11.5", "@types/yargs": "^17.0.32", "aws-cdk": "2.121.1", + "aws-cdk-lib": "2.121.1", + "constructs": "10.3.0", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.56.0", "eslint-plugin-custom-rules": "file:tools/eslint", @@ -81,17 +81,20 @@ "node_modules/@aws-cdk/asset-awscli-v1": { "version": "2.2.201", "resolved": "https://registry.npmjs.org/@aws-cdk/asset-awscli-v1/-/asset-awscli-v1-2.2.201.tgz", - "integrity": "sha512-INZqcwDinNaIdb5CtW3ez5s943nX5stGBQS6VOP2JDlOFP81hM3fds/9NDknipqfUkZM43dx+HgVvkXYXXARCQ==" + "integrity": "sha512-INZqcwDinNaIdb5CtW3ez5s943nX5stGBQS6VOP2JDlOFP81hM3fds/9NDknipqfUkZM43dx+HgVvkXYXXARCQ==", + "dev": true }, "node_modules/@aws-cdk/asset-kubectl-v20": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/@aws-cdk/asset-kubectl-v20/-/asset-kubectl-v20-2.1.2.tgz", - "integrity": "sha512-3M2tELJOxQv0apCIiuKQ4pAbncz9GuLwnKFqxifWfe77wuMxyTRPmxssYHs42ePqzap1LT6GDcPygGs+hHstLg==" + "integrity": "sha512-3M2tELJOxQv0apCIiuKQ4pAbncz9GuLwnKFqxifWfe77wuMxyTRPmxssYHs42ePqzap1LT6GDcPygGs+hHstLg==", + "dev": true }, "node_modules/@aws-cdk/asset-node-proxy-agent-v6": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.0.1.tgz", - "integrity": "sha512-DDt4SLdLOwWCjGtltH4VCST7hpOI5DzieuhGZsBpZ+AgJdSI2GCjklCXm0GCTwJG/SolkL5dtQXyUKgg9luBDg==" + "integrity": "sha512-DDt4SLdLOwWCjGtltH4VCST7hpOI5DzieuhGZsBpZ+AgJdSI2GCjklCXm0GCTwJG/SolkL5dtQXyUKgg9luBDg==", + "dev": true }, "node_modules/@babel/code-frame": { "version": "7.22.13", @@ -3276,6 +3279,7 @@ "table", "yaml" ], + "dev": true, "dependencies": { "@aws-cdk/asset-awscli-v1": "^2.2.201", "@aws-cdk/asset-kubectl-v20": "^2.1.2", @@ -3300,11 +3304,13 @@ }, "node_modules/aws-cdk-lib/node_modules/@balena/dockerignore": { "version": "1.0.2", + "dev": true, "inBundle": true, "license": "Apache-2.0" }, "node_modules/aws-cdk-lib/node_modules/ajv": { "version": "8.12.0", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3320,6 +3326,7 @@ }, "node_modules/aws-cdk-lib/node_modules/ansi-regex": { "version": "5.0.1", + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -3328,6 +3335,7 @@ }, "node_modules/aws-cdk-lib/node_modules/ansi-styles": { "version": "4.3.0", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3342,6 +3350,7 @@ }, "node_modules/aws-cdk-lib/node_modules/astral-regex": { "version": "2.0.0", + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -3350,11 +3359,13 @@ }, "node_modules/aws-cdk-lib/node_modules/balanced-match": { "version": "1.0.2", + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/aws-cdk-lib/node_modules/brace-expansion": { "version": "1.1.11", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3364,6 +3375,7 @@ }, "node_modules/aws-cdk-lib/node_modules/case": { "version": "1.6.3", + "dev": true, "inBundle": true, "license": "(MIT OR GPL-3.0-or-later)", "engines": { @@ -3372,6 +3384,7 @@ }, "node_modules/aws-cdk-lib/node_modules/color-convert": { "version": "2.0.1", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3383,26 +3396,31 @@ }, "node_modules/aws-cdk-lib/node_modules/color-name": { "version": "1.1.4", + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/aws-cdk-lib/node_modules/concat-map": { "version": "0.0.1", + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/aws-cdk-lib/node_modules/emoji-regex": { "version": "8.0.0", + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/aws-cdk-lib/node_modules/fast-deep-equal": { "version": "3.1.3", + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/aws-cdk-lib/node_modules/fs-extra": { "version": "11.2.0", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3416,11 +3434,13 @@ }, "node_modules/aws-cdk-lib/node_modules/graceful-fs": { "version": "4.2.11", + "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/aws-cdk-lib/node_modules/ignore": { "version": "5.3.0", + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -3429,6 +3449,7 @@ }, "node_modules/aws-cdk-lib/node_modules/is-fullwidth-code-point": { "version": "3.0.0", + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -3437,11 +3458,13 @@ }, "node_modules/aws-cdk-lib/node_modules/json-schema-traverse": { "version": "1.0.0", + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/aws-cdk-lib/node_modules/jsonfile": { "version": "6.1.0", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3453,6 +3476,7 @@ }, "node_modules/aws-cdk-lib/node_modules/jsonschema": { "version": "1.4.1", + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -3461,11 +3485,13 @@ }, "node_modules/aws-cdk-lib/node_modules/lodash.truncate": { "version": "4.4.2", + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/aws-cdk-lib/node_modules/lru-cache": { "version": "6.0.0", + "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -3477,6 +3503,7 @@ }, "node_modules/aws-cdk-lib/node_modules/minimatch": { "version": "3.1.2", + "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -3488,6 +3515,7 @@ }, "node_modules/aws-cdk-lib/node_modules/punycode": { "version": "2.3.1", + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -3496,6 +3524,7 @@ }, "node_modules/aws-cdk-lib/node_modules/require-from-string": { "version": "2.0.2", + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -3504,6 +3533,7 @@ }, "node_modules/aws-cdk-lib/node_modules/semver": { "version": "7.5.4", + "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -3518,6 +3548,7 @@ }, "node_modules/aws-cdk-lib/node_modules/slice-ansi": { "version": "4.0.0", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3534,6 +3565,7 @@ }, "node_modules/aws-cdk-lib/node_modules/string-width": { "version": "4.2.3", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3547,6 +3579,7 @@ }, "node_modules/aws-cdk-lib/node_modules/strip-ansi": { "version": "6.0.1", + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -3558,6 +3591,7 @@ }, "node_modules/aws-cdk-lib/node_modules/table": { "version": "6.8.1", + "dev": true, "inBundle": true, "license": "BSD-3-Clause", "dependencies": { @@ -3573,6 +3607,7 @@ }, "node_modules/aws-cdk-lib/node_modules/universalify": { "version": "2.0.1", + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -3581,6 +3616,7 @@ }, "node_modules/aws-cdk-lib/node_modules/uri-js": { "version": "4.4.1", + "dev": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -3589,11 +3625,13 @@ }, "node_modules/aws-cdk-lib/node_modules/yallist": { "version": "4.0.0", + "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/aws-cdk-lib/node_modules/yaml": { "version": "1.10.2", + "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -4492,6 +4530,7 @@ "version": "10.3.0", "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.3.0.tgz", "integrity": "sha512-vbK8i3rIb/xwZxSpTjz3SagHn1qq9BChLEfy5Hf6fB3/2eFbrwt2n9kHwQcS0CPTRBesreeAcsJfMq2229FnbQ==", + "dev": true, "engines": { "node": ">= 16.14.0" } diff --git a/package.json b/package.json index 3bef124cdb..921d0a86ff 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,8 @@ "@types/node": "20.11.5", "@types/yargs": "^17.0.32", "aws-cdk": "2.121.1", + "aws-cdk-lib": "2.121.1", + "constructs": "10.3.0", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.56.0", "eslint-plugin-custom-rules": "file:tools/eslint", @@ -55,11 +57,9 @@ }, "dependencies": { "@oclif/core": "2.15.0", - "aws-cdk-lib": "2.121.1", "aws-sdk": "^2.1538.0", "chalk": "^4.1.2", "codemaker": "^1.94.0", - "constructs": "10.3.0", "git-url-parse": "^14.0.0", "js-yaml": "^4.1.0", "lodash.camelcase": "^4.3.0", @@ -78,4 +78,4 @@ "path": "./node_modules/cz-conventional-changelog" } } -} \ No newline at end of file +} diff --git a/src/constants/library-info.ts b/src/constants/library-info.ts index 958d754cdd..00ee0fe270 100644 --- a/src/constants/library-info.ts +++ b/src/constants/library-info.ts @@ -32,11 +32,11 @@ export const LibraryInfo = { * The version of the `aws-cdk-lib` library used by `@guardian/cdk`. * You need to match this version exactly. */ - AWS_CDK_VERSION: valueOrUnknown(getDependency("aws-cdk-lib")), + AWS_CDK_VERSION: valueOrUnknown(getDevDependency("aws-cdk-lib")), /** * The version of the `constructs` library used by `@guardian/cdk`. * You need to match this version exactly. */ - CONSTRUCTS_VERSION: valueOrUnknown(getDependency("constructs")), + CONSTRUCTS_VERSION: valueOrUnknown(getDevDependency("constructs")), };