Skip to content

v6.0.0

Compare
Choose a tag to compare
@fb55 fb55 released this 26 Dec 23:18
· 620 commits to master since this release

Breaking Changes

  • Added ES6 module export (by @spocke, #680)
    • CommonJS is still provided for earlier NodeJS versions, but this change might cause issues with your build system. If they aren't trivially resolved, please open an issue!
  • Removed all options 5cad07b
    • BREAKING: Added a new value for ignoreCase: 'quirks' should ignore the case only in quirks mode.
    • BREAKING: Tags and attributes aren't lowercased anymore
  • Made selector types & actions enums 65121fe
  • Set empty namespace to null in attributes de367ca
  • Simplify stringify output 8a29466 b3e5e59

Features

  • Support parsing column combinators 8030f67

Fixes

  • Strip leading whitespace encapsulated in comments a812a1c
    • This used to be a way to sneak in descendant operators in front of selectors.

Refactors

  • Switched parsing to numbers 65121fe
  • Restructured the parser to a big switch statement 7b6cc76

Other

  • Adopted CSS Selector parsing tests from WPT 1881bba
  • Updated README to reflect changes b165a8d

New Contributors

Full Changelog: v5.1.0...v6.0.0