UNPKG

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