@asamuzakjp/dom-selector
10.0.7 · 21 Nov 2026MIT72.8M / weekRepositoryHomepagenpmAtom feed
9.2.4 is the newest release of 9.x.
In short
8 new1 faster3 fixed7 changed2 internal
Release note
What's Changed
Split the Evaluator's responsibilities
Update return type and error handling in #findNodes
Refactor return statements to handle errors
Add option to parse AST even if selector does not match
Fix premature return in DOMTraverser
Implement AST caching for selector parsing
Avoid arrow method for classes
Cache parsed nesting AST
Support comma host selectors and shadow DOM traversal
Enable ID selector fast path in Shadow DOM
Add canUseFastIdSearch and use in ID fast paths
Add canUseFastFooSearch
Fix :focus matching in shadow DOM
Add Evaluator.destroy and unescaped cache
Return fresh AST wrappers to avoid cache mutation
Public getUnescapedName and fast-search checks
Optimize disabled state check with caching
Add regression test
Use getElementById() for exact ID attribute queries
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.