UNPKG

8.69 kBMarkdownView Raw
1# 8.1.1 - 2016-05-04
2
3- Fixed: JSPM support
4 ([#194](https://github.com/postcss/postcss-import/pull/194))
5
6# 8.1.0 - 2016-04-04
7
8- Added: JSPM browser field
9 ([#186](https://github.com/postcss/postcss-import/pull/186))
10
11# 8.0.2 - 2015-01-27
12
13- Fixed: Comments between imports statements are ignored
14([#164](https://github.com/postcss/postcss-import/pull/164))
15
16# 8.0.1 - 2015-01-27
17
18- Fixed: missing "lib" folder
19([#161](https://github.com/postcss/postcss-import/issues/161))
20
21# 8.0.0 - 2015-01-27
22
23**All imports statements must be at the top of your file now, per CSS specification.**
24You should use [postcss-reporter](https://github.com/postcss/postcss-reporter) to see the warnings raised.
25
26- Removed: async mode/option (now async by default)
27([#107](https://github.com/postcss/postcss-import/pull/107))
28- Removed: "bower_components" not supported by default anymore,
29use "path" option to add it back
30- Removed: `encoding` option. Encoding can be specified in custom `load` option
31
32```js
33postcssImport({
34 load: function(filename) {
35 return fs.readFileSync(filename, "utf-8")
36 }
37})
38```
39([#144](https://github.com/postcss/postcss-import/pull/144))
40
41- Removed: glob support
42([#146](https://github.com/postcss/postcss-import/pull/146))
43
44Globs can be implemented with custom `resolve` option
45
46```js
47postcssImport({
48 resolve: function(id, base) {
49 return glob.sync(path.join(base, id))
50 }
51})
52```
53
54([#116](https://github.com/postcss/postcss-import/pull/116))
55- Changed: custom resolve has more responsibility for paths resolving.
56See [resolve option](https://github.com/postcss/postcss-import#resolve)
57for more information about this change
58([#116](https://github.com/postcss/postcss-import/pull/116))
59- Changed: support promise in `transform` option and `undefined` result will be
60skipped
61([#147](https://github.com/postcss/postcss-import/pull/147))
62- Changed: `options.plugins` are applied to unprocessed ast before imports
63detecting
64([157](https://github.com/postcss/postcss-import/pull/157))
65- Added: custom resolve function can return array of paths
66([#120](https://github.com/postcss/postcss-import/pull/120))
67- Added: custom syntax in imported files support
68([#130](https://github.com/postcss/postcss-import/pull/130))
69- Added: support custom `load` option
70([#144](https://github.com/postcss/postcss-import/pull/144))
71- Added: detect css extension in package.json `main` field
72([153](https://github.com/postcss/postcss-import/pull/153))
73
74**Note:**
75_If you miss options/default behavior (glob etc), a new plugin will handle all
76those things.
77Please follow issue [#145](https://github.com/postcss/postcss-import/issues/145)
78_
79
80# 7.1.3 - 2015-11-05
81
82- Fixed: ensure node 0.12 compatibility, round 2
83([#93](https://github.com/postcss/postcss-import/pull/93))
84
85# 7.1.2 - 2015-11-05
86
87- Fixed: performance issue because of cloned options
88([#90](https://github.com/postcss/postcss-import/pull/90))
89
90# 7.1.1 - 2015-11-05
91
92- Added: ensure node 0.12 compatibility
93
94# 7.0.0 - 2015-08-25
95
96- Removed: compatibility with postcss v4.x
97([#75](https://github.com/postcss/postcss-import/pull/75))
98- Added: compatibility with postcss v5.x
99([#76](https://github.com/postcss/postcss-import/pull/76))
100- Added: lighter package by upgrading some dependencies
101([#73](https://github.com/postcss/postcss-import/issues/73))
102
103# 6.2.0 - 2015-07-21
104
105- Added: `skipDuplicates` option now allows you to **not** skip duplicated files
106([#67](https://github.com/postcss/postcss-import/issues/67))
107
108# 6.1.1 - 2015-07-07
109
110- Fixed: Prevent mutability issue, round 2
111([#44](https://github.com/postcss/postcss-import/issues/44))
112- Added: `plugins` option, to run some postcss plugin on imported files
113([#55](https://github.com/postcss/postcss-import/issues/55))
114- Added: `bower_components` is now part of the default paths
115([#66](https://github.com/postcss/postcss-import/issues/66))
116- Added: `async` option allow to use enable PostCSS async API usage.
117Note that it's not enabling async fs read yet. It has been added to fix breaking
118change introduced by 6.1.0.
119
120# 6.1.0 - 2015-07-07 **YANKED**
121
122_This release was not respecting semver and introduced a major breaking change.
123It has been unpublished for now._
124
125# 6.0.0 - 2015-06-17
126
127- Changed: warnings messages are now using postcss message api (4.1.x)
128- Added: warning when a import statement has not been closed correctly
129([#42](https://github.com/postcss/postcss-import/issues/42))
130
131# 5.2.2 - 2015-04-19
132
133- Fixed: globbed imports work for module directories ([#37](https://github.com/postcss/postcss-import/pull/37))
134
135# 5.2.1 - 2015-04-17
136
137- Fixed: glob import now works with single quote `@import` ([#36](https://github.com/postcss/postcss-import/pull/36))
138
139# 5.2.0 - 2015-04-15
140
141- Added: [glob](https://www.npmjs.com/package/glob) pattern are now supported if `glob` option is set to true ([#34](https://github.com/postcss/postcss-import/pull/34))
142- Added: plugin can now be added to PostCSS without calling it as a function ([#27](https://github.com/postcss/postcss-import/pull/27))
143
144# 5.1.1 - 2015-04-10
145
146- Fixed: regression of 5.1.0: files which only contain same @import rules were skip ([#31](https://github.com/postcss/postcss-import/issues/31))
147
148# 5.1.0 - 2015-03-27
149
150- Added: files with the same content will only be imported once. Previously, only the full path was used to determine if a file has already been imported in a given scope.
151Now, we also test create a hash with the content of the file to check if a file with the same content has not already been imported.
152This might be usefull if some modules you import are importing the same library from different places (eg: normalize might be as dep for several modules located in different places in `node_modules`)
153([#29](https://github.com/postcss/postcss-import/pull/28))
154
155# 5.0.3 - 2015-02-16
156
157- Fixed: regression of 5.0.2: AST parent references were not updated ([#25](https://github.com/postcss/postcss-import/issues/25))
158
159# 5.0.2 - 2015-02-14
160
161- Fixed: indentation and code style are now preserved ([#20](https://github.com/postcss/postcss-import/issues/20))
162
163# 5.0.1 - 2015-02-13
164
165- Fixed: breaking bug with remote stylesheets ([#21](https://github.com/postcss/postcss-import/issues/21) & [#22](https://github.com/postcss/postcss-import/issues/22))
166
167# 5.0.0 - 2015-01-26
168
169- Added: compatibility with postcss v4.x
170- Removed: compatibility with postcss v3.x
171- Fixed: relative imports (./ and ../) should work using `path` option only (no need for `from`) ([#14](https://github.com/postcss/postcss-import/issues/14))
172
173# 4.1.1 - 2015-01-05
174
175- Fixed: irregular whitespace that throw syntax error in some environnements
176
177# 4.1.0 - 2014-12-12
178
179- Added: `web_modules` is now in module directories that are used to resolve `@import` ([#13](https://github.com/postcss/postcss-import/issues/13)).
180
181# 4.0.0 - 2014-12-11
182
183- Added: windows compatibility (by building on AppVeyor)
184- Added: `root` option
185
186# 3.2.0 - 2014-11-24
187
188- Added: `onImport` callback offers a way to get list of imported files ([ref](https://github.com/postcss/postcss-import/issues/9))
189
190# 3.1.0 - 2014-11-24
191
192- Added: ability to consume local modules (fix [#12](https://github.com/postcss/postcss-import/issues/12))
193
194# 3.0.0 - 2014-11-21
195
196- Added: ability to consume node modules ([ref](https://github.com/postcss/postcss-import/issues/7)).
197This means you don't have to add `node_modules` in the path anymore (or using `@import "../node_modules/..."`).
198Also, `index.css` can be ommited.
199
200This means something like this
201
202```css
203@import "../node_modules/my-css-on-npm/index.css";
204```
205
206can be written like this
207
208```css
209@import "my-css-on-npm";
210```
211
212Dependencies of dependencies should be resolved as well.
213
214_Note that npm resolution is done after the default local behavior._
215
216- Changed: When importing a file multiple times in the same scope (same level of media queries), file will only be imported the first time.
217This is done to avoid having multiples outputs of a npm dep used multiples times in different modules.
218
219# 2.0.0 - 2014-11-12
220
221- Added: compatibility with postcss v3.x
222- Removed: compatibility with postcss v2.x
223
224# 1.0.3 - 2014-10-29
225
226- Fixed: relative import path stack
227
228# 1.0.2 - 2014-09-16
229
230- Added: Move ignored import at top & adjust related media queries, to make them work (fix [#2](https://github.com/postcss/postcss-import/issues/2))
231- Added: Ignore scheme-relative absolute URLs
232- Removed: `parse-import` module dependency
233
234# 1.0.1 - 2014-08-26
235
236- Fixed: GNU message format
237- Added: Support empty files ([cssnext/#24](https://github.com/putaindecode/cssnext/issues/24))
238
239# 1.0.0 - 2014-08-10
240
241✨ First release based on [rework-import](https://github.com/reworkcss/rework-import) v1.2.0 (mainly for fixtures)