1 | # Change Log
|
2 | This project adheres to [Semantic Versioning](http://semver.org/).
|
3 |
|
4 | ## 7.0.26
|
5 | * Fix TypeScript definition (by Natalie Weizenbaum).
|
6 |
|
7 | ## 7.0.25
|
8 | * Fix absolute path support for Windows (by Tom Raviv).
|
9 |
|
10 | ## 7.0.24
|
11 | * Fix TypeScript definition (by Keith Cirkel).
|
12 |
|
13 | ## 7.0.23
|
14 | * Update `Processor#version`.
|
15 |
|
16 | ## 7.0.22
|
17 | * Add funding link for `npm fund`.
|
18 |
|
19 | ## 7.0.21
|
20 | * Revert passing `nodes` property to node constructor.
|
21 |
|
22 | ## 7.0.20
|
23 | * Allow to pass PostCSS’s nodes in `nodes` property to node constructor.
|
24 |
|
25 | ## 7.0.19
|
26 | * Fix passing `nodes` property to node constructor.
|
27 |
|
28 | ## 7.0.18
|
29 | * Fix TypeScript type definitions (by Jan Buschtöns).
|
30 |
|
31 | ## 7.0.17
|
32 | * Fix TypeScript type definitions (by Bob Matcuk and Jan Buschtöns).
|
33 |
|
34 | ## 7.0.16
|
35 | * Revert Custom Properties fix until PostCSS 8.0.
|
36 |
|
37 | ## 7.0.15
|
38 | * Fix Custom Properties support (by Ivan Solovev).
|
39 |
|
40 | ## 7.0.14
|
41 | * Fix tokenizer for `postcss-less` (by Matt Lyons).
|
42 |
|
43 | ## 7.0.13
|
44 | * Fix parsing regression in 7.0.12 for comments between property and value.
|
45 |
|
46 | ## 7.0.12
|
47 | * Fix parsing broken CSS with two words in declaration property.
|
48 |
|
49 | ## 7.0.11
|
50 | * Fix source maps on declaration semicolon (by Niklas Mischkulnig).
|
51 |
|
52 | ## 7.0.10
|
53 | * Fix source maps (by Niklas Mischkulnig).
|
54 |
|
55 | ## 7.0.9
|
56 | * Increase stringifing performance for non-raws AST.
|
57 |
|
58 | ## 7.0.8
|
59 | * Fix TypeScript definitions (by Ankur Oberoi).
|
60 | * Use `support-colors` 6.0.
|
61 |
|
62 | ## 7.0.7
|
63 | * Extend `Error` in `CssSyntaxError`.
|
64 |
|
65 | ## 7.0.6
|
66 | * Fix parsing files with BOM (by Veniamin Krol).
|
67 |
|
68 | ## 7.0.5
|
69 | * Reduce npm package size (by Gilad Peleg).
|
70 |
|
71 | ## 7.0.4
|
72 | * Fix safe parser regression.
|
73 |
|
74 | ## 7.0.3
|
75 | * Fix tokenizer extendability (by Andrew Powell).
|
76 | * Reduce npm package size.
|
77 |
|
78 | ## 7.0.2
|
79 | * Fix warning text (by Rui Pedro M Lima).
|
80 |
|
81 | ## 7.0.1
|
82 | * Fix JSDoc (by Steven Lambert).
|
83 |
|
84 | ## 7.0 “President Amy”
|
85 | * Remove Node.js 9 and Node.js 4 support.
|
86 | * Remove IE and “dead” browsers support for client-side Babel transpiling.
|
87 | * Add CSS position on error happened inside `walk()` (by Nikhil Gaba).
|
88 | * Add `LazyResult#finally` (by Igor Kamyshev).
|
89 | * Add warning on calling PostCSS without plugins and syntax options.
|
90 | * Reduce client-side size.
|
91 |
|
92 | ## 6.0.23
|
93 | * Fix parsing nested at-rules without semicolon, params, and spaces.
|
94 | * Fix docs (by Kevin Schiffer and Pat Cavit).
|
95 |
|
96 | ## 6.0.22
|
97 | * Fix `Node#prev` and `Node#next` on missed parent.
|
98 |
|
99 | ## 6.0.21
|
100 | * Rename Chinese docs to fix `yarnpkg.com` issue.
|
101 |
|
102 | ## 6.0.20
|
103 | * Better error message on `null` as input CSS.
|
104 |
|
105 | ## 6.0.19
|
106 | * Fix TypeScript definitions for source maps (by Oleh Kuchuk).
|
107 | * Fix `source` field in TypeScript definitions (by Sylvain Pollet-Villard).
|
108 |
|
109 | ## 6.0.18
|
110 | * Use primitive object in TypeScript definitions (by Sylvain Pollet-Villard).
|
111 |
|
112 | ## 6.0.17
|
113 | * Fix parsing comment in selector between word tokens (by Oleh Kuchuk).
|
114 |
|
115 | ## 6.0.16
|
116 | * Fix warning text (by Michael Keller).
|
117 |
|
118 | ## 6.0.15
|
119 | * Add warning about missed `from` option on `process().then()` call.
|
120 | * Add IE 10 support.
|
121 |
|
122 | ## 6.0.14
|
123 | * Fix TypeScript definitions (by Jed Mao).
|
124 |
|
125 | ## 6.0.13
|
126 | * Fix TypeScript definitions for case of multiple PostCSS versions
|
127 | in `node_modules` (by Chris Eppstein).
|
128 | * Use `source-map` 0.6.
|
129 |
|
130 | ## 6.0.12
|
131 | * Don’t copy `*` hack to declaration indent.
|
132 |
|
133 | ## 6.0.11
|
134 | * Add upper case `!IMPORTANT` support.
|
135 |
|
136 | ## 6.0.10
|
137 | * Reduce PostCSS size in webpack bundle.
|
138 |
|
139 | ## 6.0.9
|
140 | * Improve error message for plugin with old PostCSS (by Igor Adamenko).
|
141 |
|
142 | ## 6.0.8
|
143 | * Fix Node.js 4.2.2 support.
|
144 |
|
145 | ## 6.0.7
|
146 | * Fix base64 decoding for old Node.js and browser.
|
147 |
|
148 | ## 6.0.6
|
149 | * Fix `end` position in at-rule without semicolon (by Oleh Kuchuk).
|
150 |
|
151 | ## 6.0.5
|
152 | * Move Babel config from `package.json` for `node_modules` compiling cases.
|
153 |
|
154 | ## 6.0.4
|
155 | * Fix parsing `;;` after rules.
|
156 | * Use Chalk 2.0.
|
157 |
|
158 | ## 6.0.3
|
159 | * Fix escape sequences parsing (by Oleh Kuchuk).
|
160 | * Added ability to force disable colors with an environment variable.
|
161 | * Improved color detection of some terminal apps.
|
162 |
|
163 | ## 6.0.2
|
164 | * Keep `raws.before` on moving `Root` children to new `Root`.
|
165 |
|
166 | ## 6.0.1
|
167 | * Fix parser extensibility to use it in Safe Parser.
|
168 |
|
169 | ## 6.0 “Marquis Orias”
|
170 | * Remove node.js 0.12 support.
|
171 | * Remove deprecated method from PostCSS 4.
|
172 | * Insert methods remove child from previous parent, instead of closing.
|
173 | * Insert methods and cloning doesn’t clean `raws` anymore.
|
174 | * Methods `moveTo`, `moveAfter`, `moveBefore` were deprecated.
|
175 | * Options was changed in `Plugin#process(css, processOptions, pluginOptions)`.
|
176 | * Add stream parser to reduce memory usage (by Oleh Kuchuk).
|
177 | * Add `before()`/`after()` shortcuts for `node.parent.insertBefore(node, x)`.
|
178 | * Add `Rule#raws.ownSemicolon` for semicolon after templates for `@apply`.
|
179 | * Use `babel-preset-env` to compile npm package.
|
180 | * Remove `js-base64` from dependencies (by Roman Dvornov).
|
181 | * Fix error message on single `:` in CSS.
|
182 | * Move tests to Jest.
|
183 | * Clean up test (by Gabriel Kalani).
|
184 |
|
185 | ## 5.2.18
|
186 | * Fix TypeScript definitions for case of multiple PostCSS versions
|
187 | in `node_modules` (by Chris Eppstein).
|
188 |
|
189 | ## 5.2.17
|
190 | * Add `postcss-sass` suggestion to syntax error on `.sass` input.
|
191 |
|
192 | ## 5.2.16
|
193 | * Better error on wrong argument in node constructor.
|
194 |
|
195 | ## 5.2.15
|
196 | * Fix TypeScript definitions (by bumbleblym).
|
197 |
|
198 | ## 5.2.14
|
199 | * Fix browser bundle building in webpack (by janschoenherr).
|
200 |
|
201 | ## 5.2.13
|
202 | * Do not add comment to important raws.
|
203 | * Fix JSDoc (by Dmitry Semigradsky).
|
204 |
|
205 | ## 5.2.12
|
206 | * Fix typo in deprecation message (by Garet McKinley).
|
207 |
|
208 | ## 5.2.11
|
209 | * Fix TypeScript definitions (by Jed Mao).
|
210 |
|
211 | ## 5.2.10
|
212 | * Fix TypeScript definitions (by Jed Mao).
|
213 |
|
214 | ## 5.2.9
|
215 | * Update TypeScript definitions (by Jed Mao).
|
216 |
|
217 | ## 5.2.8
|
218 | * Fix error message (by Ben Briggs).
|
219 |
|
220 | ## 5.2.7
|
221 | * Better error message on syntax object in plugins list.
|
222 |
|
223 | ## 5.2.6
|
224 | * Fix `postcss.vendor` for values with spaces (by 刘祺).
|
225 |
|
226 | ## 5.2.5
|
227 | * Better error message on unclosed string (by Ben Briggs).
|
228 |
|
229 | ## 5.2.4
|
230 | * Improve terminal CSS syntax highlight (by Simon Lydell).
|
231 |
|
232 | ## 5.2.3
|
233 | * Better color highlight in syntax error code frame.
|
234 | * Fix color highlight support in old systems.
|
235 |
|
236 | ## 5.2.2
|
237 | * Update `Processor#version`.
|
238 |
|
239 | ## 5.2.1
|
240 | * Fix source map path for CSS without `from` option (by Michele Locati).
|
241 |
|
242 | ## 5.2 “Duke Vapula”
|
243 | * Add syntax highlight to code frame in syntax error (by Andrey Popp).
|
244 | * Use Babel code frame style and size in syntax error.
|
245 | * Add `[` and `]` tokens to parse `[attr=;] {}` correctly.
|
246 | * Add `ignoreErrors` options to tokenizer (by Andrey Popp).
|
247 | * Fix error position on tab indent (by Simon Lydell).
|
248 |
|
249 | ## 5.1.2
|
250 | * Suggests SCSS/Less parsers on parse errors depends on file extension.
|
251 |
|
252 | ## 5.1.1
|
253 | * Fix TypeScript definitions (by Efremov Alexey).
|
254 |
|
255 | ## 5.1 “King and President Zagan”
|
256 | * Add URI in source map support (by Mark Finger).
|
257 | * Add `map.from` option (by Mark Finger).
|
258 | * Add `<no source>` mappings for nodes without source (by Bogdan Chadkin).
|
259 | * Add function value support to `map.prev` option (by Chris Montoro).
|
260 | * Add declaration value type check in shortcut creating (by 刘祺).
|
261 | * `Result#warn` now returns new created warning.
|
262 | * Don’t call plugin creator in `postcss.plugin` call.
|
263 | * Add source maps to PostCSS ES5 build.
|
264 | * Add JSDoc to PostCSS classes.
|
265 | * Clean npm package from unnecessary docs.
|
266 |
|
267 | ## 5.0.21
|
268 | * Fix support with input source mao with `utf8` encoding name.
|
269 |
|
270 | ## 5.0.20
|
271 | * Fix between raw value parsing (by David Clark).
|
272 | * Update TypeScript definitions (by Jed Mao).
|
273 | * Clean fake node.source after `append(string)`.
|
274 |
|
275 | ## 5.0.19
|
276 | * Fix indent-based syntaxes support.
|
277 |
|
278 | ## 5.0.18
|
279 | * Parse new lines according W3C CSS syntax specification.
|
280 |
|
281 | ## 5.0.17
|
282 | * Fix options argument in `Node#warn` (by Ben Briggs).
|
283 | * Fix TypeScript definitions (by Jed Mao).
|
284 |
|
285 | ## 5.0.16
|
286 | * Fix CSS syntax error position on unclosed quotes.
|
287 |
|
288 | ## 5.0.15
|
289 | * Fix `Node#clone()` on `null` value somewhere in node.
|
290 |
|
291 | ## 5.0.14
|
292 | * Allow to use PostCSS in webpack bundle without JSON loader.
|
293 |
|
294 | ## 5.0.13
|
295 | * Fix `index` and `word` options in `Warning#toString` (by Bogdan Chadkin).
|
296 | * Fix input source content loading in errors.
|
297 | * Fix map options on using `LazyResult` as input CSS.
|
298 | * 100% test coverage.
|
299 | * Use Babel 6.
|
300 |
|
301 | ## 5.0.12
|
302 | * Allow passing a previous map with no mappings (by Andreas Lind).
|
303 |
|
304 | ## 5.0.11
|
305 | * Increase plugins performance by 1.5 times.
|
306 |
|
307 | ## 5.0.10
|
308 | * Fix warning from nodes without source.
|
309 |
|
310 | ## 5.0.9
|
311 | * Fix source map type detection (by @asan).
|
312 |
|
313 | ## 5.0.8
|
314 | * Fixed a missed step in `5.0.7` that caused the module to be published as
|
315 | ES6 code.
|
316 |
|
317 | ## 5.0.7
|
318 | * PostCSS now requires that node 0.12 is installed via the engines property
|
319 | in package.json (by Howard Zuo).
|
320 |
|
321 | ## 5.0.6
|
322 | * Fix parsing nested at-rule without semicolon (by Matt Drake).
|
323 | * Trim `Declaration#value` (by Bogdan Chadkin).
|
324 |
|
325 | ## 5.0.5
|
326 | * Fix multi-tokens property parsing (by Matt Drake).
|
327 |
|
328 | ## 5.0.4
|
329 | * Fix start position in `Root#source`.
|
330 | * Fix source map annotation, when CSS uses `\r\n` (by Mohammad Younes).
|
331 |
|
332 | ## 5.0.3
|
333 | * Fix `url()` parsing.
|
334 | * Fix using `selectors` in `Rule` constructor.
|
335 | * Add start source to `Root` node.
|
336 |
|
337 | ## 5.0.2
|
338 | * Fix `remove(index)` to be compatible with 4.x plugin.
|
339 |
|
340 | ## 5.0.1
|
341 | * Fix PostCSS 4.x plugins compatibility.
|
342 | * Fix type definition loading (by Jed Mao).
|
343 |
|
344 | ## 5.0 “President Valac”
|
345 | * Remove `safe` option. Move Safe Parser to separate project.
|
346 | * `Node#toString` does not include `before` for root nodes.
|
347 | * Remove plugin returning `Root` API.
|
348 | * Remove Promise polyfill for node.js 0.10.
|
349 | * Deprecate `eachInside`, `eachDecl`, `eachRule`, `eachAtRule` and `eachComment`
|
350 | in favor of `walk`, `walkDecls`, `walkRules`, `walkAtRules` and `walkComments`
|
351 | (by Jed Mao).
|
352 | * Deprecate `Container#remove` and `Node#removeSelf`
|
353 | in favor of `Container#removeChild` and `Node#remove` (by Ben Briggs).
|
354 | * Deprecate `Node#replace` in favor of `replaceWith` (by Ben Briggs).
|
355 | * Deprecate raw properties in favor of `Node#raws` object.
|
356 | * Deprecate `Node#style` in favor of `raw`.
|
357 | * Deprecate `CssSyntaxError#generated` in favor of `input`.
|
358 | * Deprecate `Node#cleanStyles` in favor of `cleanRaws`.
|
359 | * Deprecate `Root#prevMap` in favor of `Root.source.input.map`.
|
360 | * Add `syntax`, `parser` and `stringifier` options for Custom Syntaxes.
|
361 | * Add stringifier option to `Node#toString`.
|
362 | * Add `Result#content` alias for non-CSS syntaxes.
|
363 | * Add `plugin.process(css)` shortcut to every plugin function (by Ben Briggs).
|
364 | * Add multiple nodes support to insert methods (by Jonathan Neal).
|
365 | * Add `Node#warn` shortcut (by Ben Briggs).
|
366 | * Add `word` and `index` options to errors and warnings (by David Clark).
|
367 | * Add `line`, `column` properties to `Warning`.
|
368 | * Use `supports-color` library to detect color support in error output.
|
369 | * Add type definitions for TypeScript plugin developers (by Jed Mao).
|
370 | * `Rule#selectors` setter detects separators.
|
371 | * Add `postcss.stringify` method.
|
372 | * Throw descriptive errors for incorrectly formatted plugins.
|
373 | * Add docs to npm release.
|
374 | * Fix `url()` parsing.
|
375 | * Fix Windows support (by Jed Mao).
|
376 |
|
377 | ## 4.1.16
|
378 | * Fix errors without stack trace.
|
379 |
|
380 | ## 4.1.15
|
381 | * Allow asynchronous plugins to change processor plugins list (by Ben Briggs).
|
382 |
|
383 | ## 4.1.14
|
384 | * Fix for plugins packs defined by `postcss.plugin`.
|
385 |
|
386 | ## 4.1.13
|
387 | * Fix input inlined source maps with UTF-8 encoding.
|
388 |
|
389 | ## 4.1.12
|
390 | * Update Promise polyfill.
|
391 |
|
392 | ## 4.1.11
|
393 | * Fix error message on wrong plugin format.
|
394 |
|
395 | ## 4.1.10
|
396 | * Fix Promise behavior on sync plugin errors.
|
397 | * Automatically fill `plugin` field in `CssSyntaxError`.
|
398 | * Fix warning message (by Ben Briggs).
|
399 |
|
400 | ## 4.1.9
|
401 | * Speed up `node.clone()`.
|
402 |
|
403 | ## 4.1.8
|
404 | * Accepts `Processor` instance in `postcss()` constructor too.
|
405 |
|
406 | ## 4.1.7
|
407 | * Speed up `postcss.list` (by Bogdan Chadkin).
|
408 |
|
409 | ## 4.1.6
|
410 | * Fix Promise behavior on parsing error.
|
411 |
|
412 | ## 4.1.5
|
413 | * Parse at-words in declaration values.
|
414 |
|
415 | ## 4.1.4
|
416 | * Fix Promise polyfill dependency (by Anton Yakushev and Matija Marohnić).
|
417 |
|
418 | ## 4.1.3
|
419 | * Add Promise polyfill for node.js 0.10 and IE.
|
420 |
|
421 | ## 4.1.2
|
422 | * List helpers can be accessed independently `var space = postcss.list.space`.
|
423 |
|
424 | ## 4.1.1
|
425 | * Show deprecated message only once.
|
426 |
|
427 | ## 4.1 “Marquis Andras”
|
428 | * Asynchronous plugin support.
|
429 | * Add warnings from plugins and `Result#messages`.
|
430 | * Add `postcss.plugin()` to create plugins with a standard API.
|
431 | * Insert nodes by CSS string.
|
432 | * Show version warning message on error from an outdated plugin.
|
433 | * Send `Result` instance to plugins as the second argument.
|
434 | * Add `CssSyntaxError#plugin`.
|
435 | * Add `CssSyntaxError#showSourceCode()`.
|
436 | * Add `postcss.list` and `postcss.vendor` aliases.
|
437 | * Add `Processor#version`.
|
438 | * Parse wrong closing bracket.
|
439 | * Parse `!important` statement with spaces and comments inside (by Ben Briggs).
|
440 | * Throw an error on declaration without `prop` or `value` (by Philip Peterson).
|
441 | * Fix source map mappings position.
|
442 | * Add indexed source map support.
|
443 | * Always set `error.generated`.
|
444 | * Clean all source map annotation comments.
|
445 |
|
446 | ## 4.0.6
|
447 | * Remove `babel` from released package dependencies (by Andres Suarez).
|
448 |
|
449 | ## 4.0.5
|
450 | * Fix error message on double colon in declaration.
|
451 |
|
452 | ## 4.0.4
|
453 | * Fix indent detection in some rare cases.
|
454 |
|
455 | ## 4.0.3
|
456 | * Faster API with 6to5 Loose mode.
|
457 | * Fix indexed source maps support.
|
458 |
|
459 | ## 4.0.2
|
460 | * Do not copy IE hacks to code style.
|
461 |
|
462 | ## 4.0.1
|
463 | * Add `source.input` to `Root` too.
|
464 |
|
465 | ## 4.0 “Duke Flauros”
|
466 | * Rename `Container#childs` to `nodes`.
|
467 | * Rename `PostCSS#processors` to `plugins`.
|
468 | * Add `Node#replaceValues()` method.
|
469 | * Add `Node#moveTo()`, `moveBefore()` and `moveAfter()` methods.
|
470 | * Add `Node#cloneBefore()` and `cloneAfter()` shortcuts.
|
471 | * Add `Node#next()`, `prev()` and `root()` shortcuts.
|
472 | * Add `Node#replaceWith()` method.
|
473 | * Add `Node#error()` method.
|
474 | * Add `Container#removeAll()` method.
|
475 | * Add filter argument to `eachDecl()` and `eachAtRule()`.
|
476 | * Add `Node#source.input` and move `source.file` or `source.id` to `input`.
|
477 | * Change code indent, when node was moved.
|
478 | * Better fix code style on `Rule`, `AtRule` and `Comment` nodes changes.
|
479 | * Allow to create rules and at-rules by hash shortcut in append methods.
|
480 | * Add class name to CSS syntax error output.
|
481 |
|
482 | ## 3.0.7
|
483 | * Fix IE filter parsing with multiple commands.
|
484 | * Safer way to consume PostCSS object as plugin (by Maxime Thirouin).
|
485 |
|
486 | ## 3.0.6
|
487 | * Fix missing semicolon when comment comes after last declaration.
|
488 | * Fix Safe Mode declaration parsing on unclosed blocks.
|
489 |
|
490 | ## 3.0.5
|
491 | * Fix parser to support difficult cases with backslash escape and brackets.
|
492 | * Add `CssSyntaxError#stack` (by Maxime Thirouin).
|
493 |
|
494 | ## 3.0.4
|
495 | * Fix Safe Mode on unknown word before declaration.
|
496 |
|
497 | ## 3.0.3
|
498 | * Increase tokenizer speed (by Roman Dvornov).
|
499 |
|
500 | ## 3.0.2
|
501 | * Fix empty comment parsing.
|
502 | * Fix `Root#normalize` in some inserts.
|
503 |
|
504 | ## 3.0.1
|
505 | * Fix Rhino JS runtime support.
|
506 | * Typo in deprecated warning (by Maxime Thirouin).
|
507 |
|
508 | ## 3.0 “Marquis Andrealphus”
|
509 | * New parser, which become the fastest ever CSS parser written in JavaScript.
|
510 | * Parser can now parse declarations and rules in one parent (like in `@page`)
|
511 | and nested declarations for plugins like `postcss-nested`.
|
512 | * Child nodes array is now in `childs` property, instead of `decls` and `rules`.
|
513 | * `map.inline` and `map.sourcesContent` options are now `true` by default.
|
514 | * Fix iterators (`each`, `insertAfter`) on children array changes.
|
515 | * Use previous source map to show origin source of CSS syntax error.
|
516 | * Use 6to5 ES6 compiler, instead of ES6 Transpiler.
|
517 | * Use code style for manually added rules from existing rules.
|
518 | * Use `from` option from previous source map `file` field.
|
519 | * Set `to` value to `from` if `to` option is missing.
|
520 | * Use better node source name when missing `from` option.
|
521 | * Show a syntax error when `;` is missed between declarations.
|
522 | * Allow to pass `PostCSS` instance or list of plugins to `use()` method.
|
523 | * Allow to pass `Result` instance to `process()` method.
|
524 | * Trim Unicode BOM on source maps parsing.
|
525 | * Parse at-rules without spaces like `@import"file"`.
|
526 | * Better previous `sourceMappingURL` annotation comment cleaning.
|
527 | * Do not remove previous `sourceMappingURL` comment on `map.annotation: false`.
|
528 | * Parse nameless at-rules in Safe Mode.
|
529 | * Fix source map generation for nodes without source.
|
530 | * Fix next child `before` if `Root` first child got removed.
|
531 |
|
532 | ## 2.2.6
|
533 | * Fix map generation for nodes without source (by Josiah Savary).
|
534 |
|
535 | ## 2.2.5
|
536 | * Fix source map with BOM marker support (by Mohammad Younes).
|
537 | * Fix source map paths (by Mohammad Younes).
|
538 |
|
539 | ## 2.2.4
|
540 | * Fix `prepend()` on empty `Root`.
|
541 |
|
542 | ## 2.2.3
|
543 | * Allow to use object shortcut in `use()` with functions like `autoprefixer`.
|
544 |
|
545 | ## 2.2.2
|
546 | * Add shortcut to set processors in `use()` via object with `.postcss` property.
|
547 |
|
548 | ## 2.2.1
|
549 | * Send `opts` from `Processor#process(css, opts)` to processors.
|
550 |
|
551 | ## 2.2 “Marquis Cimeies”
|
552 | * Use GNU style syntax error messages.
|
553 | * Add `Node#replace` method.
|
554 | * Add `CssSyntaxError#reason` property.
|
555 |
|
556 | ## 2.1.2
|
557 | * Fix UTF-8 support in inline source map.
|
558 | * Fix source map `sourcesContent` if there is no `from` and `to` options.
|
559 |
|
560 | ## 2.1.1
|
561 | * Allow to miss `to` and `from` options for inline source maps.
|
562 | * Add `Node#source.id` if file name is unknown.
|
563 | * Better detect splitter between rules in CSS concatenation tools.
|
564 | * Automatically clone node in insert methods.
|
565 |
|
566 | ## 2.1 “King Amdusias”
|
567 | * Change Traceur ES6 compiler to ES6 Transpiler.
|
568 | * Show broken CSS line in syntax error.
|
569 |
|
570 | ## 2.0 “King Belial”
|
571 | * Project was rewritten from CoffeeScript to ES6.
|
572 | * Add Safe Mode to works with live input or with hacks from legacy code.
|
573 | * More safer parser to pass all hacks from Browserhacks.com.
|
574 | * Use real properties instead of magic getter/setter for raw properties.
|
575 |
|
576 | ## 1.0 “Marquis Decarabia”
|
577 | * Save previous source map for each node to support CSS concatenation
|
578 | with multiple previous maps.
|
579 | * Add `map.sourcesContent` option to add origin content to `sourcesContent`
|
580 | inside map.
|
581 | * Allow to set different place of output map in annotation comment.
|
582 | * Allow to use arrays and `Root` in `Container#append` and same methods.
|
583 | * Add `Root#prevMap` with information about previous map.
|
584 | * Allow to use latest PostCSS from GitHub by npm.
|
585 | * `Result` now is lazy and it will generate output CSS only if you use `css`
|
586 | or `map` property.
|
587 | * Use separated `map.prev` option to set previous map.
|
588 | * Rename `inlineMap` option to `map.inline`.
|
589 | * Rename `mapAnnotation` option to `map.annotation`.
|
590 | * `Result#map` now return `SourceMapGenerator` object, instead of string.
|
591 | * Run previous map autodetect only if input CSS contains annotation comment.
|
592 | * Add `map: 'inline'` shortcut for `map: { inline: true }` option.
|
593 | * `Node#source.file` now will contains absolute path.
|
594 | * Clean `Declaration#between` style on node clone.
|
595 |
|
596 | ## 0.3.5
|
597 | * Allow to use `Root` or `Result` as first argument in `process()`.
|
598 | * Save parsed AST to `Result#root`.
|
599 |
|
600 | ## 0.3.4
|
601 | * Better space symbol detect to read UTF-8 BOM correctly.
|
602 |
|
603 | ## 0.3.3
|
604 | * Remove source map hacks by using new Mozilla’s `source-map` (by Simon Lydell).
|
605 |
|
606 | ## 0.3.2
|
607 | * Add URI encoding support for inline source maps.
|
608 |
|
609 | ## 0.3.1
|
610 | * Fix relative paths from previous source map.
|
611 | * Safer space split in `Rule#selectors` (by Simon Lydell).
|
612 |
|
613 | ## 0.3 “Prince Seere”
|
614 | * Add `Comment` node for comments between declarations or rules.
|
615 | * Add source map annotation comment to output CSS.
|
616 | * Allow to inline source map to annotation comment by data:uri.
|
617 | * Fix source maps on Windows.
|
618 | * Fix source maps for subdirectory (by Dmitry Nikitenko and Simon Lydell).
|
619 | * Autodetect previous source map.
|
620 | * Add `first` and `last` shortcuts to container nodes.
|
621 | * Parse `!important` to separated property in `Declaration`.
|
622 | * Allow to break iteration by returning `false`.
|
623 | * Copy code style to new nodes.
|
624 | * Add `eachInside` method to recursively iterate all nodes.
|
625 | * Add `selectors` shortcut to get selectors array.
|
626 | * Add `toResult` method to `Rule` to simplify work with several input files.
|
627 | * Clean declaration’s `value`, rule’s `selector` and at-rule’s `params`
|
628 | by storing spaces in `between` property.
|
629 |
|
630 | ## 0.2 “Duke Dantalion”
|
631 | * Add source map support.
|
632 | * Add shortcuts to create nodes.
|
633 | * Method `process()` now returns object with `css` and `map` keys.
|
634 | * Origin CSS file option was renamed from `file` to `from`.
|
635 | * Rename `Node#remove()` method to `removeSelf()` to fix name conflict.
|
636 | * Node source was moved to `source` property with origin file
|
637 | and node end position.
|
638 | * You can set own CSS generate function.
|
639 |
|
640 | ## 0.1 “Count Andromalius”
|
641 | * Initial release.
|