Skip to content

Releases: fb55/css-select

v6.0.0

29 Jun 17:21
Compare
Choose a tag to compare
  • Re-release of 5.2.0
  • Switch to tshy, vitest & Biome (#1596) f7fd5fc

v5.2.1...v6.0.0

v5.2.1

28 Jun 11:04
Compare
Choose a tag to compare

The previous release was missing the dist directory.

Release 5.2.0 and 5.2.1 included breaking changes; 5.2.2 is a re-publish of 5.1.0


v5.2.0...v5.2.1

v5.2.0

28 Jun 10:19
Compare
Choose a tag to compare

New Features

  • Cache results for subtrees; vastly speeds up :contains and :has #1025 – by @fb55
  • Add support for :read-only and :read-write pseudos #1497 – by @jed
  • Improved support for large documents #1132 – by @fb55

Fixes

  • Allow whitespace in :empty #795 – by @fb55
  • Filter queried elements inside template element #981 – by @andolf
  • Handle template tags in selectOne #1001 – by @fb55

New Contributors

Full Changelog: v5.1.0...v5.2.0

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