Skip to content

Commit 8b4524f

Browse files
committedFeb 4, 2018
Bump to 3.0.0-RC.1
- Remove UMD spec from plugins
1 parent d30e3a6 commit 8b4524f

File tree

5 files changed

+5880
-29
lines changed

5 files changed

+5880
-29
lines changed
 

‎dist/less.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
2-
* Less - Leaner CSS v3.0.0-alpha.3
2+
* Less - Leaner CSS v3.0.0-RC.1
33
* http://lesscss.org
44
*
5-
* Copyright (c) 2009-2017, Alexis Sellier <self@cloudhead.net>
5+
* Copyright (c) 2009-2018, Alexis Sellier <self@cloudhead.net>
66
* Licensed under the Apache-2.0 License.
77
*
88
*/
@@ -2872,13 +2872,13 @@ module.exports = function(environment, fileManagers) {
28722872
/* eslint guard-for-in: 0 */
28732873
t = initial.tree[n];
28742874
if (typeof t === "function") {
2875-
api[n] = ctor(t);
2875+
api[n.toLowerCase()] = ctor(t);
28762876
}
28772877
else {
28782878
api[n] = Object.create(null);
28792879
for (var o in t) {
28802880
/* eslint guard-for-in: 0 */
2881-
api[n][o] = ctor(t[o]);
2881+
api[n][o.toLowerCase()] = ctor(t[o]);
28822882
}
28832883
}
28842884
}
@@ -3600,7 +3600,8 @@ var LessError = require('../less-error'),
36003600
tree = require("../tree"),
36013601
visitors = require("../visitors"),
36023602
getParserInput = require("./parser-input"),
3603-
utils = require("../utils");
3603+
utils = require("../utils"),
3604+
functionRegistry = require('../functions/function-registry');
36043605

36053606
//
36063607
// less.js - parser
@@ -3783,6 +3784,7 @@ var Parser = function Parser(context, imports, fileInfo) {
37833784
tree.Node.prototype.rootNode = root;
37843785
root.root = true;
37853786
root.firstRoot = true;
3787+
root.functionRegistry = functionRegistry.inherit();
37863788

37873789
} catch (e) {
37883790
return callback(new LessError(e, imports, fileInfo.filename));
@@ -5594,7 +5596,7 @@ Parser.serializeVars = function(vars) {
55945596

55955597
module.exports = Parser;
55965598

5597-
},{"../less-error":36,"../tree":66,"../utils":88,"../visitors":92,"./parser-input":41}],43:[function(require,module,exports){
5599+
},{"../functions/function-registry":26,"../less-error":36,"../tree":66,"../utils":88,"../visitors":92,"./parser-input":41}],43:[function(require,module,exports){
55985600
var utils = require('./utils');
55995601
/**
56005602
* Plugin Manager

‎dist/less.min.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/less/plugin-api.js

-16
This file was deleted.

‎package-lock.json

+5,865
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "less",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-RC.1",
44
"description": "Leaner CSS",
55
"homepage": "http://lesscss.org",
66
"author": {

0 commit comments

Comments
 (0)
Please sign in to comment.