unstale

npm / css-what

css-what

What changed in css-what 4 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

9 breaking1 security5 new APIs and options3 behavior and defaults3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.3 on npm

css-what 81 changes

Breaking changes 1

  • css-what is now ESM-only, so developers must use it as an ES module.

    8.0.0release notes

css-what 610 changes

Breaking changes 4

Security 1

  • Leading whitespace encapsulated in comments is stripped, preventing it from being used to sneak in descendant operators before selectors.

    6.0.0release notes

New APIs and options 2

  • An ES6 module export was added; CommonJS remains available for earlier NodeJS versions, but the change might cause build-system issues.

    6.0.0release notes

  • Added the value 'quirks', which ignores case only in quirks mode.

    6.0.0release notes

Behavior and default changes 3

css-what 55 changes

Breaking changes 1

  • Attribute case sensitivity now follows HTML-spec defaults and respects the s flag, except in xmlMode.

    5.0.0release notes

New APIs and options 1

Fixes and other changes 3

  • A space is allowed after an attribute selector modifier.

    5.0.0release notes

  • Comments around selectors are ignored.

    5.0.0release notes

  • Corrects handling of an elemental selector without a namespace.

    5.0.0release notes

css-what 45 changes

Breaking changes 3

  • Encountering multiple traversals in a row now throws an error.

    4.0.0release notes

  • Names starting with # are no longer allowed.

    4.0.0release notes

  • Quoted unpacked pseudos are no longer allowed.

    4.0.0release notes

New APIs and options 2