Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v0.4.0-next.1

Pre-release
Pre-release

Choose a tag to compare

@bgotink bgotink released this 08 Mar 00:43
· 7 commits to main since this release
v0.4.0-next.1
ed1da3a

This pre-release contains quite a lot of changes, but only one breaking change:

  • Start on KDL Query implementation
  • Rewrite the entire tokenizer to use a lookup table, which provides a drastic speed boost
  • The v1 parser is rebuilt from scratch and uses the same infrastructure as the existing v2 parser.
    This makes parsing a v1 document not only 2x faster but it stops us from having to bundle chevrotain with its heavy footprint.
  • Fix issues with the format() function: improve its ability to format bare identifiers and fix unicode escapes.
  • BREAKING CHANGE: in case multiple errors occur the parser will now throw an InvalidKdlError rather than an AggregateError.
    The InvalidKdlError can now have sub-errors in its errors property. You can use the flat() method to easily iterate over all errors contained within an InvalidKdlError.

This pre-release contains support for the experimental number suffix feature currently under discussion in the KDL language repository.

Full Changelog: v0.3.1...v0.4.0-next.1