less-docs icon indicating copy to clipboard operation
less-docs copied to clipboard

What is new in Less 3.x ?

Open harrymt opened this issue 7 years ago • 5 comments

Nowhere can I find a list of new things in 3.x.

Anyone share?

harrymt avatar Nov 13 '17 20:11 harrymt

The docs themselves are updated (although a bit behind current changes) to what's coming in 3.x. But that's true there is no "what's new" document yet. See: http://lesscss.org/3.x/

There is a less-meta task tracking 3.x branch changes which I'm maintaining. See: https://github.com/less/less-meta/issues/20

matthew-dean avatar Nov 14 '17 03:11 matthew-dean

Added up-for-grabs since a "What's new" would be welcome for the 3.x docs.

matthew-dean avatar Nov 14 '17 03:11 matthew-dean

Is it safe to upgrade from 2.x to 3.x what are the breaking changes?

Andersos avatar Nov 20 '18 14:11 Andersos

@Andersos

  • javascriptEnabled is false by default in 3.x for security reasons, meaning you can't use inline JS tags without enabling the option
  • Some behavior of calc() is slightly different (won't try to evaluate as Less math)

Other than that, lots new. Look at @plugin, Maps, each() and if() functions in docs. http://lesscss.org. Also new Less options like rewriteUrls and math settings.

In reality, few if any breaking changes, unless you are importing from a third-party library that uses deprecated features.

matthew-dean avatar Nov 21 '18 06:11 matthew-dean

@matthew-dean perhaps these could go somewhere on the main less website?

harrymt avatar Nov 21 '18 09:11 harrymt