unstale

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

@unstale/cli 0.2.9 on npm

@phenomnomnominal/tsquery 610 changes

Breaking changes 2

  • Queries now visit all children by default, which can change results for less-specific queries.

    6.0.0release notes

  • The option was removed because visiting all children is now the default behavior.

    6.0.0release notes

Deprecations 2

  • The old API is deprecated and scheduled for removal in v7; prefer importing specific functions.

    6.0.0release notes

  • The function is deprecated because it should not have been part of the public API.

    6.0.0release notes

New APIs and options 4

  • Public functions are directly exported, allowing imports such as import { ast } from '@phenomnomnominal/tquery';.

    6.0.0release notes

  • Adds a function to check whether selector matches exist within code.

    6.0.0release notes

  • Types used in the public API, including types from TypeScript and esquery, are exported.

    6.0.0release notes

  • A new scriptKind parameter lets callers control how TypeScript parses the input code.

    6.0.0release notes

Fixes and other changes 2

  • The selector now matches a MethodDeclaration.

    6.0.0release notes

  • 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.0release notes