NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2842 most downloaded on npm
Better typed `querySelector` and `querySelectorAll`.
Last release 5 days ago
29 Sep 2026
Release timing varies
gaps range from 9 days to 1.5 years
Nearly every release is documented
notes for 36 of 36 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
36 releases · first in 2020
One column per quarter.
Fixed brackets in attribute selector.
- Fixed tab (\t) as combinator.
\t) as combinator.Fixed two-level nesting pseudo class selectors.
Added support of special case for custom pseudo element selector.
Fixed parsing unclosed attribute selector (such as a[href).
a[href).- Fixed for TypeScript 5.5.
Fixed handling unknown incorrectly. (Fix #36)
unknown incorrectly. (Fix #36)Fixed for TypeScript 5.4. (Fix #35)
Added .js extension in import statements.
.js extension in import statements.Setup publishing on GitHub Actions. No code changes.
Reverted to fallback to Element, not HTMLElement.
Element, not HTMLElement.Fixed regression of specifying fallback type. (Fix #33)
Fixed some cases of :is() and :where() by rewriting the expanding logic.
:is() and :where() by rewriting the expanding logic.Added fallback support to strict parser.
HTMLElement for HTMLElement, Document and DocumentFragment. (Close #29)Fixed passing string type as argument in strict parser.
string type as argument in strict parser.:is() and :where().Export "strict" parser. (Close #25)
ParseSelectorToTagNames.Fixed invalid result after expanding :is or :where function. (Fix #23)
:is or :where function. (Fix #23)Fixed support of TypeScript 4.5.
Support .closest() method on Element. (Close #16)
.closest() method on Element. (Close #16)Fixed a regression bug which is introduced in v2.5.2.
Fixed attribute syntax in :is() and :where(). (Fix #15)
:is() and :where(). (Fix #15)Fixed regression bug: fallback type doesn't work. (Fix #14)
Added support for :is() and :where() pseudo-classes. (Fix #13)
:is() and :where() pseudo-classes. (Fix #13)Fixed return type in shim can be cast.
Fixed errors with disabled skipLibCheck.
skipLibCheck.ParseSelector type, not for querySelector function)Treat empty string as syntax error.
[] as syntax error.Added simple selector syntax check.
- Refactor types.
Fixed arbitrary content in attribute.
Fixed multiline with starting tabs or spaces.
Support tabs in selector string.
Fixed more kinds of whitespace characters in selector.
Added types field to package.json.
types field to package.json.Breaking change: querySelector and querySelectorAll from this package are removed. You just need to import this package then use document.querySelecto…
querySelector and querySelectorAll from this package are removed.
You just need to import this package then use document.querySelector normally.
Check out readme for detailed usage.- Publish declaration map.
- Initial release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →