- Remove
babelfrom released package dependencies (by Andres Suarez).
- Fix error message on double colon in declaration.
- Fix indent detection in some rare cases.
- Faster API with 6to5 Loose mode.
- Fix indexed source maps support.
- Do not copy IE hacks to code style.
- Add
source.inputtoRoottoo.
- Rename
Container#childstonodes. - Rename
PostCSS#processorstoplugins. - Add
Node#replaceValues()method. - Add
Node#moveTo(),moveBefore()andmoveAfter()methods. - Add
Node#cloneBefore()andcloneAfter()shortcuts. - Add
Node#next(),prev()androot()shortcuts. - Add
Node#replaceWith()method. - Add
Node#error()method. - Add
Container#removeAll()method. - Add filter argument to
eachDecl()andeachAtRule(). - Add
Node#source.inputand movesource.fileorsource.idtoinput. - Change code indent, when node was moved.
- Better fix code style on
Rule,AtRuleandCommentnodes changes. - Allow to create rules and at-rules by hash shortcut in append methods.
- Add class name to CSS syntax error output.
- Fix IE filter parsing with multiple commands.
- Safer way to consume PostCSS object as plugin (by Maxime Thirouin).
- Fix missing semicolon when comment comes after last declaration.
- Fix Safe Mode declaration parsing on unclosed blocks.
- Fix parser to support difficult cases with backslash escape and brackets.
- Add
CssSyntaxError#stack(by Maxime Thirouin).
- Fix Safe Mode on unknown word before declaration.
- Increase tokenizer speed (by Roman Dvornov).
- Fix empty comment parsing.
- Fix
Root#normalizein some inserts.
- Fix Rhino JS runtime support.
- Typo in deprecated warning (by Maxime Thirouin).
- New parser, which become the fastest ever CSS parser written in JavaScript.
- Parser can now parse declarations and rules in one parent (like in
@page) and nested declarations for plugins likepostcss-nested. - Child nodes array is now in
childsproperty, instead ofdeclsandrules. map.inlineandmap.sourcesContentoptions are nowtrueby default.- Fix iterators (
each,insertAfter) on children array changes. - Use previous source map to show origin source of CSS syntax error.
- Use 6to5 ES6 compiler, instead of ES6 Transpiler.
- Use code style for manually added rules from existing rules.
- Use
fromoption from previous source mapfilefield. - Set
tovalue tofromiftooption is missing. - Use better node source name when missing
fromoption. - Show a syntax error when
;is missed between declarations. - Allow to pass
PostCSSinstance or list of plugins touse()method. - Allow to pass
Resultinstance toprocess()method. - Trim Unicode BOM on source maps parsing.
- Parse at-rules without spaces like
@import"file". - Better previous
sourceMappingURLannotation comment cleaning. - Do not remove previous
sourceMappingURLcomment onmap.annotation: false. - Parse nameless at-rules in Safe Mode.
- Fix source map generation for nodes without source.
- Fix next child
beforeifRootfirst child got removed.
- Fix map generation for nodes without source (by Josiah Savary).
- Fix source map with BOM marker support (by Mohammad Younes).
- Fix source map paths (by Mohammad Younes).
- Fix
prepend()on emptyRoot.
- Allow to use object shortcut in
use()with functions likeautoprefixer.
- Add shortcut to set processors in
use()via object with.postcssproperty.
- Send
optsfromProcessor#process(css, opts)to processors.
- Use GNU style syntax error messages.
- Add
Node#replacemethod. - Add
CssSyntaxError#reasonproperty.
- Fix UTF-8 support in inline source map.
- Fix source map
sourcesContentif there is nofromandtooptions.
- Allow to miss
toandfromoptions for inline source maps. - Add
Node#source.idif file name is unknown. - Better detect splitter between rules in CSS concatenation tools.
- Automatically clone node in insert methods.
- Change Traceur ES6 compiler to ES6 Transpiler.
- Show broken CSS line in syntax error.
- Project was rewritten from CoffeeScript to ES6.
- Add Safe Mode to works with live input or with hacks from legacy code.
- More safer parser to pass all hacks from Browserhacks.com.
- Use real properties instead of magic getter/setter for raw properties.
- Save previous source map for each node to support CSS concatenation with multiple previous maps.
- Add
map.sourcesContentoption to add origin content tosourcesContentinside map. - Allow to set different place of output map in annotation comment.
- Allow to use arrays and
RootinContainer#appendand same methods. - Add
Root#prevMapwith information about previous map. - Allow to use latest PostCSS from GitHub by npm.
Resultnow is lazy and it will generate output CSS only if you usecssormapproperty.- Use separated
map.prevoption to set previous map. - Rename
inlineMapoption tomap.inline. - Rename
mapAnnotationoption tomap.annotation. Result#mapnow returnSourceMapGeneratorobject, instead of string.- Run previous map autodetect only if input CSS contains annotation comment.
- Add
map: 'inline'shortcut formap: { inline: true }option. Node#source.filenow will contains absolute path.- Clean
Declaration#betweenstyle on node clone.
- Allow to use
RootorResultas first argument inprocess(). - Save parsed AST to
Result#root.
- Better space symbol detect to read UTF-8 BOM correctly.
- Remove source map hacks by using new Mozilla’s
source-map(by Simon Lydell).
- Add URI encoding support for inline source maps.
- Fix relative paths from previous source map.
- Safer space split in
Rule#selectors(by Simon Lydell).
- Add
Commentnode for comments between declarations or rules. - Add source map annotation comment to output CSS.
- Allow to inline source map to annotation comment by data:uri.
- Fix source maps on Windows.
- Fix source maps for subdirectory (by Dmitry Nikitenko and Simon Lydell).
- Autodetect previous source map.
- Add
firstandlastshortcuts to container nodes. - Parse
!importantto separated property inDeclaration. - Allow to break iteration by returning
false. - Copy code style to new nodes.
- Add
eachInsidemethod to recursively iterate all nodes. - Add
selectorsshortcut to get selectors array. - Add
toResultmethod toRuleto simplify work with several input files. - Clean declaration’s
value, rule’sselectorand at-rule’sparamsby storing spaces inbetweenproperty.
- Add source map support.
- Add shortcuts to create nodes.
- Method
process()now returns object withcssandmapkeys. - Origin CSS file option was renamed from
filetofrom. - Rename
Node#remove()method toremoveSelf()to fix name conflict. - Node source was moved to
sourceproperty with origin file and node end position. - You can set own CSS generate function.
- Initial release.