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

21 Dec 15:17
0.19.0
ee55cf2
Compare
Choose a tag to compare
  • [Enhancement]: Add a negative autocompletion boost to some trigonometric functions that can overlap with other more popular PromQL functions.
  • [BugFix]: Improve checking of whether a PrometheusConfig object was passed to newCompleteStrategy().

0.18.0

20 Oct 08:27
61e0126
Compare
Choose a tag to compare
  • [Feature]: Allow overriding the API prefix used to contact a remote Prometheus.
  • [Feature]: Add linter and autocompletion support for trigonometric functions (like sin, cos)
  • [BreakingChange]: The lib is now exposed under the dist folder. When importing codemirror-promql, it means you
    will need to add dist in the import. For example import { newCompleteStrategy } from 'codemirror-promql/cjs/complete';
    becomes import { newCompleteStrategy } from 'codemirror-promql/dist/cjs/complete';
  • [BreakingChange]: lezer-promql has been migrated into codemirror-promql in the grammar folder
  • [BreakingChange]: Support last version of Codemirror.next (v0.19.0).

0.17.0

10 Aug 09:41
adc98cc
Compare
Choose a tag to compare
  • [Feature]: Support present_over_time
  • [Feature]: HTTP method used to contact Prometheus is now configurable.

0.16.0

20 May 15:59
53b5ade
Compare
Choose a tag to compare
  • [Feature]: Support partial PromQL language called MetricName. Can be used to autocomplete only the metric
    name. (#142)
  • [Feature]: Autocomplete NaN and Inf (#141)
  • [Enhancement]: Fetch series using the HTTP POST method (#139)
  • [Enhancement]: Upgrade lezer-promql that fixed the parsing of metric names starting with Inf/NaN like infra (#142)
  • [BreakingChange]: The constant promQLLanguage has been changed to be a function. It takes a LanguageType as a
    parameter (#142)

0.15.0

13 Apr 19:55
493774d
Compare
Choose a tag to compare
  • [Feature]: Provide a way to inject an initial metric list for the autocompletion (#134)
  • [Enhancement]: Autocomplete metrics/function/aggregation when the editor is empty (#133)
  • [Enhancement]: Improve the documentation to reflect what the lib is providing. (#134)
  • [Change]: Export the essential interface in the root index of the lib. (#132)
  • [Change]: Downgrade the NodeJS version required (from 14 to 12) (#112)
  • [BreakingChange]: Support CommonJS module. (#130)

Note that this requires to change the import path if you are using something not exported by the root index of lib. For
example: import { labelMatchersToString } from 'codemirror-promql/parser/matcher';
becomes import { labelMatchersToString } from 'codemirror-promql/esm/parser/matcher';
or import { labelMatchersToString } from 'codemirror-promql/cjs/parser/matcher';

0.14.1

07 Apr 09:57
eb46328
Compare
Choose a tag to compare
  • [Enhancement]: Provide getter and setter to easily manipulate the different objects exposed by the lib
  • [BugFix]: fix the autocompletion of the labels after a comma (in a label matcher list or in a grouping label list)

0.14.0

26 Mar 15:56
7274d3e
Compare
Choose a tag to compare

0.14.0 / 2021-03-26

  • [Feature]: Through the update of lezer-promql
    support negative offset
  • [Enhancement]: Add snippet to ease the usage of the aggregation topk, bottomk and count_value
  • [Enhancement]: Autocomplete the 2nd hard of subquery time selector

0.13.0

22 Mar 20:34
3667952
Compare
Choose a tag to compare
  • [Feature]: Linter and Autocompletion support 3 new PromQL functions: clamp , last_over_time, sgn
  • [Feature]: Linter and Autocompletion support the @ expression.
  • [Enhancement]: Signature of CompleteStrategy.promQL has been updated to support the type Promise<null> (v0.18.0)
  • [BreakingChange]: Support last version of Codemirror.next (v0.18.0)
  • [BreakingChange]: Remove the function enricher

0.12.0

12 Jan 15:43
82f4185
Compare
Choose a tag to compare
  • [Enhancement]: Improve the parsing of BinExpr thanks to the changes provided by lezer-promql (v0.15.0)
  • [BreakingChange]: Support the new version of codemirror v0.17.x

0.11.0

08 Dec 14:41
2fabbb3
Compare
Choose a tag to compare
  • [Feature]: Add the completion of the keyword bool. (#89)
  • [Feature]: Add a function enricher that can be used to enrich the completion with a custom one.
  • [Feature]: Add a LRU caching system. (#71)
  • [Feature]: You can now configure the maximum number of metrics in Prometheus for which metadata is fetched.
  • [Feature]: Allow the possibility to inject a custom CompleteStrategy. (#83)
  • [Feature]: Provide the Matchers in the PrometheusClient for the method labelValues and series. (#84)
  • [Feature]: Add the method metricName in the PrometheusClient that supports a prefix of the metric searched. (#84)
  • [Enhancement]: Caching mechanism and PrometheusClient are splitted. (#71)
  • [Enhancement]: Optimize the code of the PrometheusClient when no cache is used.
  • [Enhancement]: General improvement of the code thanks to Codemirror.next v0.14.0 (for the new tree management) and v0.15.0 (for the new tags/highlight management)
  • [Enhancement]: Improve the code coverage of the parser concerning the parsing of the function / aggregation.
  • [BugFix]: In certain case, the linter didn't ignore the comments. (#78)
  • [BreakingChange]: Use an object instead of a map when querying the metrics metadata.
  • [BreakingChange]: Support last version of Codemirror.next (v0.15.0).
  • [BreakingChange]: Change the way the completion configuration is structured.