postcss-modules 9.0.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.0.1
4
+
5
+ ### Fixed
6
+
7
+ - Added a type declaration for `postcss-modules/loader` so TypeScript users can extend it with `declare module` without hitting a type error. [#172](https://github.com/madyankin/postcss-modules/pull/172) by [@sapphi-red](https://github.com/sapphi-red)
8
+
3
9
  ## 9.0.0
4
10
 
5
11
  ### Breaking
package/index.d.ts CHANGED
@@ -50,5 +50,3 @@ declare interface PostcssModulesPlugin {
50
50
  declare const PostcssModulesPlugin: PostcssModulesPlugin;
51
51
 
52
52
  export = PostcssModulesPlugin;
53
-
54
- declare module "postcss-modules/loader" {}
package/loader.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-modules",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "PostCSS plugin to use CSS Modules everywhere",
5
5
  "main": "build/index.js",
6
6
  "types": "index.d.ts",
@@ -9,7 +9,10 @@
9
9
  "types": "./index.d.ts",
10
10
  "default": "./build/index.js"
11
11
  },
12
- "./loader": "./build/loader.mjs",
12
+ "./loader": {
13
+ "types": "./loader.d.ts",
14
+ "default": "./build/loader.mjs"
15
+ },
13
16
  "./package.json": "./package.json"
14
17
  },
15
18
  "keywords": [