BREAKING CHANGES:
- attr: The
Value
interface now includes theIsNull()
andIsUnknown()
methods (#335) - attr: The
Value
interface now includes theString()
method (#376) - tfsdk:
ListNestedAttributes
,SetNestedAttributes
andMapNestedAttributes
functions lost the second argumentopts
, as it was unused. (#349)
FEATURES:
- providerserver: Implemented native protocol version 5 support (#368)
ENHANCEMENTS:
- providerserver: Added
NewProtocol5()
andNewProtocol5WithError()
functions, which return a protocol version 5 compatible provider server (#368) - providerserver: Added
ServeOpts
typeProtocolVersion
field, which can be set to5
or6
and defaults to6
(#368) - tfsdk: New function
ValueFrom
that takes a Go value and populates a compatibleattr.Value
, given a descriptiveattr.Type
. (#350) - tfsdk: Removed
ListNestedAttributesOptions
,SetNestedAttributesOptions
andMapNestedAttributesOptions
types, as they were empty (no fields) and unused. (#349) - types: Added
IsNull()
andIsUnknown()
methods to all types (#335) - types: Added
String()
method to all types (#376)
BUG FIXES:
- tfsdk: Prevented configuration handling error when
Schema
containedBlocks
(#371) - types: Prevented panic being thrown when
.ToTerraformValue
is called on anattr.Value
type whereElemType / AttrsType
were not set. (#354) - types: Prevented potential loss of number precision with
Int64
between 54 and 64 bits (#325)