File tree Expand file tree Collapse file tree 4 files changed +23
-17
lines changed Expand file tree Collapse file tree 4 files changed +23
-17
lines changed Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
5
5
6
+ ## [ 4.0.0-rc.4] ( https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.4...v4.0.0 ) - 2020-10-13
7
+
8
+ ### Fixes
9
+
10
+ - compatibility with plugins other plugins
11
+
6
12
## [ 4.0.0-rc.4] ( https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.3...v4.0.0-rc.4 ) - 2020-10-11
7
13
8
14
### Fixes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-modules-local-by-default" ,
3
- "version" : " 4.0.0-rc.4 " ,
3
+ "version" : " 4.0.0" ,
4
4
"description" : " A CSS Modules transform to make local scope the default" ,
5
5
"main" : " src/index.js" ,
6
6
"author" : " Mark Dalgleish" ,
33
33
"prepublishOnly" : " yarn test"
34
34
},
35
35
"dependencies" : {
36
- "icss-utils" : " ^5.0.0-rc.0 " ,
36
+ "icss-utils" : " ^5.0.0" ,
37
37
"postcss-selector-parser" : " ^6.0.2" ,
38
38
"postcss-value-parser" : " ^4.1.0"
39
39
},
Original file line number Diff line number Diff line change @@ -420,16 +420,16 @@ function localizeDeclaration(declaration, context) {
420
420
}
421
421
422
422
module . exports = ( options = { } ) => {
423
- if ( options && options . mode ) {
424
- if (
425
- options . mode !== "global" &&
426
- options . mode !== "local " &&
427
- options . mode !== "pure"
428
- ) {
429
- throw new Error (
430
- 'options.mode must be either "global", "local" or "pure" (default "local")'
431
- ) ;
432
- }
423
+ if (
424
+ options &&
425
+ options . mode &&
426
+ options . mode !== "global " &&
427
+ options . mode !== "local" &&
428
+ options . mode !== "pure"
429
+ ) {
430
+ throw new Error (
431
+ 'options.mode must be either "global", "local" or "pure" (default "local")'
432
+ ) ;
433
433
}
434
434
435
435
const pureMode = options && options . mode === "pure" ;
@@ -441,7 +441,7 @@ module.exports = (options = {}) => {
441
441
const localAliasMap = new Map ( ) ;
442
442
443
443
return {
444
- OnceExit ( root ) {
444
+ Once ( root ) {
445
445
const { icssImports } = extractICSS ( root , false ) ;
446
446
447
447
Object . keys ( icssImports ) . forEach ( ( key ) => {
Original file line number Diff line number Diff line change @@ -1877,10 +1877,10 @@ iconv-lite@0.4.24:
1877
1877
dependencies :
1878
1878
safer-buffer ">= 2.1.2 < 3"
1879
1879
1880
- icss-utils@^5.0.0-rc.0 :
1881
- version "5.0.0-rc.0 "
1882
- resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.0.0-rc.0. tgz#c72082bd0edaa2cd85b25bfe98db2e49be8d4306 "
1883
- integrity sha512-iTcLOd8eGcKQBusS3SRQYCK324r6Aov3GlfWRbRYC9oAp93v1qm7kBWB0WeEjZ3rGoOvymTkQUhOiTokNz9mKg ==
1880
+ icss-utils@^5.0.0 :
1881
+ version "5.0.0"
1882
+ resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.0.0. tgz#03ed56c3accd32f9caaf1752ebf64ef12347bb84 "
1883
+ integrity sha512-aF2Cf/CkEZrI/vsu5WI/I+akFgdbwQHVE9YRZxATrhH4PVIe6a3BIjwjEcW+z+jP/hNh+YvM3lAAn1wJQ6opSg ==
1884
1884
1885
1885
ignore@^4.0.6 :
1886
1886
version "4.0.6"
You can’t perform that action at this time.
0 commit comments