unstale

npm / less

less

What changed in less 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

1 breaking4 deprecations16 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

less 421 changes

Breaking changes 1

  • The not keyword is no longer silently ignored when used without parentheses in conditions.

    4.6.5release notes

Deprecations 4

  • Dynamic @charset interpolation is deprecated for removal in Less 5.x; use a static quoted @charset declaration.

    4.8.0release notes

  • Dash-only mixin names are deprecated for removal in Less 5.x; Less 4 preserves existing output while warning.

    4.8.0release notes

  • Numeric-leading and dash-only variable names are deprecated for removal in Less 5.x; Less 4 preserves existing output while warning.

    4.8.0release notes

  • Bare @variable syntax in non-value at-rule positions is deprecated.

    4.7.0release notes

Fixes and other changes 16

  • Fixes an error when a mixin call is used as a property value.

    4.9.1release notes

  • Interpolation now supports [...] lookups inside @{...}.

    4.9.0release notes

  • Results from escape() are no longer reparsed.

    4.9.0release notes

  • Flattening nested @media queries now keeps the media type first.

    4.9.0release notes

  • Math functions are left for the browser when an argument is a runtime CSS var().

    4.8.1release notes

  • Forwarding an unset variadic no longer overrides defaults in the callee.

    4.8.1release notes

  • Fixes parsing comparisons between inline condition expressions.

    4.8.0release notes

  • Resolves issue #4234 in mixing.

    4.8.0release notes

  • Comparison and range syntax is now parsed in container style() queries.

    4.7.0release notes

  • Fixes color calc inside a from expression.

    4.6.6release notes

  • Preserves spacing for container feature functions.

    4.6.6release notes

  • Avoids a TypeError when dumpLineNumbers is used with nested @supports.

    4.6.6release notes

  • Bundlers are routed to a CJS-typed UMD artifact to fix browser export interop.

    4.6.5release notes

  • Fixes handling of parentheses in media queries.

    4.6.5release notes

  • A CJS bundle is added.

    4.6.3release notes

  • Use the UMD dist/less.js to fix the webpack browser build.

    4.6.3release notes