NOTES:
- datasource: The
DataSource
typeGetSchema
method has been deprecated. Use theSchema
method instead. (#546) - provider: The
Provider
typeGetSchema
method has been deprecated. Use theSchema
method instead. (#553) - resource: The
RequiresReplace()
plan modifier has been deprecated. Use a type-specific plan modifier instead, such asresource/schema/stringplanmodifier.RequiresReplace()
orresource/schema/stringplanmodifier.RequiresReplaceIfConfigured()
(#565) - resource: The
RequiresReplaceIf()
plan modifier has been deprecated. Use a type-specific plan modifier instead, such asresource/schema/stringplanmodifier.RequiresReplaceIf()
(#565) - resource: The
Resource
typeGetSchema
method has been deprecated. Use theSchema
method instead. (#558) - resource: The
UseStateForUnknown()
plan modifier has been deprecated. Use a type-specific plan modifier instead, such asresource/schema/stringplanmodifier.UseStateForUnknown()
(#565) - tfsdk: The
Attribute
,Block
, andSchema
types have been deprecated. Use the similarly named types in thedatasource/schema
,provider/schema
, andresource/schema
packages instead. (#563) - tfsdk: The
ListNestedAttributes
,MapNestedAttributes
,SetNestedAttributes
, andSingleNestedAttributes
functions have been deprecated. Use the similarly named types in thedatasource/schema
,provider/schema
, andresource/schema
packages instead. (#563)
BREAKING CHANGES:
- provider: The
ProviderWithMetaSchema
typeGetMetaSchema
method has been replaced with theMetaSchema
method (#562) - tfsdk: The
Attribute
typeFrameworkType()
method has been removed. Use theGetType()
method instead which returns the same information. (#543) - tfsdk: The
Attribute
typeGetType()
method now returns type information whether the attribute implements theType
field orAttributes
field. (#543) - tfsdk: The
Config
,Plan
, andState
typeSchema
field type has been updated fromtfsdk.Schema
to the genericfwschema.Schema
interface to enable additional schema implementations (#544)
FEATURES:
- datasource/schema: New package which contains schema interfaces and types relevant to data sources (#546)
- provider/schema: New package which contains schema interfaces and types relevant to providers (#553)
- resource/schema/planmodifier: New package which contains type-specific schema plan modifier interfaces (#557)
- resource/schema: New package which contains schema interfaces and types relevant to resources (#558)
- resource/schema: New packages, such as
stringplanmodifier
which contain type-specific schema plan modifier implementations (#565) - schema/validator: New package which contains type-specific schema validator interfaces (#542)
BUG FIXES:
- diag: Allow diagnostic messages with incorrect UTF-8 encoding to pass through with the invalid sequences replaced with the Unicode Replacement Character. This avoids returning the unhelpful message "string field contains invalid UTF-8" in that case. (#549)
- internal/fwserver: Ensured blocks are ignored when marking computed nils as unknown during resource change planning (#552)