Skip to content

Releases: romshark/yamagiconf

v0.6.0

20 May 11:27
Compare
Choose a tag to compare
  • 5d1299c feat: Allow non-pointer map struct values

v0.5.3

20 May 09:31
Compare
Choose a tag to compare
  • ca7c23e fix: Detecting inline in struct tags when multiple options are used.

v0.5.2

19 May 16:44
Compare
Choose a tag to compare
  • f920ada fix: Unmarshaling env var in arrays, slices and maps when iterating map pairs.
  • f920ada fix: Iteration over sorted map keys.
  • c41b190 fix: Missing error information when encountering an error during env unmarshaling.
  • 8fddbde fix: Panic at validation of YAML values in map.
  • a248021 fix: Panic when decoding env var to nil pointer.
  • 24b1578 fix: Prohibition of env struct tag on implementations of yaml.Unmarshaler.
  • 7d72f15 fix: Map key type check.
  • bc3272b fix: Error message for uint which was previously the same as for int.

v0.5.1

18 May 06:58
Compare
Choose a tag to compare
  • feat: The inline yaml tag option is now required for embedded structs and non-embedded can no longer use inline.
  • fix: No panic on Validate invokation for yaml.Unmarshaler implementations anymore.

v0.5.0

12 May 23:47
Compare
Choose a tag to compare
  • feat: Redeclaration of anchors is now forbidden and will return an error.
  • fix: Improved consistency of error messages.
  • fix: ValidateType, Load and LoadFile return an error on redefined yaml tags Instead of panicking.

v0.4.0

12 May 15:11
Compare
Choose a tag to compare
  • feat: The use of YAML tags is no longer allowed.
  • feat: Non-struct types and types that implement yaml.Unmarshaler and/or encoding.TextUnmarshaler are no longer allowed to be used as the root type.
  • feat: Arbitrary unexported fields without "env" and "yaml" struct tags are now allowed.
  • feat: The use of "env" and "yaml" struct tags is no longer allowed within types that implement yaml.Unmarshaler and/or encoding.TextUnmarshaler to improve code clarity.
  • fix: A path placeholder struct{...} is now used for anonymous types which improves error reporting. Previously, the path from within an anonymous struct type would start with ..
  • fix: A false-positive in the type recursion check was fixed.

v0.3.0

09 May 23:34
Compare
Choose a tag to compare

feat: time.Duration are now decoded from env vars.
fix: Implementations of encoding.TextUnmarshaler are now decoded from env vars.

v0.2.2

09 May 23:04
Compare
Choose a tag to compare

!fix: env vars now also overwrite fields in structs inside maps, but this requires map types to never use struct values and instead require the map value to be a pointer to the struct.
fix: structs that implement the encoding.TextUnmarshaler interface are no longer traversed, which fixes false-positive errors for struct types such as time.Time.

v0.2.1

09 May 17:26
Compare
Choose a tag to compare

fix: "null" and other forms of this string no longer return a false-positive ErrNullOnNonPointer for string fields.

v0.2.0

09 May 15:49
Compare
Choose a tag to compare

!feat: Split Load into LoadFile and Load and make it accept a pointer to leave the initialization to the user.
feat: Expose the function ValidateType to allow the user to validate types according to yamagiconf rules separately.