Skip to content

Commit

Permalink
chore: upgrade jsii to v1.1.0 (aws#6707)
Browse files Browse the repository at this point in the history
* chore: upgrade jsii to v1.1.0

* fix: cast unknown types in core tests

Due to a typescript version upgrade in JSII, types in tests in
@aws-cdk/core no don't match. It looks like this is due to the following
breaking change.

https://github.com/microsoft/TypeScript/wiki/Breaking-Changes#generic-type-parameters-are-implicitly-constrained-to-unknown

It isn't immediately apparent if we can workaround this without
explicitly casting in this way.

* Update test diffs

* chore: upgrade constructs to v2.0.0

* update integ test expectations
  • Loading branch information
MrArnoldPalmer authored Mar 20, 2020
1 parent 5626a8b commit e870f90
Show file tree
Hide file tree
Showing 155 changed files with 1,136 additions and 1,036 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"conventional-changelog-cli": "^2.0.31",
"fs-extra": "^9.0.0",
"jsii-diff": "^1.1.0",
"jsii-pacmak": "^0.22.0",
"jsii-rosetta": "^0.22.0",
"jsii-pacmak": "^1.1.0",
"jsii-rosetta": "^1.1.0",
"lerna": "^3.20.2",
"standard-version": "^7.1.0",
"typescript": "~3.8.3"
Expand Down Expand Up @@ -58,4 +58,4 @@
"@aws-cdk/cx-api/semver/**"
]
}
}
}
4 changes: 2 additions & 2 deletions packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"devDependencies": {
"@aws-cdk/assert": "0.0.0",
Expand Down Expand Up @@ -85,7 +85,7 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"@aws-cdk/cloudformation-diff": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"jest": "^24.9.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"repository": {
"url": "https://github.com/aws/aws-cdk.git",
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"minimatch": "^3.0.4",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-acmpca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-amazonmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@
"@aws-cdk/aws-codebuild": "0.0.0",
"@aws-cdk/aws-secretsmanager": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-kms": "0.0.0",
"@aws-cdk/aws-codebuild": "0.0.0",
"@aws-cdk/aws-secretsmanager": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-lambda": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
Expand All @@ -87,7 +87,7 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-lambda": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-applicationautoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@
"@aws-cdk/aws-cloudwatch": "0.0.0",
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-autoscaling-common": "0.0.0",
"@aws-cdk/aws-cloudwatch": "0.0.0",
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-appmesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-servicediscovery": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/aws-ec2": "0.0.0",
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-servicediscovery": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-lambda": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
Expand All @@ -100,7 +100,7 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-lambda": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-autoscaling-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
"dependencies": {
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"awslint": {
"exclude": [
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-autoscaling-hooktargets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@aws-cdk/aws-sns-subscriptions": "0.0.0",
"@aws-cdk/aws-sqs": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
Expand All @@ -103,7 +103,7 @@
"@aws-cdk/aws-sns-subscriptions": "0.0.0",
"@aws-cdk/aws-sqs": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-autoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-sns": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
Expand All @@ -92,7 +92,7 @@
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/aws-sns": "0.0.0",
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-autoscalingplans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-backup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@aws-cdk/aws-ecr": "0.0.0",
"@aws-cdk/aws-ecs": "0.0.0",
"@aws-cdk/aws-iam": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
Expand All @@ -101,7 +101,7 @@
"@aws-cdk/aws-ecr": "0.0.0",
"@aws-cdk/aws-ecs": "0.0.0",
"@aws-cdk/aws-iam": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-budgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^1.1.2"
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand Down
Loading

0 comments on commit e870f90

Please sign in to comment.