Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Releases: prometheus/codemirror-promql

0.10.2

18 Oct 18:45
0.10.2
Compare
Choose a tag to compare
  • [BugFix]: Fixed missing autocompletion of binary operators after aggregations

0.10.1

16 Oct 20:49
0.10.1
Compare
Choose a tag to compare
  • [Enhancement]: Caching of series label names and values for autocompletion is now optimized to be much faster
  • [BugFix]: Fixed incorrect linter errors around binary operator arguments not separated from the operator by a space

0.10.0

14 Oct 20:25
1037f75
Compare
Choose a tag to compare
  • [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

05 Oct 18:37
Compare
Choose a tag to compare

[BugFix] Fix metadata fetching for histograms and summaries

0.9.0

05 Oct 15:57
Compare
Choose a tag to compare

[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

08 Sep 11:28
0.8.2
Compare
Choose a tag to compare

[BugFix] Make snippet placeholders syntactically less problematic.

0.8.1

07 Sep 18:32
0.8.1
Compare
Choose a tag to compare

[BugFix] Mark correct side of binop on failed linter type check.

0.8.0

07 Sep 18:20
0.8.0
Compare
Choose a tag to compare

[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

27 Aug 21:01
Compare
Choose a tag to compare

[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

18 Aug 20:46
562ae73
Compare
Choose a tag to compare

[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.