postcss-loader
Advanced tools
Comparing version 2.0.10 to 2.1.0
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="2.1.0"></a> | ||
# [2.1.0](https://github.com/postcss/postcss-loader/compare/v2.0.10...v2.1.0) (2018-02-02) | ||
### Bug Fixes | ||
* **index:** continue watching after dependency `{Error}` ([#332](https://github.com/postcss/postcss-loader/issues/332)) ([a8921cc](https://github.com/postcss/postcss-loader/commit/a8921cc)) | ||
### Features | ||
* **index:** pass AST (`result.root`) && Messages (`result.messages`) as metadata to other loaders ([#322](https://github.com/postcss/postcss-loader/issues/322)) ([56232e7](https://github.com/postcss/postcss-loader/commit/56232e7)) | ||
<a name="2.0.10"></a> | ||
@@ -7,0 +22,0 @@ ## [2.0.10](https://github.com/postcss/postcss-loader/compare/v2.0.9...v2.0.10) (2018-01-03) |
@@ -42,3 +42,3 @@ 'use strict' | ||
*/ | ||
module.exports = function loader (css, map) { | ||
module.exports = function loader (css, map, meta) { | ||
const options = Object.assign({}, loaderUtils.getOptions(this)) | ||
@@ -164,2 +164,7 @@ | ||
if (!meta) meta = {} | ||
meta.ast = { 'type': 'postcss', root: result.root } | ||
meta.messages = result.messages | ||
if (this.loaderIndex === 0) { | ||
@@ -178,2 +183,3 @@ /** | ||
} | ||
/** | ||
@@ -187,3 +193,3 @@ * @memberof loader | ||
*/ | ||
cb(null, css, map) | ||
cb(null, css, map, meta) | ||
@@ -193,4 +199,6 @@ return null | ||
}).catch((err) => { | ||
if (err.file) this.addDependency(err.file) | ||
return err.name === 'CssSyntaxError' ? cb(new SyntaxError(err)) : cb(err) | ||
}) | ||
} |
{ | ||
"name": "postcss-loader", | ||
"version": "2.0.10", | ||
"version": "2.1.0", | ||
"description": "PostCSS loader for webpack", | ||
@@ -16,9 +16,9 @@ "main": "lib/index.js", | ||
"postcss-load-config": "^1.2.0", | ||
"schema-utils": "^0.3.0" | ||
"schema-utils": "^0.4.0" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "^2.0.0", | ||
"jest": "^21.0.0", | ||
"jsdoc-to-markdown": "^3.0.0", | ||
"jest": "^22.0.0", | ||
"jsdoc-to-markdown": "^4.0.0", | ||
"memory-fs": "^0.4.0", | ||
"postcss-import": "^11.0.0", | ||
"postcss-js": "^1.0.0", | ||
@@ -28,6 +28,7 @@ "standard": "^10.0.0", | ||
"sugarss": "^1.0.0", | ||
"util.promisify": "^1.0.0", | ||
"webpack": "^3.0.0" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf dmd jest* coverage jsdoc-api test/results", | ||
"clean": "rm -rf coverage test/outputs", | ||
"lint": "standard", | ||
@@ -34,0 +35,0 @@ "docs": "jsdoc2md lib/index.js > LOADER.md", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28561
233
10
+ Addedajv@6.12.6(transitive)
+ Addedajv-keywords@3.5.2(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedschema-utils@0.4.7(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removedajv@5.5.2(transitive)
- Removedco@4.6.0(transitive)
- Removedfast-deep-equal@1.1.0(transitive)
- Removedjson-schema-traverse@0.3.1(transitive)
- Removedschema-utils@0.3.0(transitive)
Updatedschema-utils@^0.4.0