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