Releases: hashicorp/terraform-plugin-go
Releases · hashicorp/terraform-plugin-go
v0.11.0
FEATURES:
- Added support for protocol version 5.3 and 6.3, which allows providers to opt into the
PlanResourceChange
RPC for resource destruction (#205)
ENHANCEMENTS:
v0.10.0
v0.9.1
v0.9.0
NOTES:
- This Go module has been updated to Go 1.17 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#175)
ENHANCEMENTS:
- tftypes: Added
Type
support toWalkAttributePath()
function (#163)
BUG FIXES:
v0.8.0
NOTES:
- The underlying
terraform-plugin-log
dependency has been updated to v0.3.0, which includes a breaking change in the optional additional fields parameter of logging function calls to ensure correctness and catch coding errors during compilation. Any early adopter provider logging which calls those functions may require updates. (#166)
ENHANCEMENTS:
v0.7.1
v0.7.0
BREAKING CHANGES:
- tfprotov6: The
SchemaObject.MaxItems
andSchemaObject.MinItems
fields have been removed without replacement. These were never used in the protocol and did not perform any validation. (#143)
BUG FIXES:
- tfprotov6: The
ApplyResourceChangeResponse.UnsafeToUseLegacyTypeSystem
andPlanResourceChangeResponse.UnsafeToUseLegacyTypeSystem
fields are now properly passed into and out of the protocol (#143)
v0.6.0
ENHANCEMENTS:
- tfprotov5/tf5server: Added
WithManagedDebug()
ServeOpt
, which implements outputting reattach configuration to stdout and stopping on SIGINT (#137) - tfprotov5/tf5server: Added support for writing protocol data to disk by setting
TF_LOG_SDK_PROTO_DATA_DIR
environment variable (#135) - tfprotov5/tf5server: Increased maximum gRPC send and receive message size limit to 256MB (#139)
- tfprotov6/tf6server: Added
WithManagedDebug()
ServeOpt
, which implements outputting reattach configuration to stdout and stopping on SIGINT (#137) - tfprotov6/tf6server: Added support for writing protocol data to disk by setting
TF_LOG_SDK_PROTO_DATA_DIR
environment variable (#135) - tfprotov6/tf6server: Increased maximum gRPC send and receive message size limit to 256MB (#139)
BUG FIXES:
v0.5.0
v0.4.0
BREAKING CHANGES:
- The
AttributeType
property oftftypes.Map
has been renamed toElementType
. (#105) - The
tf5server
package's import path is nowgithub.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server
instead ofgithub.com/hashicorp/terraform-plugin-go/tfprotov5/server
. (#103) - The
tf6server
package's import path is nowgithub.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server
instead ofgithub.com/hashicorp/terraform-plugin-go/tfprotov6/server
. (#103) - With the release of Go 1.17, Go 1.16 is now the lowest supported version of Go to use with terraform-plugin-go. (#102)
- tftypes: The
Is()
method on types implementing theType
interface now only perform a shallow type check, no longer comparing any underlying attribute or element type(s). Use theEqual()
method for deep type checking. (#94) - tftypes:
(AttributePath).WithElementKeyInt()
now has anint
parameter instead ofint64
. Using(AttributePath).WithElementKeyInt()
withinfor ... range
loops no longer requiresint64()
conversion. (#101)
ENHANCEMENTS:
- tftypes: All types implementing the
Type
interface now provide anEqual()
method for deep type checking andUsableAs()
method for type conformance checking. (#94)
BUG FIXES:
- tftypes: Ensure
NewValue()
panics onDynamicPseudoType
and known values. (#94) - tftypes: Fixed elements of
Tuple
andMap
and attributes ofObject
havingDynamicPseudoType
as their type when unmarshaling JSON values from Terraform. (#94) - tftypes: Fixed elements of
Tuple
andMap
and attributes ofObject
havingDynamicPseudoType
as their type when unmarshaling msgpack values from Terraform. (#100) - tftypes: Prevent potential panic unmarshaling null DynamicPseudoType in msgpack (#99)
- tftypes: Return error instead of panic when calling
(Value).Diff()
with eitherValue
missing type (#104) - tftypes: Return error instead of panic when calling
Transform()
withValue
missing type (#104)