Skip to content

Commit 0e36705

Browse files
chore(release): Release 0.12 (#1962)
* chore(release): update changelog and add section about changed type names for recursive attribute types * chore(docs): add first draft of an 0.12 upgrade guide * chore(release): bump package.json version to 0.12.0 * chore: add testing matchers PR to changelog * chore: update generated documentation * chore: link to upgrade guide Co-authored-by: Daniel Schmidt <[email protected]>
1 parent e70f8ea commit 0e36705

File tree

10 files changed

+2489
-473
lines changed

10 files changed

+2489
-473
lines changed

CHANGELOG.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.12.0 (unreleased)
1+
## 0.12.0
22

33
**Breaking Changes**
44

@@ -10,6 +10,46 @@ Previously we would throw an error and exit with 1 if there were no provider or
1010

1111
The Terraform `merge` function can merge both lists and maps, but this can cause [issues](https://github.com/hashicorp/terraform-cdk/issues/1653) when using the result in a typed language. Therefore we split it into `Fn.mergeLists` and `Fn.mergeMaps`, this means you need to change your cdktf programs code.
1212

13+
### Simplified interfaces of recursive attributes
14+
15+
The generated provider bindings are based on the Terraform schema which does not support recursion and hence uses a large, explicit structure instead. Previously this resulted in long names such as e.g. `Wafv2WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement`. In 0.12 we implemented a first rough detection for this underlying recursion which drastically reduced the amount of generated interfaces as they now are converted to recursive data structures themselves.
16+
If you are currently using those types e.g. in a language like Java, you will need to change them to the new shorter names.
17+
18+
### feat
19+
20+
- feat(lib): Introduce Iterator and `for_each` to implement apply time iteration [\#1830](https://github.com/hashicorp/terraform-cdk/pull/1830)
21+
- feat(lib): Introduce TerraformDynamicBlock to enable iterator usage on blocks [\#1882](https://github.com/hashicorp/terraform-cdk/pull/1882)
22+
- feat(cli): support refresh only option for diff and deploy [\#1851](https://github.com/hashicorp/terraform-cdk/pull/1851)
23+
- feat(docs): Add iterator docs page [\#1840](https://github.com/hashicorp/terraform-cdk/pull/1840)
24+
- feat(docs): document FORCE_COLOR env var that allows disabling colored output [\#1917](https://github.com/hashicorp/terraform-cdk/pull/1917)
25+
- feat(cli): plug provider add command in help printed after initializing a new cdktf project [\#1833](https://github.com/hashicorp/terraform-cdk/pull/1833)
26+
- feat(lib): exposed testing matchers for other languages properly [\#1935](https://github.com/hashicorp/terraform-cdk/pull/1935)
27+
28+
### fix
29+
30+
- fix: Allow "all" as ignoreChanges lifecycle value [\#1848](https://github.com/hashicorp/terraform-cdk/pull/1848)
31+
- fix: Fixed naming collision between resources of different providers [\#1870](https://github.com/hashicorp/terraform-cdk/pull/1870)
32+
- fix: Small fix to the CONTRIBUTING.md [\#1887](https://github.com/hashicorp/terraform-cdk/pull/1887)
33+
- fix(cli): increase default max memory for node process when running app command for synth [\#1915](https://github.com/hashicorp/terraform-cdk/pull/1915)
34+
- fix(provider-generator): Meta arguments available for generated modules [\#1880](https://github.com/hashicorp/terraform-cdk/pull/1880)
35+
- fix(provider-generator): replace dashes with underscores in module names for Go when generating bindings for Terraform modules [\#1928](https://github.com/hashicorp/terraform-cdk/pull/1928)
36+
- fix(hcl2json): bundle wasm_exec used for building Go instead of looking for it at runtime [\#1954](https://github.com/hashicorp/terraform-cdk/pull/1954)
37+
- fix(hcl2cdk): use the same attribute renaming function as in the provider generation [\#1842](https://github.com/hashicorp/terraform-cdk/pull/1842)
38+
- fix(hcl2cdk): maps should not be wrapped in arrays [\#1838](https://github.com/hashicorp/terraform-cdk/pull/1838)
39+
40+
### chore
41+
42+
- chore: document CI flag [\#1888](https://github.com/hashicorp/terraform-cdk/pull/1888)
43+
- chore: modernize example output [\#1914](https://github.com/hashicorp/terraform-cdk/pull/1914)
44+
- chore: pin provider version [\#1896](https://github.com/hashicorp/terraform-cdk/pull/1896)
45+
- chore: update prerequisites [\#1894](https://github.com/hashicorp/terraform-cdk/pull/1894)
46+
- chore(tests): Re-enable Windows Provider Add C# Test [\#1879](https://github.com/hashicorp/terraform-cdk/pull/1879)
47+
- chore: add tfe test as pre-step to releasing [\#1872](https://github.com/hashicorp/terraform-cdk/pull/1872)
48+
- chore: split provider tests into one test per provider [\#1862](https://github.com/hashicorp/terraform-cdk/pull/1862)
49+
- chore: reuse integration test definition for releases [\#1859](https://github.com/hashicorp/terraform-cdk/pull/1859)
50+
- chore: fix broken link in readme [\#1845](https://github.com/hashicorp/terraform-cdk/pull/1845)
51+
- chore: npm-check-updates && yarn upgrade [\#1706](https://github.com/hashicorp/terraform-cdk/pull/1706)
52+
1353
## 0.11.2
1454

1555
### feat

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "root",
3-
"version": "0.11.2",
3+
"version": "0.12.0",
44
"private": true,
55
"scripts": {
66
"build": "lerna run --scope 'cdktf*' --scope @cdktf/* build",

website/data/cdktf-nav-data.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
"title": "Overview",
153153
"path": "release"
154154
},
155+
{ "title": "Upgrading to Version 0.12", "path": "release/upgrade-guide-v0-12" },
155156
{ "title": "Upgrading to Version 0.11", "path": "release/upgrade-guide-v0-11" },
156157
{ "title": "Upgrading to Version 0.10", "path": "release/upgrade-guide-v0-10" },
157158
{ "title": "Upgrading to Version 0.9", "path": "release/upgrade-guide-v0-9" },

0 commit comments

Comments
 (0)