- 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.postcss
property.
- Send
opts
fromProcessor#process(css, opts)
to processors.
- Use GNU style syntax error messages.
- Add
Node#replace
method. - Add
CssSyntaxError#reason
property.
- Fix UTF-8 support in inline source map.
- Fix source map
sourcesContent
if there is nofrom
andto
options.
- Allow to miss
to
andfrom
options for inline source maps. - Add
Node#source.id
if 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 propeties.
- Save previous source map for each node to support CSS concatenation with multiple previous maps.
- Add
map.sourcesContent
option to add origin content tosourcesContent
inside map. - Allow to set different place of output map in annotation comment.
- Allow to use arrays and
Root
inContainer#append
and same methods. - Add
Root#prevMap
with information about previous map. - Allow to use latest PostCSS from GitHub by npm.
Result
now is lazy and it will stringify output CSS only if you usecss
ormap
property.- Use separated
map.prev
option to set previous map. - Rename
inlineMap
option tomap.inline
. - Rename
mapAnnotation
option tomap.annotation
. Result#map
now returnSourceMapGenerator
object, instead of string.- Run previous map autodetect only if input CSS contains annotation comment.
- Add
map: 'inline'
shortcut formap: { inline: true }
option. Node#source.file
now will contains absolute path.- Clean
Declaration#between
style on node clone.
- Allow to use
Root
orResult
as 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
Comment
node 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 styles in subdirectory (by @nDmitry and @lydell).
- Autodetect previous source map.
- Add
first
andlast
shortcuts to container nodes. - Parse
!important
to separated property inDeclaration
. - Allow to break iteration by returning
false
. - Copy code style to new nodes.
- Add
eachInside
method to recursivelly iterate all nodes. - Add
selectors
shortcut to get selectors array. - Add
toResult
method toRule
to simplify work with several input files. - Clean declaration’s
value
, rule’sselector
and at-rule’sparams
by storing spaces inbetween
property.
- Add source map support.
- Add shortcuts to create nodes.
- Method
process()
now returns object withcss
andmap
keys. - Origin CSS file option was renamed from
file
tofrom
. - Rename
Node#remove()
method toremoveSelf()
to fix name conflict. - Node source was moved to
source
property with origin file and node end position. - You can set own stringify function.
- Initial release.