1 | # Changes to PostCSS Custom Properties
|
2 |
|
3 | ### 12.1.5 (March 19, 2022)
|
4 |
|
5 | - Add deprecation notice for `importFrom` and `exportTo`
|
6 |
|
7 | [see the discussion](https://github.com/csstools/postcss-plugins/discussions/192)
|
8 |
|
9 | ### 12.1.4 (January 31, 2022)
|
10 |
|
11 | - Fix `.mjs` in `importFrom` when using `export default`
|
12 | - Fix `.mjs` in `importFrom` on Windows
|
13 |
|
14 | ### 12.1.3 (January 17, 2022)
|
15 |
|
16 | - Reset plugin state after each process. It is now safe to use the plugin multiple times for different processes or when watching.
|
17 |
|
18 | ### 12.1.2 (January 12, 2022)
|
19 |
|
20 | - Fix TypeScript transpilation.
|
21 | - Avoid throwing errors on unexpected option objects.
|
22 |
|
23 | ### 12.1.1 (January 12, 2022)
|
24 |
|
25 | - Fix Node 12/14 compatibility
|
26 |
|
27 | ### 12.1.0 (January 12, 2022)
|
28 |
|
29 | - Add `overrideImportFromWithRoot` option
|
30 | - Allow `.mjs` in `importFrom`
|
31 | - Converted to typescript
|
32 | - Correct typings for plugin options
|
33 | - Fix unicode support in custom property names
|
34 |
|
35 | ### 12.0.4 (January 7, 2022)
|
36 |
|
37 | - Fixed an issue that was causing synchronous mode to not being able to pick and transform properties that were added as part of the PostCSS flow. ([#132](https://github.com/csstools/postcss-plugins/issues/132))
|
38 |
|
39 | ### 12.0.2 (January 2, 2022)
|
40 |
|
41 | - Removed Sourcemaps from package tarball.
|
42 | - Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121).
|
43 |
|
44 | ### 12.0.1 (December 16, 2021)
|
45 |
|
46 | - Changed: now uses `postcss-value-parser` for parsing.
|
47 | - Updated: documentation
|
48 |
|
49 | ### 12.0.0 (September 17, 2021)
|
50 |
|
51 | - Updated: Support for PostCS 8+ (major).
|
52 | - Updated: Support for Node 12+ (major).
|
53 |
|
54 | ### 11.0.0 (January 12, 2021)
|
55 |
|
56 | - Added: Support for PostCSS v8.
|
57 |
|
58 | ### 10.0.0 (September 18, 2020)
|
59 |
|
60 | - Fixed: `url-regex` vulnerability ([#228](https://github.com/postcss/postcss-custom-properties/pull/228))
|
61 | - Breaking Change: Node v10+ now required
|
62 |
|
63 | ### 9.2.0 (September 18, 2020)
|
64 |
|
65 | - Added: Export variables to SCSS file ([#212](https://github.com/postcss/postcss-custom-properties/pull/212))
|
66 | - Added: Support for ".pcss" file resolution in `importFrom` ([#211](https://github.com/postcss/postcss-custom-properties/pull/211))
|
67 | - Fixed: Allow combined selectors ([#199](https://github.com/postcss/postcss-custom-properties/pull/199))
|
68 | - Fixed: Bug with spaces and commas in value ([#222](https://github.com/postcss/postcss-custom-properties/pull/222))
|
69 | - Fixed: `importFrom` priority ([#222](https://github.com/postcss/postcss-custom-properties/pull/222))
|
70 |
|
71 | ### 9.1.1 (February 20, 2020)
|
72 |
|
73 | - Fixed: Preserve spaces in multi-part values ([#203](https://github.com/postcss/postcss-custom-properties/pull/203))
|
74 |
|
75 | ### 9.1.0 (July 15, 2019)
|
76 |
|
77 | - Added: Support for preserving trailing comments within a declaration.
|
78 |
|
79 | ### 9.0.2 (July 15, 2019)
|
80 |
|
81 | - Updated: `postcss-values-parser` to 3.0.5 (patch)
|
82 |
|
83 | ### 9.0.1 (June 20, 2019)
|
84 |
|
85 | - Updated: `postcss-values-parser` to 3.0.4 (major)
|
86 | - Updated: Node 8+ compatibility (major)
|
87 |
|
88 | > This release is identical to v9.0.0, only `npm publish` failed to publish v9.0.0 and threw the following error:
|
89 | > ```
|
90 | > You cannot publish over the previously published versions: 9.0.0.
|
91 | > ```
|
92 | > I did not want this issue to distract me, and so I thoughtfully and impatiently published v9.0.0 as v9.0.1.
|
93 |
|
94 | ### 8.0.11 (June 20, 2019)
|
95 |
|
96 | - Added: Synchronous transforms when async is unnecessary (thank @eteeselink)
|
97 | - Fixed: Unexpected mutations to imported Custom Properties (thank @EECOLOR)
|
98 | - Fixed: Transforms throwing over unknown Custom Properties
|
99 |
|
100 | ### 8.0.10 (April 1, 2019)
|
101 |
|
102 | - Added: Support for ignoring lines and or blocks using
|
103 | `postcss-custom-properties` comments.
|
104 | - Updated: `postcss` to 7.0.14 (patch)
|
105 | - Updated: `postcss-values-parser` to 2.0.1 (patch)
|
106 |
|
107 | ### 8.0.9 (November 5, 2018)
|
108 |
|
109 | - Fixed: Issue with duplicate custom property usage within a declaration
|
110 |
|
111 | ### 8.0.8 (October 2, 2018)
|
112 |
|
113 | - Fixed: Issue with nested fallbacks
|
114 |
|
115 | ### 8.0.7 (October 2, 2018)
|
116 |
|
117 | - Fixed: Issue with parsing custom properties that are not strings
|
118 | - Updated: `postcss` to 7.0.5 (patch)
|
119 |
|
120 | ### 8.0.6 (September 21, 2018)
|
121 |
|
122 | - Fixed: Issue with regular `:root` and `html` properties not getting polyfilled
|
123 | - Updated: `postcss` to 7.0.3 (patch)
|
124 |
|
125 | ### 8.0.5 (September 21, 2018)
|
126 |
|
127 | - Fixed: Issue with multiple `importFrom` not getting combined
|
128 |
|
129 | ### 8.0.4 (September 18, 2018)
|
130 |
|
131 | - Fixed: Do not break on an empty `importFrom` object
|
132 |
|
133 | ### 8.0.3 (September 18, 2018)
|
134 |
|
135 | - Updated: PostCSS Values Parser 2
|
136 |
|
137 | ### 8.0.2 (September 17, 2018)
|
138 |
|
139 | - Fixed: Spacing is preserved before replaced variables.
|
140 |
|
141 | ### 8.0.1 (September 17, 2018)
|
142 |
|
143 | - Fixed: Workaround issue in `postcss-values-parser` incorrectly cloning nodes.
|
144 |
|
145 | ### 8.0.0 (September 16, 2018)
|
146 |
|
147 | - Added: New `exportTo` function to specify where to export custom properties to.
|
148 | - Added: New `importFrom` option to specify where to import custom properties from.
|
149 | - Added: Support for variables written within `html`
|
150 | - Added: Support for PostCSS v7.
|
151 | - Added: Support for Node v6+.
|
152 | - Removed: `strict` option, as using the fallback value isn’t necessarily more valid.
|
153 | - Removed: `preserve: "computed"` option, as there seems to be little use in preserving custom property declarations while removing all usages of them.
|
154 | - Removed: `warnings` and `noValueNotifications` options, as this should be the job of a linter tool.
|
155 | - Removed: `variables` option, which is now replaced by `importFrom`
|
156 | - Removed: `appendVariables` option, which is now replaced by `exportTo`
|
157 | - Fixed: Custom Properties in `:root` are not also transformed.
|
158 | - Fixed: Declarations that do not change are not duplicated during preserve.
|
159 |
|
160 | ### 7.0.0 (February 16, 2018)
|
161 |
|
162 | - Changed: `preserve` option defaults as `true` to reflect the browser climate
|
163 | - Changed: `warnings` option defaults to `false` to reflect the browser climate
|
164 |
|
165 | ### 6.3.1 (February 16, 2018)
|
166 |
|
167 | - Reverted: `preserve` and `warnings` option to be added in major release
|
168 |
|
169 | ### 6.3.0 (February 15, 2018)
|
170 |
|
171 | - Fixed: `var()` captures strictly `var()` functions and not `xvar()`, etc
|
172 | - Fixed: `var()` better captures whitespace within the function
|
173 | - Fixed: comments within declarations using `var()` are now preserved
|
174 | - Changed: `preserve` option defaults as `true` to reflect the browser climate
|
175 | - Changed: `warnings` option defaults to `false` to reflect the browser climate
|
176 | - Updated documentation
|
177 |
|
178 | ### 6.2.0 (October 6, 2017)
|
179 |
|
180 | - Added: `noValueNotifications` option (#71)
|
181 | - Fixed: Typo in `prefixedVariables` variable name (#77)
|
182 |
|
183 | ### 6.1.0 (June 28, 2017)
|
184 |
|
185 | - Added: Let "warnings" option silence all warnings
|
186 | ([#67](https://github.com/postcss/postcss-custom-properties/pull/67))
|
187 | - Dependencies update (postcss, balanced-match)
|
188 |
|
189 | ### 6.0.1 (May 15, 2017)
|
190 |
|
191 | - Fixed: incorrect export ([#69](https://github.com/postcss/postcss-custom-properties/issues/69))
|
192 |
|
193 | ### 6.0.0 (May 12, 2017)
|
194 |
|
195 | - Added: compatibility with postcss v6.x
|
196 |
|
197 | ### 5.0.2 (February 1, 2017)
|
198 |
|
199 | - Minor dependency update
|
200 | ([#57](https://github.com/postcss/postcss-custom-properties/pull/57))
|
201 |
|
202 | ### 5.0.1 (April 22, 2016)
|
203 |
|
204 | - Fixed: trailing space after custom property name causes duplicate empty
|
205 | property
|
206 | ([#43](https://github.com/postcss/postcss-custom-properties/pull/43))
|
207 |
|
208 | ### 5.0.0 (August 25, 2015)
|
209 |
|
210 | - Removed: compatibility with postcss v4.x
|
211 | - Added: compatibility with postcss v5.x
|
212 |
|
213 | ### 4.2.0 (July 21, 2015)
|
214 |
|
215 | - Added: `warnings` option allows you to disable warnings.
|
216 | ([cssnext#186](https://github.com/cssnext/cssnext/issues/186))
|
217 |
|
218 | ### 4.1.0 (July 14, 2015)
|
219 |
|
220 | - Added: plugin now returns itself in order to expose a `setVariables` function
|
221 | that allow you to programmatically change the variables.
|
222 | ([#35](https://github.com/postcss/postcss-custom-properties/pull/35))
|
223 |
|
224 | ### 4.0.0 (June 17, 2015)
|
225 |
|
226 | - Changed: messages and exceptions are now sent using postcss message API.
|
227 |
|
228 | ### 3.3.0 (April 8, 2015)
|
229 |
|
230 | - Added: `preserve` now support `"computed"` so only preserve resolved custom properties (see new option below)
|
231 | - Added: `appendVariables` allows you (when `preserve` is truthy) to append your variables as custom properties
|
232 | - Added: `strict: false` allows your to avoid too many fallbacks added in your CSS.
|
233 |
|
234 | ### 3.2.0 (03 31, 2015)
|
235 |
|
236 | - Added: JS defined variables are now resolved too ([#22](https://github.com/postcss/postcss-custom-properties/issues/22))
|
237 |
|
238 | ### 3.1.0 (03 16, 2015)
|
239 |
|
240 | - Added: variables defined in JS are now automatically prefixed with `--`
|
241 | ([0691784](https://github.com/postcss/postcss-custom-properties/commit/0691784ed2218d7e6b16da8c4df03e2ca0c4798c))
|
242 |
|
243 | ### 3.0.1 (February 6, 2015)
|
244 |
|
245 | - Fixed: logs now have filename back ([#19](https://github.com/postcss/postcss-custom-properties/issues/19))
|
246 |
|
247 | ### 3.0.0 (January 20, 2015)
|
248 |
|
249 | - Changed: upgrade to postcss 4 ([#18](https://github.com/postcss/postcss-custom-properties/pull/18))
|
250 | - Removed: some code that seems to be useless ([16ff3c2](https://github.com/postcss/postcss-custom-properties/commit/16ff3c22fe0563a1283411d7866791966fff4c58))
|
251 |
|
252 | ### 2.1.1 (December 2, 2014)
|
253 |
|
254 | - Fixed: issue when multiples undefined custom properties are referenced ([#16](https://github.com/postcss/postcss-custom-properties/issues/16))
|
255 |
|
256 | ### 2.1.0 (November 25, 2014)
|
257 |
|
258 | - Added: enhanced exceptions & messages
|
259 |
|
260 | ### 2.0.0 (November 12, 2014)
|
261 |
|
262 | - Changed: upgrade to postcss 3
|
263 |
|
264 | ### 1.0.2 (November 4, 2014)
|
265 |
|
266 | - Fixed: more clear message for warning about custom prop used in non top-level :root
|
267 |
|
268 | ### 1.0.1 (November 3, 2014)
|
269 |
|
270 | - Fixed: warning about custom prop used in non :root
|
271 |
|
272 | ### 1.0.0 (November 2, 2014)
|
273 |
|
274 | - Added: warning when a custom prop is used in another place than :root
|
275 | - Added: handle !important
|
276 |
|
277 | ### 0.4.0 (September 30, 2014)
|
278 |
|
279 | - Added: JS-defined properties override CSS-defined
|
280 |
|
281 | ### 0.3.1 (August 27, 2014)
|
282 |
|
283 | - Added: nested custom properties usages are now correctly resolved
|
284 | - Changed: undefined var doesn't throw error anymore (just a console warning) & are kept as is in the output
|
285 |
|
286 | ### 0.3.0 (August 26, 2014)
|
287 |
|
288 | - Changed: fallback now are always added by default ([see why](http://www.w3.org/TR/css-variables/#invalid-variables))
|
289 | - Changed: `map` option renamed to `variables`
|
290 |
|
291 | ### 0.2.0 (August 22, 2014)
|
292 |
|
293 | - Added: `map` option
|
294 | - Changed: GNU style error message
|
295 |
|
296 | ### 0.1.0 (August 1, 2014)
|
297 |
|
298 | ✨ First release based on [rework-vars](https://github.com/reworkcss/rework-vars) v3.1.1
|