UNPKG

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