UNPKG

7.55 kBMarkdownView Raw
1# rollup changelog
2
3## 0.12.0
4
5* Internal re-architecting, resulting in more efficient bundling with reduced memory usage
6* Shorthand properties are expanded if necessary ([#61](https://github.com/rollup/rollup/issues/61))
7* Fixed various bugs with bundle external dependencies, particularly when generating ES6 bundles ([#59](https://github.com/rollup/rollup/issues/59))
8* Add `--globals` option to CLI ([#60](https://github.com/rollup/rollup/pull/60))
9* Allow imports of external modules for side-effects ([#55](https://github.com/rollup/rollup/pull/55))
10* Prevent Rollup hanging on non-existent external module ([#54](https://github.com/rollup/rollup/pull/54))
11
12## 0.11.4
13
14* Side-effect preservation applies to internal default exports ([#43](https://github.com/rollup/rollup/issues/43))
15
16## 0.11.3
17
18* Class methods are not incorrectly renamed ([#42](https://github.com/rollup/rollup/issues/42))
19* External modules are assigned names before canonical names are determined ([#42](https://github.com/rollup/rollup/issues/42))
20
21## 0.11.2
22
23* Correctly handle computed properties (e.g. `foo[bar]`) when discovering dependencies ([#47](https://github.com/rollup/rollup/pull/47))
24
25## 0.11.1
26
27* Support for `export * from '..'` ([#46](https://github.com/rollup/rollup/pull/46))
28
29## 0.11.0
30
31* Experimental browser-friendly build (`dist/rollup.browser.js`) ([#25](https://github.com/rollup/rollup/issues/25))
32* Internal re-architecting to make discovery process simpler and more performant
33* Preservation of side-effects that happen in a separate module to the affected definition ([#39](https://github.com/rollup/rollup/issues/39))
34
35## 0.10.0
36
37* Better sorting algorithm – sorting happens at the module level, rather than the statement level. This avoids certain edge cases
38* IIFEs are ignored for the purposes of distinguishing between 'strong' and 'weak' dependencies
39* Empty `var` declarations for exported bindings are omitted
40
41## 0.9.1
42
43* Much faster statement insertion (fixes major 0.9.0 performance regression)
44
45## 0.9.0
46
47* 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))
48* A statement cannot appear after later statements from the same bundle ([#34](https://github.com/rollup/rollup/issues/34))
49* Tricky cyclical dependencies are handled ([#36](https://github.com/rollup/rollup/issues/36))
50* `sourcemap` option is used by CLI (was omitted previously)
51
52## 0.8.3
53
54* Correctly rename functions that have arguments with the same name ([#32](https://github.com/rollup/rollup/issues/32))
55* Ensure unused default exports are given a legal name ([#33](https://github.com/rollup/rollup/issues/33))
56
57## 0.8.2
58
59* Support `moduleId` and `moduleName` via CLI ([#24](https://github.com/rollup/rollup/issues/24))
60
61## 0.8.1
62
63* 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))
64* Automatically-generated default export names are deconflicted with local definitions ([#29](https://github.com/rollup/rollup/issues/29))
65
66## 0.8.0
67
68* 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))
69* `this` at the top level is `undefined` ([#28](https://github.com/rollup/rollup/issues/28))
70
71## 0.7.8
72
73* Avoid using `path.parse` - unsupported in node 0.10
74
75## 0.7.7
76
77* Promise `source-map-support` from `devDependencies` to `dependencies` ([#23](https://github.com/rollup/rollup/issues/23))
78
79## 0.7.6
80
81* Better placement of `export default` statements ([#21](https://github.com/rollup/rollup/issues/21))
82* Prevent function calls and property assignments from being treated as rebinding for sake of unbound default exports
83* Add `--external foo,bar,baz` option to CLI (equivalent to `external: ['foo', 'bar', 'baz']`)
84* Add CLI tests
85
86## 0.7.5
87
88* Prevent accidental conflicts with the global namespace ([#20](https://github.com/rollup/rollup/issues/20))
89
90## 0.7.4
91
92* More precise statement re-ordering to satisfy `export default` constraint (fixes bug introduced in 0.7.3)
93
94## 0.7.3
95
96* 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))
97* Better positioning of comments ([#14](https://github.com/rollup/rollup/issues/14))
98* Various fixes to get Travis-CI rigged up
99
100## 0.7.2
101
102* Fix sourcemap paths on Windows ([#6](https://github.com/rollup/rollup/pull/6))
103
104## 0.7.1
105
106* Named functions can be used as default exports from a bundle
107* Method calls are assumed to mutate the owner (i.e. `foo.bar()` mutates `foo`) ([#13](https://github.com/rollup/rollup/issues/13))
108* `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))
109
110## 0.7.0
111
112* Ensure statements are always separated by a newline ([#9](https://github.com/rollup/rollup/pull/9))
113* Use CommonJS `exports` correctly (UMD exports)
114* Throw error if `moduleName` is required but missing (UMD exports)
115* Attach IIFE global to `this` rather than `window`
116* Allow names inside bundle to the the names of `Object.prototype` properties ([#12](https://github.com/rollup/rollup/pull/12))
117* Keep exports live ([#11](https://github.com/rollup/rollup/pull/11))
118
119## 0.6.5
120
121* Add sourceMappingURL comment to code, as appropriate
122* Higher resolution sourcemaps
123
124## 0.6.4
125
126* Fix CJS bundling with default export
127
128## 0.6.3
129
130* Fix exports and external module imports with some output formats
131* Fix endless cycle bug on Windows ([#3](https://github.com/rollup/rollup/pull/3)) - thanks @Bobris
132
133## 0.6.2
134
135* Permit assignments to properties of imported bindings
136
137## 0.6.1
138
139* Support for basic transformers
140
141## 0.6.0
142
143* BREAKING - `rollup.rollup` and `bundle.write` both take a single options argument
144* BREAKING - external modules must be declared upfront with `options.external: [...]`
145* 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
146* Fix sourcemap options
147* Include CLI files in npm package (duh)
148
149## 0.5.0
150
151* Command line interface
152* Sourcemap generation
153* Correct behaviour with `export { x as y } from 'z'`
154
155## 0.4.1
156
157* More import name deconflicting
158
159## 0.4.0
160
161* Self-hosting! `rollup.rollup` now rolls up rollup
162* Fix bug with comments inside a statement later being appended to it
163* Prevent shadowing of external modules
164* Rewrite computed property identifiers where necessary
165* Preserve original statement order where possible
166* Internal refactoring
167
168## 0.3.1
169
170* Saner deconflicting
171* Rename namespace imports from external modules correctly
172
173## 0.3.0
174
175* Basic functionality present, mostly spec-compliant
176
177## 0.2.1
178
179* Include dist files in npm package (duh)
180
181## 0.2.0
182
183* First release capable of doing anything useful
184* Still lots of basic functionality missing
185
186## 0.1.0
187
188* Initial experiment