Query TypeScript ASTs with the esquery API!
Last release 4 months ago
06 Apr 2026
Release timing varies
gaps range from 6 weeks to 2.3 years
Rarely documented
notes for 5 of 28 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
41 releases · first in 2018
Release timeline
41 releases since 2018Releases
- 6.2.06 Apr 2026
Nothing published for this version
- 6.1.44 Dec 2025
Nothing published for this version
- 6.1.322 Aug 2023
Nothing published for this version
- 6.1.212 Jul 2023
Release notes
Open source →Fixed
- Restored working implementation of
:nth-child()and:nth-last-child().
- Restored working implementation of
- 6.1.111 Jul 2023
- 6.1.011 Jul 2023
Release notes
Open source →Added
- Made the
printfunction public, it's useful when doingmapoperations.
- Made the
- 6.0.210 Jul 2023
Nothing published for this version
- 6.0.110 Jul 2023
- 6.0.010 Jul 2023
Release notes
Open source →I had to use TSQuery recently and found a few bugs, and wanted to add a few ergonomic things, so here's a major release.
The big breaking change here is that
visitAllChildrenis now the default behaviour. Less-specific queries that may have worked in previous versions may no longer work exactly the same. This is a pretty annoying change for a very early mistake, but I figured it was time to pull off the band-aid.Added
scriptKindparameter toqueryso the caller can control how TypeScript parses the input code.includesto simply check if there are any selector matches within some code.- Direct exports of public functions, e.g.
import { ast } from '@phenomnomnominal/tquery'; - Type exports for types used in the public API. This includes types from
typescriptandesquery. - This CHANGELOG file to hopefully list all API changes going forward.
Fixed
replacenow uses the TypeScriptPrinterto format the output code. This means that it will handle AST Node removal better, but also means that you may need to run any formatters (e.g. Prettier) on the result to have it match your codebase.:functionselector will now match aMethodDeclaration.
Changed
- TSQuery will now query all children by default. This means that less-specific queries that may have worked in previous versions may no longer work exactly the same.
- Deprecated the old API, will remove in v7. Prefer importing the specific functions.
- Deprecated the
syntaxKindNamefunction. This shouldn't have been in the public API. - Upgrade many dependencies.
Removed
visitAllChildrenoption. This is now the default behaviour.
- 5.0.118 Mar 2023
Nothing published for this version
- 5.0.022 Apr 2022
Nothing published for this version
- 4.2.019 Jan 2022
Nothing published for this version
- 4.1.11 Sept 2020
Nothing published for this version
- 4.1.014 May 2020
Nothing published for this version
- 4.0.016 Oct 2019
Nothing published for this version
- 3.0.07 Nov 2018
Nothing published for this version
- 2.2.07 Nov 2018
Nothing published for this version
- 2.1.129 Sept 2018
Nothing published for this version
- 2.1.018 Sept 2018
Nothing published for this version
- 2.0.14 Sept 2018
Nothing published for this version
- 2.0.016 Aug 2018
Nothing published for this version
- 2.0.0-beta.71 Aug 2018pre-release
Nothing published for this version
- 2.0.0-beta.629 Jul 2018pre-release
Nothing published for this version
- 2.0.0-beta.55 Jul 2018pre-release
Nothing published for this version
- 2.0.0-beta.47 Jun 2018pre-release
Nothing published for this version
- 2.0.0-beta.36 Jun 2018pre-release
Nothing published for this version
- 2.0.0-beta.24 Jun 2018pre-release
Nothing published for this version
- 2.0.0-beta.13 Jun 2018pre-release
Nothing published for this version
- 2.0.0-beta.02 Jun 2018pre-release
Nothing published for this version
- 1.0.527 May 2018
Nothing published for this version
- 1.0.427 May 2018
Nothing published for this version
- 1.0.327 May 2018
Nothing published for this version
- 1.0.226 May 2018
Nothing published for this version
- 1.0.120 May 2018
Nothing published for this version
- 1.0.019 May 2018
Nothing published for this version
- 0.1.019 May 2018
Nothing published for this version
- 0.1.0-beta.318 May 2018pre-release
Nothing published for this version
- 0.1.0-beta.28 May 2018pre-release
Nothing published for this version
- 0.1.0-beta.123 Apr 2018pre-release
Nothing published for this version
- 0.1.0-beta.023 Apr 2018pre-release
Nothing published for this version
- 0.1.0-beta21 Apr 2018pre-release
Nothing published for this version