Skip to content

Releases: zclconf/go-cty

v1.13.2

22 May 15:18
Compare
Choose a tag to compare
  • cty: IndexStep.Apply will no longer panic if given a marked collection to traverse through. (#160).

v1.12.2

05 May 20:47
Compare
Choose a tag to compare
  • cty: IndexStep.Apply will no longer panic if given a marked collection to traverse through. (#160).

v1.13.1

16 Mar 16:25
Compare
Choose a tag to compare
v1.13.1

v1.13.0

24 Feb 00:10
Compare
Choose a tag to compare
v1.13.0

v1.11.1

17 Oct 15:16
Compare
Choose a tag to compare
  • convert: Fix for error when converting empty sets and lists with nested optional attributes by explicitly removing optional attribute information from collections.

v1.9.1

18 Aug 00:25
e5d3f15
Compare
Choose a tag to compare
v1.9.1

v1.5.0

11 Jun 16:18
Compare
Choose a tag to compare
  • cty: New Value.HasWhollyKnownType method, for testing whether a value's type could potentially change if any unknown values it was constructed from were to become known. (#55)
  • convert: Fix incorrect panic when converting a tuple with a dynamic-typed null member into a list or set, due to overly-liberal type unification. (#56)

v1.4.2

29 May 16:42
Compare
Choose a tag to compare
  • function/stdlib: The jsonencode function will now correctly accept a null as its argument, and produce the JSON representation "null" rather than returning an error. (#54)

v1.4.1

18 May 17:25
Compare
Choose a tag to compare
  • function/stdlib: Fix various panics related to sets with unknown element types in the set-manipulation functions. (#52)
  • convert: Don't panic when asked to convert a tuple of objects to a list type constraint containing a nested cty.DynamicPseudoType. (#53)

v1.4.0

07 Apr 17:59
Compare
Choose a tag to compare
  • function/stdlib: The string functions that partition strings into individual characters (grapheme clusters) now use the appropriate segmentation rules from Unicode 12.0.0, while previous versions used Unicode 9.0.0.
  • function/stdlib: New functions Replace and RegexReplace for matching and replacing sequences of characters in a given string with another given string. (#45)
  • function/stdlib: The function Substr will now produce a zero-length string when given a length of zero. Previously it was incorrectly returning the remainder of the string after the given offset. (#48)
  • function/stdlib: The Floor and Ceil functions will now return an infinity if given an infinity, rather than returning the maximum/minimum integer value. (#51)
  • cty: Convenience methods for constructing path index steps from normal Go int and string values. (#50)