NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #144 most downloaded on npm
Selector parser with built in methods for working with selector strings.
Latest stable
7.2.1
Last release 7 days ago
12 Nov 2026
Release timing varies
gaps range from 3 weeks to 10 months
Nearly every release is documented
notes for 58 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
75 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Adds a new node type, String, to fix a crash on selectors such as foo:bar("test").
String, to fix a crash on selectors such as
foo:bar("test").Fixes a crash when the parser encountered a trailing combinator.
A more descriptive error is thrown when the parser expects to find a pseudo-class/pseudo-element (thanks to @ashelley).
Node#sourceIndex method (thanks to @davidtheclark).Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixes a crash when a selector started with a > combinator. The module will now no longer throw if a selector has a leading/trailing combinator node.
> combinator. The module will
now no longer throw if a selector has a leading/trailing combinator node.* Fixes a crash on @ tokens.
@ tokens.Fixes an infinite loop caused by using parentheses in a non-pseudo element context.
Fixes a crash when a backslash ended a selector string.
Adds support for replacing multiple nodes at once with replaceWith (thanks to @jonathantneal).
replaceWith
(thanks to @jonathantneal).Fixes using insertAfter and insertBefore during iteration.
insertAfter and insertBefore during iteration.Adds clone and replaceWith methods to nodes.
clone and replaceWith methods to nodes.insertBefore and insertAfter to containers.Fixes crash on extra whitespace inside a pseudo selector's parentheses.
each and eachInside.Fixes a bug where the parser would loop infinitely on universal selectors inside pseudo selectors.
length getter and eachInside, map, reduce to the container class.eachComment).parser.id(opts) etc.Adds next and prev to the node class.
next and prev to the node class.first and last getters to the container class.every and some iterators to the container class.empty alias for removeAll.index.nodes exclusively, and eliminates excessive nesting.Adds support for namespace selectors.
.\31\ 0.* Initial release.
One column per quarter.