@asamuzakjp/dom-selector
10.0.7 · 21 Nov 2026MIT72.8M / weekRepositoryHomepagenpmAtom feed
249 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 10.x · latest line
10.0.7
21 Nov 2026Reading the note…
10.0.6
14 Nov 2026Recheck the length only when the validity value is valid
Replace only null and unpaired surrogate characters during preprocess
10.0.5
23 Oct 2026Bound the per-document selector cache
Import constant
Fix focus-visible matcher
10.0.4
17 Oct 2026Fix preceding logic
10.0.3
14 Oct 2026Fix extractSubjects handler
10.0.2
12 Oct 2026Accept empty string for |= attr selector
10.0.1
10 Oct 202610.0.0
10 Oct 2026Move traversal methods to traverser.js
Move private methods to other classes
parser: Include attribute names in selector subjects
What's Changed
Move traversal methods to traverser.js
Move private methods to other classes
parser: Include attribute names in selector subjects
Remove regex and only use AST for subject extraction
Freeze extracted subjects
- 9.x
9.2.4
3 Oct 2026Use css-tree clone() instead of deep freeze
9.2.3
1 Oct 2026Add cacheSize field and update related logic
Fix nth-child parsing
9.2.2
26 Sep 2026startup: Use selective CSS-tree imports
Filter camelCase SVG selectors
Invalidate sibling combinators
What's Changed
startup: Use selective CSS-tree imports
Filter camelCase SVG selectors
Invalidate sibling combinators
evaluator: Skip cache checks for uncached single selectors
9.2.1
20 Sep 2026Refine :lang subtag regex
9.2.0
18 Sep 2026Add error field to check results
Add validateSelector private method
Wrap document
What's Changed
Add error field to check results
Add validateSelector private method
Wrap document
Freeze DEFAULT_SUBJECT and return copied subjects
9.1.4
12 Sep 2026Invalidate
9.1.3
12 Sep 2026Add types
9.1.2
10 Sep 2026matcher: Speed up simple attribute equality checks
matcher: Separate HTML attribute metadata cache
finder: Start attribute queries at their container
What's Changed
matcher: Speed up simple attribute equality checks
matcher: Separate HTML attribute metadata cache
finder: Start attribute queries at their container
finder: Stop closest searches at the nearest match
Introduce MIME_HTML constant
Fix matches for null ID and class selectors
9.1.1
5 Sep 2026Fix selector validation for pseudo selectors
9.1.0
4 Sep 2026Split the Evaluator's responsibilities
Update return type and error handling in #findNodes
Refactor return statements to handle errors
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
9.0.4
29 Aug 2026jsdom: Speed up simple attribute presence queries
Replace index loops with for...of and use at(-1) for getting last item
9.0.3
22 Aug 2026jsdom: Restore matches fast path
9.0.2
10 Aug 2026Add isHTMLElement util and use in matcher
9.0.1
8 Aug 2026Lowercase HTML attribute names per flags
9.0.0
8 Aug 2026Fix case-insensitivity for attribute selectors
Match common attribute selectors in validation
Fix querySelector() with a compound selector and a duplicated id
What's Changed
Fix case-insensitivity for attribute selectors
Match common attribute selectors in validation
Fix querySelector() with a compound selector and a duplicated id
Include matching boundary node in Finder traversal
- 8.x
8.3.0
23 Jul 2026Use WeakMap for AST metadata caching
Make internal methods private
Check node.nodeType before using getElementById
What's Changed
Use WeakMap for AST metadata caching
Make internal methods private
Check node.nodeType before using getElementById
Return / pass wrapped node
Consolidate node wrapping at entry points
8.2.5
18 Jul 2026Fix performance regressions
Extract event handling into EventHandler class
Extract pseudo-class matchers to matcher.js
What's Changed
Fix performance regressions
Extract event handling into EventHandler class
Extract pseudo-class matchers to matcher.js
Refactor logical pseudo-class matching logic
8.2.4
18 Jul 2026Add third filter parameter to tree walker creation
8.2.3
18 Jul 2026Use validity.valid for :valid/:invalid checks
8.2.2
16 Jul 2026Refactor cache manager into separate components
Rename CacheManager to Mapper
Add SelectorProcessor class
What's Changed
Refactor cache manager into separate components
Rename CacheManager to Mapper
Add SelectorProcessor class
Extract traversal strategy to utility function
Fix jsdom issues
8.2.1
12 Jul 2026Switch to generator
Replace generational-cache with lru-cache
8.2.0
28 Jun 2026Add test
Improve entry node handling and add tests
Extend Finder as Evaluator and update method visibility
What's Changed
Add test
Improve entry node handling and add tests
Extend Finder as Evaluator and update method visibility
Enhance finder.js with nth updates and generator usage
Make matchLeaves() public and adjust properties
8.1.5
21 Jun 2026Improve QSA handling
8.1.4
20 Jun 2026Let sort be true if branch length is > 1
8.1.3
15 Jun 2026Review and update selector regular expression
8.1.2
14 Jun 2026Adjust regular expression for improved matching
8.1.1
14 Jun 2026Add clearAll option to clear method
Add result caching functionality
Add cache for :nth-child()
What's Changed
Add clearAll option to clear method
Add result caching functionality
Add cache for :nth-child()
Add caching for indeterminate state
Add caching for :default state
Add caching for valid and invalid states
Add traversal caching feature
Refactor :has() pseudo-class to use seed
Add fast pass for universal selectors ('*')
Let nwsapi handle testing library selectors
Refactor _matchSelector function
Rename and update shadow host handler
Refactor pseudo-class selector handlers
Update nwsapi filter
8.0.2
20 May 2026Add new supports() method
Move lists to constant.js
Only pass to nwsapi when node === document
8.0.1
2 May 20268.0.0
2 May 2026Split event tracker from finder
Split pseudo class evaluator from finder
Refactor nwsapi and implement internally
What's Changed
Split event tracker from finder
Split pseudo class evaluator from finder
Refactor nwsapi and implement internally
Replace benchmark with tinybench
Bump Node.js version
Update extractSubjects()
Implement nwsapi internally
Revert finder
- 7.x
7.1.1
19 Apr 2026Check if the target is an element node
7.1.0
18 Apr 2026Remove --parallel
Refactor filterSelector
Add extractSubjects() function
7.0.10
15 Apr 2026Use external generational-cache
Add cache size option
Fix attribute selector matching for values containing backslashes
7.0.9
9 Apr 2026Split generational cache to new file
7.0.8
7 Apr 2026Update cache handling
7.0.7
6 Apr 2026Remove lru-cache
7.0.6
4 Apr 2026Reduce the use of treeWalker and cache leaves
7.0.5
3 Apr 2026Cache selectorAST
7.0.4
20 Mar 2026Add fast pass for type selector
7.0.3
15 Mar 2026Review matchAttributeSelector()
Review matchTypeSelector()
Pr/domselector selector perf
What's Changed
Review matchAttributeSelector()
Review matchTypeSelector()
Pr/domselector selector perf
Review filterSelector()
Review options and fix JSDoc
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.