Skip to content

Commit

Permalink
chore!: upgrade to cdktf 0.20.0 (#38)
Browse files Browse the repository at this point in the history
This PR initiates the upgrade of CDKTF from version `0.19.0` to version
`0.20.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.20.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 <github-team-tf-cdk@hashicorp.com>
Co-authored-by: Daniel Schmidt <danielmschmidt92@gmail.com>
  • Loading branch information
team-tf-cdk and DanielMSchmidt authored Jan 10, 2024
1 parent 36bd190 commit c0e66c3
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 48 deletions.
6 changes: 3 additions & 3 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const githubActionPinnedVersions = {
"peter-evans/create-pull-request": "153407881ec5c347639a548ade7d8ad1d6740e38", // v5.0.2
};

const constructsVersion = "10.3.0";
const project = new cdktf.ConstructLibraryCdktf({
name,
description: "A projen template for CDKTF constructs authored by HashiCorp",
Expand Down Expand Up @@ -75,16 +76,17 @@ const project = new cdktf.ConstructLibraryCdktf({
// moduleName: `github.com/cdktf/${shortName}-go`,
// packageName: shortName.replace(/-/g, ""),
// },
cdktfVersion: "0.19.0",
cdktfVersion: "0.20.0",
constructsVersion,
jsiiVersion: "~5.2.0",
typescriptVersion: "~5.2.0", // should always be the same major/minor as JSII
minNodeVersion: "18.12.0",
});

project.addPeerDeps(
"cdktf@>=0.19.0",
"@cdktf/provider-null@>=9.0.0",
"constructs@^10.0.25"
"cdktf@>=0.20.0",
"@cdktf/provider-null@>=10.0.0",
"constructs@>=" + constructsVersion
);
project.addDevDeps(
"change-case",
Expand Down
30 changes: 29 additions & 1 deletion API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A projen template for CDKTF constructs authored by HashiCorp (internal use only)
## Compatibility

- `node` >= 18.12.0
- `cdktf` >= 0.19.0
- `cdktf` >= 0.20.0
- `constructs` >= 10.0.25

## How to Use
Expand Down
12 changes: 6 additions & 6 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test("synthesizes the null provider", () => {
"required_providers": {
"null": {
"source": "null",
"version": "3.2.1"
"version": "3.2.2"
}
}
}
Expand Down
59 changes: 27 additions & 32 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0e66c3

Please sign in to comment.