Skip to content

v4.0.0

Compare
Choose a tag to compare
@fb55 fb55 released this 03 Apr 08:08
· 884 commits to master since this release

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