From 7dd9bc5787c2bb13ba75a25fde41e4f62edfa538 Mon Sep 17 00:00:00 2001 From: team-tf-cdk <84392119+team-tf-cdk@users.noreply.github.com> Date: Wed, 18 Oct 2023 06:16:01 -0400 Subject: [PATCH] chore!: upgrade to cdktf 0.19.0 (#13) This PR initiates the upgrade of CDKTF from version `0.18.0` to version `0.19.0`. Unfortunately, not everything can be automated, and the following steps need to be completed manually: - [x] Update `@cdktf/provider-null` to a version compatible with `cdktf@0.19.0` [here](https://github.com/cdktf/construct-projen-template/blob/d62067602139725e957e516ef41d94c384af731a/.projenrc.ts#L84). Look up the version [here](https://github.com/cdktf/cdktf-provider-null/releases/). - [x] Run `npx projen` Please checkout this PR, complete the above steps, push the changes to this branch, and then mark this PR as ready for review to complete the upgrade. Thanks! --------- Signed-off-by: team-tf-cdk Co-authored-by: Daniel Schmidt --- .projen/deps.json | 4 ++-- .projenrc.ts | 6 +++--- API.md | 13 ++++++++++++- README.md | 2 +- package.json | 8 ++++---- yarn.lock | 16 ++++++++-------- 6 files changed, 30 insertions(+), 19 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index c364088..3e4f347 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -116,12 +116,12 @@ }, { "name": "@cdktf/provider-null", - "version": ">=8.0.0", + "version": ">=9.0.0", "type": "peer" }, { "name": "cdktf", - "version": ">=0.18.0", + "version": ">=0.19.0", "type": "peer" }, { diff --git a/.projenrc.ts b/.projenrc.ts index 5913df8..d6309b5 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -75,14 +75,14 @@ const project = new cdktf.ConstructLibraryCdktf({ // moduleName: `github.com/cdktf/${shortName}-go`, // packageName: shortName.replace(/-/g, ""), // }, - cdktfVersion: "^0.18.0", + cdktfVersion: "0.19.0", jsiiVersion: "^5.1.0", minNodeVersion: "18.12.0", }); project.addPeerDeps( - "cdktf@>=0.18.0", - "@cdktf/provider-null@>=8.0.0", + "cdktf@>=0.19.0", + "@cdktf/provider-null@>=9.0.0", "constructs@^10.0.25" ); project.addDevDeps( diff --git a/API.md b/API.md index 437e286..2920dd7 100644 --- a/API.md +++ b/API.md @@ -5,7 +5,7 @@ A projen template for CDKTF constructs authored by HashiCorp (internal use only) ## Compatibility - `node` >= 18.12.0 -- `cdktf` >= 0.18.0 +- `cdktf` >= 0.19.0 - `constructs` >= 10.0.25 ## How to Use @@ -270,6 +270,7 @@ NoopStack.of(construct: IConstruct) | --- | --- | --- | | node | constructs.Node | The tree node. | | dependencies | cdktf.TerraformStack[] | *No description.* | +| moveTargets | cdktf.TerraformResourceTargets | *No description.* | | synthesizer | cdktf.IStackSynthesizer | *No description.* | --- @@ -296,6 +297,16 @@ public readonly dependencies: TerraformStack[]; --- +##### `moveTargets`Required + +```typescript +public readonly moveTargets: TerraformResourceTargets; +``` + +- *Type:* cdktf.TerraformResourceTargets + +--- + ##### `synthesizer`Required ```typescript diff --git a/README.md b/README.md index 24cc4a7..45c3113 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A projen template for CDKTF constructs authored by HashiCorp (internal use only) ## Compatibility - `node` >= 18.12.0 -- `cdktf` >= 0.18.0 +- `cdktf` >= 0.19.0 - `constructs` >= 10.0.25 ## How to Use diff --git a/package.json b/package.json index cd67849..98e83f9 100644 --- a/package.json +++ b/package.json @@ -34,12 +34,12 @@ "organization": true }, "devDependencies": { - "@cdktf/provider-null": "8.0.0", + "@cdktf/provider-null": "9.0.0", "@types/jest": "^29.5.5", "@types/node": "^18", "@typescript-eslint/eslint-plugin": "^6", "@typescript-eslint/parser": "^6", - "cdktf": "0.18.0", + "cdktf": "0.19.0", "change-case": "^4.1.2", "constructs": "10.0.25", "eslint": "^8", @@ -65,8 +65,8 @@ "typescript": "^5.2.2" }, "peerDependencies": { - "@cdktf/provider-null": ">=8.0.0", - "cdktf": ">=0.18.0", + "@cdktf/provider-null": ">=9.0.0", + "cdktf": ">=0.19.0", "constructs": "^10.0.25" }, "keywords": [ diff --git a/yarn.lock b/yarn.lock index 56147c9..5d89834 100644 --- a/yarn.lock +++ b/yarn.lock @@ -302,10 +302,10 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@cdktf/provider-null@8.0.0": - version "8.0.0" - resolved "https://registry.yarnpkg.com/@cdktf/provider-null/-/provider-null-8.0.0.tgz#8bbcd0c4030ba3fc8edfc557700c302b3082b76d" - integrity sha512-ikSMynn+boAZRd3o8erY1L2RhtlAXupMq9VyPBNAPYrXxLeGlBNLcb6H8gpheKtInjysVEhj3InBQ8vNsY30bA== +"@cdktf/provider-null@9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@cdktf/provider-null/-/provider-null-9.0.0.tgz#ee33adc837076ce9f9a54252c846a6344c5abedb" + integrity sha512-5osel2UvwtB2RaOHECFvane43E4RbhOLzhrRUGJjoPCpb2E7LT8vrq4r9nA098BQvxGHPWtE+YR5OsvWUH5ouA== "@colors/colors@1.5.0": version "1.5.0" @@ -1665,10 +1665,10 @@ case@^1.6.3: resolved "https://registry.yarnpkg.com/case/-/case-1.6.3.tgz#0a4386e3e9825351ca2e6216c60467ff5f1ea1c9" integrity sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ== -cdktf@0.18.0: - version "0.18.0" - resolved "https://registry.yarnpkg.com/cdktf/-/cdktf-0.18.0.tgz#b79eb924afff7af38877bb4ffdfe3bdf954131b0" - integrity sha512-iTWy2g0mCE2YW2hPxdWEzMwCVgyzDyheHWJTS4OcLZsR+lXETFX0lonoc5XGnX8CHBL4AbFY+EEqCUs5v7A4bQ== +cdktf@0.19.0: + version "0.19.0" + resolved "https://registry.yarnpkg.com/cdktf/-/cdktf-0.19.0.tgz#097a3241b95e77eeab8ae1f7a714bf45dc6ca55b" + integrity sha512-5tcNhvrvsE9WawC5cPwV7B9ATQ5lWNjyCJN7EnMofxTtkBEdnnGx0esC+vpNO4Fs0LhmV37qCUlm+K6anZaPYw== dependencies: archiver "5.3.1" json-stable-stringify "^1.0.2"