- Move
mock-fs
to devDependencies
- Support node v22 on github actions
- Moving from
@xinminlabs
to@synvert-hq
- Expose
TypescriptAdapter
,EspreeAdapter
andGonzalesAdapter
- Add
adapter
parameter toNodeQuery
- Do not allow to configure an
adapter
globally - Do not expose
TypescriptAdapter
,EspreeAdapter
andGonzalesAdapter
- Expose
NodeQuery
adapter
property
- Update
nql.jison
- Update
@xinminlabs/gonzales-pe
to 1.1.0
- Export
GonzalesPeAdapter
- Add
GonzalesPeAdapter
- Add
EspreeAdapter
- Support negative index to fetch array element
- Parse negative number
- Matches
null
andundefined
for node rules
- Support
not includes
operator - Support
includes
a selector - Add more debug info
- Support
includes
operator
- Fix
filterByPosition
with empty nodes
- Support
:first-child
and:last-child
- Better regexp to match evaluated value
- Make baseNode as the root matching node
- Export
QueryOptions
- Add
includingSelf
,stopAtFirstMatch
andrecursive
options
- Drop
EvaluatedValue
, useString
instead
- Fix "typescript getText() may contain trailing whitespace and newlines"
- Debug operation result
- Export
TypescriptAdapter
- Rename
NodeQuery#parse
toNodeQuery#queryNodes
NodeQuery#queryNodes
acceptsincludingSelf
argumentsNodeQuery#queryNodes
supports bothnql
andrules
- Add
NodeQuery#matchNode
method - Do not export
handleRecursiveChild
andgetTargetNode
helpers
- Match not equal nested selector
- Import
TypescriptAdapter
- Export
handleRecursiveChild
andgetTargetNode
- Move
NodeQuery
fromindex.ts
tonode-query.ts
- Export
Adapter
andSyntaxError
- 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
:has
and:not_has
pseudo selector - Throw
SyntaxError
when query is invalid - Check
isNode
for nested selector
- Support Regexp
- Allow
$
in IDENTIFIER_VALUE
- Make
adapter
configurable - Rename
SimpleSelector
toBasicSelector
- Initial release