From 3a369f9f28b828d0715580b0220ebb20d5a0b1af Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 8 May 2025 00:12:44 +0000 Subject: [PATCH 1/2] chore(deps): upgrade dependencies Upgrades project dependencies. See details in [workflow run]. [Workflow Run]: https://github.com/aws/jsii-compiler/actions/runs/14895701389 ------ *Automatically created by projen via the "upgrade-maintenance-v5.6" workflow* Signed-off-by: github-actions --- .eslintrc.json | 28 ++++++++-------------------- package.json | 6 +++--- yarn.lock | 42 +++++++++++++++++++++--------------------- 3 files changed, 32 insertions(+), 44 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0e91c22b..9fc60df1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -46,9 +46,12 @@ "!projenrc/**/*.ts" ], "rules": { - "@typescript-eslint/no-require-imports": [ - "error" + "curly": [ + "error", + "multi-line", + "consistent" ], + "@typescript-eslint/no-require-imports": "error", "import/no-extraneous-dependencies": [ "error", { @@ -84,27 +87,12 @@ "no-shadow": [ "off" ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], + "@typescript-eslint/no-shadow": "error", + "@typescript-eslint/no-floating-promises": "error", "no-return-await": [ "off" ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], + "@typescript-eslint/return-await": "error", "dot-notation": [ "error" ], diff --git a/package.json b/package.json index 9e8f1f78..052eea97 100644 --- a/package.json +++ b/package.json @@ -64,14 +64,14 @@ "npm": "^9.9.4", "npm-check-updates": "^16", "prettier": "^2.8.8", - "projen": "^0.91.30", + "projen": "^0.92.0", "tar": "^6.2.1", "ts-jest": "^29.3.2", "ts-node": "^10.9.2" }, "dependencies": { - "@jsii/check-node": "1.111.0", - "@jsii/spec": "^1.111.0", + "@jsii/check-node": "1.112.0", + "@jsii/spec": "^1.112.0", "case": "^1.6.3", "chalk": "^4", "fast-deep-equal": "^3.1.3", diff --git a/yarn.lock b/yarn.lock index 1398b30c..865f0e89 100644 --- a/yarn.lock +++ b/yarn.lock @@ -450,9 +450,9 @@ integrity sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA== "@humanwhocodes/retry@^0.4.2": - version "0.4.2" - resolved "https://registry.yarnpkg.com/@humanwhocodes/retry/-/retry-0.4.2.tgz#1860473de7dfa1546767448f333db80cb0ff2161" - integrity sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ== + version "0.4.3" + resolved "https://registry.yarnpkg.com/@humanwhocodes/retry/-/retry-0.4.3.tgz#c2b9d2e374ee62c586d3adbea87199b1d7a7a6ba" + integrity sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ== "@iarna/toml@^2.2.5": version "2.2.5" @@ -732,18 +732,18 @@ chalk "^4.1.2" semver "^7.6.3" -"@jsii/check-node@1.111.0": - version "1.111.0" - resolved "https://registry.yarnpkg.com/@jsii/check-node/-/check-node-1.111.0.tgz#dfd6dce4f9d7a97924e51f152a5e5058039d7b4d" - integrity sha512-R3iLYH1gCixDFVhrltoeKuZvcLLx03fCDlQxl3sR0T5ko1fAWBn5zNaP6O6/d0vpXB3QevGcMJ78Xgll2gHvIA== +"@jsii/check-node@1.112.0": + version "1.112.0" + resolved "https://registry.yarnpkg.com/@jsii/check-node/-/check-node-1.112.0.tgz#da8b4282206636aa09813da577f4c77a145a9f85" + integrity sha512-ySf6hMcWvWrMtMLKEiBN6QN46oWqKfJtOHCdy13iQXTI38SuI9Lp2PaYMLcsN10fTOvLjhbYm3jAu48xwrsKAQ== dependencies: chalk "^4.1.2" semver "^7.7.1" -"@jsii/spec@^1.105.0", "@jsii/spec@^1.111.0": - version "1.111.0" - resolved "https://registry.yarnpkg.com/@jsii/spec/-/spec-1.111.0.tgz#b8fa48433565c5015b9c69595781cf3f3c6ba264" - integrity sha512-T2t5xg4Epv0+AhKjod6UR+WXGdnUSKysviUotHVdX0MgrLc6cTQKQwz9aL/dj4GUSfKsR7M58AKHVhM+cLpdWw== +"@jsii/spec@^1.105.0", "@jsii/spec@^1.112.0": + version "1.112.0" + resolved "https://registry.yarnpkg.com/@jsii/spec/-/spec-1.112.0.tgz#9a70db6bbe3c78ede1095686a7cacda8b2d91f26" + integrity sha512-O6peIhjjGkIQpbKUMHTNJHMuyqd6EXqWlxnBKpoBoUwDz18HXxt/SwUvnovYCELjgxOUMCdO5Y4/YjeABvatUw== dependencies: ajv "^8.17.1" @@ -1338,16 +1338,16 @@ integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA== "@types/node@*": - version "22.15.14" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.14.tgz#889fd356a04d003a6d5650ccc003ef4d712430d7" - integrity sha512-BL1eyu/XWsFGTtDWOYULQEs4KR0qdtYfCxYAUYRoB7JP7h9ETYLgQTww6kH8Sj2C0pFGgrpM0XKv6/kbIzYJ1g== + version "22.15.15" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.15.tgz#8877c05c18e552e738438e477d7ba22c5d73a57c" + integrity sha512-R5muMcZob3/Jjchn5LcO8jdKwSCbzqmPB6ruBxMcf9kbxtniZHP327s6C37iOfuw8mbKK3cAQa7sEl7afLrQ8A== dependencies: undici-types "~6.21.0" "@types/node@^18": - version "18.19.97" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.97.tgz#38443553a3f6288c8cac3d1b465a3b33121bbf72" - integrity sha512-4r3Y9EuCJjWduiam85Fo4GBQtneaEuoaBSdiKo+o6qwQUh0JFVBe7cRUK6I6yVzA0S1gBJJfoQx4VtBH4e5ikg== + version "18.19.98" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.98.tgz#2a8a9b24fb7ee9f55e4c19ae719060810831b927" + integrity sha512-+bP9tunb6pQbV5cV4z9EwCD/811rXGwXXI/cNK+8MIcm7Ufe9GWGoz91ERuC4MAn5Yp/SEWNYulaQdRHFG67iw== dependencies: undici-types "~5.26.4" @@ -5984,10 +5984,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.91.30: - version "0.91.30" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.91.30.tgz#53376db87f9bd360b2f326d9b256794fa93678ee" - integrity sha512-MJJA5g70PdgCUgk5KTKZfQqKD155ugoTxQtK2sbpU3Kn1GtYqhEvZld7FRxZpYZ0FxugiMiysOhMS+hWkQOZgg== +projen@^0.92.0: + version "0.92.0" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.92.0.tgz#d63e456f0f0e04a1acb03329793019892de6c9f2" + integrity sha512-Oujr/Vv7VtN10N9Z5wTc6B0JML+fWsjnLNwH9T4cYR+0vzQXWSiQNg8piMWmlZ+z4ZewGUDRbF5f3B9EmXmxNw== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3" From f2bd9d94aa2a0149792fa174fe0843a89afa3e2b Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 8 May 2025 00:15:23 +0000 Subject: [PATCH 2/2] chore: self-mutation Signed-off-by: github-actions --- src/transforms/deprecated-remover.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/transforms/deprecated-remover.ts b/src/transforms/deprecated-remover.ts index 7a6a4dff..5d7e98a9 100644 --- a/src/transforms/deprecated-remover.ts +++ b/src/transforms/deprecated-remover.ts @@ -241,10 +241,12 @@ export class DeprecatedRemover { if (isClassType(type) && type.initializer) { result.push(...this.verifyCallable(assembly, strippedFqns, type.initializer)); } - if (type.methods) + if (type.methods) { for (const method of type.methods) result.push(...this.verifyCallable(assembly, strippedFqns, method)); - if (type.properties) + } + if (type.properties) { for (const property of type.properties) result.push(...this.verifyProperty(assembly, strippedFqns, property)); + } } return result;