Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.12.0 #110

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 11, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/hashicorp/terraform-plugin-framework v1.4.2 -> v1.12.0 age adoption passing confidence

Release Notes

hashicorp/terraform-plugin-framework (github.com/hashicorp/terraform-plugin-framework)

v1.12.0

Compare Source

NOTES:

BUG FIXES:

  • providerserver: Fixed bug that prevented moved operation support between resource types for framework-only providers. (#​1039)

v1.11.0

Compare Source

NOTES:

  • Framework reflection logic (Config.Get, Plan.Get, etc.) for structs with
    tfsdk 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 (tfsdk:"-") can be added to ignore all promoted fields.

For example, the following struct will now return an error diagnostic:

type thingResourceModel struct {
	Attr1 types.String `tfsdk:"attr_1"`
	Attr2 types.Bool   `tfsdk:"attr_2"`

	// Previously, this embedded struct was ignored, will now promote underlying fields
	embeddedModel
}

type embeddedModel struct {
	// No `tfsdk` tag
	ExportedField string
}

To preserve the original behavior, a tfsdk ignore tag can be added to ignore the entire embedded struct:

type thingResourceModel struct {
	Attr1 types.String `tfsdk:"attr_1"`
	Attr2 types.Bool   `tfsdk:"attr_2"`

	// This embedded struct will now be ignored
	embeddedModel      `tfsdk:"-"`
}

type embeddedModel struct {
	ExportedField string
}

(#​1021)

ENHANCEMENTS:

  • all: Added embedded struct support for object to struct conversions with tfsdk tags (#​1021)

v1.10.0

Compare Source

FEATURES:

  • types/basetypes: Added Int32Type and Int32Value implementations for Int32 value handling. (#​1010)
  • types/basetypes: Added interfaces basetypes.Int32Typable, basetypes.Int32Valuable, and basetypes.Int32ValuableWithSemanticEquals for Int32 custom type and value implementations. (#​1010)
  • resource/schema: Added Int32Attribute implementation for Int32 value handling. (#​1010)
  • datasource/schema: Added Int32Attribute implementation for Int32 value handling. (#​1010)
  • provider/schema: Added Int32Attribute implementation for Int32 value handling. (#​1010)
  • function: Added Int32Parameter and Int32Return for Int32 value handling. (#​1010)
  • resource/schema/int32default: New package with StaticValue implementation for Int32 schema-based default values. (#​1010)
  • resource/schema/int32planmodifier: New package with built-in implementations for Int32 value plan modification. (#​1010)
  • resource/schema/defaults: New Int32 interface for Int32 schema-based default implementations. (#​1010)
  • resource/schema/planmodifier: New Int32 interface for Int32 value plan modification implementations. (#​1010)
  • schema/validator: New Int32 interface for Int32 value schema validation. (#​1010)
  • types/basetypes: Added Float32Type and Float32Value implementations for Float32 value handling. (#​1014)
  • types/basetypes: Added interfaces basetypes.Float32Typable, basetypes.Float32Valuable, and basetypes.Float32ValuableWithSemanticEquals for Float32 custom type and value implementations. (#​1014)
  • resource/schema: Added Float32Attribute implementation for Float32 value handling. (#​1014)
  • datasource/schema: Added Float32Attribute implementation for Float32 value handling. (#​1014)
  • provider/schema: Added Float32Attribute implementation for Float32 value handling. (#​1014)
  • function: Added Float32Parameter and Float32Return for Float32 value handling. (#​1014)
  • resource/schema/float32default: New package with StaticValue implementation for Float32 schema-based default values. (#​1014)
  • resource/schema/float32planmodifier: New package with built-in implementations for Float32 value plan modification. (#​1014)
  • resource/schema/defaults: New Float32 interface for Float32 schema-based default implementations. (#​1014)
  • resource/schema/planmodifier: New Float32 interface for Float32 value plan modification implementations. (#​1014)
  • schema/validator: New Float32 interface for Float32 value schema validation. (#​1014)

v1.9.0

Compare Source

NOTES:

  • resource: If plan modification was dependent on nested attribute plan modification automatically running when the nested object was null/unknown, it may be necessary to add object-level plan modification to convert the nested object to a known object first. (#​995)
  • This release contains support for deferred actions, which is an experimental feature only available in prerelease builds of Terraform 1.9 and later. This functionality is subject to change and is not protected by version compatibility guarantees. (#​999)

FEATURES:

  • resource: Add Deferred field to ReadResponse, ModifyPlanResponse, and ImportStateResponse which indicates a resource deferred action to the Terraform client (#​999)
  • datasource: Add Deferred field to ReadResponse which indicates a data source deferred action to the Terraform client (#​999)
  • resource: Add ClientCapabilities field to ReadRequest, ModifyPlanRequest, and ImportStateRequest which specifies optionally supported protocol features for the Terraform client (#​999)
  • datasource: Add ClientCapabilities field to ReadRequest which specifies optionally supported protocol features for the Terraform client (#​999)
  • provider: Add Deferred field to ConfigureResponse which indicates a provider deferred action to the Terraform client (#​1002)
  • provider: Add ClientCapabilities field to ConfigureRequest which specifies optionally supported protocol features for the Terraform client (#​1002)

ENHANCEMENTS:

  • function: Introduced implementation errors for collection and object parameters and returns which are missing type information (#​991)

BUG FIXES:

  • resource: Prevented errant collection-based nested object conversion from null/unknown object to known object (#​995)

v1.8.0

Compare Source

BREAKING CHANGES:

  • function: Removed Definition type Parameter() method (#​968)

NOTES:

  • function: Provider-defined function features are now considered generally available and protected by compatibility promises (#​966)
  • attr/xattr: The TypeWithValidate interface has been deprecated in preference of the ValidateableAttribute interface. A ValidatableParameter interface has also been added to the function package (#​968)

FEATURES:

  • attr/xattr: Added ValidateableAttribute interface for custom value type implementations (#​968)
  • function: Added ValidateableParameter interface for custom value type implementations (#​968)
  • function: Add BoolParameterValidator, DynamicParameterValidator, Float64ParameterValidator, Int64ParameterValidator, ListParameterValidator, MapParameterValidator, NumberParameterValidator, ObjectParameterValidator, SetParameterValidator, and StringParameterValidator interfaces for custom function parameter validation implementations. (#​971)
  • function: Add ParameterWithBoolValidators, ParameterWithInt64Validators, ParameterWithFloat64Validators, ParameterWithDynamicValidators, ParameterWithListValidators, ParameterWithMapValidators, ParameterWithNumberValidators, ParameterWithObjectValidators, ParameterWithSetValidators, and ParameterWithStringValidators interfaces to enable parameter-based validation support (#​971)

BUG FIXES:

  • types/basetypes: Prevented panic in the MapValue types Equal method when the receiver has a nil elementType (#​961)
  • types/basetypes: Prevented panic in the ListValue types Equal method when the receiver has a nil elementType (#​961)
  • types/basetypes: Prevented panic in the SetValue types Equal method when the receiver has a nil elementType (#​961)
  • resource: Ensured computed-only dynamic attributes will not cause wrong final value type errors during planning (#​969)

v1.7.0

Compare Source

BREAKING CHANGES:

  • function: All parameters must be explicitly named via the Name field (#​964)
  • function: DefaultParameterNamePrefix and DefaultVariadicParameterName constants have been removed (#​964)

FEATURES:

  • types/basetypes: Added DynamicType and DynamicValue implementations for dynamic value handling (#​147)
  • types/basetypes: Added interfaces basetypes.DynamicTypable, basetypes.DynamicValuable, and basetypes.DynamicValuableWithSemanticEquals for dynamic custom type and value implementations (#​147)
  • resource/schema: Added DynamicAttribute implementation for dynamic value handling (#​147)
  • datasource/schema: Added DynamicAttribute implementation for dynamic value handling (#​147)
  • provider/schema: Added DynamicAttribute implementation for dynamic value handling (#​147)
  • function: Added DynamicParameter and DynamicReturn for dynamic value handling` (#​147)
  • resource/schema/dynamicdefault: New package with StaticValue implementation for dynamic schema-based default values (#​147)
  • resource/schema/dynamicplanmodifier: New package with built-in implementations for dynamic value plan modification. (#​147)
  • resource/schema/defaults: New Dynamic interface for dynamic schema-based default implementations (#​147)
  • resource/schema/planmodifier: New Dynamic interface for dynamic value plan modification implementations (#​147)
  • schema/validator: New Dynamic interface for dynamic value schema validation (#​147)

v1.6.1

Compare Source

NOTES:

  • all: The v1.6.0 release updated this Go module to Go 1.21 per the Go support policy. It is recommended to review the Go 1.21 release notes before upgrading. Any consumers building on earlier Go versions may experience errors (#​937)

BUG FIXES:

  • resource/schema: Ensured invalid attribute default value errors are raised (#​930)
  • function: Added implementation validation to function.Definition to ensure all parameter names (including the variadic parameter) are unique. (#​926)
  • function: Updated the default parameter name to include the position of the parameter (i.e. param1, param2, etc.). Variadic parameters will default to varparam. (#​926)

v1.6.0

Compare Source

BREAKING CHANGES:

  • function: Changed the framework type for variadic parameters to types.TupleType, where each element is the same element type. Provider-defined functions using a types.List for retrieving variadic argument data will need to update their code to use types.Tuple. (#​923)
  • function: Altered the RunResponse type, replacing Diagnostics with FuncError (#​925)
  • diag: Removed DiagnosticWithFunctionArgument interface. Removed NewArgumentErrorDiagnostic(), NewArgumentWarningDiagnostic() and WithFunctionArgument() functions. Removed AddArgumentError() and AddArgumentWarning() methods from Diagnostics. (#​925)

FEATURES:

  • resource: Added the ResourceWithMoveState interface, which enables state moves across resource types with Terraform 1.8 and later (#​917)

ENHANCEMENTS:

  • privatestate: Added support for SetKey() method to fully remove key with nil or zero-length value (#​910)
  • function: Added FuncError type, required for RunResponse (#​925)
  • function: Added NewFuncError() and NewArgumentFuncError() functions, which create a FuncError (#​925)
  • function: Added ConcatFuncErrors() and FuncErrorFromDiags() helper functions for use when working with FuncError (#​925)

v1.5.0

Compare Source

NOTES:

  • all: Update google.golang.org/grpc dependency to address CVE-2023-44487 (#​865)
  • Provider-defined function support is in technical preview and offered without compatibility promises until Terraform 1.8 is generally available. (#​889)

FEATURES:

  • function: New package for implementing provider defined functions (#​889)

ENHANCEMENTS:

  • types/basetypes: Added TupleType and TupleValue implementations, which are only necessary for dynamic value handling (#​870)
  • diag: Added NewArgumentErrorDiagnostic() and NewArgumentWarningDiagnostic() functions, which create diagnostics with the function argument position set (#​889)
  • provider: Added ProviderWithFunctions interface for implementing provider defined functions (#​889)
  • diag: Added (Diagnostics).AddArgumentError() and (Diagnostics).AddArgumentWarning() methods for appending function argument diagnostics (#​889)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch 2 times, most recently from 95c4075 to 21977fd Compare January 25, 2024 08:03
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.5.0 fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.6.0 Feb 28, 2024
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from 21977fd to 95436c9 Compare February 28, 2024 14:47
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.6.0 fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.6.1 Mar 5, 2024
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from 95436c9 to b443163 Compare March 5, 2024 17:52
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.6.1 fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.7.0 Mar 21, 2024
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from b443163 to 0db7d73 Compare March 21, 2024 21:23
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch 2 times, most recently from c7f994c to 26f90a7 Compare April 18, 2024 21:17
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.7.0 fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.8.0 Apr 18, 2024
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from 26f90a7 to 419ae05 Compare May 9, 2024 10:54
Copy link
Contributor Author

renovate bot commented Jun 4, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 15 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.18 -> 1.23.1
github.com/hashicorp/terraform-plugin-go v0.19.0 -> v0.24.0
github.com/golang/protobuf v1.5.3 -> v1.5.4
github.com/google/uuid v1.3.0 -> v1.6.0
github.com/hashicorp/go-plugin v1.5.1 -> v1.6.1
github.com/hashicorp/terraform-registry-address v0.2.2 -> v0.2.3
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d -> v0.1.1
github.com/vmihailenco/msgpack/v5 v5.3.5 -> v5.4.1
golang.org/x/crypto v0.17.0 -> v0.24.0
golang.org/x/mod v0.14.0 -> v0.17.0
golang.org/x/net v0.18.0 -> v0.26.0
golang.org/x/sys v0.15.0 -> v0.21.0
golang.org/x/text v0.14.0 -> v0.16.0
google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 -> v0.0.0-20240604185151-ef581f913117
google.golang.org/grpc v1.57.1 -> v1.66.2
google.golang.org/protobuf v1.31.0 -> v1.34.2

@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch 2 times, most recently from cbd62e5 to 2e015bc Compare June 4, 2024 19:35
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.8.0 fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.9.0 Jun 4, 2024
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from 2e015bc to 3252896 Compare July 9, 2024 16:10
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.9.0 fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.10.0 Jul 9, 2024
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from 3252896 to 9687466 Compare August 6, 2024 15:55
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.10.0 fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.11.0 Aug 6, 2024
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from 9687466 to 35834ec Compare August 22, 2024 09:16
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from 35834ec to 51571fd Compare September 11, 2024 16:33
@renovate renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch from 51571fd to d475b41 Compare September 18, 2024 16:22
@renovate renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.11.0 fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.12.0 Sep 18, 2024
Copy link
Contributor Author

renovate bot commented Oct 3, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (v1.12.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/github.com-hashicorp-terraform-plugin-framework-1.x branch October 3, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant