Skip to content

Releases: fb55/css-select

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

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