Skip to content

Releases: eduardosm/rsjsonnet

0.3.0

07 Nov 19:57
Compare
Choose a tag to compare

Breaking

  • EvalErrorKind::InvalidBuiltInFuncArgType has been renamed to
    EvalErrorKind::InvalidStdFuncArgType.
  • New variants have been added to EvalErrorKind.
  • New variants have been added to EvalStackTraceItem.
  • ExpectedThing as been renamed to ExpectedToken.
  • ParseError::Expected now uses ActualToken instead of TokenKind.
  • Arena allocation is now used for interned strings, AST and some internal data
    of Program.
  • String interner cannot be garbage-collected anymore.

Fixed

  • Reject tags in object keys in std.parseYaml.
  • Avoid some panics in std.parseYaml with some inputs found with fuzzing.
  • Avoid stack overflow when dropping expressions with too much nesting.

Changed

  • Improved error message when passing a value of invalid type to a built-in function.
  • Stack trace improvements.
  • Performance improvements.

0.2.0

12 Aug 11:14
Compare
Choose a tag to compare

Breaking

  • Some semantics of std.parseYaml have changed:
    • Empty YAML documents are now parsed as null instead of an empty string.
    • Anchors and aliases are now supported.
    • Null, NULL and ~ are now parsed as null.
    • True and TRUE are now parsed as true .
    • False and FALSE are now parsed as false.
    • Leading or trailing dot (e.g., .5 or 1.) is now allowed in floating
      point numbers.
    • Explicit + is now allowed in floating point numbers.
    • Leading zeros are now allowed in floating point numbers.
    • Octal and hexadecimal intergers are now parsed as numbers.

Fixed

  • Detect stack overflow while comparing arrays and objects.
  • Detect stack overflow while converting arrays and objects to string.
  • Avoid panic when encountering an array or object as object key in
    std.parseYaml.
  • Avoid panic when encountering a YAML alias in std.parseYaml.
  • Return character indices instead of UTF-8 byte indices in std.findSubstr.
  • Avoid panic when the first character of the pattern passed to std.findSubstr
    is not ASCII.

0.1.2

20 Jul 15:26
Compare
Choose a tag to compare

Fixed

  • Avoid panic if the array passed to std.format does not have enough items.

0.1.1

21 Apr 18:33
Compare
Choose a tag to compare

Changed

  • When a stack trace is larger than the specified maximum, hide items in the
    middle instead of the end.
  • Documentation improvements.

Fixed

  • Do not use f64::log2 to implement std.exponent and std.mantissa, which
    can be too inaccurate in some platforms.
  • Errors will not show <000D> at the end of each source line when source has
    CRLF line endings.

0.1.0

06 Apr 21:21
Compare
Choose a tag to compare

First release