Skip to content

Commit 836268c

Browse files
authored
Merge pull request #2815 from hashicorp/prepare-release-0.16.0
chore: release 0.16.0
2 parents 648df3b + e993e24 commit 836268c

File tree

10 files changed

+16704
-3731
lines changed

10 files changed

+16704
-3731
lines changed

CHANGELOG.md

Lines changed: 106 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## Unreleased
1+
## 0.16.0
2+
3+
**Breaking changes**
24

35
### Update to .NET 6.0
46

@@ -8,8 +10,6 @@ We updated our C# template to .NET 6.0 as JSII updated recently and dropped supp
810
911
from [JSII v.1.76.0 release notes](https://github.com/aws/jsii/releases/tag/v1.76.0)
1012

11-
**Breaking changes**
12-
1313
### Changes to Terraform function bindings
1414

1515
Terraform functions are now generated based on the JSON schema returned by the new `metadata functions` command which is going to be added to the Terraform CLI in version 1.4 ([PR \#32487](https://github.com/hashicorp/terraform/pull/32487), already available in [`v1.4.0-beta2`](https://github.com/hashicorp/terraform/releases/tag/v1.4.0-beta2)).
@@ -49,6 +49,108 @@ We added support for advanced lifecycle features like [`preconditions`](/terrafo
4949

5050
Since the long-term support for Node 14 is ending, we updated our minimum compatible node version to 16.13.
5151

52+
### fix
53+
54+
- fix(tests): update edge provider tests [\#2814](https://github.com/hashicorp/terraform-cdk/pull/2814)
55+
- fix: Accept nested quotes within strings [\#2813](https://github.com/hashicorp/terraform-cdk/pull/2813)
56+
- fix(hcl2cdk): Handle multi-line strings better [\#2812](https://github.com/hashicorp/terraform-cdk/pull/2812)
57+
- fix(lib): Fix access expressions rendering invalid Terraform [\#2811](https://github.com/hashicorp/terraform-cdk/pull/2811)
58+
- fix: Support index expressions [\#2809](https://github.com/hashicorp/terraform-cdk/pull/2809)
59+
- fix: type coercion on primitive values [\#2805](https://github.com/hashicorp/terraform-cdk/pull/2805)
60+
- fix(hcl2cdk): handle object expressions [\#2804](https://github.com/hashicorp/terraform-cdk/pull/2804)
61+
- fix(cli): fix version constraint for Terraform provider including space [\#2803](https://github.com/hashicorp/terraform-cdk/pull/2803)
62+
- fix(lib): allow propertyAccess to handle splat and resources [\#2802](https://github.com/hashicorp/terraform-cdk/pull/2802)
63+
- fix: Use property access when refrencing numeric and map accessors [\#2801](https://github.com/hashicorp/terraform-cdk/pull/2801)
64+
- fix(lib): fix Symbol for Terraform dynamic expression causing crashes when using Iterator.dynamic() on blocks [\#2794](https://github.com/hashicorp/terraform-cdk/pull/2794)
65+
- fix(cli): send terraform output before approval [\#2790](https://github.com/hashicorp/terraform-cdk/pull/2790)
66+
- fix(hcl2cdk): handle external provider data [\#2777](https://github.com/hashicorp/terraform-cdk/pull/2777)
67+
- fix(hcl2cdk): Handle referencing lists, sets and maps better when converting [\#2775](https://github.com/hashicorp/terraform-cdk/pull/2775)
68+
- fix(tests): set JSII env var to not print Node version warning [\#2772](https://github.com/hashicorp/terraform-cdk/pull/2772)
69+
- fix: Revert "chore: upgrade our Docker image to be based on Node 0.16" [\#2771](https://github.com/hashicorp/terraform-cdk/pull/2771)
70+
- fix(hcl2cdk): flaky tests on hcl2cdk expressions [\#2769](https://github.com/hashicorp/terraform-cdk/pull/2769)
71+
- fix(hcl2cdk): use better fallbacks for resource and namespace nammings without a schema [\#2763](https://github.com/hashicorp/terraform-cdk/pull/2763)
72+
- fix(hcl2cdk): Heredocs expression parsing [\#2758](https://github.com/hashicorp/terraform-cdk/pull/2758)
73+
- fix(docs): Fix typo in commands.mdx [\#2752](https://github.com/hashicorp/terraform-cdk/pull/2752)
74+
- fix(docs): fix typo in upgrade-guide-v0-15.mdx [\#2738](https://github.com/hashicorp/terraform-cdk/pull/2738)
75+
- fix(cli): remove deprecated tsconfig option [\#2737](https://github.com/hashicorp/terraform-cdk/pull/2737)
76+
- fix(provider-generator): Fix generating bindings for providers that have only block types in their schema [\#2736](https://github.com/hashicorp/terraform-cdk/pull/2736)
77+
- fix(hcl2cdk): handle namespace level renamings [\#2722](https://github.com/hashicorp/terraform-cdk/pull/2722)
78+
- fix(lib): Don't append copyright header to version file used for releasing Go [\#2721](https://github.com/hashicorp/terraform-cdk/pull/2721)
79+
- fix(cli): remove extra quotes [\#2712](https://github.com/hashicorp/terraform-cdk/pull/2712)
80+
- fix(hcl2cdk): handle JSII Rosetta translation properly [\#2706](https://github.com/hashicorp/terraform-cdk/pull/2706)
81+
- fix(lib): make ComplexMap an interpolating parent [\#2700](https://github.com/hashicorp/terraform-cdk/pull/2700)
82+
- fix(tests): fix keyword argument for python test [\#2699](https://github.com/hashicorp/terraform-cdk/pull/2699)
83+
- fix(cli): fix watch telemetry [\#2698](https://github.com/hashicorp/terraform-cdk/pull/2698)
84+
- fix: don't post about large PRs since this currently happens repeatedly and spams the timeline of PRs [\#2697](https://github.com/hashicorp/terraform-cdk/pull/2697)
85+
- fix(provider-generator): Use registry.terraform.io links instead of old terraform.io [\#2696](https://github.com/hashicorp/terraform-cdk/pull/2696)
86+
- fix(lib): Update old terraform.io links [\#2694](https://github.com/hashicorp/terraform-cdk/pull/2694)
87+
- fix(docs): Replace old terraform.io links [\#2693](https://github.com/hashicorp/terraform-cdk/pull/2693)
88+
- fix: change trigger for adding PR labels to pull_request_target [\#2689](https://github.com/hashicorp/terraform-cdk/pull/2689)
89+
- fix(lib): support objects with keys that need escaping like e.g. colons [\#2678](https://github.com/hashicorp/terraform-cdk/pull/2678)
90+
- fix: set older C# version until JSII releases an update and we can upgrade to v6.0 [\#2676](https://github.com/hashicorp/terraform-cdk/pull/2676)
91+
- fix(docs): fix stack escape hatch override example for TS, Python, and Java [\#2663](https://github.com/hashicorp/terraform-cdk/pull/2663)
92+
- fix(hcl2cdk): fix type coercion [\#2632](https://github.com/hashicorp/terraform-cdk/pull/2632)
93+
- fix(provider-generator): fix resources named 'license' causing collisions with LICENSE file on case-insensitive filesystems for Go packages [\#2630](https://github.com/hashicorp/terraform-cdk/pull/2630)
94+
- fix(docs): source java iterator snippets from examples [\#2595](https://github.com/hashicorp/terraform-cdk/pull/2595)
95+
96+
### feat
97+
98+
- feat(docs): Add example for TerraformCount to iterators.mdx [\#2808](https://github.com/hashicorp/terraform-cdk/pull/2808)
99+
- feat(hcl2cdk): support count using TerraformCount [\#2796](https://github.com/hashicorp/terraform-cdk/pull/2796)
100+
- feat(lib): fix using variables and locals directly in template strings [\#2791](https://github.com/hashicorp/terraform-cdk/pull/2791)
101+
- feat(hcl2cdk): support variable types and validations [\#2773](https://github.com/hashicorp/terraform-cdk/pull/2773)
102+
- feat(lib): add support for terraform count [\#2766](https://github.com/hashicorp/terraform-cdk/pull/2766)
103+
- feat(hcl2cdk): support resource metadata [\#2745](https://github.com/hashicorp/terraform-cdk/pull/2745)
104+
- feat(lib): TerraformIterators allow chaining [\#2739](https://github.com/hashicorp/terraform-cdk/pull/2739)
105+
- feat(hcl2cdk): use TerraformIterator API instead of overrides [\#2732](https://github.com/hashicorp/terraform-cdk/pull/2732)
106+
- feat(lib): Add `TerraformCachedAsset` [\#2679](https://github.com/hashicorp/terraform-cdk/pull/2679)
107+
- feat(cli): Upgrade init template to .NET 6.0 [\#2673](https://github.com/hashicorp/terraform-cdk/pull/2673)
108+
- feat(lib): Generate Terraform function bindings using `terraform metadata functions` [\#2659](https://github.com/hashicorp/terraform-cdk/pull/2659)
109+
110+
### chore
111+
112+
- chore: use nx feature for parallelizing and caching [\#2806](https://github.com/hashicorp/terraform-cdk/pull/2806)
113+
- chore: pin provider versions in documentation examples [\#2799](https://github.com/hashicorp/terraform-cdk/pull/2799)
114+
- chore: add chown to release steps [\#2798](https://github.com/hashicorp/terraform-cdk/pull/2798)
115+
- chore: add chown to release process [\#2797](https://github.com/hashicorp/terraform-cdk/pull/2797)
116+
- chore: upgrade our Docker image to be based on Node 0.16 [\#2789](https://github.com/hashicorp/terraform-cdk/pull/2789)
117+
- chore: update to node 16 [\#2788](https://github.com/hashicorp/terraform-cdk/pull/2788)
118+
- chore: upgrade dependencies in hcl2cdk and hcl2json [\#2779](https://github.com/hashicorp/terraform-cdk/pull/2779)
119+
- chore: update go version [\#2778](https://github.com/hashicorp/terraform-cdk/pull/2778)
120+
- chore(lib): update to JSII 5 [\#2776](https://github.com/hashicorp/terraform-cdk/pull/2776)
121+
- chore: upgrade our Docker image to be based on Node 0.16 [\#2770](https://github.com/hashicorp/terraform-cdk/pull/2770)
122+
- chore(examples): Disable Java Gradle example [\#2760](https://github.com/hashicorp/terraform-cdk/pull/2760)
123+
- chore(docs): change to `synth` from `synthScope` for #2755 [\#2756](https://github.com/hashicorp/terraform-cdk/pull/2756)
124+
- chore: Make iterators working again with convert [\#2754](https://github.com/hashicorp/terraform-cdk/pull/2754)
125+
- chore: Enable type coercion again [\#2750](https://github.com/hashicorp/terraform-cdk/pull/2750)
126+
- chore: Use new Terraform Expression AST for generating Typescript expression [\#2744](https://github.com/hashicorp/terraform-cdk/pull/2744)
127+
- chore: Add tree traversal, and better types for terraform expression AST [\#2740](https://github.com/hashicorp/terraform-cdk/pull/2740)
128+
- chore(hcl2cdk): prepare for convert using Terraform function bindings [\#2734](https://github.com/hashicorp/terraform-cdk/pull/2734)
129+
- chore: Add 'getExpressionAst' method to go bridge [\#2729](https://github.com/hashicorp/terraform-cdk/pull/2729)
130+
- chore: fix copyright headers automation [\#2725](https://github.com/hashicorp/terraform-cdk/pull/2725)
131+
- chore: improve development performance by excluding synth [\#2723](https://github.com/hashicorp/terraform-cdk/pull/2723)
132+
- chore(docs): explain constructs in contrast to modules better [\#2715](https://github.com/hashicorp/terraform-cdk/pull/2715)
133+
- chore: Reduce warnings to get to the bottom of documentation issues [\#2713](https://github.com/hashicorp/terraform-cdk/pull/2713)
134+
- chore: update jsii-srcmak in provider-generator [\#2707](https://github.com/hashicorp/terraform-cdk/pull/2707)
135+
- chore: uprade jsii versions to latest [\#2701](https://github.com/hashicorp/terraform-cdk/pull/2701)
136+
- chore: add /dashboard short link [\#2695](https://github.com/hashicorp/terraform-cdk/pull/2695)
137+
- chore(docs): Migrate link formats [\#2687](https://github.com/hashicorp/terraform-cdk/pull/2687)
138+
- chore: Remove links within headers of documentation pages [\#2686](https://github.com/hashicorp/terraform-cdk/pull/2686)
139+
- chore: add copyright headers automation [\#2683](https://github.com/hashicorp/terraform-cdk/pull/2683)
140+
- chore: set label to run integration tests if workflow file or test/ directory changes [\#2677](https://github.com/hashicorp/terraform-cdk/pull/2677)
141+
- chore: Automate go package copyright/license inculsion [\#2666](https://github.com/hashicorp/terraform-cdk/pull/2666)
142+
- chore: fix incorrect changelog [\#2661](https://github.com/hashicorp/terraform-cdk/pull/2661)
143+
- chore: create pull request template [\#2654](https://github.com/hashicorp/terraform-cdk/pull/2654)
144+
- chore: fix naming issue with csharp stack template [\#2626](https://github.com/hashicorp/terraform-cdk/pull/2626)
145+
146+
### refactor
147+
148+
- refactor(hcl2json): rename wasm method to match its implementation and expose it more direct aswell [\#2724](https://github.com/hashicorp/terraform-cdk/pull/2724)
149+
150+
### Other
151+
152+
- Revert "feat(lib): Add `TerraformCachedAsset`" [\#2719](https://github.com/hashicorp/terraform-cdk/pull/2719)
153+
52154
## 0.15.5
53155

54156
### fix
@@ -1824,85 +1926,4 @@ Up until CDK for Terraform version `0.2` only a single stack was supported. For
18241926

18251927
**Fixed bugs:**
18261928

1827-
- `cdktf init` was broken on Windows [\#198](https://github.com/hashicorp/terraform-cdk/issues/198)
1828-
1829-
## 0.0.11 (July 15, 2020)
1830-
1831-
**Implemented enhancements:**
1832-
1833-
- Defaults are opposite of Terraform but should default to being non-destructive [\#155](https://github.com/hashicorp/terraform-cdk/issues/155)
1834-
- Version check for new cdktf cli [\#130](https://github.com/hashicorp/terraform-cdk/issues/130)
1835-
- Set NODE_ENV for CLI [\#129](https://github.com/hashicorp/terraform-cdk/issues/129)
1836-
- Make local state persistent [\#116](https://github.com/hashicorp/terraform-cdk/issues/116)
1837-
- Improved resource name structure in Diff / Deploy / Destroy [\#135](https://github.com/hashicorp/terraform-cdk/issues/135)
1838-
1839-
**Fixed bugs:**
1840-
1841-
- cdktf destroy errors saying stale plan [\#182](https://github.com/hashicorp/terraform-cdk/issues/182)
1842-
- Migrating from local state to remote state doesn't work [\#168](https://github.com/hashicorp/terraform-cdk/issues/168)
1843-
- Display Typescript Errors for Synth [\#161](https://github.com/hashicorp/terraform-cdk/issues/161)
1844-
- cdktf init is broken [\#157](https://github.com/hashicorp/terraform-cdk/issues/157)
1845-
- Handle stale stacks in cdktf [\#150](https://github.com/hashicorp/terraform-cdk/issues/150)
1846-
- cdktf init Terraform Cloud workspace creation doesn't work [\#144](https://github.com/hashicorp/terraform-cdk/issues/144)
1847-
- Case sensitive tags are incorrectly downcased [\#75](https://github.com/hashicorp/terraform-cdk/issues/75)
1848-
1849-
## 0.0.10 (July 7, 2020)
1850-
1851-
- Bug when creating Terraform Cloud workspace via `cdktf init` (#144)
1852-
1853-
## 0.0.9 (Jul 7, 2020)
1854-
1855-
- Fix `cdktf init` issue (#139)
1856-
1857-
## 0.0.8 (July 5, 2020)
1858-
1859-
Minor bug fixes and documentation for getting started guides.
1860-
1861-
## 0.0.7 (July 3, 2020)
1862-
1863-
- Support for `cdktf diff` (#90)
1864-
- Support for `cdktf deploy` (#92)
1865-
- Support for `cdktf destroy` (#111)
1866-
- Support for Terraform Cloud via `cdktf login` (#96)
1867-
- Support for logging across the project (#100)
1868-
- New UI for `cdktf synth` and `cdktf get` (#103)
1869-
- Basic error handling support (#110)
1870-
1871-
There are other minor bug fixes included in the release. (#109, #122, #128).
1872-
1873-
## 0.0.6 (May 14, 2020)
1874-
1875-
- Typescript examples and template defaults for synthesize commands to compile application (#63)
1876-
- Terraform Output doesn't handle Optional Types (#83)
1877-
1878-
## 0.0.5 (May 13, 2020)
1879-
1880-
- Document Terraform outputs and remote backend (#64)
1881-
- Fix providers file workflow (#66)
1882-
- Stack escape hatch (#81)
1883-
1884-
## 0.0.4 (May 12, 2020)
1885-
1886-
- Getting started guide for Python (#73)
1887-
- Change output directory to `cdktf.out` for Terraform configuration (#70)
1888-
- Fix output directory argument for `cdktf synth` (#62)
1889-
1890-
## 0.0.3 (May 11, 2020)
1891-
1892-
Enable synthesis to Python
1893-
1894-
## 0.0.2-alpha.2 (May 9, 2020)
1895-
1896-
Minor output changes and updated README.md example.
1897-
1898-
## 0.0.2-alpha.1 (May 9, 2020)
1899-
1900-
Alpha release for Github and NPM
1901-
1902-
## 0.0.2 (May 8, 2020)
1903-
1904-
Initial release to GitHub and NPM.
1905-
1906-
## 0.0.1 (May 8, 2020)
1907-
1908-
Initial release of `cdktf-cli` and `cdktf` to Github and NPM registry.
1929+
- `cdktf init` was broken on Windows [\#198](https://github.com/hashicorp/terraform-cd

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.15.5",
3+
"version": "0.16.0",
44
"private": true,
55
"scripts": {
66
"build-and-package": "lerna run --scope 'cdktf*' --scope @cdktf/* build,package && tools/collect-dist.sh",

packages/cdktf/lib/terraform-functions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { FnGenerated } from "./functions/terraform-functions.generated";
66
// eslint-disable-next-line jsdoc/require-jsdoc
77
export class Fn extends FnGenerated {
88
/**
9-
* {@link https://www.terraform.io/docs/language/functions/bcrypt.html bcrypt} computes a hash of the given string using the Blowfish cipher, returning a string in [the _Modular Crypt Format_](https://passlib.readthedocs.io/en/stable/modular_crypt_format.html) usually expected in the shadow password file on many Unix systems.
9+
* {@link /terraform/docs/language/functions/bcrypt.html bcrypt} computes a hash of the given string using the Blowfish cipher, returning a string in [the _Modular Crypt Format_](https://passlib.readthedocs.io/en/stable/modular_crypt_format.html) usually expected in the shadow password file on many Unix systems.
1010
* @param {string} str
1111
* @param {number} [cost]
1212
*/
@@ -18,7 +18,7 @@ export class Fn extends FnGenerated {
1818
}
1919

2020
/**
21-
* {@link https://www.terraform.io/docs/language/functions/lookup.html lookup} retrieves the value of a single element from a map, given its key. If the given key does not exist, the given default value is returned instead.
21+
* {@link /terraform/docs/language/functions/lookup.html lookup} retrieves the value of a single element from a map, given its key. If the given key does not exist, the given default value is returned instead.
2222
* @param {any} inputMap
2323
* @param {string} key
2424
* @param {Array<any>} defaultValue
@@ -30,7 +30,7 @@ export class Fn extends FnGenerated {
3030
}
3131

3232
/**
33-
* {@link https://www.terraform.io/docs/language/functions/join.html join} produces a string by concatenating together all elements of a given list of strings with the given delimiter.
33+
* {@link /terraform/docs/language/functions/join.html join} produces a string by concatenating together all elements of a given list of strings with the given delimiter.
3434
* @param {string} separator
3535
* @param {Array<string>} list
3636
*/
@@ -41,7 +41,7 @@ export class Fn extends FnGenerated {
4141
}
4242

4343
/**
44-
* {@link https://www.terraform.io/docs/language/functions/range.html range} generates a list of numbers using a start value, a limit value, and a step value.
44+
* {@link /terraform/docs/language/functions/range.html range} generates a list of numbers using a start value, a limit value, and a step value.
4545
* @param {number} start
4646
* @param {number} limit
4747
* @param {number} [step=1]

0 commit comments

Comments
 (0)