Skip to content

Commit

Permalink
v0.5
Browse files Browse the repository at this point in the history
- Breaking: `Node::Operator` can have more than two operands (e.g. `a + b + c` is now parsed into single `Node` instead of two nested ones).
- Breaking: in `Vector`, `range` and `offset` are now `f32`.
- Breaking: string literals are now parsed into `Vec<u8>`: this is because PromQL accepts arbitrary nonsense (e.g. `{omg='\xe2\x88\x9e'}`).
- Breaking: ParserOptions for different flavors of PromQL/MetricsQL.
- Breaking: `parse()` now returns `nom::error::VerboseError`.
- Syntax: optional support for decimal fractions in intervals (`offset 0.5d`).
- Syntax: optional support for compound interval literals (`offset 1h30m`).
- Syntax: optional support for negative offsets (`offset -5m`).
- Syntax: optional support for millisecond durations (`[100ms]`).
- Syntax: optional support for comments (`# this is ridiculous`).
- Syntax: various fixes related to whitespace.
- Fixed errors when used with recent versions of nom.
- Tunable recursion limit: now you can expect Err() instead of fatal stack overflow.
- `parse()` can now accept both `&str` and `&[u8]`.
- Optional support for serde in `Node` and friends (`features = ["serializable"]`).
- More descriptive error message for `{}`.
- Various stack usage optimizations.
- Additional tests.
  • Loading branch information
vthriller committed Jan 29, 2024
1 parent b7b6f70 commit 6330566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "promql"
description = "PromQL parser"
version = "0.4.1"
version = "0.5.0"
authors = ["vthriller <[email protected]>"]
license = "Apache-2.0"
repository = "https://github.com/vthriller/promql"
Expand Down

0 comments on commit 6330566

Please sign in to comment.