less breaking changes
less 4.0.0 (December 18, 2020) is its newest release with breaking changes, 2 of them. The first: Behavior changed mixin. Every breaking API change we have recorded in less on npm: 17 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.9.1.
Packages on npm run on Node.js. Node.js end of life dates.
less 4.0.0 breaking changes
- Behavior changed
mixin
Calling a mixin without parentheses is now an error. Add parentheses to every mixin call. github.com - Default changed
math
Division-like expressions are only evaluated when wrapped in parentheses by default. To keep the old behavior, set the math option as described in the docs. github.com
less 3.0.0 breaking changes
- Removed
alpha
The IE alpha() function was removed as an unnecessary node from the API; code using it must be changed. github.com - Renamed
Directive
The Directive tree node was renamed to AtRule; plugins referencing Directive must switch to AtRule. github.com - Renamed
Rule
The Rule tree node was renamed to Declaration; plugins referencing Rule must switch to Declaration. github.com - Behavior changed
Inline JavaScript in Less files is now off by default for security; enable it explicitly or use @plugin instead. github.com - Behavior changed
calc
The calc() function no longer performs math during compilation, so code relying on compiled math results must be checked. github.com - Default changed
Inline JavaScript evaluation is disabled by default; code relying on it must opt in or move to @plugin. github.com
less 2.0.0-b3 breaking changes
- Default changed
useFileCache
The browser useFileCache option now defaults to true, and the cache is cleared on refresh or in watch mode. github.com
less 2.0.0-b2 breaking changes
- Behavior changed
Imports are processed in a fixed sequence, which can change the output ordering for projects that previously varied. github.com
less 2.0.0-b1 breaking changes
- Removed
less no longer depends on clean-css. Install less-plugin-clean-css and use --clean-css to reference the plugin. github.com - Behavior changed
Use less.render instead of the parser directly; direct parser use may need changes and is not guaranteed to keep working in minor releases. github.com - Behavior changed
Colours are output in the format they are added, so yellow outputs yellow instead of its hex value. github.com - Behavior changed
less.modifyVars
less.modifyVars returns a promise instead of completing synchronously. github.com - Behavior changed
less.pageLoadFinished
In the browser, less.pageLoadFinished is a promise resolved when less finishes initial processing. Code that treats it as a plain value must change. github.com - Behavior changed
less.refresh
less.refresh returns a promise instead of completing synchronously. github.com - Default changed
Default values for the sourcemap options were changed, so output sourcemaps may differ from before. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.