Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build(deps): Bump github.com/hashicorp/terraform-plugin-framework fro…
…m 1.10.0 to 1.11.0 (#139) Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) from 1.10.0 to 1.11.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hashicorp/terraform-plugin-framework/releases">github.com/hashicorp/terraform-plugin-framework's releases</a>.</em></p> <blockquote> <h2>v1.11.0</h2> <p>NOTES:</p> <ul> <li>Framework reflection logic (<code>Config.Get</code>, <code>Plan.Get</code>, etc.) for structs with <code>tfsdk</code> field tags has been updated to support embedded structs that promote exported fields. For existing structs that embed unexported structs with exported fields, a tfsdk ignore tag (<code>tfsdk:"-"</code>) can be added to ignore all promoted fields.</li> </ul> <p>For example, the following struct will now return an error diagnostic:</p> <pre lang="go"><code>type thingResourceModel struct { Attr1 types.String `tfsdk:"attr_1"` Attr2 types.Bool `tfsdk:"attr_2"` <pre><code>// Previously, this embedded struct was ignored, will now promote underlying fields embeddedModel </code></pre> <p>}</p> <p>type embeddedModel struct {<br /> // No <code>tfsdk</code> tag<br /> ExportedField string<br /> }<br /> </code></pre></p> <p>To preserve the original behavior, a tfsdk ignore tag can be added to ignore the entire embedded struct:</p> <pre lang="go"><code>type thingResourceModel struct { Attr1 types.String `tfsdk:"attr_1"` Attr2 types.Bool `tfsdk:"attr_2"` <pre><code>// This embedded struct will now be ignored embeddedModel `tfsdk:&quot;-&quot;` </code></pre> <p>}</p> <p>type embeddedModel struct {<br /> ExportedField string<br /> }<br /> </code></pre></p> <p>(<a href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</p> <p>ENHANCEMENTS:</p> <ul> <li>all: Added embedded struct support for object to struct conversions with <code>tfsdk</code> tags (<a href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md">github.com/hashicorp/terraform-plugin-framework's changelog</a>.</em></p> <blockquote> <h2>1.11.0 (August 06, 2024)</h2> <p>NOTES:</p> <ul> <li>Framework reflection logic (<code>Config.Get</code>, <code>Plan.Get</code>, etc.) for structs with <code>tfsdk</code> field tags has been updated to support embedded structs that promote exported fields. For existing structs that embed unexported structs with exported fields, a tfsdk ignore tag (<code>tfsdk:"-"</code>) can be added to ignore all promoted fields.</li> </ul> <p>For example, the following struct will now return an error diagnostic:</p> <pre lang="go"><code>type thingResourceModel struct { Attr1 types.String `tfsdk:"attr_1"` Attr2 types.Bool `tfsdk:"attr_2"` <pre><code>// Previously, this embedded struct was ignored, will now promote underlying fields embeddedModel </code></pre> <p>}</p> <p>type embeddedModel struct {<br /> // No <code>tfsdk</code> tag<br /> ExportedField string<br /> }<br /> </code></pre></p> <p>To preserve the original behavior, a tfsdk ignore tag can be added to ignore the entire embedded struct:</p> <pre lang="go"><code>type thingResourceModel struct { Attr1 types.String `tfsdk:"attr_1"` Attr2 types.Bool `tfsdk:"attr_2"` <pre><code>// This embedded struct will now be ignored embeddedModel `tfsdk:&quot;-&quot;` </code></pre> <p>}</p> <p>type embeddedModel struct {<br /> ExportedField string<br /> }<br /> </code></pre></p> <p>(<a href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</p> <p>ENHANCEMENTS:</p> <ul> <li>all: Added embedded struct support for object to struct conversions with <code>tfsdk</code> tags (<a href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hashicorp/terraform-plugin-framework/commit/c338d617765d8c591c90af0b700faeeafdafe26b"><code>c338d61</code></a> Update changelog</li> <li><a href="https://github.com/hashicorp/terraform-plugin-framework/commit/4d10c1755a0dcd17f0b6c020646b452f6ebe2047"><code>4d10c17</code></a> all: Add support for embedded struct types in object conversions (<a href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</li> <li><a href="https://github.com/hashicorp/terraform-plugin-framework/commit/d6c8b06d12c57a42a097e4ac7b53bc770640623f"><code>d6c8b06</code></a> docs: Add more clarification for unknown values during config validation (<a href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1023">#1023</a>)</li> <li><a href="https://github.com/hashicorp/terraform-plugin-framework/commit/0f21b1420303e808fdef7aa64be043a384dcb3ef"><code>0f21b14</code></a> Result of tsccr-helper -log-level=info gha update -latest . (<a href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1020">#1020</a>)</li> <li><a href="https://github.com/hashicorp/terraform-plugin-framework/commit/12d7331b555f026a11462f9e25bf686b1d888eae"><code>12d7331</code></a> Result of tsccr-helper -log-level=info gha update -latest . (<a href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1018">#1018</a>)</li> <li>See full diff in <a href="https://github.com/hashicorp/terraform-plugin-framework/compare/v1.10.0...v1.11.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/hashicorp/terraform-plugin-framework&package-manager=go_modules&previous-version=1.10.0&new-version=1.11.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
- Loading branch information