Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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