Releases: hashicorp/terraform-plugin-framework
Releases · hashicorp/terraform-plugin-framework
v1.4.2
v1.4.1
v1.4.0
NOTES:
- all: This Go module has been updated to Go 1.20 per the Go support policy. It is recommended to review the Go 1.20 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#835)
FEATURES:
- providerserver: Upgrade to protocol versions 5.4 and 6.4, which can significantly reduce memory usage with Terraform 1.6 and later when a configuration includes multiple instances of the same provider (#828)
v1.3.5
v1.3.4
v1.3.3
BUG FIXES:
- types/basetypes: Minor reduction of memory allocations for
ObjectValue
typeToTerraformValue()
method, which decreases provider operation durations at scale (#775) - resource: Prevented panic during planning caused by
SetNestedAttribute
with nested attributeDefault
and multiple configured elements (#783) - tfsdk: Prevented
Value Conversion Error
diagnostics when usingSet()
method with base types instead of custom types (#806) - providerserver: Significantly reduced memory usage for framework data handling operations, especially during the
PlanResourceChange
RPC (#792)
v1.3.2
BUG FIXES:
- resource/schema: Ensured
Default
implementations received requestPath
and have responseDiagnostics
handled (#778) - resource/schema: Prevented panics with
Default
implementations on list, map, and set where no responseDiagnostics
orPlanValue
was returned (#778) - providerserver: Ensured Terraform CLI interrupts (e.g. Ctrl-c) properly cancel the
context.Context
of inflight requests (#782) - providerserver: Prevented caching of unused data and managed resource schemas (#784)
v1.3.1
BUG FIXES:
- datasource/schema: Ensure nested attribute and block Equal methods check nested attribute and block definition equality (#752)
- provider/metaschema: Ensure nested attribute Equal methods check nested attribute definition equality (#752)
- provider/schema: Ensure nested attribute and block Equal methods check nested attribute and block definition equality (#752)
- resource/schema: Ensure nested attribute and block Equal methods check nested attribute and block definition equality (#752)
- types/basetypes: Prevented panics in
ListType
,MapType
, andSetType
methods whenElemType
field is not set (#714) - resource/schema: Prevented
Value Conversion Error
diagnostics for attributes and blocks implementing bothCustomType
andPlanModifiers
fields (#754) - types/basetypes: Prevented panic with
ListTypableWithSemanticEquals
andSetTypableWithSemanticEquals
when proposed new element count was greater than prior element count (#772)
v1.3.0
NOTES:
- datasource/schema: The
Schema
typeValidate()
method has been deprecated in preference ofValidateImplementation()
(#699) - provider/metaschema: The
Schema
typeValidate()
method has been deprecated in preference ofValidateImplementation()
(#699) - provider/schema: The
Schema
typeValidate()
method has been deprecated in preference ofValidateImplementation()
(#699) - resource/schema: The
Schema
typeValidate()
method has been deprecated in preference ofValidateImplementation()
(#699)
ENHANCEMENTS:
- datasource/schema: Added
Schema
typeValidateImplementation()
method, which performs framework-defined schema validation and can be used in unit testing (#699) - provider/metaschema: Added
Schema
typeValidateImplementation()
method, which performs framework-defined schema validation and can be used in unit testing (#699) - provider/schema: Added
Schema
typeValidateImplementation()
method, which performs framework-defined schema validation and can be used in unit testing (#699) - resource/schema: Added
Schema
typeValidateImplementation()
method, which performs framework-defined schema validation and can be used in unit testing (#699) - datasource/schema: Raise validation errors if attempting to use top-level
for_each
attribute name, which requires special Terraform configuration syntax to be usable by the data source (#704) - resource/schema: Raise validation errors if attempting to use top-level
for_each
attribute name, which requires special Terraform configuration syntax to be usable by the resource (#704) - datasource/schema: Raise validation errors if attempting to use attribute names with leading numerics (0-9), which are invalid in the Terraform configuration language (#705)
- provider/schema: Raise validation errors if attempting to use attribute names with leading numerics (0-9), which are invalid in the Terraform configuration language (#705)
- resource/schema: Raise validation errors if attempting to use attribute names with leading numerics (0-9), which are invalid in the Terraform configuration language (#705)
- all: Improved SDK logging performance when messages would be skipped due to configured logging level (#744)
BUG FIXES:
- datasource/schema: Raise errors with
ListAttribute
,MapAttribute
,ObjectAttribute
, andSetAttribute
implementations instead of panics when missing requiredAttributeTypes
orElementTypes
fields (#699) - provider/metaschema: Raise errors with
ListAttribute
,MapAttribute
,ObjectAttribute
, andSetAttribute
implementations instead of panics when missing requiredAttributeTypes
orElementTypes
fields (#699) - provider/schema: Raise errors with
ListAttribute
,MapAttribute
,ObjectAttribute
, andSetAttribute
implementations instead of panics when missing requiredAttributeTypes
orElementTypes
fields (#699) - resource/schema: Raise errors with
ListAttribute
,MapAttribute
,ObjectAttribute
, andSetAttribute
implementations instead of panics when missing requiredAttributeTypes
orElementTypes
fields (#699) - tfsdk: Raise framework errors instead of generic upstream errors or panics when encountering unexpected values with
Set()
methods (#715)
v1.2.0
NOTES:
- New
DEBUG
levelDetected value change between proposed new state and prior state
log messages with the offending attribute path are now emitted when proposed new state value differences would cause the framework to automatically mark all unconfiguredComputed
attributes as unknown during planning. These can be used to troubleshoot potential resource implementation issues, or framework and Terraform plan logic bugs. (#630) - This Go module has been updated to Go 1.19 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#682)
FEATURES:
- resource/schema: Introduce packages, interface types, and built-in static value functionality for schema-based default values (#674)
ENHANCEMENTS:
- internal/fwserver: Added
DEBUG
logging to aid troubleshooting unexpected plans with unknown values (#630) - types/basetypes: Add
BoolValue
typeNewBoolPointerValue()
creation function andValueBoolPointer()
method (#689) - types/basetypes: Add
Float64Value
typeNewFloat64PointerValue()
creation function andValueFloat64Pointer()
method (#689) - types/basetypes: Add
Int64Value
typeNewInt64PointerValue()
creation function andValueInt64Pointer()
method (#689) - types/basetypes: Add
StringValue
typeNewStringPointerValue()
creation function andValueStringPointer()
method (#689) - resource/schema: Added
Default
fields toAttribute
types, which support schema-based default values (#674)
BUG FIXES: