Skip to content

v0.6.1

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Oct 12:16
· 42 commits to main since this release

Fixed

  • An undefined optional next to one other value keeps that value's type (L376, L636-637): a = ${?nope}42 is the number 42, true${?nope} the boolean, where v0.6.0 joined them as text. substitutions/039 and the suite's other single-neighbour rows.
  • An optional that closes a cycle is the only missing link (L660-661, L714-716): closed is consumed so an outer optional that already found a value keeps it. b += ${?a}, a += ${?b} is one order's result or the other (026, 057), not both lists empty; f = ${?a.t}x before a = ${?y}${?f} is f = "1x" (043); 075 is [y, y] when f is written first. When e is written first in 074, a required ${e} that still closes the cycle is an error instead of a second missing optional swallowed by the outer ${?f.k} (that was f = [y]).
  • A self-reference in an include (+= or a look-back) looks up the fixed-up path only, as typesafe/config does: it does not fall back to the same name at the document root, so a += 2 included under k with a root a = [1] is k.a = [2] (include substitution/025, 027, 028). L1047-1050 still says try the original path too; the suite lists that reading in also_valid. A path that is not a self-reference still falls back when an optional vanished (009, 011, 014), and a self-reference with nothing below still reads the environment variable of the name as written (L767). { … } ${?x} resolves the object as a layer first so a self-reference inside sees it.