---
title: "less 4.0.0 Breaking Changes on npm | Since.dev"
description: "What each less release removed, renamed or changed: 17 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/less
last_updated: 2026-12-04
---

# 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

Latest version `4.9.1`. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 2 breaking changes in 1 version.

## less 4.0.0 breaking changes

less 4.0.0, released December 18, 2020: 2 breaking changes.

- **Behavior changed** `mixin`  

Calling a mixin without parentheses is now an error. Add parentheses to every mixin call. [github.com](https://github.com/less/less.js/releases/tag/v4.0.0)
- **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](https://github.com/less/less.js/releases/tag/v4.0.0)

## less 3.0.0 breaking changes

less 3.0.0, released February 11, 2018: 6 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](https://github.com/less/less.js/blob/v3.0.0/CHANGELOG.md)
- **Renamed** `Directive`  

The Directive tree node was renamed to AtRule; plugins referencing Directive must switch to AtRule. [github.com](https://github.com/less/less.js/blob/v3.0.0/CHANGELOG.md)
- **Renamed** `Rule`  

The Rule tree node was renamed to Declaration; plugins referencing Rule must switch to Declaration. [github.com](https://github.com/less/less.js/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed**  

Inline JavaScript in Less files is now off by default for security; enable it explicitly or use @plugin instead. [github.com](https://github.com/less/less.js/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `calc`  

The calc() function no longer performs math during compilation, so code relying on compiled math results must be checked. [github.com](https://github.com/less/less.js/blob/v3.0.0/CHANGELOG.md)
- **Default changed**  

Inline JavaScript evaluation is disabled by default; code relying on it must opt in or move to @plugin. [github.com](https://github.com/less/less.js/blob/v3.0.0/CHANGELOG.md)

## less 2.0.0-b3 breaking changes

less 2.0.0-b3, released November 9, 2014: 1 breaking change.

- **Default changed** `useFileCache`  

The browser useFileCache option now defaults to true, and the cache is cleared on refresh or in watch mode. [github.com](https://github.com/less/less.js/releases/tag/v2.0.0-b3)

## less 2.0.0-b2 breaking changes

less 2.0.0-b2, released November 9, 2014: 1 breaking change.

- **Behavior changed**  

Imports are processed in a fixed sequence, which can change the output ordering for projects that previously varied. [github.com](https://github.com/less/less.js/releases/tag/v2.0.0-b2)

## less 2.0.0-b1 breaking changes

less 2.0.0-b1, released November 9, 2014: 7 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](https://github.com/less/less.js/releases/tag/v2.0.0-b1)
- **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](https://github.com/less/less.js/releases/tag/v2.0.0-b1)
- **Behavior changed**  

Colours are output in the format they are added, so yellow outputs yellow instead of its hex value. [github.com](https://github.com/less/less.js/releases/tag/v2.0.0-b1)
- **Behavior changed** `less.modifyVars`  

less.modifyVars returns a promise instead of completing synchronously. [github.com](https://github.com/less/less.js/releases/tag/v2.0.0-b1)
- **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](https://github.com/less/less.js/releases/tag/v2.0.0-b1)
- **Behavior changed** `less.refresh`  

less.refresh returns a promise instead of completing synchronously. [github.com](https://github.com/less/less.js/releases/tag/v2.0.0-b1)
- **Default changed**  

Default values for the sourcemap options were changed, so output sourcemaps may differ from before. [github.com](https://github.com/less/less.js/releases/tag/v2.0.0-b1)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
