github hashicorp/hcl v2.7.0

latest releases: v2.20.1, v2.20.0, v2.19.1...
3 years ago

Enhancements

  • json: There is a new function ParseWithStartPos, which allows overriding the starting position for parsing in case the given JSON bytes are a fragment of a larger document, such as might happen when decoding with encoding/json into a json.RawMessage. (#389)
  • json: There is a new function ParseExpression, which allows parsing a JSON string directly in expression mode, whereas previously it was only possible to parse a JSON string in body mode. (#381)
  • hclwrite: Block type now supports SetType and SetLabels, allowing surgical changes to the type and labels of an existing block without having to reconstruct the entire block. (#340)

Bugs Fixed

  • hclsyntax: Fix confusing error message for bitwise OR operator (#380)
  • hclsyntax: Several bug fixes for using HCL with values containing cty "marks" (#404, #406, #407)

Don't miss a new hcl release

NewReleases is sending notifications on new releases.