diff --git a/.dependabot/config.yml b/.dependabot/config.yml index a5f9ac02caea1..21dc263e33a15 100644 --- a/.dependabot/config.yml +++ b/.dependabot/config.yml @@ -14,4 +14,9 @@ update_configs: dependency_name: "@jsii/*" - match: dependency_name: "codemaker" - \ No newline at end of file + - match: + dependency_name: "semver" + - match: + dependency_name: "@types/node" + version_requirement: ">=11.0.0-0" + diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a9816a01e3aa..4d5c50710bda5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,26 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.34.0](https://github.com/aws/aws-cdk/compare/v1.33.1...v1.34.0) (2020-04-21) + + +### ⚠ BREAKING CHANGES + +* **glue:** `DateFormat` constant names are now **UPPERCASE** (`JSON, AVRO, LOGSTASH, ...`) + +### Features + +* **cognito:** add mutable property in cognito user pool custom attribute ([#7190](https://github.com/aws/aws-cdk/issues/7190)) ([16e85df](https://github.com/aws/aws-cdk/commit/16e85df5c3077496d3ebe7c4fa8230514756c027)), closes [#7011](https://github.com/aws/aws-cdk/issues/7011) [#7011](https://github.com/aws/aws-cdk/issues/7011) [#7011](https://github.com/aws/aws-cdk/issues/7011) [#7011](https://github.com/aws/aws-cdk/issues/7011) +* **ecs:** add Fargate 1.4.0 support ([#7267](https://github.com/aws/aws-cdk/issues/7267)) ([5c83a46](https://github.com/aws/aws-cdk/commit/5c83a46920525d9e3891794d1f4c41f0e8e7982c)) + + +### Bug Fixes + +* **cloudwatch:** can't override Alarm statistic with percentile ([d5918c3](https://github.com/aws/aws-cdk/commit/d5918c330b6770b84efc5417ce1109a68c22119b)), closes [#7341](https://github.com/aws/aws-cdk/issues/7341) +* **glue:** DataFormat constants are not visible in non-JS languages ([#7458](https://github.com/aws/aws-cdk/issues/7458)) ([e5d4c31](https://github.com/aws/aws-cdk/commit/e5d4c31f4580218d39473258342dafda8d64338a)) +* **monocdk:** assert package has incorrect imports ([#7404](https://github.com/aws/aws-cdk/issues/7404)) ([825c9e1](https://github.com/aws/aws-cdk/commit/825c9e1b443568c5d898b3fa0c543d5a7747396c)) +* **stepfunctions-tasks:** encryptionKey is Key instead of IKey ([#7429](https://github.com/aws/aws-cdk/issues/7429)) ([f1e2c67](https://github.com/aws/aws-cdk/commit/f1e2c675b1234a4806ce88f7416b1b9753a347fa)) + ## [1.33.1](https://github.com/aws/aws-cdk/compare/v1.33.0...v1.33.1) (2020-04-19) @@ -584,6 +604,7 @@ capaciety). * **route53:** the value of `hostedZoneId` will no longer include `/hostedzone/` prefix and only includes the hostedZoneId when using `HostedZone.fromLookup` or `fromHostedZoneAttributes` * **cloudfront:** (experimental module) `S3OriginConfig.originAccessIdentityId` or type `string` has been removed in favor of `S3OriginConfig.originAccessIdentity` of type `IOriginAccessIdentity`. +* **cli:** `cdk diff` now exits with 0 even when there's a diff, use `--fail` to exit with 1. To enable this feature for old projects, add the context key `"aws-cdk:diffNoFail": "true"` in your `cdk.json` file. ### Features diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3397fb1c8ed4e..1e0f427499887 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -278,7 +278,7 @@ The following linters are used - - [pkglint](#pkglint) - [awslint](#awslint) -#### eslint +#### eslint Historically, the CDK has used tslint for linting its typescript source code. With [tslint's deprecation in 2019](https://medium.com/palantir/tslint-in-2019-1a144c2317a9), we are slowly moving over to using eslint. diff --git a/lerna.json b/lerna.json index c6327e1571510..d41290e11b852 100644 --- a/lerna.json +++ b/lerna.json @@ -10,5 +10,5 @@ "tools/*" ], "rejectCycles": "true", - "version": "1.33.1" + "version": "1.34.0" } diff --git a/package.json b/package.json index 8f5ee541a2c86..dbee4f54492ad 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,9 @@ "devDependencies": { "conventional-changelog-cli": "^2.0.31", "fs-extra": "^8.1.0", - "jsii-diff": "^1.1.0", - "jsii-pacmak": "^1.1.0", - "jsii-rosetta": "^1.1.0", + "jsii-diff": "^1.3.2", + "jsii-pacmak": "^1.3.2", + "jsii-rosetta": "^1.3.2", "lerna": "^3.20.2", "standard-version": "^7.1.0", "typescript": "~3.8.3" diff --git a/packages/@aws-cdk/alexa-ask/package.json b/packages/@aws-cdk/alexa-ask/package.json index e73534deca92c..597b8fbb007c8 100644 --- a/packages/@aws-cdk/alexa-ask/package.json +++ b/packages/@aws-cdk/alexa-ask/package.json @@ -87,11 +87,11 @@ }, "dependencies": { "@aws-cdk/core": "0.0.0", - "constructs": "^3.0.0" + "constructs": "^3.0.2" }, "peerDependencies": { "@aws-cdk/core": "0.0.0", - "constructs": "^3.0.0" + "constructs": "^3.0.2" }, "engines": { "node": ">= 10.12.0" diff --git a/packages/@aws-cdk/app-delivery/package.json b/packages/@aws-cdk/app-delivery/package.json index c473d2f19a479..e254ea13cfd79 100644 --- a/packages/@aws-cdk/app-delivery/package.json +++ b/packages/@aws-cdk/app-delivery/package.json @@ -49,7 +49,7 @@ "@aws-cdk/core": "0.0.0", "@aws-cdk/cx-api": "0.0.0", "@aws-cdk/cloud-assembly-schema": "0.0.0", - "constructs": "^3.0.0" + "constructs": "^3.0.2" }, "devDependencies": { "@aws-cdk/assert": "0.0.0", @@ -87,7 +87,7 @@ "@aws-cdk/core": "0.0.0", "@aws-cdk/cx-api": "0.0.0", "@aws-cdk/cloud-assembly-schema": "0.0.0", - "constructs": "^3.0.0" + "constructs": "^3.0.2" }, "engines": { "node": ">= 10.12.0" diff --git a/packages/@aws-cdk/app-delivery/test/integ.cicd.ts b/packages/@aws-cdk/app-delivery/test/integ.cicd.ts index 9903bdc278278..169e4b571600a 100644 --- a/packages/@aws-cdk/app-delivery/test/integ.cicd.ts +++ b/packages/@aws-cdk/app-delivery/test/integ.cicd.ts @@ -10,8 +10,8 @@ const app = new cdk.App(); const stack = new cdk.Stack(app, 'CICD'); const pipeline = new codepipeline.Pipeline(stack, 'CodePipeline', { artifactBucket: new s3.Bucket(stack, 'ArtifactBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY - }) + removalPolicy: cdk.RemovalPolicy.DESTROY, + }), }); const sourceOutput = new codepipeline.Artifact('Artifact_CICDGitHubF8BA7ADD'); const source = new cpactions.GitHubSourceAction({ diff --git a/packages/@aws-cdk/app-delivery/test/test.pipeline-deploy-stack-action.ts b/packages/@aws-cdk/app-delivery/test/test.pipeline-deploy-stack-action.ts index 28abbdad6936c..d765eb887c14a 100644 --- a/packages/@aws-cdk/app-delivery/test/test.pipeline-deploy-stack-action.ts +++ b/packages/@aws-cdk/app-delivery/test/test.pipeline-deploy-stack-action.ts @@ -43,8 +43,8 @@ export = nodeunit.testCase({ adminPermissions: false, })); }, 'Cross-environment deployment is not supported'); - } - ) + }, + ), ); test.done(); }, @@ -74,8 +74,8 @@ export = nodeunit.testCase({ adminPermissions: false, })); }, 'createChangeSetRunOrder must be < executeChangeSetRunOrder'); - } - ) + }, + ), ); test.done(); }, @@ -138,48 +138,48 @@ export = nodeunit.testCase({ StackName: 'TestStack', ActionMode: 'CHANGE_SET_REPLACE', Capabilities: 'CAPABILITY_NAMED_IAM', - } + }, }))); expect(pipelineStack).to(haveResource('AWS::CodePipeline::Pipeline', hasPipelineAction({ Configuration: { StackName: 'AnonymousIAM', ActionMode: 'CHANGE_SET_REPLACE', Capabilities: 'CAPABILITY_IAM', - } + }, }))); expect(pipelineStack).notTo(haveResource('AWS::CodePipeline::Pipeline', hasPipelineAction({ Configuration: { StackName: 'NoCapStack', ActionMode: 'CHANGE_SET_REPLACE', Capabilities: 'CAPABILITY_NAMED_IAM', - } + }, }))); expect(pipelineStack).notTo(haveResource('AWS::CodePipeline::Pipeline', hasPipelineAction({ Configuration: { StackName: 'NoCapStack', ActionMode: 'CHANGE_SET_REPLACE', Capabilities: 'CAPABILITY_IAM', - } + }, }))); expect(pipelineStack).to(haveResource('AWS::CodePipeline::Pipeline', hasPipelineAction({ Configuration: { StackName: 'NoCapStack', ActionMode: 'CHANGE_SET_REPLACE', - } + }, }))); expect(pipelineStack).to(haveResource('AWS::CodePipeline::Pipeline', hasPipelineAction({ Configuration: { StackName: 'AutoExpand', ActionMode: 'CHANGE_SET_REPLACE', Capabilities: 'CAPABILITY_AUTO_EXPAND', - } + }, }))); expect(pipelineStack).to(haveResource('AWS::CodePipeline::Pipeline', hasPipelineAction({ Configuration: { StackName: 'AnonymousIAMAndAutoExpand', ActionMode: 'CHANGE_SET_REPLACE', Capabilities: 'CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND', - } + }, }))); test.done(); }, @@ -245,16 +245,16 @@ export = nodeunit.testCase({ Action: '*', Effect: 'Allow', Resource: '*', - } + }, ], - } + }, })); expect(pipelineStack).to(haveResource('AWS::CodePipeline::Pipeline', hasPipelineAction({ Configuration: { StackName: 'TestStack', ActionMode: 'CHANGE_SET_REPLACE', Capabilities: 'CAPABILITY_NAMED_IAM,CAPABILITY_AUTO_EXPAND', - } + }, }))); test.done(); }, @@ -271,7 +271,7 @@ export = nodeunit.testCase({ stack: pipelineStack, input: selfUpdatingStack.synthesizedApp, adminPermissions: false, - role + role, }); selfUpdateStage.addAction(deployAction); test.same(deployAction.deploymentRole, role); @@ -305,9 +305,9 @@ export = nodeunit.testCase({ 'ec2:DescribeSecurityGroups', 'ec2:CreateSecurityGroup', 'ec2:RevokeSecurityGroupEgress', - 'ec2:RevokeSecurityGroupIngress' + 'ec2:RevokeSecurityGroupIngress', ], - resources: ['*'] + resources: ['*'], })); // THEN // @@ -339,7 +339,7 @@ export = nodeunit.testCase({ 'Arn', ], }, - '/*' + '/*', ], ], }, @@ -366,7 +366,7 @@ export = nodeunit.testCase({ 'ec2:DescribeSecurityGroups', 'ec2:CreateSecurityGroup', 'ec2:RevokeSecurityGroupEgress', - 'ec2:RevokeSecurityGroupIngress' + 'ec2:RevokeSecurityGroupIngress', ], Effect: 'Allow', Resource: '*', @@ -401,11 +401,11 @@ export = nodeunit.testCase({ adminPermissions: false, }); }, /Cannot deploy the stack DeployedStack because it references/); - } - ) + }, + ), ); test.done(); - } + }, }); class FakeAction implements codepipeline.IAction { diff --git a/packages/@aws-cdk/assert/jest.ts b/packages/@aws-cdk/assert/jest.ts index 63ec4ba387924..8523318a11376 100644 --- a/packages/@aws-cdk/assert/jest.ts +++ b/packages/@aws-cdk/assert/jest.ts @@ -41,12 +41,12 @@ expect.extend({ if (pass) { return { pass, - message: () => 'Not ' + assertion.description + message: () => 'Not ' + assertion.description, }; } else { return { pass, - message: () => assertion.description + message: () => assertion.description, }; } }, @@ -76,7 +76,7 @@ expect.extend({ props: HaveOutputProperties) { return applyAssertion(haveOutput(props), actual); - } + }, }); function applyAssertion(assertion: JestFriendlyAssertion, actual: cxapi.CloudFormationStackArtifact | core.Stack) { diff --git a/packages/@aws-cdk/assert/package.json b/packages/@aws-cdk/assert/package.json index abdb9e7d3d7cc..8e2cca43bef27 100644 --- a/packages/@aws-cdk/assert/package.json +++ b/packages/@aws-cdk/assert/package.json @@ -31,7 +31,7 @@ "devDependencies": { "@types/jest": "^25.2.1", "cdk-build-tools": "0.0.0", - "jest": "^25.3.0", + "jest": "^25.4.0", "pkglint": "0.0.0", "ts-jest": "^25.4.0" }, @@ -40,12 +40,12 @@ "@aws-cdk/core": "0.0.0", "@aws-cdk/cx-api": "0.0.0", "@aws-cdk/cloud-assembly-schema": "0.0.0", - "constructs": "^3.0.0" + "constructs": "^3.0.2" }, "peerDependencies": { "@aws-cdk/core": "0.0.0", - "jest": "^25.3.0", - "constructs": "^3.0.0" + "jest": "^25.4.0", + "constructs": "^3.0.2" }, "repository": { "url": "https://github.com/aws/aws-cdk.git", diff --git a/packages/@aws-cdk/assert/test/assertions.test.ts b/packages/@aws-cdk/assert/test/assertions.test.ts index 510915ec21df1..adf61cb0dec9a 100644 --- a/packages/@aws-cdk/assert/test/assertions.test.ts +++ b/packages/@aws-cdk/assert/test/assertions.test.ts @@ -37,8 +37,8 @@ passingExample('expect to match (exactly)