npm / @phenomnomnominal/tsquery
@phenomnomnominal/tsquery
What changed in @phenomnomnominal/tsquery 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-29.
2 breaking2 deprecations4 new APIs and options2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@phenomnomnominal/tsquery 610 changes
Breaking changes 2
Queries now visit all children by default, which can change results for less-specific queries.
The option was removed because visiting all children is now the default behavior.
Deprecations 2
The old API is deprecated and scheduled for removal in v7; prefer importing specific functions.
The function is deprecated because it should not have been part of the public API.
New APIs and options 4
Public functions are directly exported, allowing imports such as
import { ast } from '@phenomnomnominal/tquery';.Adds a function to check whether selector matches exist within code.
Types used in the public API, including types from TypeScript and esquery, are exported.
A new
scriptKindparameter lets callers control how TypeScript parses the input code.
Fixes and other changes 2
The selector now matches a
MethodDeclaration.Uses the TypeScript Printer to format output and handle AST Node removal better; formatters may be needed to match a codebase's style.