Releases: prometheus/codemirror-promql
0.10.2
0.10.1
0.10.0
- [Enhancement]: The Linter is now checking operation many-to-many, one-to-one, many-to-one and one-to-many
- [Enhancement]: The autocompletion is now showing the type of the metric if the type is same for every possible definition of the same metric
- [Enhancement]: The autocompletion is supporting the completion of the duration
- [Enhancement]: Descriptions have been added for the snippet, the binary operator modifier and the aggregation operator modifier
- [Enhancement]: Coverage of the code has been increased (a lot).
- [BreakingChange]: Removing LSP support
0.9.1
0.9.0
[BreakingChange] Upgrade CodeMirrorNext to v0.13.0. This upgrade leaded to remove the usage of the lib @nexucis/codemirror-next-autocomplete
.
[Enhancement] Add a short documentation for each function and aggregation method in the autocompletion
[Enhancement] When autocompleting a metric, it will display the type of the metric + the help of the metric if there is less than 10k metrics in the remote prometheus server
[Enhancement] Global improvement of the offline autocompletion. The autocomplete strategy has been completely reviewed and it is now covered by a bunch of unit test.
[BugFix] Fix offset expression linting
[BugFix] Fix linter error for vector-vector bool modifier
0.8.2
0.8.1
0.8.0
[Enhancement] Update lezer-promql and codemirror-next dependencies.
[Enhancement] Move to ES module and add tests.
[BugFix] Don't show a linter error for non-comparison binary operators between scalar values.
[BugFix] Correctly show a linter error when the right-hand-side type of a binary operation is not either scalar or vector.
0.7.0
[Feature] Provide an offline linter. It almost covered every check performed by Prometheus itself.
[Enhancement] Improve the autocompletion of matchOps / binOps.
[Enhancement] Through lezer-promql, the grammar has been improved by creating a dedicated node for each function and binary operation. It simplifies the completion and the way to find/search nodes in the tree.
[Enhancement] You can now disable each extension provided by the lib.
[BreakingChange] Remove usage of axios
in favor of fetch
. This change is done in order to be able to inject a custom HTTPClient in the LSPClient / PrometheusClient.
0.6.0
[Feature] It is now possible to inject your own Prometheus or LSP client used by the autocompletion code.
[Feature] A PromQL linter has been implemented. Only LSP mode is supported at the moment.
[Enhancement] Through the lib @nexucis/codemirror-next-autocomplete, the autocomplete list generated has been improved: better sorting and filtering and better management of the HTML characters that should be escaped (for security reasons).
[Enhancement] Through the lib lezer-promql, the promQL syntax is not case sensitive anymore.
[BreakingChange] The configuration of the autocompletion has been deeply reviewed to be much more flexible.
[BugFix] Fix the parameters in the demo app.