Initial commit
[yaffs-website] / node_modules / postcss / CHANGELOG.md
1 # Change Log
2 This project adheres to [Semantic Versioning](http://semver.org/).
3
4 ## 5.2.16
5 * Better error on wrong argument in node constructor.
6
7 ## 5.2.15
8 * Fix TypeScript definitions (by bumbleblym).
9
10 ## 5.2.14
11 * Fix browser bundle building in webpack (by janschoenherr).
12
13 ## 5.2.13
14 * Do not add comment to important raws.
15 * Fix JSDoc (by Dmitry Semigradsky).
16
17 ## 5.2.12
18 * Fix typo in deprecation message (by Garet McKinley).
19
20 ## 5.2.11
21 * Fix TypeScript definitions (by Jed Mao).
22
23 ## 5.2.10
24 * Fix TypeScript definitions (by Jed Mao).
25
26 ## 5.2.9
27 * Update TypeScript definitions (by Jed Mao).
28
29 ## 5.2.8
30 * Fix error message (by Ben Briggs).
31
32 ## 5.2.7
33 * Better error message on syntax object in plugins list.
34
35 ## 5.2.6
36 * Fix `postcss.vendor` for values with spaces (by 刘祺).
37
38 ## 5.2.5
39 * Better error message on unclosed string (by Ben Briggs).
40
41 ## 5.2.4
42 * Improve terminal CSS syntax highlight (by Simon Lydell).
43
44 ## 5.2.3
45 * Better color highlight in syntax error code frame.
46 * Fix color highlight support in old systems.
47
48 ## 5.2.2
49 * Update `Processor#version`.
50
51 ## 5.2.1
52 * Fix source map path for CSS without `from` option (by Michele Locati).
53
54 ## 5.2 “Duke Vapula”
55 * Add syntax highlight to code frame in syntax error (by Andrey Popp).
56 * Use Babel code frame style and size in syntax error.
57 * Add `[` and `]` tokens to parse `[attr=;] {}` correctly.
58 * Add `ignoreErrors` options to tokenizer (by Andrey Popp).
59 * Fix error position on tab indent (by Simon Lydell).
60
61 ## 5.1.2
62 * Suggests SCSS/Less parsers on parse errors depends on file extension.
63
64 ## 5.1.1
65 * Fix TypeScript definitions (by Efremov Alexey).
66
67 ## 5.1 “King and President Zagan”
68 * Add URI in source map support (by Mark Finger).
69 * Add `map.from` option (by Mark Finger).
70 * Add `<no source>` mappings for nodes without source (by Bogdan Chadkin).
71 * Add function value support to `map.prev` option (by Chris Montoro).
72 * Add declaration value type check in shortcut creating (by 刘祺).
73 * `Result#warn` now returns new created warning.
74 * Don’t call plugin creator in `postcss.plugin` call.
75 * Add source maps to PostCSS ES5 build.
76 * Add JSDoc to PostCSS classes.
77 * Clean npm package from unnecessary docs.
78
79 ## 5.0.21
80 * Fix support with input source mao with `utf8` encoding name.
81
82 ## 5.0.20
83 * Fix between raw value parsing (by David Clark).
84 * Update TypeScript definitions (by Jed Mao).
85 * Clean fake node.source after `append(string)`.
86
87 ## 5.0.19
88 * Fix indent-based syntaxes support.
89
90 ## 5.0.18
91 * Parse new lines according W3C CSS syntax specification.
92
93 ## 5.0.17
94 * Fix options argument in `Node#warn` (by Ben Briggs).
95 * Fix TypeScript definitions (by Jed Mao).
96
97 ## 5.0.16
98 * Fix CSS syntax error position on unclosed quotes.
99
100 ## 5.0.15
101 * Fix `Node#clone()` on `null` value somewhere in node.
102
103 ## 5.0.14
104 * Allow to use PostCSS in webpack bundle without JSON loader.
105
106 ## 5.0.13
107 * Fix `index` and `word` options in `Warning#toString` (by Bogdan Chadkin).
108 * Fix input source content loading in errors.
109 * Fix map options on using `LazyResult` as input CSS.
110 * 100% test coverage.
111 * Use Babel 6.
112
113 ## 5.0.12
114 * Allow passing a previous map with no mappings (by Andreas Lind).
115
116 ## 5.0.11
117 * Increase plugins performance by 1.5 times.
118
119 ## 5.0.10
120 * Fix warning from nodes without source.
121
122 ## 5.0.9
123 * Fix source map type detection (by @asan).
124
125 ## 5.0.8
126 * Fixed a missed step in `5.0.7` that caused the module to be published as
127   ES6 code.
128
129 ## 5.0.7
130 * PostCSS now requires that node 0.12 is installed via the engines property
131   in package.json (by Howard Zuo).
132
133 ## 5.0.6
134 * Fix parsing nested at-rule without semicolon (by Matt Drake).
135 * Trim `Declaration#value` (by Bogdan Chadkin).
136
137 ## 5.0.5
138 * Fix multi-tokens property parsing (by Matt Drake).
139
140 ## 5.0.4
141 * Fix start position in `Root#source`.
142 * Fix source map annotation, when CSS uses `\r\n` (by Mohammad Younes).
143
144 ## 5.0.3
145 * Fix `url()` parsing.
146 * Fix using `selectors` in `Rule` constructor.
147 * Add start source to `Root` node.
148
149 ## 5.0.2
150 * Fix `remove(index)` to be compatible with 4.x plugin.
151
152 ## 5.0.1
153 * Fix PostCSS 4.x plugins compatibility.
154 * Fix type definition loading (by Jed Mao).
155
156 ## 5.0 “President Valac”
157 * Remove `safe` option. Move Safe Parser to separate project.
158 * `Node#toString` does not include `before` for root nodes.
159 * Remove plugin returning `Root` API.
160 * Remove Promise polyfill for node.js 0.10.
161 * Deprecate `eachInside`, `eachDecl`, `eachRule`, `eachAtRule` and `eachComment`
162   in favor of `walk`, `walkDecls`, `walkRules`, `walkAtRules` and `walkComments`
163   (by Jed Mao).
164 * Deprecate `Container#remove` and `Node#removeSelf`
165   in favor of `Container#removeChild` and `Node#remove` (by Ben Briggs).
166 * Deprecate `Node#replace` in favor of `replaceWith` (by Ben Briggs).
167 * Deprecate raw properties in favor of `Node#raws` object.
168 * Deprecate `Node#style` in favor of `raw`.
169 * Deprecate `CssSyntaxError#generated` in favor of `input`.
170 * Deprecate `Node#cleanStyles` in favor of `cleanRaws`.
171 * Deprecate `Root#prevMap` in favor of `Root.source.input.map`.
172 * Add `syntax`, `parser` and `stringifier` options for Custom Syntaxes.
173 * Add stringifier option to `Node#toString`.
174 * Add `Result#content` alias for non-CSS syntaxes.
175 * Add `plugin.process(css)` shortcut to every plugin function (by Ben Briggs).
176 * Add multiple nodes support to insert methods (by Jonathan Neal).
177 * Add `Node#warn` shortcut (by Ben Briggs).
178 * Add `word` and `index` options to errors and warnings (by David Clark).
179 * Add `line`, `column` properties to `Warning`.
180 * Use `supports-color` library to detect color support in error output.
181 * Add type definitions for TypeScript plugin developers (by Jed Mao).
182 * `Rule#selectors` setter detects separators.
183 * Add `postcss.stringify` method.
184 * Throw descriptive errors for incorrectly formatted plugins.
185 * Add docs to npm release.
186 * Fix `url()` parsing.
187 * Fix Windows support (by Jed Mao).
188
189 ## 4.1.16
190 * Fix errors without stack trace.
191
192 ## 4.1.15
193 * Allow asynchronous plugins to change processor plugins list (by Ben Briggs).
194
195 ## 4.1.14
196 * Fix for plugins packs defined by `postcss.plugin`.
197
198 ## 4.1.13
199 * Fix input inlined source maps with UTF-8 encoding.
200
201 ## 4.1.12
202 * Update Promise polyfill.
203
204 ## 4.1.11
205 * Fix error message on wrong plugin format.
206
207 ## 4.1.10
208 * Fix Promise behavior on sync plugin errors.
209 * Automatically fill `plugin` field in `CssSyntaxError`.
210 * Fix warning message (by Ben Briggs).
211
212 ## 4.1.9
213 * Speed up `node.clone()`.
214
215 ## 4.1.8
216 * Accepts `Processor` instance in `postcss()` constructor too.
217
218 ## 4.1.7
219 * Speed up `postcss.list` (by Bogdan Chadkin).
220
221 ## 4.1.6
222 * Fix Promise behavior on parsing error.
223
224 ## 4.1.5
225 * Parse at-words in declaration values.
226
227 ## 4.1.4
228 * Fix Promise polyfill dependency (by Anton Yakushev and Matija Marohnić).
229
230 ## 4.1.3
231 * Add Promise polyfill for node.js 0.10 and IE.
232
233 ## 4.1.2
234 * List helpers can be accessed independently `var space = postcss.list.space`.
235
236 ## 4.1.1
237 * Show deprecated message only once.
238
239 ## 4.1 “Marquis Andras”
240 * Asynchronous plugin support.
241 * Add warnings from plugins and `Result#messages`.
242 * Add `postcss.plugin()` to create plugins with a standard API.
243 * Insert nodes by CSS string.
244 * Show version warning message on error from an outdated plugin.
245 * Send `Result` instance to plugins as the second argument.
246 * Add `CssSyntaxError#plugin`.
247 * Add `CssSyntaxError#showSourceCode()`.
248 * Add `postcss.list` and `postcss.vendor` aliases.
249 * Add `Processor#version`.
250 * Parse wrong closing bracket.
251 * Parse `!important` statement with spaces and comments inside (by Ben Briggs).
252 * Throw an error on declaration without `prop` or `value` (by Philip Peterson).
253 * Fix source map mappings position.
254 * Add indexed source map support.
255 * Always set `error.generated`.
256 * Clean all source map annotation comments.
257
258 ## 4.0.6
259 * Remove `babel` from released package dependencies (by Andres Suarez).
260
261 ## 4.0.5
262 * Fix error message on double colon in declaration.
263
264 ## 4.0.4
265 * Fix indent detection in some rare cases.
266
267 ## 4.0.3
268 * Faster API with 6to5 Loose mode.
269 * Fix indexed source maps support.
270
271 ## 4.0.2
272 * Do not copy IE hacks to code style.
273
274 ## 4.0.1
275 * Add `source.input` to `Root` too.
276
277 ## 4.0 “Duke Flauros”
278 * Rename `Container#childs` to `nodes`.
279 * Rename `PostCSS#processors` to `plugins`.
280 * Add `Node#replaceValues()` method.
281 * Add `Node#moveTo()`, `moveBefore()` and `moveAfter()` methods.
282 * Add `Node#cloneBefore()` and `cloneAfter()` shortcuts.
283 * Add `Node#next()`, `prev()` and `root()` shortcuts.
284 * Add `Node#replaceWith()` method.
285 * Add `Node#error()` method.
286 * Add `Container#removeAll()` method.
287 * Add filter argument to `eachDecl()` and `eachAtRule()`.
288 * Add `Node#source.input` and move `source.file` or `source.id` to `input`.
289 * Change code indent, when node was moved.
290 * Better fix code style on `Rule`, `AtRule` and `Comment` nodes changes.
291 * Allow to create rules and at-rules by hash shortcut in append methods.
292 * Add class name to CSS syntax error output.
293
294 ## 3.0.7
295 * Fix IE filter parsing with multiple commands.
296 * Safer way to consume PostCSS object as plugin (by Maxime Thirouin).
297
298 ## 3.0.6
299 * Fix missing semicolon when comment comes after last declaration.
300 * Fix Safe Mode declaration parsing on unclosed blocks.
301
302 ## 3.0.5
303 * Fix parser to support difficult cases with backslash escape and brackets.
304 * Add `CssSyntaxError#stack` (by Maxime Thirouin).
305
306 ## 3.0.4
307 * Fix Safe Mode on unknown word before declaration.
308
309 ## 3.0.3
310 * Increase tokenizer speed (by Roman Dvornov).
311
312 ## 3.0.2
313 * Fix empty comment parsing.
314 * Fix `Root#normalize` in some inserts.
315
316 ## 3.0.1
317 * Fix Rhino JS runtime support.
318 * Typo in deprecated warning (by Maxime Thirouin).
319
320 ## 3.0 “Marquis Andrealphus”
321 * New parser, which become the fastest ever CSS parser written in JavaScript.
322 * Parser can now parse declarations and rules in one parent (like in `@page`)
323   and nested declarations for plugins like `postcss-nested`.
324 * Child nodes array is now in `childs` property, instead of `decls` and `rules`.
325 * `map.inline` and `map.sourcesContent` options are now `true` by default.
326 * Fix iterators (`each`, `insertAfter`) on children array changes.
327 * Use previous source map to show origin source of CSS syntax error.
328 * Use 6to5 ES6 compiler, instead of ES6 Transpiler.
329 * Use code style for manually added rules from existing rules.
330 * Use `from` option from previous source map `file` field.
331 * Set `to` value to `from` if `to` option is missing.
332 * Use better node source name when missing `from` option.
333 * Show a syntax error when `;` is missed between declarations.
334 * Allow to pass `PostCSS` instance or list of plugins to `use()` method.
335 * Allow to pass `Result` instance to `process()` method.
336 * Trim Unicode BOM on source maps parsing.
337 * Parse at-rules without spaces like `@import"file"`.
338 * Better previous `sourceMappingURL` annotation comment cleaning.
339 * Do not remove previous `sourceMappingURL` comment on `map.annotation: false`.
340 * Parse nameless at-rules in Safe Mode.
341 * Fix source map generation for nodes without source.
342 * Fix next child `before` if `Root` first child got removed.
343
344 ## 2.2.6
345 * Fix map generation for nodes without source (by Josiah Savary).
346
347 ## 2.2.5
348 * Fix source map with BOM marker support (by Mohammad Younes).
349 * Fix source map paths (by Mohammad Younes).
350
351 ## 2.2.4
352 * Fix `prepend()` on empty `Root`.
353
354 ## 2.2.3
355 * Allow to use object shortcut in `use()` with functions like `autoprefixer`.
356
357 ## 2.2.2
358 * Add shortcut to set processors in `use()` via object with `.postcss` property.
359
360 ## 2.2.1
361 * Send `opts` from `Processor#process(css, opts)` to processors.
362
363 ## 2.2 “Marquis Cimeies”
364 * Use GNU style syntax error messages.
365 * Add `Node#replace` method.
366 * Add `CssSyntaxError#reason` property.
367
368 ## 2.1.2
369 * Fix UTF-8 support in inline source map.
370 * Fix source map `sourcesContent` if there is no `from` and `to` options.
371
372 ## 2.1.1
373 * Allow to miss `to` and `from` options for inline source maps.
374 * Add `Node#source.id` if file name is unknown.
375 * Better detect splitter between rules in CSS concatenation tools.
376 * Automatically clone node in insert methods.
377
378 ## 2.1 “King Amdusias”
379 * Change Traceur ES6 compiler to ES6 Transpiler.
380 * Show broken CSS line in syntax error.
381
382 ## 2.0 “King Belial”
383 * Project was rewritten from CoffeeScript to ES6.
384 * Add Safe Mode to works with live input or with hacks from legacy code.
385 * More safer parser to pass all hacks from Browserhacks.com.
386 * Use real properties instead of magic getter/setter for raw properties.
387
388 ## 1.0 “Marquis Decarabia”
389 * Save previous source map for each node to support CSS concatenation
390   with multiple previous maps.
391 * Add `map.sourcesContent` option to add origin content to `sourcesContent`
392   inside map.
393 * Allow to set different place of output map in annotation comment.
394 * Allow to use arrays and `Root` in `Container#append` and same methods.
395 * Add `Root#prevMap` with information about previous map.
396 * Allow to use latest PostCSS from GitHub by npm.
397 * `Result` now is lazy and it will generate output CSS only if you use `css`
398   or `map` property.
399 * Use separated `map.prev` option to set previous map.
400 * Rename `inlineMap` option to `map.inline`.
401 * Rename `mapAnnotation` option to `map.annotation`.
402 * `Result#map` now return `SourceMapGenerator` object, instead of string.
403 * Run previous map autodetect only if input CSS contains annotation comment.
404 * Add `map: 'inline'` shortcut for `map: { inline: true }` option.
405 * `Node#source.file` now will contains absolute path.
406 * Clean `Declaration#between` style on node clone.
407
408 ## 0.3.5
409 * Allow to use `Root` or `Result` as first argument in `process()`.
410 * Save parsed AST to `Result#root`.
411
412 ## 0.3.4
413 * Better space symbol detect to read UTF-8 BOM correctly.
414
415 ## 0.3.3
416 * Remove source map hacks by using new Mozilla’s `source-map` (by Simon Lydell).
417
418 ## 0.3.2
419 * Add URI encoding support for inline source maps.
420
421 ## 0.3.1
422 * Fix relative paths from previous source map.
423 * Safer space split in `Rule#selectors` (by Simon Lydell).
424
425 ## 0.3 “Prince Seere”
426 * Add `Comment` node for comments between declarations or rules.
427 * Add source map annotation comment to output CSS.
428 * Allow to inline source map to annotation comment by data:uri.
429 * Fix source maps on Windows.
430 * Fix source maps for subdirectory (by Dmitry Nikitenko and Simon Lydell).
431 * Autodetect previous source map.
432 * Add `first` and `last` shortcuts to container nodes.
433 * Parse `!important` to separated property in `Declaration`.
434 * Allow to break iteration by returning `false`.
435 * Copy code style to new nodes.
436 * Add `eachInside` method to recursively iterate all nodes.
437 * Add `selectors` shortcut to get selectors array.
438 * Add `toResult` method to `Rule` to simplify work with several input files.
439 * Clean declaration’s `value`, rule’s `selector` and at-rule’s `params`
440   by storing spaces in `between` property.
441
442 ## 0.2 “Duke Dantalion”
443 * Add source map support.
444 * Add shortcuts to create nodes.
445 * Method `process()` now returns object with `css` and `map` keys.
446 * Origin CSS file option was renamed from `file` to `from`.
447 * Rename `Node#remove()` method to `removeSelf()` to fix name conflict.
448 * Node source was moved to `source` property with origin file
449   and node end position.
450 * You can set own CSS generate function.
451
452 ## 0.1 “Count Andromalius”
453 * Initial release.