Skip to content

Commit d0c05d8

Browse files
committed
Format changelog
1 parent 09e0789 commit d0c05d8

File tree

2 files changed

+63
-59
lines changed

2 files changed

+63
-59
lines changed

CHANGELOG.md

Lines changed: 60 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
## 6.0.0
44

55
### Breaking
6+
67
The `resolve` option has two parameters now and can return `null`. Thanks to Rene Haas (@KingSora)
78
https://github.com/madyankin/postcss-modules/commit/86d8135cb5014d0b2848ef395608ee74d82bd179
89

910
Parameters:
10-
- `file` — a module we want to resolve
11-
- `importer` — the file that imports the module we want to resolve
11+
12+
- `file` — a module we want to resolve
13+
- `importer` — the file that imports the module we want to resolve
1214

1315
Return value: `string | null | Promise<string | null>`
1416

@@ -26,198 +28,199 @@ postcss([
2628
```
2729
2830
### Fixed
29-
- #140 "'Failed to obtain root' error on Windows" fixed by Pierre LeMoine (@DrInfiniteExplorer) https://github.com/madyankin/postcss-modules/pull/144
3031
31-
## Improved
32-
- `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
32+
- #140 "'Failed to obtain root' error on Windows" fixed by Pierre LeMoine (@DrInfiniteExplorer) https://github.com/madyankin/postcss-modules/pull/144
33+
34+
### Improved
3335
36+
- `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
3437
3538
## 5.0.0
3639
37-
- Fixed `composes` on Windows by @sapphi-red https://github.com/madyankin/postcss-modules/pull/135
38-
- 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
40+
- Fixed `composes` on Windows by @sapphi-red https://github.com/madyankin/postcss-modules/pull/135
41+
- 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
3942
4043
## 4.3.1
4144
42-
- Fixed errors when using shorthand selectors by Felix Bruns (@fxb) https://github.com/madyankin/postcss-modules/pull/130
45+
- Fixed errors when using shorthand selectors by Felix Bruns (@fxb) https://github.com/madyankin/postcss-modules/pull/130
4346
4447
## 4.3.0
4548
46-
- Updated the `generic-names` dependency to reduce packages size by Bogdan Chadkin (@TrySound) https://github.com/madyankin/postcss-modules/pull/129
49+
- Updated the `generic-names` dependency to reduce packages size by Bogdan Chadkin (@TrySound) https://github.com/madyankin/postcss-modules/pull/129
4750
4851
## 4.2.2
4952
50-
- Fix the build
53+
- Fix the build
5154
5255
## 4.2.1
5356
54-
- Fixed the `resolve` option behaviour by @kamilic https://github.com/madyankin/postcss-modules/pull/127
57+
- Fixed the `resolve` option behaviour by @kamilic https://github.com/madyankin/postcss-modules/pull/127
5558
5659
## 4.2.0
5760
58-
- Added the `resolve` option to configure lookup paths for composes/from by @kamilic https://github.com/madyankin/postcss-modules/pull/126
61+
- Added the `resolve` option to configure lookup paths for composes/from by @kamilic https://github.com/madyankin/postcss-modules/pull/126
5962
6063
## 4.1.3
6164
62-
- Fixed package contents
65+
- Fixed package contents
6366
6467
## 4.1.1
6568
66-
- Fixed TypeScript typings by Shuman Lim (@origin-master) https://github.com/madyankin/postcss-modules/pull/124
69+
- Fixed TypeScript typings by Shuman Lim (@origin-master) https://github.com/madyankin/postcss-modules/pull/124
6770
6871
## 4.1.0
6972
70-
- Added TypeScript typings by Shuman Lim (@origin-master) https://github.com/madyankin/postcss-modules/pull/123
73+
- Added TypeScript typings by Shuman Lim (@origin-master) https://github.com/madyankin/postcss-modules/pull/123
7174
7275
## 4.0.0
7376
74-
- Upgraded to PostCSS 8 by Evan You (@yyx990803) https://github.com/css-modules/postcss-modules/pull/114
77+
- Upgraded to PostCSS 8 by Evan You (@yyx990803) https://github.com/css-modules/postcss-modules/pull/114
7578
7679
## 3.2.2
7780
7881
### Fixed
7982
80-
- Fixed user plugins order by Tom Jenkinson (@tjenkinson) https://github.com/css-modules/postcss-modules/pull/112
83+
- Fixed user plugins order by Tom Jenkinson (@tjenkinson) https://github.com/css-modules/postcss-modules/pull/112
8184
8285
## 3.2.1
8386
8487
### Fixed
8588
86-
- Fixed an issue when some plugins were running multiple times by Tom Jenkinson (@tjenkinson) https://github.com/css-modules/postcss-modules/pull/111
89+
- Fixed an issue when some plugins were running multiple times by Tom Jenkinson (@tjenkinson) https://github.com/css-modules/postcss-modules/pull/111
8790
8891
## 3.2.0
8992
9093
### Changed
9194
92-
- [`localsConvention` option] now supports a custom function `(originalClassName: string, generatedClassName: string, inputFile: string) => className: string` by Gregory Waxman (@Akkuma) https://github.com/css-modules/postcss-modules/pull/109
95+
- [`localsConvention` option] now supports a custom function `(originalClassName: string, generatedClassName: string, inputFile: string) => className: string` by Gregory Waxman (@Akkuma) https://github.com/css-modules/postcss-modules/pull/109
9396
9497
## 3.1.0
9598
9699
### Added
97100
98-
- Added `exportGlobals` option
101+
- Added `exportGlobals` option
99102
100103
## 3.0.0
101104
102105
### Changed
103106
104-
- Dropped `css-modules-loader-core` dependency
105-
- [Upgraded all the dependencies](https://github.com/css-modules/postcss-modules/pull/108)
107+
- Dropped `css-modules-loader-core` dependency
108+
- [Upgraded all the dependencies](https://github.com/css-modules/postcss-modules/pull/108)
106109
107110
### Breaking changes
108111
109-
- Dropped support for unsupported Node versions. Supported versions are 10, 12 and 14+ https://nodejs.org/en/about/releases/
112+
- Dropped support for unsupported Node versions. Supported versions are 10, 12 and 14+ https://nodejs.org/en/about/releases/
110113
111114
## 2.0.0
112115
113116
### Added
114117
115-
- [`localsConvention` option](https://github.com/css-modules/postcss-modules#localsconvention) by Hamza Mihai Daniel (@allocenx) <https://github.com/css-modules/postcss-modules/pull/103>, <https://github.com/css-modules/postcss-modules/issues/93>
118+
- [`localsConvention` option](https://github.com/css-modules/postcss-modules#localsconvention) by Hamza Mihai Daniel (@allocenx) <https://github.com/css-modules/postcss-modules/pull/103>, <https://github.com/css-modules/postcss-modules/issues/93>
116119
117120
### Breaking changes
118121
119-
- `camelCase` camelCase removed, use the [`localsConvention` option](https://github.com/css-modules/postcss-modules#localsconvention) instead.
122+
- `camelCase` camelCase removed, use the [`localsConvention` option](https://github.com/css-modules/postcss-modules#localsconvention) instead.
120123
121124
## 1.5.0
122125
123-
- Added `hashPrefix` option by Jesse Thomson (@jessethomson) <https://github.com/css-modules/postcss-modules/pull/98>
126+
- Added `hashPrefix` option by Jesse Thomson (@jessethomson) <https://github.com/css-modules/postcss-modules/pull/98>
124127
125128
## 1.4.1
126129
127-
- Rebublished the previous release. Sorry :(
130+
- Rebublished the previous release. Sorry :(
128131
129132
## 1.4.0
130133
131-
- Added export for other plugins by Evilebot Tnawi (@evilebottnawi) <https://github.com/css-modules/postcss-modules/pull/88>, <https://github.com/css-modules/postcss-modules/issues/29>
134+
- Added export for other plugins by Evilebot Tnawi (@evilebottnawi) <https://github.com/css-modules/postcss-modules/pull/88>, <https://github.com/css-modules/postcss-modules/issues/29>
132135
133136
## 1.3.1
134137
135-
- Move dev tools to devDependecies by Anton Khlynovskiy (@ubzey) <https://github.com/css-modules/postcss-modules/pull/85>
138+
- Move dev tools to devDependecies by Anton Khlynovskiy (@ubzey) <https://github.com/css-modules/postcss-modules/pull/85>
136139
137140
## 1.3.0
138141
139-
- Updated dependecies
140-
- Added prettier to format code
142+
- Updated dependecies
143+
- Added prettier to format code
141144
142145
## 1.2.0
143146
144-
- Added option to transform classes to camelCase by Igor Ribeiro (@igor-ribeiro) <https://github.com/css-modules/postcss-modules/pull/82>
147+
- Added option to transform classes to camelCase by Igor Ribeiro (@igor-ribeiro) <https://github.com/css-modules/postcss-modules/pull/82>
145148
146149
## 1.1.0
147150
148-
- Added ability to transmit outputFileName into getJSON by @lutien <https://github.com/css-modules/postcss-modules/pull/72>
151+
- Added ability to transmit outputFileName into getJSON by @lutien <https://github.com/css-modules/postcss-modules/pull/72>
149152
150153
## 1.0.0
151154
152-
- Dropped support for Node < 6
153-
- Updated dependencies
155+
- Dropped support for Node < 6
156+
- Updated dependencies
154157
155158
## 0.8.0
156159
157-
- Updated PostCSS to 6 by Alexey Litvinov (@sullenor) <https://github.com/css-modules/postcss-modules/pull/65>
160+
- Updated PostCSS to 6 by Alexey Litvinov (@sullenor) <https://github.com/css-modules/postcss-modules/pull/65>
158161
159162
## 0.7.1
160163
161-
- Allowed empty string as opts.root by Sharon Rolel (@Mosho1) <https://github.com/css-modules/postcss-modules/pull/56>
164+
- Allowed empty string as opts.root by Sharon Rolel (@Mosho1) <https://github.com/css-modules/postcss-modules/pull/56>
162165
163166
## 0.7.0
164167
165-
- Allow async getJSON by Philipp A. (@flying-sheep) <https://github.com/css-modules/postcss-modules/pull/59>
168+
- Allow async getJSON by Philipp A. (@flying-sheep) <https://github.com/css-modules/postcss-modules/pull/59>
166169
167170
## 0.6.4
168171
169-
- Added the `root` option to pass the root path by Sharon Rolel (@Mosho1) (<https://github.com/css-modules/postcss-modules/pull/55>)
172+
- Added the `root` option to pass the root path by Sharon Rolel (@Mosho1) (<https://github.com/css-modules/postcss-modules/pull/55>)
170173
171174
## 0.6.3
172175
173-
- Fixed regression in `isValidBehaviour` function (<https://github.com/css-modules/postcss-modules/issues/53>)
176+
- Fixed regression in `isValidBehaviour` function (<https://github.com/css-modules/postcss-modules/issues/53>)
174177
175178
## 0.6.2
176179
177-
- Refactored `getDefaultPluginsList` function
180+
- Refactored `getDefaultPluginsList` function
178181
179182
## 0.6.1
180183
181-
- Fixed `generateScopedName` bug with multiple postcss-modules instances (<https://github.com/css-modules/postcss-modules/issues/37>)
184+
- Fixed `generateScopedName` bug with multiple postcss-modules instances (<https://github.com/css-modules/postcss-modules/issues/37>)
182185
183186
## 0.6.0
184187
185-
- Added `globalModulePaths` option (Thanks to @pospi).
186-
- Refactored all the things.
188+
- Added `globalModulePaths` option (Thanks to @pospi).
189+
- Refactored all the things.
187190
188191
## 0.5.2
189192
190-
- Updated dependencies
193+
- Updated dependencies
191194
192195
## 0.5.1
193196
194-
- Fixed sorting for composed dependencies by Josh Johnston (@joshwnj) (<https://github.com/css-modules/postcss-modules/issues/38>)
197+
- Fixed sorting for composed dependencies by Josh Johnston (@joshwnj) (<https://github.com/css-modules/postcss-modules/issues/38>)
195198
196199
## 0.5.0
197200
198-
- Added `scopeBehaviour` option (<https://github.com/css-modules/postcss-modules/issues/22>)
199-
- Added ability to pass a string to `generateScopedName` (<https://github.com/css-modules/postcss-modules/issues/21>)
200-
- Updated dependencies
201+
- Added `scopeBehaviour` option (<https://github.com/css-modules/postcss-modules/issues/22>)
202+
- Added ability to pass a string to `generateScopedName` (<https://github.com/css-modules/postcss-modules/issues/21>)
203+
- Updated dependencies
201204
202205
## 0.4.1
203206
204-
- Fixed processing errors capturing by Boris Serdiuk (@just-boris)
207+
- Fixed processing errors capturing by Boris Serdiuk (@just-boris)
205208
206209
## 0.4.0
207210
208-
- Added support for custom loaders by Björn Brauer (@ZauberNerd)
211+
- Added support for custom loaders by Björn Brauer (@ZauberNerd)
209212
210213
## 0.3.0
211214
212-
- Fixed processing for imported CSS
213-
- Added default callback for saving exported JSON
215+
- Fixed processing for imported CSS
216+
- Added default callback for saving exported JSON
214217
215218
## 0.2.0
216219
217-
- Fixed JSON export with shallow imports (<https://github.com/outpunk/postcss-modules/issues/12>)
218-
- Fixed lookup paths (<https://github.com/outpunk/postcss-modules/issues/13>)
219-
- Fixed imports overriding (<https://github.com/outpunk/postcss-modules/issues/15>)
220-
- Global refactoring under the hood
220+
- Fixed JSON export with shallow imports (<https://github.com/outpunk/postcss-modules/issues/12>)
221+
- Fixed lookup paths (<https://github.com/outpunk/postcss-modules/issues/13>)
222+
- Fixed imports overriding (<https://github.com/outpunk/postcss-modules/issues/15>)
223+
- Global refactoring under the hood
221224
222225
## 0.1.3
223226

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,9 @@ You can rewrite paths for `composes/from` by using the `resolve` option.
211211
It's useful when you need to resolve custom path alias.
212212

213213
Parameters:
214-
- `file` — a module we want to resolve
215-
- `importer` — the file that imports the module we want to resolve
214+
215+
- `file` — a module we want to resolve
216+
- `importer` — the file that imports the module we want to resolve
216217

217218
Return value: `string | null | Promise<string | null>`
218219

0 commit comments

Comments
 (0)