Releases: fb55/css-select
Releases · fb55/css-select
v6.0.0
v5.2.1
The previous release was missing the dist directory.
Release 5.2.0 and 5.2.1 included breaking changes; 5.2.2 is a re-publish of 5.1.0
v5.2.0
New Features
- Cache results for subtrees; vastly speeds up
:containsand:has#1025 – by @fb55 - Add support for
:read-onlyand:read-writepseudos #1497 – by @jed - Improved support for large documents #1132 – by @fb55
Fixes
- Allow whitespace in
:empty#795 – by @fb55 - Filter queried elements inside template element #981 – by @andolf
- Handle template tags in
selectOne#1001 – by @fb55
New Contributors
- @andolf made their first contribution in #981
- @EFord36 made their first contribution in #1107
- @jed made their first contribution in #1497
Full Changelog: v5.1.0...v5.2.0
v5.1.0
- Added an option to disable relative selectors (#766) 1c1f7f2
- By default, selectors are relative to the passed
context, which means that no parent elements of the context will be matched. (Eg.a b cwith contextbwill never give any results.)
If therelativeSelectoroption is set tofalse, selectors won't be absolutized and selectors can test for parent elements outside of thecontext. - See #709 for context.
- By default, selectors are relative to the passed
v5.0.1
v5.0.0
Breaking
domhandler's node types have changed. Some of these changes were inherited bycss-select#754css-selectis now a dual CJS and ESM package #756- Deep imports are no longer permitted
- Throw an error for
:host-context#755- The error message for unknown pseudo classes has changed.
Features
- Added a
pseudosoption #757- This option allows users to specify pseudo-classes.
- Extending
filters,pseudosandaliasesis now deprecated.
v4.3.0
What's Changed
- feat: Upgrade to css-what@6, add quirks mode option by @fb55 in #657
- In quirks mode,
.classand#idselectors are case-insensitive.
- In quirks mode,
- feat: Add optional
prevElementSiblingadapter method by @fb55 in 78776e8 - fix: Throw errors for namespaced selectors by @fb55 in 255e965
- Namespaced selectors (eg.
*|div,[foo|bar]already caused errors before this release. We now parse them properly and throw errors with better descriptions.
- Namespaced selectors (eg.
Full Changelog: v4.2.1...v4.3.0
v4.2.1
v4.2.0
What's Changed
- chore(ci): Switch to GitHub Actions by @fb55 in #493
- feat: Add support for
:wherepseudo class as alias for:isby @jannispl in #582
New Contributors
- @lrosemberg made their first contribution in #489
- @jannispl made their first contribution in #582
Full Changelog: v4.1.3...v4.2.0