This repository has been archived by the owner on Jul 11, 2022. It is now read-only.
Releases: prometheus/codemirror-promql
Releases · prometheus/codemirror-promql
0.19.0
0.18.0
- [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 importingcodemirror-promql
, it means you
will need to adddist
in the import. For exampleimport { newCompleteStrategy } from 'codemirror-promql/cjs/complete';
becomesimport { 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
0.16.0
- [Feature]: Support partial PromQL language called
MetricName
. Can be used to autocomplete only the metric
name. (#142) - [Feature]: Autocomplete
NaN
andInf
(#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 aLanguageType
as a
parameter (#142)
0.15.0
- [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
0.14.0
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
andcount_value
- [Enhancement]: Autocomplete the 2nd hard of subquery time selector
0.13.0
- [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 typePromise<null>
(v0.18.0) - [BreakingChange]: Support last version of Codemirror.next (v0.18.0)
- [BreakingChange]: Remove the function
enricher
0.12.0
0.11.0
- [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
andseries
. (#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.