# What changed in @phenomnomnominal/tsquery

> 10 changes in @phenomnomnominal/tsquery 6 from its official release notes, upgrade guides and advisories: 2 breaking, 2 deprecations, 4 new APIs and options. Each one cited. Sources checked 2026-10-29. HTML: https://unstale.sh/npm/@phenomnomnominal/tsquery/

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

## @phenomnomnominal/tsquery 6

### Breaking changes

- Queries now visit all children by default, which can change results for less-specific queries. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)
- The option was removed because visiting all children is now the default behavior. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)

### Deprecations

- The old API is deprecated and scheduled for removal in v7; prefer importing specific functions. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)
- The function is deprecated because it should not have been part of the public API. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)

### New APIs and options

- Public functions are directly exported, allowing imports such as `import { ast } from '@phenomnomnominal/tquery';`. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)
- Adds a function to check whether selector matches exist within code. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)
- Types used in the public API, including types from TypeScript and esquery, are exported. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)
- A new `scriptKind` parameter lets callers control how TypeScript parses the input code. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)

### Fixes and other changes

- The selector now matches a `MethodDeclaration`. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)
- Uses the TypeScript Printer to format output and handle AST Node removal better; formatters may be needed to match a codebase's style. (6.0.0) — [release notes](https://github.com/phenomnomnominal/tsquery/blob/HEAD/CHANGELOG.md)
