Skip to content

Releases: fb55/css-select

v3.0.1

23 Sep 23:46
Compare
Choose a tag to compare
  • 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.
  • 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 now pseudos.custom = (elem, {adapter}) => {}.
  • Implement :any-link
  • Support traversal-first :has (fixes #111)

v3.0.0

23 Sep 23:40
Compare
Choose a tag to compare

Released with a breaking bug, please ignore.

v2.1.0

09 Nov 23:17
Compare
Choose a tag to compare
  • Add pseudos that depend on optional Adapter APIs (#139, @jaspreet57)
  • fix: :scope not matching when selecting in a scope (#154, @eps1lon)
  • Bump css-what to 3.2.1

v2.0.0

09 Mar 13:35
Compare
Choose a tag to compare

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.
  • 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)