Skip to content

Releases: fb55/css-select

v5.1.0

27 Apr 18:31
Compare
Choose a tag to compare
  • 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 context b will never give any results.)
      If the relativeSelector option is set to false, selectors won't be absolutized and selectors can test for parent elements outside of the context.
    • See #709 for context.

v5.0.1...v5.1.0

v5.0.1

25 Apr 11:59
Compare
Choose a tag to compare
  • fix: Previously, some options weren't properly passed on to sub-selectors such as :is(...) or :not(...). (#758) 77945c4

v5.0.0...v5.0.1

v5.0.0

24 Apr 18:31
Compare
Choose a tag to compare

Breaking

  • domhandler's node types have changed. Some of these changes were inherited by css-select #754
  • css-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 and aliases is now deprecated.

v4.3.0...v5.0.0

v4.3.0

28 Mar 14:02
Compare
Choose a tag to compare

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

Full Changelog: v4.2.1...v4.3.0

v4.2.1

26 Dec 11:39
Compare
Choose a tag to compare
  • fix: Don't add siblings multiple times in appendNextSiblings (#656) 726f51b
  • docs: Improve README e8974a3

v4.2.0...v4.2.1

v4.2.0

14 Dec 16:03
Compare
Choose a tag to compare

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

Full Changelog: v4.1.3...v4.2.0

v4.1.3

06 Jun 15:46
Compare
Choose a tag to compare

Fixes:

  • compile's return value type was updated to Node, instead of an Element (more types can now be passed). 1419455

Dependencies:

  • Bump css-what from 5.0.0 to 5.0.1, fixing potentially expensive regex (#451) e3f4cf1
  • Use @types/boolbase 636c238

v4.1.2...v4.1.3

v4.1.2

16 Apr 09:42
Compare
Choose a tag to compare
  • fix(types): Fixed last context types e15cc53

v4.1.1...v4.1.2

v4.1.1

16 Apr 09:34
Compare
Choose a tag to compare
  • fix(types): Fix context types not being updated everywhere d2b0409

v4.1.0...v4.1.1

v4.1.0

16 Apr 09:23
Compare
Choose a tag to compare

Added support for additional parameter types:

  • Allow plain nodes as context (#424) 58109d6
  • Allow parsed selectors to be passed directly to functions (#418) 01afada

v4.0.0...v4.1.0