Skip to content

Releases: fb55/css-what

v6.1.0

31 Mar 13:21
Compare
Choose a tag to compare
  • feat: Support pseudo elements with data (#762) 3be227a

v6.0.1...v6.1.0

v6.0.1

27 Dec 10:46
Compare
Choose a tag to compare
  • Fix parsing column combinators after tag names 503570e

v6.0.0...v6.0.1

v6.0.0

26 Dec 23:18
Compare
Choose a tag to compare

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

v5.1.0

10 Oct 11:06
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.0.1...v5.1.0

v5.0.1

28 May 18:36
Compare
Choose a tag to compare

Fixes:

  • Hand-roll attribute parsing (#503) 4cdaacf
    • Attribute values are slightly more permissive now. Ensures attribute parsing will always be linear.

v5.0.0...v5.0.1

v5.0.0

09 Mar 04:08
Compare
Choose a tag to compare

New Features:

  • ignoreCase on attributes now respects the s flag, as well as default values as per HTML spec (unless you are in xmlMode).
  • Ignore comments around selectors (#441 by @fb55) fc91ba1

Bug fixes:

v4.0.0

13 Oct 07:07
Compare
Choose a tag to compare

Breaking changes:

  • Disallow quotes around unpacked pseudos 276a4b2
  • Throw errors when encountering multiple traversals in a row f07d582
  • Disallow names starting with # (fixes #287) 7d1e95b

New Features:

Other changes:

  • Walk through selector using indices c667214
  • Add missing tests for complete test coverage c49747f

v3.4.2...v4.0.0

v3.4.2

09 Oct 18:46
Compare
Choose a tag to compare
  • feat(lint): Add eslint-plugin-node de90133
  • Use Object.keys as Object.values is not supported in node<7 (#295 by @klapec) 98a0489

v3.4.1...v3.4.2

v3.4.1

01 Oct 19:43
Compare
Choose a tag to compare
  • fix(parser): Support escaped characters in attribute value a05da96
  • docs: Update funding information ff21060

v3.4.0...v3.4.1

v3.4.0

01 Oct 18:29
Compare
Choose a tag to compare
  • Add host and host-context to unpackPseudo so that data inside them can be parsed (#288 by zicsus) f835363
  • chore: Improve option handling, attribute parsing fa32fd8
  • feat(stringify): Escape unsafe characters 138b101

v3.3.0...v3.4.0