Releases: fb55/css-select
Releases · fb55/css-select
v4.0.0
New features:
- Aliases are a new way to write pseudos (#403) 206535e
- It is now possible to write a pseudo selector that shortens a longer selector as an alias. Have a look at #403 for examples.
- BREAKING: Several built-in pseudos are now stricter. This aligns them with the CSS spec, but might lead to changes in results.
- Upgraded to
[email protected]
- Added support for the
s
flag in attribute selectors. - BREAKING: In HTML, attributes are now automatically considered case-insensitive, based on the HTML spec. Some selectors might now match more elements.
- Added support for the
Fixes:
Other:
- BREAKING: Removed
strict
option 9329fb8- This option was out of date and needed a bigger refactor. Please open an issue if you were using it, and we can discuss a path forward.
v3.1.2
v3.1.1
v3.1.0
v3.0.4
v3.0.3
v3.0.2
v3.0.1
- Port all shipped code to TypeScript, identifying several inconsistencies along the way
- BREAKING: The module exports an object now, which includes a
default
property. If you used the exported function before, you will have to update your code.
- BREAKING: The module exports an object now, which includes a
- Use
adapter.equals
across the codebase- BREAKING: The signature for pseudos has changed. The second argument is now the
options
object, not the adapter anymore. To update your code, extract the adapter from the options object, eg.pseudos.custom = (elem, adapter) => {}
is nowpseudos.custom = (elem, {adapter}) => {}
.
- BREAKING: The signature for pseudos has changed. The second argument is now the
- Implement
:any-link
- Support traversal-first
:has
(fixes #111)