Skip to content

Releases: fb55/css-select

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

v4.0.0

03 Apr 08:08
Compare
Choose a tag to compare

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 css-what@5.0.0
    • 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.

Fixes:

  • Fix != ignoring elements without attribute (#402) 4484259

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...v4.0.0

v3.1.2

10 Dec 20:55
Compare
Choose a tag to compare
  • fix: Ensure parent elements are tags efcfcdb
    • Now that parent elements can also be documents, this fixes some edge-cases.
  • bump domutils from 2.4.2 to 2.4.4 b141d76

v3.1.1...v3.1.2

v3.1.1

08 Dec 23:33
Compare
Choose a tag to compare

Fixes:

  • Support DOM elements of type root in the :root pseudo-selector c4d2b7b

Dependency upgrades:

  • bump domutils, domhandler & htmlparser2 (#312) c4d2b7b
  • bump nth-check from 1.0.2 to 2.0.0 187c9cd
  • bump css-what from 3.4.1 to 4.0.0 4241106

v3.1.0

02 Oct 16:59
Compare
Choose a tag to compare
  • feat(index): Export prepareContext function f997165
  • feat(general): Add cacheResults option 6db3de6
  • fix(general): Fix descendant cache issue 0c0a8ff
  • refactor(tests): Remove positional, fix attribute tests for Sizzle spec b8ae895

v3.0.4...v3.1.0

v3.0.4

01 Oct 20:54
Compare
Choose a tag to compare
  • Bump css-what, add domhandler as dep cbb7187
  • Run prettier in check mode before passing tests 8bd03e8
  • Update funding information 3242963

v3.0.3...v3.0.4

v3.0.3

28 Sep 02:29
Compare
Choose a tag to compare
  • Fix types entry in package.json

v3.0.2

27 Sep 19:39
Compare
Choose a tag to compare
  • Fixed an issue where the previous release didn't include built assets (reported in #229)
  • Ported tests to Jest & TS