# What changed in @grafana/prometheus

> 15 changes in @grafana/prometheus 13 from its official release notes, upgrade guides and advisories: 3 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-26. HTML: https://unstale.sh/npm/@grafana/prometheus/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @grafana/prometheus 13

### Breaking changes

- Metric and label discovery now uses the Search API. (13.2.1) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1321)
- The package now requires @grafana/runtime >=11.6.0. (13.2.0) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1320)
- POST-friendly metadata endpoints default to POST when no HTTP method is configured, matching the config editor's default. (13.2.0) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1320)

### New APIs and options

- PromQL anchored and smoothed range selectors are supported in the query builder, code editor, scope filtering, and label suggestions. (13.2.0) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1320)
- A Search API toggle is available in the configuration editor. (13.2.0) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1320)

### Performance

- Search API ranking is improved and streamed response memory is bounded. (13.2.1) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1321)

### Behavior and default changes

- Loads metric combobox names in alphabetical order without metadata. (13.2.2) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1322)
- Shows metric names as each search batch arrives. (13.2.2) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1322)
- Streams metric names from the Search API. (13.2.2) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1322)
- Caps search results and indicates when the list is incomplete. (13.2.2) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1322)
- Suggestions are shown as batches arrive. (13.2.2) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1322)

### Fixes and other changes

- Preserves label values when switching between Prometheus Builder and Code modes. (13.2.2) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1322)
- The PromQL query editor recognizes native-histogram trim operators. (13.2.0) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1320)
- The config editor no longer crashes when customQueryParameters is provisioned as a non-string value. (13.2.0) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1320)
- Discovery falls back to standard Prometheus discovery when the Search API is unavailable. (13.2.0) — [release notes](https://github.com/grafana/grafana-prometheus-datasource/blob/16f3e0365ccfd6107e82c0eb257ea8525f9efd8c/packages/grafana-prometheus/CHANGELOG.md#1320)
