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