mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
3.9 KiB
3.9 KiB
2.2.3
- Allow to use object shortcut in
use()with functions likeautoprefixer.
2.2.2
- Add shortcut to set processors in
use()via object with.postcssproperty.
2.2.1
- Send
optsfromProcessor#process(css, opts)to processors.
2.2 “Marquis Cimeies”
- Use GNU style syntax error messages.
- Add
Node#replacemethod. - Add
CssSyntaxError#reasonproperty.
2.1.2
- Fix UTF-8 support in inline source map.
- Fix source map
sourcesContentif there is nofromandtooptions.
2.1.1
- 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.
2.1 “King Amdusias”
- Change Traceur ES6 compiler to ES6 Transpiler.
- Show broken CSS line in syntax error.
2.0 “King Belial”
- 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.
1.0 “Marquis Decarabia”
- 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 stringify 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.
0.3.5
- Allow to use
RootorResultas first argument inprocess(). - Save parsed AST to
Result#root.
0.3.4
- Better space symbol detect to read UTF-8 BOM correctly.
0.3.3
- Remove source map hacks by using new Mozilla’s
source-map(by Simon Lydell).
0.3.2
- Add URI encoding support for inline source maps.
0.3.1
- Fix relative paths from previous source map.
- Safer space split in
Rule#selectors(by Simon Lydell).
0.3 “Prince Seere”
- 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 styles in subdirectory (by @nDmitry and @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 recursivelly 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.
0.2 “Duke Dantalion”
- 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 stringify function.
0.1 “Count Andromalius”
- Initial release.