UNPKG

16.6 kBMarkdownView Raw
1# rollup changelog
2
3## 0.20.4
4
5* Check file exists at resolve time, to allow filenames with non-extension dots in them ([#250](https://github.com/rollup/rollup/pull/250))
6* Import `Promise` where used, for Node 0.10 support ([#254](https://github.com/rollup/rollup/issues/254))
7* Allow asynchronous transformer plugins ([#260](https://github.com/rollup/rollup/issues/260))
8* Don't assume re-exported bindings are globals when deconflicting ([#267](https://github.com/rollup/rollup/issues/267))
9
10
11## 0.20.3
12
13* Fix bug where multiple `export *` declarations caused error ([#244](https://github.com/rollup/rollup/pulls/244))
14* Missing namespace exports are a warning, not an error ([#244](https://github.com/rollup/rollup/pulls/244))
15* Plugins can provide `banner` and `footer` options (string, or function that returns a string) ([#235](https://github.com/rollup/rollup/issues/235))
16* Warn on encountering `eval` ([#186](https://github.com/rollup/rollup/issues/186))
17
18## 0.20.2
19
20* Handle errors in build config file
21* More robust deconflicting, in cases where e.g. `foo$1` already exists
22* Use Rollup CLI for own build process
23
24## 0.20.1
25
26* Support `--config` file to enable plugins with CLI ([#226](https://github.com/rollup/rollup/pulls/226))
27* Prevent `default` being used as variable name ([#215](https://github.com/rollup/rollup/issues/215))
28* Update deps
29
30## 0.20.0
31
32* Support for [plugins](https://github.com/rollup/rollup/wiki/Plugins) ([#207](https://github.com/rollup/rollup/pulls/207))
33* BREAKING – `options.transform`, `options.load`, `options.resolveId`, `options.resolveExternal` and `options.external` are no longer supported, and should be handled by plugins. [More info](https://github.com/rollup/rollup/wiki/Plugins)
34* BREAKING – the .js extension is only added if it looks like there's no extension, allowing e.g. `import data from 'data.json'` (with the appropriate transformer). For safety, always include the file extension – import `./foo.js`, not `./foo`
35
36## 0.19.2
37
38* Fix exporting namespaces to include all of their exports ([#204](https://github.com/rollup/rollup/issues/204))
39* Namespace exotic objects are frozen to ensure that its properties cannot be modified, reconfigured, redefined or deleted ([#203](https://github.com/rollup/rollup/pulls/203))
40* Fix `ReferenceError: Promise is not defined` in node v0.10 ([#189](https://github.com/rollup/rollup/issues/189))
41
42## 0.19.1
43
44* Fix `module.basename()` when used with custom `resolveId` function
45* Use [rollup-babel](https://github.com/rollup/rollup-babel) to build self
46* Exposed the version string through the API: `require( 'rollup' ).VERSION`
47
48## 0.19.0
49
50* **breaking** The `transform` option is no longer passed through to custom loaders. Loaders should only concern themselves with providing source code; transformation will *always* take place
51* `options.transform` functions can return a string, or a `{code, map, ast}` object. Where possible, sourcemap chains will be flattened ([#175](https://github.com/rollup/rollup/pull/175))
52* `options.resolveId`, `options.resolveExternal` and `options.load` can each be a function or an array of functions. If an array, the first non-null/undefined return value is used. In both cases, failed resolution/loading will fall back to the defaults, unless an error is thrown. ([#174](https://github.com/rollup/rollup/pull/174))
53* New `intro` and `outro` options – similar to `banner` and `footer` except inserted *inside* any format-specific wrapper
54* Multiple var declarations in an export block (e.g. `export let a = 1, b = 2`) are split up to facilitate tree-shaking ([#171](https://github.com/rollup/rollup/issues/171))
55* More informative error when using a missing namespace property ([#169](https://github.com/rollup/rollup/pull/169))
56* Update various dependencies
57
58## 0.18.5
59
60* Allow namespaces to be assigned to variables ([#168](https://github.com/rollup/rollup/issues/168))
61* Promote `chalk` and `source-map-support` to `dependencies`, as they're used by the CLI ([#167](https://github.com/rollup/rollup/pull/167))
62
63## 0.18.4
64
65* Make external modules configurable (i.e. `external.config.foo = 'bar'`) without erroring
66
67## 0.18.3
68
69* Crop indent exclusion ranges to exclude enclosing quotes ([#166](https://github.com/rollup/rollup/issues/166))
70
71## 0.18.2
72
73* Include definitions of namespace members that are exported as defaults
74
75## 0.18.1
76
77* Include `acorn.parse` in bundle, remove `sander` from dependencies, simplify build
78
79## 0.18.0
80
81* Internal rewrite
82* Reinstate statically-analysable namespace imports
83* Avoid using getters in namespace blocks where possible ([#144](https://github.com/rollup/rollup/issues/144))
84* Track variable aliases ([#96](https://github.com/rollup/rollup/issues/96))
85* Prevent multiline strings being indented ([#164](https://github.com/rollup/rollup/issues/164))
86
87## 0.17.4
88
89* Allow imports from hidden directories (replay of [#133](https://github.com/rollup/rollup/issues/133))
90
91## 0.17.3
92
93* Handle parenthesised default exports ([#136](https://github.com/rollup/rollup/issues/136))
94
95## 0.17.2
96
97* Allow use of scoped npm packages ([#131](https://github.com/rollup/rollup/issues/131))
98
99## 0.17.1
100
101* Allow namespaces to be passed to a function ([#149](https://github.com/rollup/rollup/issues/149))
102
103## 0.17.0
104
105* Roll back to 0.15.0 and reapply subsequent fixes pending resolution of ([#132](https://github.com/rollup/rollup/issues/132)) and related issues
106
107## 0.16.4
108
109* Fix import paths with `.` ([#133](https://github.com/rollup/rollup/issues/133))
110* Prevent sourceMappingURL confusion leading to broken sourcemap
111* Add code coverage reporting [#130](https://github.com/rollup/rollup/pull/130))
112* Add `modules` property to user-facing `bundle` – an array with `{id}` objects ([#128](https://github.com/rollup/rollup/issues/128))
113
114## 0.16.3
115
116* Prevent adjacent blocks of multiple var declarations causing magic-string failure ([#105](https://github.com/rollup/rollup/issues/105))
117
118## 0.16.2
119
120* Top-level function calls and assignments to globals are treated as side-effects, and always included
121* Import files from subdirectories of external packages, e.g. `import mod from 'foo/sub/mod'` ([#126](https://github.com/rollup/rollup/issues/126))
122
123## 0.16.1
124
125* Handle assignment patterns, and destructured/rest parameters, when analysing scopes
126* Fix bug preventing project from self-building (make base `Identifier` class markable)
127
128## 0.16.0
129
130* Internal refactoring ([#99](https://github.com/rollup/rollup/pull/99))
131* Optimisation for statically-analysable namespace imports ([#99](https://github.com/rollup/rollup/pull/99))
132* Windows support (theoretically!) ([#117](https://github.com/rollup/rollup/pull/117) / [#119](https://github.com/rollup/rollup/pull/119))
133
134## 0.15.0
135
136* Load all modules specified by `import` statements, and do tree-shaking synchronously once loading is complete. This results in simpler and faster code, and enables future improvements ([#97](https://github.com/rollup/rollup/pull/97))
137* Only rewrite `foo` as `exports.foo` when it makes sense to ([#92](https://github.com/rollup/rollup/issues/92))
138* Fix bug with shadowed variables that are eventually exported ([#91](https://github.com/rollup/rollup/issues/91))
139* Exclude unused function declarations that happen to modify a used name ([#90](https://github.com/rollup/rollup/pull/90))
140* Simplify internal `Scope` model – scopes always attach to blocks, never function expressions/declarations
141
142## 0.14.1
143
144* `export { name } from './other'` does not create a local binding ([#16](https://github.com/rollup/rollup/issues/16))
145* A single binding can be exported under multiple names ([#18](https://github.com/rollup/rollup/issues/18))
146* `useStrict` option exposed to CLI as `--strict`/`--no-strict` ([#81](https://github.com/rollup/rollup/issues/81))
147* Neater exports from ES6 bundles
148
149## 0.14.0
150
151* Internal refactoring
152* Correctly deconflict generated default export names ([#72](https://github.com/rollup/rollup/issues/72))
153* Handle `export { x } from 'y'` declarations ([#74](https://github.com/rollup/rollup/issues/74))
154* Dedupe named imports from external modules in ES6 bundles ([#77](https://github.com/rollup/rollup/issues/77))
155
156## 0.13.0
157
158* Support `banner` and `footer` options ([#66](https://github.com/rollup/rollup/pull/66))
159* Remove pre-existing sourcemap comments ([#66](https://github.com/rollup/rollup/pull/66))
160* Deconflict external imports ([#66](https://github.com/rollup/rollup/pull/66))
161* Use existing AST, if provided ([#66](https://github.com/rollup/rollup/pull/66))
162* Rename internal namespace exports as appropriate ([#66](https://github.com/rollup/rollup/pull/66))
163* Remove uninitialised var declarations that get exported ([#66](https://github.com/rollup/rollup/pull/66))
164* Rename variables named `exports` to avoid conflicts ([#66](https://github.com/rollup/rollup/pull/66))
165
166## 0.12.1
167
168* Don't attempt to mark statements belonging to external modules ([#68](https://github.com/rollup/rollup/issues/68))
169* Correctly deshadow variables that conflict with imports ([#68](https://github.com/rollup/rollup/issues/68))
170
171## 0.12.0
172
173* Internal re-architecting, resulting in more efficient bundling with reduced memory usage
174* Shorthand properties are expanded if necessary ([#61](https://github.com/rollup/rollup/issues/61))
175* Fixed various bugs with bundle external dependencies, particularly when generating ES6 bundles ([#59](https://github.com/rollup/rollup/issues/59))
176* Add `--globals` option to CLI ([#60](https://github.com/rollup/rollup/pull/60))
177* Allow imports of external modules for side-effects ([#55](https://github.com/rollup/rollup/pull/55))
178* Prevent Rollup hanging on non-existent external module ([#54](https://github.com/rollup/rollup/pull/54))
179
180## 0.11.4
181
182* Side-effect preservation applies to internal default exports ([#43](https://github.com/rollup/rollup/issues/43))
183
184## 0.11.3
185
186* Class methods are not incorrectly renamed ([#42](https://github.com/rollup/rollup/issues/42))
187* External modules are assigned names before canonical names are determined ([#42](https://github.com/rollup/rollup/issues/42))
188
189## 0.11.2
190
191* Correctly handle computed properties (e.g. `foo[bar]`) when discovering dependencies ([#47](https://github.com/rollup/rollup/pull/47))
192
193## 0.11.1
194
195* Support for `export * from '..'` ([#46](https://github.com/rollup/rollup/pull/46))
196
197## 0.11.0
198
199* Experimental browser-friendly build (`dist/rollup.browser.js`) ([#25](https://github.com/rollup/rollup/issues/25))
200* Internal re-architecting to make discovery process simpler and more performant
201* Preservation of side-effects that happen in a separate module to the affected definition ([#39](https://github.com/rollup/rollup/issues/39))
202
203## 0.10.0
204
205* Better sorting algorithm – sorting happens at the module level, rather than the statement level. This avoids certain edge cases
206* IIFEs are ignored for the purposes of distinguishing between 'strong' and 'weak' dependencies
207* Empty `var` declarations for exported bindings are omitted
208
209## 0.9.1
210
211* Much faster statement insertion (fixes major 0.9.0 performance regression)
212
213## 0.9.0
214
215* BREAKING - `resolvePath` is now `resolveId`. The returned `id` (which by default is a filepath) is passed to the `load` function, which can optionally be overridden, and which is applied to all modules including the entry module. This allows custom resolver and loading logic for integration with third party systems (e.g. JSPM) or, eventually, in-browser usage ([#30](https://github.com/rollup/rollup/issues/30))
216* A statement cannot appear after later statements from the same bundle ([#34](https://github.com/rollup/rollup/issues/34))
217* Tricky cyclical dependencies are handled ([#36](https://github.com/rollup/rollup/issues/36))
218* `sourcemap` option is used by CLI (was omitted previously)
219
220## 0.8.3
221
222* Correctly rename functions that have arguments with the same name ([#32](https://github.com/rollup/rollup/issues/32))
223* Ensure unused default exports are given a legal name ([#33](https://github.com/rollup/rollup/issues/33))
224
225## 0.8.2
226
227* Support `moduleId` and `moduleName` via CLI ([#24](https://github.com/rollup/rollup/issues/24))
228
229## 0.8.1
230
231* Anonymous functions that are exported as default are converted to named function declarations for correct hoisting, rather than being bound to functions ([#29](https://github.com/rollup/rollup/issues/29))
232* Automatically-generated default export names are deconflicted with local definitions ([#29](https://github.com/rollup/rollup/issues/29))
233
234## 0.8.0
235
236* Top-level variable declarations with multiple declarators are split up, to avoid unnecessary code importing and incorrectly-ordered statements ([#26](https://github.com/rollup/rollup/issues/26))
237* `this` at the top level is `undefined` ([#28](https://github.com/rollup/rollup/issues/28))
238
239## 0.7.8
240
241* Avoid using `path.parse` - unsupported in node 0.10
242
243## 0.7.7
244
245* Promise `source-map-support` from `devDependencies` to `dependencies` ([#23](https://github.com/rollup/rollup/issues/23))
246
247## 0.7.6
248
249* Better placement of `export default` statements ([#21](https://github.com/rollup/rollup/issues/21))
250* Prevent function calls and property assignments from being treated as rebinding for sake of unbound default exports
251* Add `--external foo,bar,baz` option to CLI (equivalent to `external: ['foo', 'bar', 'baz']`)
252* Add CLI tests
253
254## 0.7.5
255
256* Prevent accidental conflicts with the global namespace ([#20](https://github.com/rollup/rollup/issues/20))
257
258## 0.7.4
259
260* More precise statement re-ordering to satisfy `export default` constraint (fixes bug introduced in 0.7.3)
261
262## 0.7.3
263
264* Default exports are not bound. To enable this, statements within a module are sorted to retain their original order ([#15](https://github.com/rollup/rollup/issues/15))
265* Better positioning of comments ([#14](https://github.com/rollup/rollup/issues/14))
266* Various fixes to get Travis-CI rigged up
267
268## 0.7.2
269
270* Fix sourcemap paths on Windows ([#6](https://github.com/rollup/rollup/pull/6))
271
272## 0.7.1
273
274* Named functions can be used as default exports from a bundle
275* Method calls are assumed to mutate the owner (i.e. `foo.bar()` mutates `foo`) ([#13](https://github.com/rollup/rollup/issues/13))
276* `options.indent` can be used to control indentation of resulting bundle. `options.true` (default) means 'auto', `options.false` means empty string. Alternatively specify whitespace e.g. `' '` or `'\t'` ([#5](https://github.com/rollup/rollup/issues/5))
277
278## 0.7.0
279
280* Ensure statements are always separated by a newline ([#9](https://github.com/rollup/rollup/pull/9))
281* Use CommonJS `exports` correctly (UMD exports)
282* Throw error if `moduleName` is required but missing (UMD exports)
283* Attach IIFE global to `this` rather than `window`
284* Allow names inside bundle to the the names of `Object.prototype` properties ([#12](https://github.com/rollup/rollup/pull/12))
285* Keep exports live ([#11](https://github.com/rollup/rollup/pull/11))
286
287## 0.6.5
288
289* Add sourceMappingURL comment to code, as appropriate
290* Higher resolution sourcemaps
291
292## 0.6.4
293
294* Fix CJS bundling with default export
295
296## 0.6.3
297
298* Fix exports and external module imports with some output formats
299* Fix endless cycle bug on Windows ([#3](https://github.com/rollup/rollup/pull/3)) - thanks @Bobris
300
301## 0.6.2
302
303* Permit assignments to properties of imported bindings
304
305## 0.6.1
306
307* Support for basic transformers
308
309## 0.6.0
310
311* BREAKING - `rollup.rollup` and `bundle.write` both take a single options argument
312* BREAKING - external modules must be declared upfront with `options.external: [...]`
313* Non-relative module paths will be resolved by looking for `jsnext:main` fields in the appropriate `package.json` files. This behaviour can be overridden by passing an alternative `resolveExternal` function
314* Fix sourcemap options
315* Include CLI files in npm package (duh)
316
317## 0.5.0
318
319* Command line interface
320* Sourcemap generation
321* Correct behaviour with `export { x as y } from 'z'`
322
323## 0.4.1
324
325* More import name deconflicting
326
327## 0.4.0
328
329* Self-hosting! `rollup.rollup` now rolls up rollup
330* Fix bug with comments inside a statement later being appended to it
331* Prevent shadowing of external modules
332* Rewrite computed property identifiers where necessary
333* Preserve original statement order where possible
334* Internal refactoring
335
336## 0.3.1
337
338* Saner deconflicting
339* Rename namespace imports from external modules correctly
340
341## 0.3.0
342
343* Basic functionality present, mostly spec-compliant
344
345## 0.2.1
346
347* Include dist files in npm package (duh)
348
349## 0.2.0
350
351* First release capable of doing anything useful
352* Still lots of basic functionality missing
353
354## 0.1.0
355
356* Initial experiment