postcss 5.1.0
PostCSS 5.1 brings few improvements for source maps and JSDoc.
Source Map
@markfinger improved source map support for new cases. He added absolute URI support in from/to options and added new map.from options for better control.
Some plugin developers forget to set correct Node#source for nodes. @TrySound add some help for developers. Now PostCSS will set <no source> source for sourceless nodes.
@montmanu add function value support for map.prev option.
JSDoc
We moved all API docs close to source and now PostCSS has JSDoc comments for every public method and property.
I hope it will make plugin development easy: API docs become better and some IDE will show docs in autocomplete.
You can check latest API on api.postcss.org.
Other
- Move tests from Mocha/Chai to AVA.
- Add declaration value type check in shortcut creating (by @gucong3000).
Result#warnnow returns new created warning.- Don’t call plugin creator in
postcss.plugincall. - Add source maps to PostCSS ES5 build.
- Clean npm package from unnecessary docs.