BREAKING CHANGES:
- attr: The
TypeWithValidate
interface has been moved under theattr/xattr
package and the*tftypes.AttributePath
parameter is replaced withpath.Path
(#390) - diag: The
DiagnosticWithPath
interfacePath
method*tftypes.AttributePath
return is replaced withpath.Path
(#390) - diag: The
Diagnostics
typeAddAttributeError
andAddAttributeWarning
method*tftypes.AttributePath
parameters are replaced withpath.Path
(#390) - diag: The
NewAttributeErrorDiagnostic
andNewAttributeWarningDiagnostic
function*tftypes.AttributePath
parameters are replaced withpath.Path
(#390) - tfsdk: The
Config
,Plan
, andState
typesGetAttribute
andSetAttribute
methods*tftypes.AttributePath
parameters are replaced withpath.Path
(#390) - tfsdk: The
DataSourceConfigValidator
interfaceValidate
method is nowValidateDataSource
to support generic validators that satisfyDataSourceConfigValidator
,ProviderConfigValidator
, andResourceConfigValidator
(#405) - tfsdk: The
ModifyAttributePlanRequest
,ModifyResourcePlanResponse
, andValidateAttributeRequest
typeAttributePath *tftypes.AttributePath
fields are replaced withAttributePath path.Path
(#390) - tfsdk: The
PlanResourceChange
RPC on destroy is now enabled. To prevent unexpected Terraform errors, the framework attempts to catch errant provider logic in plan modifiers when destroying. Resource level plan modifiers may require updates to handle a completely null proposed new state (plan) and ensure it remains completely null on resource destruction. (#409) - tfsdk: The
ProviderConfigValidator
interfaceValidate
method is nowValidateProvider
to support generic validators that satisfyDataSourceConfigValidator
,ProviderConfigValidator
, andResourceConfigValidator
(#405) - tfsdk: The
RequiresReplaceIf
andResourceImportStatePassthroughID
function*tftypes.AttributePath
parameters are replaced withpath.Path
(#390) - tfsdk: The
ResourceConfigValidator
interfaceValidate
method is nowValidateResource
to support generic validators that satisfyDataSourceConfigValidator
,ProviderConfigValidator
, andResourceConfigValidator
(#405)
FEATURES:
- Support plan modifiers returning warning and error diagnostics on resource destruction with Terraform 1.3 and later (#409)
- path: Introduced attribute path expressions (#396)
- path: Introduced framework abstraction for attribute path handling (#390)
ENHANCEMENTS:
- diag: Added
Diagnostics
typeEqual()
method (#402) - diag:
ErrorsCount
,WarningsCount
,Errors
andWarnings
functions have been added todiag.Diagnostics
(#392) - providerserver: Added sdk.proto logger request duration and response diagnostics logging (#398)
- tfsdk: Added
AttributePathExpression
field toModifyAttributePlanRequest
andValidateAttributeRequest
types (#396) - tfsdk: Added
PathMatches
method toConfig
,Plan
, andState
types (#396) - tfsdk: Added framework-specific error diagnostics when
Resource
implementations errantly return no errors and empty state afterCreate
andUpdate
methods (#406) - types: Method
IsNull()
forNumber
type will now return true if the struct is zero-value initialized. (#384)