Skip to content

Latest commit

 

History

History
239 lines (132 loc) · 6.71 KB

CHANGELOG.md

File metadata and controls

239 lines (132 loc) · 6.71 KB

Changelog

6.0.0

Breaking

The resolve option has two parameters now and can return null. Thanks to Rene Haas (@KingSora) https://github.com/madyankin/postcss-modules/commit/86d8135cb5014d0b2848ef395608ee74d82bd179

Parameters:

  • file — a module we want to resolve
  • importer — the file that imports the module we want to resolve

Return value: string | null | Promise<string | null>

postcss([
	require("postcss-modules")({
    	resolve: function (file, importer) {
			return path.resolve(
				path.dirname(importer),
				file.replace(/^@/, process.cwd()
			);
    	},
  	}),
]);

Fixed

  • #140 "'Failed to obtain root' error on Windows" fixed by Pierre LeMoine (@DrInfiniteExplorer) madyankin#144

Improved

  • icss-replace-symbols replaced with with icss-utils by Jason Quense (@jquense). The updated replacer works better and will replace values in selectors, which didn't work until now. madyankin#145

5.0.0

  • Fixed composes on Windows by @sapphi-red madyankin#135
  • Updated Babel to v7 by @sapphi-red. Minimal supported version of Node.js is 10 from now madyankin#134

4.3.1

  • Fixed errors when using shorthand selectors by Felix Bruns (@fxb) madyankin#130

4.3.0

  • Updated the generic-names dependency to reduce packages size by Bogdan Chadkin (@TrySound) madyankin#129

4.2.2

  • Fix the build

4.2.1

4.2.0

  • Added the resolve option to configure lookup paths for composes/from by @kamilic madyankin#126

4.1.3

  • Fixed package contents

4.1.1

  • Fixed TypeScript typings by Shuman Lim (@origin-master) madyankin#124

4.1.0

  • Added TypeScript typings by Shuman Lim (@origin-master) madyankin#123

4.0.0

3.2.2

Fixed

  • Fixed user plugins order by Tom Jenkinson (@tjenkinson) madyankin#112

3.2.1

Fixed

  • Fixed an issue when some plugins were running multiple times by Tom Jenkinson (@tjenkinson) madyankin#111

3.2.0

Changed

  • [localsConvention option] now supports a custom function (originalClassName: string, generatedClassName: string, inputFile: string) => className: string by Gregory Waxman (@Akkuma) madyankin#109

3.1.0

Added

  • Added exportGlobals option

3.0.0

Changed

Breaking changes

2.0.0

Added

Breaking changes

1.5.0

  • Added hashPrefix option by Jesse Thomson (@jessethomson) madyankin#98

1.4.1

  • Rebublished the previous release. Sorry :(

1.4.0

1.3.1

  • Move dev tools to devDependecies by Anton Khlynovskiy (@ubzey) madyankin#85

1.3.0

  • Updated dependecies
  • Added prettier to format code

1.2.0

  • Added option to transform classes to camelCase by Igor Ribeiro (@igor-ribeiro) madyankin#82

1.1.0

  • Added ability to transmit outputFileName into getJSON by @lutien madyankin#72

1.0.0

  • Dropped support for Node < 6
  • Updated dependencies

0.8.0

  • Updated PostCSS to 6 by Alexey Litvinov (@sullenor) madyankin#65

0.7.1

  • Allowed empty string as opts.root by Sharon Rolel (@Mosho1) madyankin#56

0.7.0

  • Allow async getJSON by Philipp A. (@flying-sheep) madyankin#59

0.6.4

  • Added the root option to pass the root path by Sharon Rolel (@Mosho1) (madyankin#55)

0.6.3

  • Fixed regression in isValidBehaviour function (madyankin#53)

0.6.2

  • Refactored getDefaultPluginsList function

0.6.1

  • Fixed generateScopedName bug with multiple postcss-modules instances (madyankin#37)

0.6.0

  • Added globalModulePaths option (Thanks to @pospi).
  • Refactored all the things.

0.5.2

  • Updated dependencies

0.5.1

  • Fixed sorting for composed dependencies by Josh Johnston (@joshwnj) (madyankin#38)

0.5.0

  • Added scopeBehaviour option (madyankin#22)
  • Added ability to pass a string to generateScopedName (madyankin#21)
  • Updated dependencies

0.4.1

  • Fixed processing errors capturing by Boris Serdiuk (@just-boris)

0.4.0

  • Added support for custom loaders by Björn Brauer (@ZauberNerd)

0.3.0

  • Fixed processing for imported CSS
  • Added default callback for saving exported JSON

0.2.0

0.1.3

Fixed failing on comments by @dfreeman (madyankin#14)

0.1.2

Fixed module export for ES5 (madyankin#9)

0.1.1

Call getExports only for top level css

0.1.0

Initial version