@prometheus-io/lezer-promql 0.300.0 → 0.301.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +73 -3
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,60 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## 3.1.0-rc.0 / 2024-12-18
6
+
7
+ * [SECURITY] upgrade golang.org/x/crypto to address reported CVE-2024-45337. #15691
8
+ * [CHANGE] Notifier: Increment prometheus_notifications_errors_total by the number of affected alerts rather than per batch. #15428
9
+ * [CHANGE] API: list rules field "groupNextToken:omitempty" renamed to "groupNextToken". #15400
10
+ * [ENHANCEMENT] OTLP translate: keep identifying attributes in target_info. #15448
11
+ * [ENHANCEMENT] Paginate rule groups, add infinite scroll to rules within groups. #15677
12
+ * [ENHANCEMENT] TSDB: Improve calculation of space used by labels. #13880
13
+ * [ENHANCEMENT] Rules: new metric rule_group_last_rule_duration_sum_seconds. #15672
14
+ * [ENHANCEMENT] Observability: Export 'go_sync_mutex_wait_total_seconds_total' metric. #15339
15
+ * [ENHANCEMEN] Remote-Write: optionally use a DNS resolver that picks a random IP. #15329
16
+ * [PERF] Optimize `l=~".+"` matcher. #15474, #15684
17
+ * [PERF] TSDB: Cache all symbols for compaction . #15455
18
+ * [PERF] TSDB: MemPostings: keep a map of label values slices. #15426
19
+ * [PERF] Remote-Write: Remove interning hook. #15456
20
+ * [PERF] Scrape: optimize string manipulation for experimental native histograms with custom buckets. #15453
21
+ * [PERF] TSDB: reduce memory allocations. #15465, #15427
22
+ * [PERF] Storage: Implement limit in mergeGenericQuerier. #14489
23
+ * [PERF] TSDB: Optimize inverse matching. #14144
24
+ * [PERF] Regex: use stack memory for lowercase copy of string. #15210
25
+ * [PERF] TSDB: When deleting from postings index, pause to unlock and let readers read. #15242
26
+ * [BUGFIX] Rules: Do not run rules concurrently if uncertain about dependencies. #15560
27
+ * [BUGFIX] PromQL: Adds test for `absent`, `absent_over_time` and `deriv` func with histograms. #15667
28
+ * [BUGFIX] PromQL: Fix various bugs related to quoting UTF-8 characters. #15531
29
+ * [BUGFIX] Scrape: fix nil panic after scrape loop reload. #15563
30
+ * [BUGFIX] Remote-write: fix panic on repeated log message. #15562
31
+ * [BUGFIX] Scrape: reload would ignore always_scrape_classic_histograms and convert_classic_histograms_to_nhcb configs. #15489
32
+ * [BUGFIX] TSDB: fix data corruption in experimental native histograms. #15482
33
+ * [BUGFIX] PromQL: Ignore histograms in all time related functions. #15479
34
+ * [BUGFIX] OTLP receiver: Convert metric metadata. #15416
35
+ * [BUGFIX] PromQL: Fix `resets` function for histograms. #15527
36
+ * [BUGFIX] PromQL: Fix behaviour of `changes()` for mix of histograms and floats. #15469
37
+ * [BUGFIX] PromQL: Fix behaviour of some aggregations with histograms. #15432
38
+ * [BUGFIX] allow quoted exemplar keys in openmetrics text format. #15260
39
+ * [BUGFIX] TSDB: fixes for rare conditions when loading write-behind-log (WBL). #15380
40
+ * [BUGFIX] `round()` function did not remove `__name__` label. #15250
41
+ * [BUGFIX] Promtool: analyze block shows metric name with 0 cardinality. #15438
42
+ * [BUGFIX] PromQL: Fix `count_values` for histograms. #15422
43
+ * [BUGFIX] PromQL: fix issues with comparison binary operations with `bool` modifier and native histograms. #15413
44
+ * [BUGFIX] PromQL: fix incorrect "native histogram ignored in aggregation" annotations. #15414
45
+ * [BUGFIX] PromQL: Corrects the behaviour of some operator and aggregators with Native Histograms. #15245
46
+ * [BUGFIX] TSDB: Always return unknown hint for first sample in non-gauge histogram chunk. #15343
47
+ * [BUGFIX] PromQL: Clamp functions: Ignore any points with native histograms. #15169
48
+ * [BUGFIX] TSDB: Fix race on stale values in headAppender. #15322
49
+ * [BUGFIX] UI: Fix selector / series formatting for empty metric names. #15340
50
+
51
+ ## 3.0.1 / 2024-11-28
52
+
53
+ The first bug fix release for Prometheus 3.
54
+
55
+ * [BUGFIX] Promql: Make subqueries left open. #15431
56
+ * [BUGFIX] Fix memory leak when query log is enabled. #15434
57
+ * [BUGFIX] Support utf8 names on /v1/label/:name/values endpoint. #15399
58
+
5
59
  ## 3.0.0 / 2024-11-14
