Releases: fb55/css-select
Releases · fb55/css-select
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 c
with contextb
will never give any results.)
If therelativeSelector
option 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-select
is 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
pseudos
option #757- This option allows users to specify pseudo-classes.
- Extending
filters
,pseudos
andaliases
is 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,
.class
and#id
selectors are case-insensitive.
- In quirks mode,
- feat: Add optional
prevElementSibling
adapter 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
:where
pseudo class as alias for:is
by @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