less-openui5 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +197 -204
- package/lib/Compiler.js +185 -0
- package/lib/index.js +18 -219
- package/lib/plugin/css-variables-collector.js +56 -41
- package/lib/themingParameters/dataUri.js +33 -0
- package/package.json +13 -13
- package/CHANGELOG.md +0 -233
package/CHANGELOG.md
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
All notable changes to this project will be documented in this file.
|
|
3
|
-
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
4
|
-
|
|
5
|
-
A list of unreleased changes can be found [here](https://github.com/SAP/less-openui5/compare/v0.11.1...HEAD).
|
|
6
|
-
|
|
7
|
-
<a name="v0.11.1"></a>
|
|
8
|
-
## [v0.11.1] - 2021-03-17
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
- **Variables:** Include variables defined in sub-directories ([#160](https://github.com/SAP/less-openui5/issues/160)) [`5568cd6`](https://github.com/SAP/less-openui5/commit/5568cd6e10bbf440a35b4bd0d8b7926cb1bbb149)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<a name="v0.11.0"></a>
|
|
14
|
-
## [v0.11.0] - 2021-03-10
|
|
15
|
-
### Breaking Changes
|
|
16
|
-
- Only rewrite image paths for RTL-variant when files exist ([#162](https://github.com/SAP/less-openui5/issues/162)) [`88e7a74`](https://github.com/SAP/less-openui5/commit/88e7a7436fc7f197186c780a856bb9c6dff7c582)
|
|
17
|
-
|
|
18
|
-
### BREAKING CHANGE
|
|
19
|
-
|
|
20
|
-
This affects the output of the `rtl` (right-to-left) variant that is created by applying several mechanisms to create a mirrored variant of the CSS to be used in locales that use a right to left text direction.
|
|
21
|
-
|
|
22
|
-
One aspect is adopting urls which contain an `img` folder in the path.
|
|
23
|
-
Before this change, all urls have been changed to use a `img-RTL` folder instead. This allows mirrored images to be used, but it also requires an images to be available on that path even when the original image should be used (e.g. for a logo).
|
|
24
|
-
|
|
25
|
-
With this change:
|
|
26
|
-
- Urls are only adopted in case an `img-RTL` variant of that file exists
|
|
27
|
-
- Urls with a protocol (http/https/data/...) or starting with a slash (`/`) are not adopted anymore
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<a name="v0.10.0"></a>
|
|
31
|
-
## [v0.10.0] - 2021-01-29
|
|
32
|
-
### Breaking Changes
|
|
33
|
-
- **Security:** Disable JavaScript execution in Less.js [`c0d3a85`](https://github.com/SAP/less-openui5/commit/c0d3a8572974a20ea6cee42da11c614a54f100e8)
|
|
34
|
-
|
|
35
|
-
### BREAKING CHANGE
|
|
36
|
-
|
|
37
|
-
Parser option `javascriptEnabled` has been removed. JavaScript is always
|
|
38
|
-
disabled and cannot be enabled.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<a name="v0.9.0"></a>
|
|
42
|
-
## [v0.9.0] - 2020-11-06
|
|
43
|
-
### Breaking Changes
|
|
44
|
-
- Remove support for import over http(s) [`e4a1c86`](https://github.com/SAP/less-openui5/commit/e4a1c86b994430fa3e640dc7b09a6c09a1b2845b)
|
|
45
|
-
- Require Node.js >= 10 [`47f244e`](https://github.com/SAP/less-openui5/commit/47f244ec37ab5ff51c88cd2dd96c4110f2779694)
|
|
46
|
-
|
|
47
|
-
### BREAKING CHANGE
|
|
48
|
-
|
|
49
|
-
Import over http(s) is not supported anymore.
|
|
50
|
-
Use the Builder 'fs' option to provide an interface that also handles
|
|
51
|
-
http(s) resources.
|
|
52
|
-
|
|
53
|
-
Support for older Node.js releases has been dropped.
|
|
54
|
-
Only Node.js v10 or higher is supported.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<a name="v0.8.7"></a>
|
|
58
|
-
## [v0.8.7] - 2020-06-26
|
|
59
|
-
### Bug Fixes
|
|
60
|
-
- Error handling for missing scoping files [`c7513a1`](https://github.com/SAP/less-openui5/commit/c7513a101a2f01e9114ff86f5be598a29bc51be0)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<a name="v0.8.6"></a>
|
|
64
|
-
## [v0.8.6] - 2020-02-24
|
|
65
|
-
### Bug Fixes
|
|
66
|
-
- CSS var assignment only for less to less vars ([#116](https://github.com/SAP/less-openui5/issues/116)) [`2e9560d`](https://github.com/SAP/less-openui5/commit/2e9560dd2b89f7b1f3e09fcc3d0bfe867496a3fc)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<a name="v0.8.5"></a>
|
|
70
|
-
## [v0.8.5] - 2020-02-21
|
|
71
|
-
### Features
|
|
72
|
-
- Keep linking of less vars for css vars ([#115](https://github.com/SAP/less-openui5/issues/115)) [`3f99e9d`](https://github.com/SAP/less-openui5/commit/3f99e9d49fac620405dcad48556f5c4dfcf916c4)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<a name="v0.8.4"></a>
|
|
76
|
-
## [v0.8.4] - 2020-02-10
|
|
77
|
-
### Features
|
|
78
|
-
- Add experimental CSS variables and skeleton build ([#108](https://github.com/SAP/less-openui5/issues/108)) [`e6d8503`](https://github.com/SAP/less-openui5/commit/e6d85038f077ff252e8240d9924e7c4761ac4e5e)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<a name="v0.8.3"></a>
|
|
82
|
-
## [v0.8.3] - 2020-01-07
|
|
83
|
-
### Bug Fixes
|
|
84
|
-
- Diff algorithm exception ([#110](https://github.com/SAP/less-openui5/issues/110)) [`9628a6c`](https://github.com/SAP/less-openui5/commit/9628a6c6386b671e37a3c9680ca3b5fbd6175146)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<a name="v0.8.2"></a>
|
|
88
|
-
## [v0.8.2] - 2019-12-16
|
|
89
|
-
### Bug Fixes
|
|
90
|
-
- Support absolute import paths in less files ([#107](https://github.com/SAP/less-openui5/issues/107)) [`266b06d`](https://github.com/SAP/less-openui5/commit/266b06d9b091d34e6f279fbdf567702bcb9dbaed)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<a name="v0.8.1"></a>
|
|
94
|
-
## [v0.8.1] - 2019-12-03
|
|
95
|
-
### Bug Fixes
|
|
96
|
-
- Improve rule diffing algorithm ([#104](https://github.com/SAP/less-openui5/issues/104)) [`2527189`](https://github.com/SAP/less-openui5/commit/252718912861d2edde2041729a106fb3e0a6316b)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<a name="v0.8.0"></a>
|
|
100
|
-
## [v0.8.0] - 2019-11-18
|
|
101
|
-
### Breaking Changes
|
|
102
|
-
- Remove support for 'sourceMap' / 'cleancss' options [`3f234c8`](https://github.com/SAP/less-openui5/commit/3f234c88c4442035c0fe2683197c044ec6a93fab)
|
|
103
|
-
|
|
104
|
-
### Bug Fixes
|
|
105
|
-
- Apply less.js fix for import race condition [`694f6c4`](https://github.com/SAP/less-openui5/commit/694f6c41ad788eded034df6835cf5fbd8f6feaf3)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
<a name="0.7.0"></a>
|
|
109
|
-
## [0.7.0] - 2019-10-30
|
|
110
|
-
### Breaking Changes
|
|
111
|
-
- Drop support for Node.js < 8.5 [`810962c`](https://github.com/SAP/less-openui5/commit/810962cf7bb4604641160d547593568f70b72f98)
|
|
112
|
-
|
|
113
|
-
### Bug Fixes
|
|
114
|
-
- Add inline parameters on empty CSS [`bc59d58`](https://github.com/SAP/less-openui5/commit/bc59d58486e972057675c5b8abe83229f116bc07)
|
|
115
|
-
- Scope rule handling ([#92](https://github.com/SAP/less-openui5/issues/92)) [`89b56c1`](https://github.com/SAP/less-openui5/commit/89b56c1a975f53ea8e436878b07707f1fb061486)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
[v0.11.1]: https://github.com/SAP/less-openui5/compare/v0.11.0...v0.11.1
|
|
119
|
-
[v0.11.0]: https://github.com/SAP/less-openui5/compare/v0.10.0...v0.11.0
|
|
120
|
-
[v0.10.0]: https://github.com/SAP/less-openui5/compare/v0.9.0...v0.10.0
|
|
121
|
-
[v0.9.0]: https://github.com/SAP/less-openui5/compare/v0.8.7...v0.9.0
|
|
122
|
-
[v0.8.7]: https://github.com/SAP/less-openui5/compare/v0.8.6...v0.8.7
|
|
123
|
-
[v0.8.6]: https://github.com/SAP/less-openui5/compare/v0.8.5...v0.8.6
|
|
124
|
-
[v0.8.5]: https://github.com/SAP/less-openui5/compare/v0.8.4...v0.8.5
|
|
125
|
-
[v0.8.4]: https://github.com/SAP/less-openui5/compare/v0.8.3...v0.8.4
|
|
126
|
-
[v0.8.3]: https://github.com/SAP/less-openui5/compare/v0.8.2...v0.8.3
|
|
127
|
-
[v0.8.2]: https://github.com/SAP/less-openui5/compare/v0.8.1...v0.8.2
|
|
128
|
-
[v0.8.1]: https://github.com/SAP/less-openui5/compare/v0.8.0...v0.8.1
|
|
129
|
-
[v0.8.0]: https://github.com/SAP/less-openui5/compare/0.7.0...v0.8.0
|
|
130
|
-
[0.7.0]: https://github.com/SAP/less-openui5/compare/0.6.0...0.7.0
|
|
131
|
-
## 0.6.0 - 2018-09-10
|
|
132
|
-
|
|
133
|
-
### Breaking changes
|
|
134
|
-
- Drop unsupported Node.js versions. Now requires >= 6 [#45](https://github.com/SAP/less-openui5/pull/45)
|
|
135
|
-
|
|
136
|
-
### Fixes
|
|
137
|
-
- Again, fix inline theme parameters encoding for '#' [#48](https://github.com/SAP/less-openui5/pull/48)
|
|
138
|
-
|
|
139
|
-
### All changes
|
|
140
|
-
[`0.5.4...0.6.0`](https://github.com/SAP/less-openui5/compare/0.5.4...0.6.0)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
## 0.5.4 - 2018-07-04
|
|
144
|
-
|
|
145
|
-
### Fixes
|
|
146
|
-
- Revert "Fix inline theme parameters encoding for '#'" [#26](https://github.com/SAP/less-openui5/pull/26)
|
|
147
|
-
|
|
148
|
-
### All changes
|
|
149
|
-
[`0.5.3...0.5.4`](https://github.com/SAP/less-openui5/compare/0.5.3...0.5.4)
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
## 0.5.3 - 2018-05-18
|
|
153
|
-
|
|
154
|
-
### Fixes
|
|
155
|
-
- Fix less error propagation [#22](https://github.com/SAP/less-openui5/pull/22)
|
|
156
|
-
- Fix inline theme parameters encoding for '#' [#23](https://github.com/SAP/less-openui5/pull/23)
|
|
157
|
-
|
|
158
|
-
### All changes
|
|
159
|
-
[`0.5.2...0.5.3`](https://github.com/SAP/less-openui5/compare/0.5.2...0.5.3)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
## 0.5.2 - 2018-03-26
|
|
163
|
-
|
|
164
|
-
### Fixes
|
|
165
|
-
- Fix reduced set of variables [#20](https://github.com/SAP/less-openui5/pull/20)
|
|
166
|
-
|
|
167
|
-
### All changes
|
|
168
|
-
[`0.5.1...0.5.2`](https://github.com/SAP/less-openui5/compare/0.5.1...0.5.2)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
## 0.5.1 - 2018-03-12
|
|
172
|
-
|
|
173
|
-
### Fixes
|
|
174
|
-
- Changed paths in variable collector to posix variant [#19](https://github.com/SAP/less-openui5/pull/19)
|
|
175
|
-
|
|
176
|
-
### All changes
|
|
177
|
-
[`0.5.0...0.5.1`](https://github.com/SAP/less-openui5/compare/0.5.0...0.5.1)
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
## 0.5.0 - 2018-02-09
|
|
181
|
-
|
|
182
|
-
### Features
|
|
183
|
-
- Reduce collected variables to only add relevant ones [#18](https://github.com/SAP/less-openui5/pull/18)
|
|
184
|
-
|
|
185
|
-
### All changes
|
|
186
|
-
[`0.4.0...0.5.0`](https://github.com/SAP/less-openui5/compare/0.4.0...0.5.0)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
## 0.4.0 - 2017-12-13
|
|
190
|
-
|
|
191
|
-
### Features
|
|
192
|
-
- Add scope option [#16](https://github.com/SAP/less-openui5/pull/16)
|
|
193
|
-
- Add custom fs option [#17](https://github.com/SAP/less-openui5/pull/17)
|
|
194
|
-
|
|
195
|
-
### All changes
|
|
196
|
-
[`0.3.1...0.4.0`](https://github.com/SAP/less-openui5/compare/0.3.1...0.4.0)
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
## 0.3.1 - 2017-03-28
|
|
200
|
-
|
|
201
|
-
### Fixes
|
|
202
|
-
- Performance workaround: Handle properties directly added to String proto [#12](https://github.com/SAP/less-openui5/pull/12)
|
|
203
|
-
|
|
204
|
-
### All changes
|
|
205
|
-
[`0.3.0...0.3.1`](https://github.com/SAP/less-openui5/compare/0.3.0...0.3.1)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
## 0.3.0 - 2017-03-23
|
|
209
|
-
|
|
210
|
-
### Breaking changes
|
|
211
|
-
- Drop support for Node.js v0.10 [#5](https://github.com/SAP/less-openui5/pull/5)
|
|
212
|
-
- Replace static `build` function with `Builder` class to enable caching of build results [#10](https://github.com/SAP/less-openui5/pull/10)
|
|
213
|
-
- Refactor options to also include input LESS string [#6](https://github.com/SAP/less-openui5/pull/6)
|
|
214
|
-
|
|
215
|
-
### Features
|
|
216
|
-
- Added "lessInputPath" option to provide a path relative to the "rootPaths" [#10](https://github.com/SAP/less-openui5/pull/10)
|
|
217
|
-
- Added diffing and scoping to support Belize contrast areas [#10](https://github.com/SAP/less-openui5/pull/10)
|
|
218
|
-
- Analyze .theming files as theme scope indicators [#10](https://github.com/SAP/less-openui5/pull/10)
|
|
219
|
-
|
|
220
|
-
### All changes
|
|
221
|
-
[`0.2.0...0.3.0`](https://github.com/SAP/less-openui5/compare/0.2.0...0.3.0)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
## 0.2.0 - 2016-03-15
|
|
225
|
-
|
|
226
|
-
### Breaking changes
|
|
227
|
-
- Set default of parser option `relativeUrls` to `true` [`00d892b`](https://github.com/SAP/less-openui5/commit/00d892b95c8c0401b8a61f1b1709dfc4a68cfa26)
|
|
228
|
-
|
|
229
|
-
### Features
|
|
230
|
-
- Include inline theming parameters [`4fa91b9`](https://github.com/SAP/less-openui5/commit/4fa91b997251f44ae3796e9f8396b45327005b13)
|
|
231
|
-
|
|
232
|
-
### All changes
|
|
233
|
-
[`0.1.3...0.2.0`](https://github.com/SAP/less-openui5/compare/0.1.3...0.2.0)
|