File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33All notable changes to this project will be documented in this file.
44This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
55
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+
612## [ 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
713
814### Fixes
Original file line number Diff line number Diff line change 11{
22 "name" : " postcss-modules-local-by-default" ,
3- "version" : " 4.0.0-rc.4 " ,
3+ "version" : " 4.0.0" ,
44 "description" : " A CSS Modules transform to make local scope the default" ,
55 "main" : " src/index.js" ,
66 "author" : " Mark Dalgleish" ,
3333 "prepublishOnly" : " yarn test"
3434 },
3535 "dependencies" : {
36- "icss-utils" : " ^5.0.0-rc.0 " ,
36+ "icss-utils" : " ^5.0.0" ,
3737 "postcss-selector-parser" : " ^6.0.2" ,
3838 "postcss-value-parser" : " ^4.1.0"
3939 },
Original file line number Diff line number Diff line change @@ -420,16 +420,16 @@ function localizeDeclaration(declaration, context) {
420420}
421421
422422module . 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+ ) ;
433433 }
434434
435435 const pureMode = options && options . mode === "pure" ;
@@ -441,7 +441,7 @@ module.exports = (options = {}) => {
441441 const localAliasMap = new Map ( ) ;
442442
443443 return {
444- OnceExit ( root ) {
444+ Once ( root ) {
445445 const { icssImports } = extractICSS ( root , false ) ;
446446
447447 Object . keys ( icssImports ) . forEach ( ( key ) => {
Original file line number Diff line number Diff line change @@ -1877,10 +1877,10 @@ iconv-lite@0.4.24:
18771877 dependencies :
18781878 safer-buffer ">= 2.1.2 < 3"
18791879
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 ==
18841884
18851885ignore@^4.0.6 :
18861886 version "4.0.6"
You can’t perform that action at this time.
0 commit comments