Skip to content

Releases: hashicorp/terraform-plugin-framework-timetypes

v0.5.0

06 Aug 14:10
Compare
Choose a tag to compare

ENHANCEMENTS:

  • timetypes: Implement StringSemanticEquals for GoDuration (#75)

v0.4.0

04 Jun 14:18
Compare
Choose a tag to compare

BREAKING CHANGES:

  • timetypes: Removed Validate() method from RFC3339Type type following deprecation of xattr.TypeWithValidate (#58)

NOTES:

  • all: This Go module has been updated to Go 1.21 per the Go support policy. It is recommended to review the Go 1.21 release notes before upgrading. Any consumers building on earlier Go versions may experience errors (#49)

FEATURES:

  • Support Go standard library time duration type (GoDurationType and GoDuration) (#66)

ENHANCEMENTS:

  • timetypes: Added ValidateAttribute() method to RFC3339 type, which supports validating an attribute value (#58)
  • timetypes: Added ValidateParameter() method to RFC3339 type, which supports validating a provider-defined function parameter value (#58)

v0.3.0

09 Oct 11:28
Compare
Choose a tag to compare

ENHANCEMENTS:

  • timetypes: Added NewRFC3339TimePointerValue() function, which supports creating a known value from a *time.Time (#20)

v0.2.0

08 Aug 20:02
Compare
Choose a tag to compare

BREAKING CHANGES:

  • timetypes: The NewRFC3339Value and NewRFC3339PointerValue functions now return diag.Diagnostics so an error diagnostic can be raised if the string is not RFC3339 formatted (#7)

ENHANCEMENTS:

  • timetypes: Added NewRFC3339ValueMust and NewRFC3339PointerValueMust value creation functions, which panic if the string is not RFC3339 formatted (#7)
  • timetypes: Added NewRFC3339TimeValue() function, which supports creating a known value from a time.Time (#6)

v0.1.0

28 Jul 16:42
Compare
Choose a tag to compare

FEATURES:

  • timetypes: Add new RFC3339 custom type implementation, representing an RFC 3339 timestamp string (#2)