Commit Graph

1806 Commits

Author SHA1 Message Date
Calvin Juárez
d54251276a Plugins: If minVersion >= 3.0.0, don't "pre-run" .setOptions() (#3247)
* dev – add .editorconfig
* AbstractPluginLoader – check for minVersion < 3 before running .setOptions() twice
* tests – separate unspecified minVersion test from minVersion: [2,0,0] test
2018-07-02 19:45:29 -07:00
Matthew Dean
39ef69c6a8 Tests and parser fixes for namespace values in MQ and mixin args (#3254) 2018-07-02 19:44:44 -07:00
Matthew Dean
29468bffcd Bugfix - namespace values (#3251)
* Added more CSS Grid tests
* Added media query example to tests
* Fixed bug where namespace values didn't work in guards and operations
* Fix failing setOptions test
* Update phantomJS, demo more permissive DR tests
* v3.5.0-beta.5
2018-07-01 19:43:24 -07:00
Matthew Dean
6237e13b14 [Feature] Namespaced values (#3242)
* calc() fix - fixes #974
* Parses and retrieves a namespaced value
* Adds a bunch of new tests for aliasing and namespacing
* Added more CSS Grid tests
* Added tests for passing mixins into mixins, since it's just another value
* Release v3.5.0-beta.4
2018-06-30 09:32:02 -07:00
Matthew Dean
7a47223dd9 Fixes #3187 (couldn't repo, but found bugs) (#3229)
* (Maybe) Fixes #3187 (couldn't repo, but found bug)
- Fixes multiple Node.js plugins not being loaded
* Added .eslintignore
* Added tests to fix #3187
* Fixed browser test
2018-06-30 00:24:46 -07:00
Matthew Dean
f1a3a250c4 Fixes #3235 (#3237) 2018-06-29 18:18:11 -07:00
Benjamin Dumke-von der Ehe
c5f18f4923 fix: browser cache is always considered stale if .modifyVars wasn't set (#3239)
* arguably better fix for the cache issue: always compare JSON
2018-06-27 08:55:26 -07:00
Matthew Dean
566f42862e Fixes #3205, partial 3.0 math regression #1880 (#3228)
* Fixes Mixin call args not being visited
* Add ability to use ES6 in tests
* Fixes #3205 and partial 3.0 math regression #1880
2018-06-26 23:26:01 -07:00
Matthew Dean
b8140d4baa Fixes #1421 - re-parses variable-interpolated elements to selectors (no.2) (#3227)
* Fix element to selector list conversion, passing all tests!
* Add passing test from #3098
* Added passing test example from #1817
* Allow lists to be re-evaluated as selectors (Fixes #1694)
2018-06-25 09:12:34 -07:00
Matthew Dean
7a12d2f675 Fixes #3191 (#3223) 2018-06-24 20:40:29 -07:00
Matthew Dean
42fd7dca20 Release v3.5.0 beta (#3230)
* Lint cleanup of quotes
* v3.5.0-beta
2018-06-24 20:14:33 -07:00
Matthew Dean
3c081ff807 Invalidate less-node file cache if modified (#3219) 2018-06-24 13:16:42 -07:00
Matthew Dean
a75f7d9664 Fixes #3147 #2715 (#3213)
* Adds permissive parsing for at-rules and custom properties
* Added error tests for permissive parsing
* Change custom property value to quoted-like value
* Allow interpolation in unknown at-rules
* Allows variables to fallback to permissive parsing
* Allow escaping of blocks
2018-06-21 23:44:38 -07:00
Matthew Dean
e1255ec2b7 Merge pull request #3220 from less/revert-3217-bugfix-1241
Revert "Fixes #1421 - re-parses variable-interpolated elements to selectors"
2018-06-17 16:21:50 -07:00
Matthew Dean
85a716c1cf Revert "Fixes #1421 - re-parses variable-interpolated elements to selectors (#3217)"
This reverts commit 23569c98e2.
2018-06-17 16:20:48 -07:00
Matthew Dean
468b532885 Fixes #3195 (#3215) 2018-06-16 11:59:18 -07:00
Matthew Dean
0de99e9c21 Pull missed code merged into 3.x branch (#3212)
* Add "grunt-cli" package to "devDependencies", so contibutors don't have to install grunt globally to run tests

* Add npm-scripts binding for grunt (npm run grunt -- [command])

* Update CONTRIBUTING.md to use `npm test` instead of `grunt test`

* LESS Importer: Throw some notice when a file is skipped over so you can see why it was skipped in the logs

* Update contributing doc
2018-06-16 11:59:00 -07:00
Matthew Dean
23569c98e2 Fixes #1421 - re-parses variable-interpolated elements to selectors (#3217)
* Adds passing test from #3098
* Added passing test example from #1817
* Allow lists to be re-evaluated as selectors (Fixes #1694)
2018-06-16 11:58:09 -07:00
Max Mikhailov
c93c854d64 add comment about an entropy increasing inlineJavaScript option 2018-05-29 08:04:59 +00:00
Matthew Dean
e41a17b3ed Release v3.0.4 2018-05-06 18:51:51 -07:00
Max Mikhailov
597e7602c4 Merge pull request #3172 from jacobwarduk/type-checking-length-units
Type checking length units
2018-05-01 01:55:25 +03:00
Jacob Ward
01f34ed36c Add all valid CSS length units 2018-04-30 17:31:28 +01:00
Jacob Ward
d0e53dd395 Annilhilated the festival 2018-04-30 15:07:15 +01:00
Matthew Dean
ddde3c1100 Fixes #3181 2018-04-18 14:54:17 -07:00
Jacob Ward
cb7f5634ec Merge branch 'master' of https://github.com/jacobwarduk/less.js into type-checking-length-units 2018-02-19 23:25:16 +00:00
Jacob Ward
6ff7d3c6bb Fix type checking for valid CSS length units 2018-02-19 23:20:28 +00:00
Georgii Dolzhykov
6985541207 Having inline and less imports of the same name lead to a race condition
Stumbled upon this working on https://github.com/webpack-contrib/less-loader/pull/242.
See an instance of the mentioned race condition here: https://ci.appveyor.com/project/webpack-contrib/less-loader/build/1.0.46/job/mbywf90cimqkjee5

It happens when processing files like this:
```less
@import (less) "some/css.css";
@import (inline) "some/css.css";
```
2018-02-19 02:52:45 +02:00
Matthew Dean
4272871e07 Fixes #3116 - lessc not loading plugins in 3.0 2018-02-14 16:28:25 -08:00
Matthew Dean
a48c24c4dd calc() fix - fixes #974 (partially #1880) 2018-02-10 16:57:53 -08:00
Matthew Dean
4508495adb Remove legacy upgrade
- Add simple grid syntax support
2018-02-09 19:40:39 -08:00
Matthew Dean
8b4524f644 Bump to 3.0.0-RC.1
- Remove UMD spec from plugins
2018-02-04 09:48:39 -08:00
Rob Huzzey
ea6246e16d Allows for inclusing of LESS files from node_modules without .less extension 2017-10-16 12:36:33 +01:00
Matthew Dean
94408424d6 Fixes #3112 for real this time 2017-10-09 22:13:35 -07:00
Matthew Dean
bad9be8a11 Fixes #3112
- also fixes browser test broken with lowercase API change
2017-10-09 22:11:19 -07:00
Matthew Dean
0d7ec6bb70 Change API on less object to lowercase 2017-10-08 18:43:10 -07:00
Matthew Dean
55380d49e9 All tests passing 2017-10-08 18:31:41 -07:00
Matthew Dean
4f6818db37 Merge branch '3.x' into dev/3.x-work 2017-10-08 15:30:08 -07:00
Matthew Dean
26674fc867 FIXES syncImport for less-node 2017-10-08 15:21:13 -07:00
Matthew Dean
9fd1ef5759 Pushing WIP of changes to file manager to track changes 2017-06-08 12:50:40 -07:00
Max Mikhailov
faafd33b56 do not ignore strict-math:off in media-features
!breaking change, fixes #1480
2017-06-08 10:00:26 +03:00
Max Mikhailov
3f353a8bfd do not evaluate backticks in strings as inline-js 2017-06-08 09:44:56 +03:00
Max Mikhailov
006ce2651d special functions: add boolean and if, clean up alpha 2017-06-07 16:31:35 +03:00
Max Mikhailov
10db21c3b5 optional ; after VariableCall at the end of {} block
i.e. allow `div {@var()}` to become consistent with the rest of CSS/Less syntax
2017-06-01 13:06:58 +03:00
Max Mikhailov
632f96b55d rename RulesetCall to VariableCall 2017-06-01 12:30:02 +03:00
Max Mikhailov
6a683eb62d eslint spaced-comment and corresponding changes 2017-06-01 02:27:55 +03:00
Max Mikhailov
f5591237d9 clean to-css-visitor.js (eslint etc.) 2017-06-01 01:23:33 +03:00
Max Mikhailov
458b3975ea update mergeRules (no separate !important rules + cleanup) 2017-05-31 23:25:26 +03:00
Max Mikhailov
a475cc4d81 fix lessc (less.options is a function and breaks less.render) 2017-05-28 18:03:37 +03:00
Max Mikhailov
312f741e42 minor Selector code clean-up 2017-05-28 15:53:57 +03:00
Matthew Dean
b782411278 Sync default options across all Less.js environments
- More tests for plugins
2017-01-10 17:44:50 -08:00