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