# What changed in @grafana/lezer-logql

> 3 changes in @grafana/lezer-logql 0.4 from its official release notes, upgrade guides and advisories: 3 new APIs and options. Each one cited. Sources checked 2026-10-25. HTML: https://unstale.sh/npm/@grafana/lezer-logql/

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

## @grafana/lezer-logql 0.4

### New APIs and options

- Adds support for approx_count_distinct() in LogQL. (0.4.2) — [release notes](https://github.com/grafana/lezer-logql/blob/b58e094cf52680d1c60d366a742bf8bf03bdad8e/CHANGELOG.md#042--2026-09-09)
- Adds support for Approx_Topk in LogQL. (0.4.1) — [release notes](https://github.com/grafana/lezer-logql/blob/b58e094cf52680d1c60d366a742bf8bf03bdad8e/CHANGELOG.md#041--2026-08-24)
- TypeScript types for lokiGrammar are added, enabling developers to use typed grammar definitions. (0.4.0) — [release notes](https://github.com/grafana/lezer-logql/blob/b58e094cf52680d1c60d366a742bf8bf03bdad8e/CHANGELOG.md#040--2026-07-21)
