Skip to content

Releases: djluck/PromQL.Parser

3.2.0

13 Feb 04:51
63898c1
Compare
Choose a tag to compare

Improving the pretty print algorithm to only break after lines reach a certain length

v3.1.0

12 Feb 01:33
0dc0b89
Compare
Choose a tag to compare
  • Adding basic pretty print support in the Printer class

3.0.3

29 Aug 03:32
2e6cf0e
Compare
Choose a tag to compare
  • Fixed a bug that meant parenthesis weren't being emitted for binary expressions that used group_left/ group_right without specifying any labels

3.0.2

29 Apr 04:20
7248e7d
Compare
Choose a tag to compare
  • Fixing a bug in DepthFirstVisitor that meant VectorSelector wasn't returned from MatrixSelector

3.0.1

29 Apr 01:36
507ce51
Compare
Choose a tag to compare
  • Added a package build for .NET 6.0

3.0.0

21 Apr 23:12
7ec2f3d
Compare
Choose a tag to compare
  • Added support for deep cloning of Expr
  • Clarified support for mutability (only properties on types implementing Expr may be mutated)
  • BREAKING CHANGE: Some existing properties on non-Expr types were mutable, made them immutable.

2.1.0

08 Apr 05:54
5728f62
Compare
Choose a tag to compare
  • Adding a new set, Operators.BinaryArithmeticOperators that describes binary operators involved with arithmetic

2.0.0

19 Feb 06:45
7fb857d
Compare
Choose a tag to compare

Adding stronger validation of PromQL expressions, principally type checking which will allow consumers to validate the type an expression produces.

This has meant a lot of improvements:

  • Aggregate operator and function signatures are now defined in the library and parameter counts and types can be checked.
  • Binary expressions are now parsed with the (correct) associativeness: left associativeness.
  • Binary operators now have precedence associated with them and binary expressions are grouped according to this
  • Every expression can determine it's return type
  • Expression types preceeding offset expressions are now validated more carefully
  • Positions of parsed expressions from the source input are now available in all AST nodes

1.2.0

01 Feb 23:16
Compare
Choose a tag to compare
  • Making non-value AST types mutable- this will allow for easier updates of a parsed AST.

1.1.1

24 Nov 22:07
Compare
Choose a tag to compare
  • Adding convenience constructors for common AST types