Skip to content

Commit

Permalink
chore: npm-check-updates && yarn upgrade (#3099)
Browse files Browse the repository at this point in the history
* chore: npm-check-updates && yarn upgrade

Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.

* Remove type hack

* Disable new rule

* Disable other new rule

* Fixed it the wrong way

Co-authored-by: AWS CDK Automation <aws-cdk-automation@users.noreply.github.com>
Co-authored-by: Rico Huijbers <rix0rrr@gmail.com>
  • Loading branch information
3 people authored Nov 26, 2021
1 parent 3841538 commit a2bf477
Show file tree
Hide file tree
Showing 28 changed files with 1,025 additions and 1,103 deletions.
4 changes: 4 additions & 0 deletions eslint-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ rules:
'no-case-declarations': off
'require-atomic-updates': off

# This is not a bad rule but it got sprung on us and our code loudly fails it
# Disable to get the eslint upgrade to pass.
'@typescript-eslint/no-unsafe-argument': off

# 'consistent-return' actually decreases safety. Its use will enforce useless `throws`
# statements, forcing a runtime error that occlude cases where the TypeScript type
# checker would actually have caught something like a non-exhaustive `switch` statement
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
"compliance": "(cd tools/jsii-compliance && yarn report)"
},
"devDependencies": {
"@jest/types": "^27.2.4",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"@jest/types": "^27.2.5",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"all-contributors-cli": "^6.20.0",
"eslint": "^7.32.0",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-prettier": "^4.0.0",
"jest-circus": "^27.2.4",
"jest-config": "^27.2.4",
"jest-circus": "^27.3.1",
"jest-config": "^27.3.1",
"lerna": "^4.0.0",
"prettier": "^2.4.1",
"standard-version": "^9.3.1",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
"standard-version": "^9.3.2",
"ts-jest": "^27.0.7",
"ts-node": "^10.4.0",
"typescript": "~3.9.10"
},
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions packages/@jsii/check-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"devDependencies": {
"@types/chalk": "^2.2.0",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"jest": "^27.2.4"
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"jest": "^27.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/@jsii/dotnet-runtime-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"devDependencies": {
"@jsii/dotnet-runtime": "^0.0.0",
"@types/node": "^12.20.28",
"@types/node": "^12.20.37",
"jsii-calc": "^3.20.120",
"jsii-pacmak": "^0.0.0",
"typescript": "~3.9.10"
Expand Down
4 changes: 2 additions & 2 deletions packages/@jsii/dotnet-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"devDependencies": {
"@jsii/runtime": "^0.0.0",
"@types/node": "^12.20.28",
"@types/semver": "^7.3.8",
"@types/node": "^12.20.37",
"@types/semver": "^7.3.9",
"jsii-build-tools": "^0.0.0",
"semver": "^7.3.5",
"typescript": "~3.9.10"
Expand Down
6 changes: 3 additions & 3 deletions packages/@jsii/go-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/node": "^12.20.28",
"@types/node": "^12.20.37",
"codemaker": "^0.0.0",
"eslint": "^7.32.0",
"eslint": "^8.3.0",
"fs-extra": "^9.1.0",
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
"prettier": "^2.4.1",
"ts-node": "^10.2.1",
"ts-node": "^10.4.0",
"typescript": "~3.9.10"
}
}
12 changes: 6 additions & 6 deletions packages/@jsii/integ-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
},
"license": "Apache-2.0",
"dependencies": {
"@octokit/rest": "^18.11.4",
"@octokit/rest": "^18.12.0",
"dotenv": "^8.6.0",
"fs-extra": "^9.1.0",
"jest": "^27.2.4",
"jest": "^27.3.1",
"jsii": "^0.0.0",
"jsii-pacmak": "^0.0.0",
"jsii-rosetta": "^0.0.0",
Expand All @@ -29,10 +29,10 @@
"devDependencies": {
"@types/dotenv": "^8.2.0",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"@types/tar": "^4.0.5",
"eslint": "^7.32.0",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"@types/tar": "^6.1.1",
"eslint": "^8.3.0",
"prettier": "^2.4.1",
"typescript": "~3.9.10"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@jsii/java-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"devDependencies": {
"@jsii/runtime": "^0.0.0",
"@types/node": "^12.20.28",
"@types/node": "^12.20.37",
"jsii-build-tools": "^0.0.0",
"typescript": "~3.9.10"
}
Expand Down
12 changes: 6 additions & 6 deletions packages/@jsii/kernel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"@scope/jsii-calc-base": "^0.0.0",
"@scope/jsii-calc-lib": "^0.0.0",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"@types/tar": "^4.0.5",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"@types/tar": "^6.1.1",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jest-expect-message": "^1.0.2",
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
"prettier": "^2.4.1",
"ts-jest": "^27.0.5",
"ts-jest": "^27.0.7",
"typescript": "~3.9.10"
}
}
2 changes: 1 addition & 1 deletion packages/@jsii/python-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
"jsii-pacmak": "^0.0.0",
"ts-node": "^10.2.1",
"ts-node": "^10.4.0",
"typescript": "~3.9.10"
}
}
14 changes: 7 additions & 7 deletions packages/@jsii/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
"devDependencies": {
"@scope/jsii-calc-base": "^0.0.0",
"@scope/jsii-calc-lib": "^0.0.0",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
"prettier": "^2.4.1",
"source-map-loader": "^3.0.0",
"ts-jest": "^27.0.5",
"ts-jest": "^27.0.7",
"typescript": "~3.9.10",
"webpack": "^5.57.1",
"webpack-cli": "^4.8.0"
"webpack": "^5.64.3",
"webpack-cli": "^4.9.1"
}
}
2 changes: 1 addition & 1 deletion packages/@jsii/spec/lib/validate-assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const schema: Schema = require('../schema/jsii-spec.schema.json');
export function validateAssembly(obj: any): Assembly {
const validator = new Validator();
validator.addSchema(schema); // For definitions
const result = validator.validate(obj, schema, { nestedErrors: true } as any); // nestedErrors does exist but is not in the TypeScript definitions
const result = validator.validate(obj, schema, { nestedErrors: true });
if (result.valid) {
return obj;
}
Expand Down
10 changes: 5 additions & 5 deletions packages/@jsii/spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
"jsonschema": "^1.4.0"
},
"devDependencies": {
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jsii-build-tools": "^0.0.0",
"prettier": "^2.4.1",
"typescript": "~3.9.10",
"typescript-json-schema": "^0.51.0"
"typescript-json-schema": "^0.52.0"
}
}
2 changes: 1 addition & 1 deletion packages/@scope/jsii-calc-base-of-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"test:update": "npm run build && UPDATE_DIFF=1 npm run test"
},
"devDependencies": {
"@types/node": "^12.20.28",
"@types/node": "^12.20.37",
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
"jsii-rosetta": "^0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@scope/jsii-calc-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@scope/jsii-calc-base-of-base": "^2.1.1"
},
"devDependencies": {
"@types/node": "^12.20.28",
"@types/node": "^12.20.37",
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
"jsii-rosetta": "^0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@scope/jsii-calc-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@scope/jsii-calc-base-of-base": "^2.1.1"
},
"devDependencies": {
"@types/node": "^12.20.28",
"@types/node": "^12.20.37",
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
"jsii-rosetta": "^0.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/codemaker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
"package": "rm -fr dist/js && mkdir -p dist/js && mv $(npm pack) dist/js"
},
"dependencies": {
"camelcase": "^6.2.0",
"camelcase": "^6.2.1",
"decamelize": "^5.0.1",
"fs-extra": "^9.1.0"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"prettier": "^2.4.1",
"typescript": "~3.9.10"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/jsii-calc/lib/calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export namespace composition {
* The expression that this operation consists of.
* Must be implemented by derived classes.
*/
abstract readonly expression: NumericValue;
public abstract readonly expression: NumericValue;

public toString() {
switch (this.stringStyle) {
Expand Down
4 changes: 2 additions & 2 deletions packages/jsii-calc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"@scope/jsii-calc-lib": "^0.0.0"
},
"devDependencies": {
"@types/node": "^12.20.28",
"eslint": "^7.32.0",
"@types/node": "^12.20.37",
"eslint": "^8.3.0",
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
"jsii-rosetta": "^0.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/jsii-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
},
"devDependencies": {
"@types/inquirer": "^8.1.3",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"@types/yargs": "^17.0.3",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"@types/yargs": "^17.0.7",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jest-expect-message": "^1.0.2",
"prettier": "^2.4.1",
"typescript": "~3.9.10"
Expand Down
8 changes: 4 additions & 4 deletions packages/jsii-diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"@types/tar-fs": "^2.0.1",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jest-expect-message": "^1.0.2",
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/jsii-pacmak/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@
"@types/clone": "^2.1.1",
"@types/commonmark": "^0.27.5",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"@types/semver": "^7.3.8",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"@types/semver": "^7.3.9",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
"prettier": "^2.4.1",
"ts-jest": "^27.0.5",
"ts-jest": "^27.0.7",
"typescript": "~3.9.10"
},
"keywords": [
Expand Down
8 changes: 4 additions & 4 deletions packages/jsii-reflect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
"devDependencies": {
"@scope/jsii-calc-lib": "^0.0.0",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^3.20.120",
Expand Down
10 changes: 5 additions & 5 deletions packages/jsii-rosetta/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"devDependencies": {
"@types/commonmark": "^0.27.5",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
"@types/jest": "^27.0.3",
"@types/mock-fs": "^4.13.1",
"@types/node": "^12.20.28",
"@types/node": "^12.20.37",
"@types/workerpool": "^6.1.0",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jsii-build-tools": "0.0.0",
"memory-streams": "^0.1.3",
"mock-fs": "^5.1.1",
"mock-fs": "^5.1.2",
"prettier": "^2.4.1"
},
"dependencies": {
Expand Down
12 changes: 6 additions & 6 deletions packages/jsii/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@
"@types/clone": "^2.1.1",
"@types/deep-equal": "^1.0.1",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
"@types/node": "^12.20.28",
"@types/semver": "^7.3.8",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.37",
"@types/semver": "^7.3.9",
"clone": "^2.1.2",
"eslint": "^7.32.0",
"jest": "^27.2.4",
"eslint": "^8.3.0",
"jest": "^27.3.1",
"jest-expect-message": "^1.0.2",
"jsii-build-tools": "^0.0.0",
"prettier": "^2.4.1",
"ts-jest": "^27.0.5"
"ts-jest": "^27.0.7"
}
}
Loading

0 comments on commit a2bf477

Please sign in to comment.