- Add
getNamedValuemethod to Adapter interface for converting numeric SyntaxKind values to named strings - Support named operator syntax (e.g.,
operator=MinusTokeninstead ofoperator=41) in TypeScript adapter - Maintain backward compatibility with numeric operator syntax
- Move
mock-fsto devDependencies
- Support node v22 on github actions
- Moving from
@xinminlabsto@synvert-hq
- Expose
TypescriptAdapter,EspreeAdapterandGonzalesAdapter
- Add
adapterparameter toNodeQuery - Do not allow to configure an
adapterglobally - Do not expose
TypescriptAdapter,EspreeAdapterandGonzalesAdapter - Expose
NodeQueryadapterproperty
- Update
nql.jison
- Update
@xinminlabs/gonzales-peto 1.1.0
- Export
GonzalesPeAdapter
- Add
GonzalesPeAdapter
- Add
EspreeAdapter
- Support negative index to fetch array element
- Parse negative number
- Matches
nullandundefinedfor node rules
- Support
not includesoperator - Support
includesa selector - Add more debug info
- Support
includesoperator
- Fix
filterByPositionwith empty nodes
- Support
:first-childand:last-child
- Better regexp to match evaluated value
- Make baseNode as the root matching node
- Export
QueryOptions
- Add
includingSelf,stopAtFirstMatchandrecursiveoptions
- Drop
EvaluatedValue, useStringinstead
- Fix "typescript getText() may contain trailing whitespace and newlines"
- Debug operation result
- Export
TypescriptAdapter
- Rename
NodeQuery#parsetoNodeQuery#queryNodes NodeQuery#queryNodesacceptsincludingSelfargumentsNodeQuery#queryNodessupports bothnqlandrules- Add
NodeQuery#matchNodemethod - Do not export
handleRecursiveChildandgetTargetNodehelpers
- Match not equal nested selector
- Import
TypescriptAdapter
- Export
handleRecursiveChildandgetTargetNode
- Move
NodeQueryfromindex.tstonode-query.ts - Export
AdapterandSyntaxError
- Support empty array
- Make typescript a devDependency
- Support comma in nql
- Make dynamic attribute work with multiple nodes
- Support * in attribute key
- Rename dynamic attribute to evaluated value
- Matches multiple nodes attribute
- Fix dynamic attribute in jison
- Add debug
- Support dynamic attribute
- String can match without or without quotes
- Make Node generic
- Support Regexp in array value
- Support
:hasand:not_haspseudo selector - Throw
SyntaxErrorwhen query is invalid - Check
isNodefor nested selector
- Support Regexp
- Allow
$in IDENTIFIER_VALUE
- Make
adapterconfigurable - Rename
SimpleSelectortoBasicSelector
- Initial release