UNPKG

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