6
60
 
7
61
  This release includes new features such as a brand new UI and UTF-8 support enabled by default. As this marks the first new major version in seven years, several breaking changes are introduced. The breaking changes are mainly around the removal of deprecated feature flags and CLI arguments, and the full list can be found below. For users that want to upgrade we recommend to read through our [migration guide](https://prometheus.io/docs/prometheus/3.0/migration/).
@@ -25,14 +79,14 @@ This release includes new features such as a brand new UI and UTF-8 support enab
25
79
  * [CHANGE] PromQL: Range selectors and the lookback delta are now left-open, i.e. a sample coinciding with the lower time limit is excluded rather than included. #13904
26
80
  * [CHANGE] Kubernetes SD: Remove support for `discovery.k8s.io/v1beta1` API version of EndpointSlice. This version is no longer served as of Kubernetes v1.25. #14365
27
81
  * [CHANGE] Kubernetes SD: Remove support for `networking.k8s.io/v1beta1` API version of Ingress. This version is no longer served as of Kubernetes v1.22. #14365
28
- * [CHANGE] UTF-8: Enable UTF-8 support by default. Prometheus now allows all UTF-8 characters in metric and label names. The corresponding `utf8-name` feature flag has been removed. #14705
82
+ * [CHANGE] UTF-8: Enable UTF-8 support by default. Prometheus now allows all UTF-8 characters in metric and label names. The corresponding `utf8-name` feature flag has been removed. #14705, #15258
29
83
  * [CHANGE] Console: Remove example files for the console feature. Users can continue using the console feature by supplying their own JavaScript and templates. #14807
30
84
  * [CHANGE] SD: Enable the new service discovery manager by default. This SD manager does not restart unchanged discoveries upon reloading. This makes reloads faster and reduces pressure on service discoveries' sources. The corresponding `new-service-discovery-manager` feature flag has been removed. #14770
31
85
  * [CHANGE] Agent mode has been promoted to stable. The feature flag `agent` has been removed. To run Prometheus in Agent mode, use the new `--agent` cmdline arg instead. #14747
32
86
  * [CHANGE] Remove deprecated `remote-write-receiver`,`promql-at-modifier`, and `promql-negative-offset` feature flags. #13456, #14526
33
87
  * [CHANGE] Remove deprecated `storage.tsdb.allow-overlapping-blocks`, `alertmanager.timeout`, and `storage.tsdb.retention` flags. #14640, #14643
34
88
  * [FEATURE] OTLP receiver: Ability to skip UTF-8 normalization using `otlp.translation_strategy = NoUTF8EscapingWithSuffixes` configuration option. #15384
35
- * [FEATURE] Support config reload automatically - feature flag `auto-reload-config`. #14769
89
+ * [FEATURE] Support config reload automatically - feature flag `auto-reload-config`. #14769, #15011
36
90
  * [ENHANCEMENT] Scraping, rules: handle targets reappearing, or rules moving group, when out-of-order is enabled. #14710
37
91
  * [ENHANCEMENT] Tools: add debug printouts to promtool rules unit testing #15196
38
92
  * [ENHANCEMENT] Scraping: support Created-Timestamp feature on native histograms. #14694
@@ -62,6 +116,21 @@ This release includes new features such as a brand new UI and UTF-8 support enab
62
116
  * [BUGFIX] Autoreload: Reload invalid yaml files. #14947
63
117
  * [BUGFIX] Scrape: Do not override target parameter labels with config params. #11029
64
118
 
119
+ ## 2.53.3 / 2024-11-04
120
+
121
+ * [BUGFIX] Scraping: allow multiple samples on same series, with explicit timestamps. #14685, #14740
122
+
123
+ ## 2.53.2 / 2024-08-09
124
+
125
+ Fix a bug where Prometheus would crash with a segmentation fault if a remote-read
126
+ request accessed a block on disk at about the same time as TSDB created a new block.
127
+
128
+ [BUGFIX] Remote-Read: Resolve occasional segmentation fault on query. #14515,#14523
129
+
130
+ ## 2.55.1 / 2024-11-04
131
+
132
+ * [BUGFIX] `round()` function did not remove `__name__` label. #15250
133
+
65
134
  ## 2.55.0 / 2024-10-22
66
135
 
67
136
  * [FEATURE] PromQL: Add experimental `info` function. #14495
@@ -98,7 +167,7 @@ This release includes new features such as a brand new UI and UTF-8 support enab
98
167
 
99
168
  ## 2.54.1 / 2024-08-27
100
169
 
101
- * [BUGFIX] Scraping: allow multiple samples on same series, with explicit timestamps. #14685
170
+ * [BUGFIX] Scraping: allow multiple samples on same series, with explicit timestamps (mixing samples of the same series with and without timestamps is still rejected). #14685
102
171
  * [BUGFIX] Docker SD: fix crash in `match_first_network` mode when container is reconnected to a new network. #14654
103
172
  * [BUGFIX] PromQL: fix experimental native histograms getting corrupted due to vector selector bug in range queries. #14538
104
173
  * [BUGFIX] PromQL: fix experimental native histogram counter reset detection on stale samples. #14514
@@ -180,6 +249,7 @@ This release changes the default for GOGC, the Go runtime control for the trade-
180
249
  ## 2.52.0 / 2024-05-07
181
250
 
182
251
  * [CHANGE] TSDB: Fix the predicate checking for blocks which are beyond the retention period to include the ones right at the retention boundary. #9633
252
+ * [CHANGE] Scrape: Multiple samples (even with different timestamps) are treated as duplicates during one scrape.
183
253
  * [FEATURE] Kubernetes SD: Add a new metric `prometheus_sd_kubernetes_failures_total` to track failed requests to Kubernetes API. #13554
184
254
  * [FEATURE] Kubernetes SD: Add node and zone metadata labels when using the endpointslice role. #13935
185
255
  * [FEATURE] Azure SD/Remote Write: Allow usage of Azure authorization SDK. #13099
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prometheus-io/lezer-promql",
3
- "version": "0.300.0",
3
+ "version": "0.301.0-rc.0",
4
4
  "description": "lezer-based PromQL grammar",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",
@@ -31,10 +31,10 @@
31
31
  "test": "NODE_OPTIONS=--experimental-vm-modules jest"
32
32
  },
33
33
  "devDependencies": {
34
- "@lezer/generator": "^1.7.1",
34
+ "@lezer/generator": "^1.7.2",
35
35
  "@lezer/highlight": "^1.2.0",
36
36
  "@lezer/lr": "^1.4.2",
37
- "@rollup/plugin-node-resolve": "^15.2.3"
37
+ "@rollup/plugin-node-resolve": "^15.3.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@lezer/highlight": "^1.1.2",