Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@phenomnomnominal/tsquery

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phenomnomnominal/tsquery - npm Package Versions

234

6.1.3

Diff

phenomnomnominal
published 6.1.2 •

Changelog

Source

[6.1.2] - 2023-07-12

Fixed

  • Restored working implementation of :nth-child() and :nth-last-child().
phenomnomnominal
published 6.1.1 •

Changelog

Source

[6.1.1] - 2023-07-12

Fixed

  • Fixed the API signature of map, so it only works on a SourceFile.
phenomnomnominal
published 6.1.0 •

Changelog

Source

[6.1.0] - 2023-07-11

Added

  • Made the print function public, it's useful when doing map operations.
phenomnomnominal
published 6.0.2 •

phenomnomnominal
published 6.0.1 •

Changelog

Source

[6.0.1] - 2023-07-11

Fixed

  • Add @types/esquery to dependencies.
phenomnomnominal
published 6.0.0 •

Changelog

Source

[6.0.0] - 2023-07-11

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 visitAllChildren is 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

  • scriptKind parameter to query so the caller can control how TypeScript parses the input code.
  • includes to 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 typescript and esquery.
  • This CHANGELOG file to hopefully list all API changes going forward.

Fixed

  • replace now uses the TypeScript Printer to 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.
  • :function selector will now match a MethodDeclaration.

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 syntaxKindName function. This shouldn't have been in the public API.
  • Upgrade many dependencies.

Removed

  • visitAllChildren option. This is now the default behaviour.
phenomnomnominal
published 5.0.1 •

phenomnomnominal
published 5.0.0 •

phenomnomnominal
published 4.2.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc