Releases: fb55/css-select
Releases · fb55/css-select
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)
v3.0.0
v2.1.0
v2.0.0
Finally a new release!
- Improves scope support (thanks to @Delgan, from 2015 😨) — #37, #38, #43
- Allows users to pass a DOM adapter (thanks to @nrkn, from 2016 😬) — #66
- Change since 1.3.0-rc0 (#101): Adapters are now passed in
options
, which results in two breaking changes: First, pseudo selectors now take the adapter as the second argument, and arguments as the third. Second, filters aren’t checked anymore if they have the required number of arguments.
- Change since 1.3.0-rc0 (#101): Adapters are now passed in
- Exponential time querying fix (thanks to @dbuezas); requires a modern JS environment — #94, #100
- And a pretty complicated domutils upgrade (thanks to @chriseppstein) — #96
- Throws regular errors instead of syntax errors when the selector is faulty (inherited from css-what)