postcss
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -0,1 +1,6 @@ | ||
## 2.2 “Marquis Cimeies” | ||
* Use GNU style syntax error messages. | ||
* Add `Node#replace` method. | ||
* Add `CssSyntaxError#reason` property. | ||
## 2.1.2 | ||
@@ -2,0 +7,0 @@ * Fix UTF-8 support in inline source map. |
@@ -8,5 +8,6 @@ // Error while CSS parsing | ||
this.source = source; | ||
this.message = "Can't parse CSS: " + text; | ||
this.message += ' at line ' + pos.line + ':' + pos.column; | ||
if ( file ) this.message += ' in ' + file; | ||
this.reason = text; | ||
this.message = file ? file : '<css input>'; | ||
this.message += ':' + pos.line + ':' + pos.column + ': ' + text; | ||
}CssSyntaxError.prototype = Object.create(super$0.prototype, {"constructor": {"value": CssSyntaxError, "configurable": true, "writable": true} });DP$0(CssSyntaxError, "prototype", {"configurable": false, "enumerable": false, "writable": false}); | ||
@@ -13,0 +14,0 @@ |
@@ -62,2 +62,11 @@ // Recursivly clone objects | ||
// Shortcut to insert nodes before and remove self. | ||
// | ||
// importNode.replace( loadedRoot ); | ||
Node.prototype.replace = function(nodes) { | ||
this.parent.insertBefore(this, nodes); | ||
this.parent.remove(this); | ||
return this; | ||
} | ||
// Return CSS string of current node | ||
@@ -64,0 +73,0 @@ // |
{ | ||
"name": "postcss", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "Framework for CSS postprocessors with full source map support", | ||
@@ -10,3 +10,3 @@ "keywords": ["css", "parser", "postproccessor", "source map"], | ||
"type": "git", | ||
"url": "https://github.com/ai/postcss.git" | ||
"url": "https://github.com/postcss/postcss.git" | ||
}, | ||
@@ -18,3 +18,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"gulp-es6-transpiler": "0.2.0", | ||
"gulp-es6-transpiler": "1.0.0", | ||
"gulp-json-editor": "2.0.2", | ||
@@ -24,5 +24,5 @@ "jshint-stylish": "0.4.0", | ||
"gonzales-pe": "3.0.0-10", | ||
"gulp-mocha": "0.5.2", | ||
"gulp-mocha": "1.0.0", | ||
"gulp-util": "3.0.0", | ||
"fs-extra": "0.10.0", | ||
"fs-extra": "0.11.0", | ||
"gonzales": "1.0.7", | ||
@@ -29,0 +29,0 @@ "request": "2.40.0", |
@@ -58,9 +58,13 @@ # PostCSS [![Build Status](https://travis-ci.org/postcss/postcss.png)](https://travis-ci.org/postcss/postcss) | ||
* [postcss-calc] to reduce `calc()` usage (recommanded with | ||
`postcss-custom-properties`). | ||
* [postcss-custom-properties] to polyfill the W3C-style | ||
CSS Custom Properties for cascading variables. | ||
* [postcss-calc] to reduce `calc()` usage (recommanded with `postcss-custom-properties`). | ||
* [postcss-color] to transform latest W3C CSS color module syntax to more compatible CSS. | ||
* [postcss-import] to transform @import rules by inlining content. | ||
* [postcss-custom-media] to transform W3C CSS Custom Media Queries to more compatible CSS. | ||
* [postcss-custom-properties] to transform W3C CSS Custom Properties for cascading variables to more compatible CSS. | ||
[postcss-calc]: https://github.com/postcss/postcss-calc | ||
[postcss-custom-properties]: https://github.com/postcss/postcss-custom-properties | ||
[postcss-calc]: https://github.com/postcss/postcss-calc | ||
[postcss-color]: https://github.com/postcss/postcss-color | ||
[postcss-import]: https://github.com/postcss/postcss-import | ||
[postcss-custom-media]: https://github.com/postcss/postcss-custom-media | ||
[postcss-custom-properties]: https://github.com/postcss/postcss-custom-properties | ||
@@ -67,0 +71,0 @@ |
101220
1705
884