Skip to content

Releases: djluck/PromQL.Parser

Updating to Prometheus v3

03 Mar 04:04
5bae79e

Choose a tag to compare

  • Including new Prometheus v3 functions + aggregate operators
  • Now targets net6.0 + net8.0

3.2.0

13 Feb 04:51
63898c1

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

Choose a tag to compare

  • Adding basic pretty print support in the Printer class

3.0.3

29 Aug 03:32
2e6cf0e

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

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

Choose a tag to compare

  • Added a package build for .NET 6.0

3.0.0

21 Apr 23:12
7ec2f3d

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

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

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

Choose a tag to compare

  • Making non-value AST types mutable- this will allow for easier updates of a parsed AST.