Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-modules

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-modules - npm Package Versions

2345

6.0.0

Diff

Changelog

Source

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) https://github.com/madyankin/postcss-modules/pull/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. https://github.com/madyankin/postcss-modules/pull/145
outpunk
published 5.0.0 •

Changelog

Source

5.0.0

  • Fixed composes on Windows by @sapphi-red https://github.com/madyankin/postcss-modules/pull/135
  • Updated Babel to v7 by @sapphi-red. Minimal supported version of Node.js is 10 from now https://github.com/madyankin/postcss-modules/pull/134
outpunk
published 4.3.1 •

Changelog

Source

4.3.1

  • Fixed errors when using shorthand selectors by Felix Bruns (@fxb) https://github.com/madyankin/postcss-modules/pull/130
outpunk
published 4.3.0 •

Changelog

Source

4.3.0

  • Updated the generic-names dependency to reduce packages size by Bogdan Chadkin (@TrySound) https://github.com/madyankin/postcss-modules/pull/129
outpunk
published 4.2.2 •

Changelog

Source

4.2.2

  • Fix the build
outpunk
published 4.2.1 •

Changelog

Source

4.2.1

  • Fixed the resolve option behaviour by @kamilic https://github.com/madyankin/postcss-modules/pull/127
outpunk
published 4.2.0 •

Changelog

Source

4.2.0

  • Added the resolve option to configure lookup paths for composes/from by @kamilic https://github.com/madyankin/postcss-modules/pull/126
outpunk
published 4.1.3 •

Changelog

Source

4.1.3

  • Fixed package contents
outpunk
published 4.1.1 •

Changelog

Source

4.1.1

  • Fixed TypeScript typings by Shuman Lim (@origin-master) https://github.com/madyankin/postcss-modules/pull/124
outpunk
published 4.1.0 •

Changelog

Source

4.1.0

  • Added TypeScript typings by Shuman Lim (@origin-master) https://github.com/madyankin/postcss-modules/pull/123
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc