Skip to content

Commit 792e217

Browse files
chore(release): 4.0.0
1 parent 598f36d commit 792e217

File tree

3 files changed

+58
-76
lines changed

3 files changed

+58
-76
lines changed

CHANGELOG.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,44 @@
1-
# Change Log
1+
# Changelog
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [4.0.0](https://github.com/webpack-contrib/postcss-loader/compare/v3.0.0...v4.0.0) (2020-09-07)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
* minimum supported `Node.js` version is `10.13`
11+
* minimum supported `webpack` version is `4`
12+
* `postcss` was moved to `peerDependencies`, you need to install `postcss`
13+
* `PostCSS` (`plugins`/`syntax`/`parser`/`stringifier`) options was moved to the `postcssOptions` option, please look at [docs](https://github.com/webpack-contrib/postcss-loader#postcssoptions)
14+
* `sourceMap` default value depends on the `compiler.devtool` option
15+
* the `inline` value was removed for the `sourceMap` option, please use `{ map: { inline: true, annotation: false } }` to achieve this
16+
* source maps contain absolute paths in `sources`
17+
* loader output only CSS, so you need to use `css-loader`/`file-loader`/`raw-loader` to inject code inside bundle
18+
* `exec` option was renamed to the `execute` option
19+
* the `config` option doesn't support `Object` type anymore, `config.path` and `config.ctx` options were removed
20+
* argument in the config for `Function` notation (previously `config.ctx`) was changed, now it contains `{ file, mode, webpackLoaderContext }`
21+
* loader context in the config was renamed from `webpack` to `webpackLoaderContext`
22+
23+
### Features
24+
25+
* message API for emit assets ([#443](https://github.com/webpack-contrib/postcss-loader/issues/443)) ([e966ab9](https://github.com/webpack-contrib/postcss-loader/commit/e966ab965132ca812cb50e5eaf7df5fc2ad9c137))
26+
* reuse AST from other loaders ([#468](https://github.com/webpack-contrib/postcss-loader/issues/468)) ([9b75888](https://github.com/webpack-contrib/postcss-loader/commit/9b75888dff4957f2ef1e94eca871e329354a9f6d))
27+
* allows to use config and loader options together, options from the loader takes precedence over the config, the `plugins` option from the config and options are merged ([0eb5aaf](https://github.com/webpack-contrib/postcss-loader/commit/0eb5aaf3d49f6d5e570a3c3fdb6b201487e503c7))
28+
* `postcssOptions` options can be `Function`
29+
30+
### Bug Fixes
31+
32+
* compatibility with webpack@5 ([#437](https://github.com/webpack-contrib/postcss-loader/issues/437)) ([ed50491](https://github.com/webpack-contrib/postcss-loader/commit/ed504910b70b4d8b4d77084c19ad92330676433e))
33+
* `default` export for plugins ([#465](https://github.com/webpack-contrib/postcss-loader/issues/465)) ([3d32c35](https://github.com/webpack-contrib/postcss-loader/commit/3d32c35c5c911d6bd25dc0c4b5b3cd11408632d7))
34+
* avoid mutations of loader options and config ([#470](https://github.com/webpack-contrib/postcss-loader/issues/470)) ([cad6f07](https://github.com/webpack-contrib/postcss-loader/commit/cad6f07c7f4923e8ef69ecb402b10bbd08d09530))
35+
* respect the `map` option from loader options and config ([#458](https://github.com/webpack-contrib/postcss-loader/issues/458)) ([98441ff](https://github.com/webpack-contrib/postcss-loader/commit/98441ff87e51b58e9322d1bebb5eefc5ba417e24))
36+
37+
### Notes
38+
39+
* you don't need `ident` option for loader
40+
* `Object` syntax for the `plugin` option is soft deprecated, please migrate on `Array` syntax (`plugins: ['postcss-present-env', ['cssnano', options]]`)
41+
542
<a name="3.0.0"></a>
643
# [3.0.0](https://github.com/postcss/postcss-loader/compare/v2.1.6...v3.0.0) (2018-08-08)
744

package-lock.json

+17-71
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-loader",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"description": "PostCSS loader for webpack",
55
"license": "MIT",
66
"repository": "webpack-contrib/postcss-loader",
@@ -32,8 +32,7 @@
3232
"test": "npm run test:coverage",
3333
"prepare": "npm run build",
3434
"release": "standard-version",
35-
"defaults": "webpack-defaults",
36-
"docs": "jsdoc2md src/*.js > docs/LOADER.md"
35+
"defaults": "webpack-defaults"
3736
},
3837
"files": [
3938
"dist"
@@ -65,7 +64,7 @@
6564
"eslint": "^7.8.1",
6665
"eslint-config-prettier": "^6.11.0",
6766
"eslint-plugin-import": "^2.22.0",
68-
"husky": "^4.2.5",
67+
"husky": "^4.3.0",
6968
"jest": "^26.4.2",
7069
"less": "^3.12.2",
7170
"less-loader": "^7.0.1",

0 commit comments

Comments
 (0)