UNPKG

8.33 kBMarkdownView Raw
1# rollup-plugin-commonjs changelog
2
3## 9.1.3
4*2018-04-30*
5* Fix a caching issue ([#316](https://github.com/rollup/rollup-plugin-commonjs/issues/316))
6
7## 9.1.2
8*2018-04-30*
9* Re-publication of 9.1.0
10
11## 9.1.1
12*2018-04-30*
13* Fix ordering of modules when using rollup 0.58 ([#302](https://github.com/rollup/rollup-plugin-commonjs/issues/302))
14
15## 9.1.0
16
17* Do not automatically wrap modules with return statements in top level arrow functions ([#302](https://github.com/rollup/rollup-plugin-commonjs/issues/302))
18
19## 9.0.0
20
21* Make rollup a peer dependency with a version range ([#300](https://github.com/rollup/rollup-plugin-commonjs/issues/300))
22
23## 8.4.1
24
25* Re-release of 8.3.0 as #287 was actually a breaking change
26
27## 8.4.0
28
29* Better handle non-CJS files that contain CJS keywords ([#285](https://github.com/rollup/rollup-plugin-commonjs/issues/285))
30* Use rollup's plugin context`parse` function ([#287](https://github.com/rollup/rollup-plugin-commonjs/issues/287))
31* Improve error handling ([#288](https://github.com/rollup/rollup-plugin-commonjs/issues/288))
32
33## 8.3.0
34
35* Handle multiple entry points ([#283](https://github.com/rollup/rollup-plugin-commonjs/issues/283))
36* Extract named exports from exported object literals ([#272](https://github.com/rollup/rollup-plugin-commonjs/issues/272))
37* Fix when `options.external` is modified by other plugins ([#264](https://github.com/rollup/rollup-plugin-commonjs/issues/264))
38* Recognize static template strings in require statements ([#271](https://github.com/rollup/rollup-plugin-commonjs/issues/271))
39
40## 8.2.4
41
42* Don't import default from ES modules that don't export default ([#206](https://github.com/rollup/rollup-plugin-commonjs/issues/206))
43
44## 8.2.3
45
46* Prevent duplicate default exports ([#230](https://github.com/rollup/rollup-plugin-commonjs/pull/230))
47* Only include default export when it exists ([#226](https://github.com/rollup/rollup-plugin-commonjs/pull/226))
48* Deconflict `require` aliases ([#232](https://github.com/rollup/rollup-plugin-commonjs/issues/232))
49
50## 8.2.1
51
52* Fix magic-string deprecation warning
53
54## 8.2.0
55
56* Avoid using `index` as a variable name ([#208](https://github.com/rollup/rollup-plugin-commonjs/pull/208))
57
58## 8.1.1
59
60* Compatibility with 0.48 ([#220](https://github.com/rollup/rollup-plugin-commonjs/issues/220))
61
62## 8.1.0
63
64* Handle `options.external` correctly ([#212](https://github.com/rollup/rollup-plugin-commonjs/pull/212))
65* Support top-level return ([#195](https://github.com/rollup/rollup-plugin-commonjs/pull/195))
66
67## 8.0.2
68
69* Fix another `var` rewrite bug ([#181](https://github.com/rollup/rollup-plugin-commonjs/issues/181))
70
71## 8.0.1
72
73* Remove declarators within a var declaration correctly ([#179](https://github.com/rollup/rollup-plugin-commonjs/issues/179))
74
75## 8.0.0
76
77* Prefer the names dependencies are imported by for the common `var foo = require('foo')` pattern ([#176](https://github.com/rollup/rollup-plugin-commonjs/issues/176))
78
79## 7.1.0
80
81* Allow certain `require` statements to pass through unmolested ([#174](https://github.com/rollup/rollup-plugin-commonjs/issues/174))
82
83## 7.0.2
84
85* Handle duplicate default exports ([#158](https://github.com/rollup/rollup-plugin-commonjs/issues/158))
86
87## 7.0.1
88
89* Fix exports with parentheses ([#168](https://github.com/rollup/rollup-plugin-commonjs/issues/168))
90
91## 7.0.0
92
93* Rewrite `typeof module`, `typeof module.exports` and `typeof exports` as `'object'` ([#151](https://github.com/rollup/rollup-plugin-commonjs/issues/151))
94
95## 6.0.1
96
97* Don't overwrite globals ([#127](https://github.com/rollup/rollup-plugin-commonjs/issues/127))
98
99## 6.0.0
100
101* Rewrite top-level `define` as `undefined`, so AMD-first UMD blocks do not cause breakage ([#144](https://github.com/rollup/rollup-plugin-commonjs/issues/144))
102* Support ES2017 syntax ([#132](https://github.com/rollup/rollup-plugin-commonjs/issues/132))
103* Deconflict exported reserved keywords ([#116](https://github.com/rollup/rollup-plugin-commonjs/issues/116))
104
105## 5.0.5
106* Fix parenthesis wrapped exports ([#120](https://github.com/rollup/rollup-plugin-commonjs/issues/120))
107
108## 5.0.4
109
110* Ensure named exports are added to default export in optimised modules ([#112](https://github.com/rollup/rollup-plugin-commonjs/issues/112))
111
112## 5.0.3
113
114* Respect custom `namedExports` in optimised modules ([#35](https://github.com/rollup/rollup-plugin-commonjs/issues/35))
115
116## 5.0.2
117
118* Replace `require` (outside call expressions) with `commonjsRequire` helper ([#77](https://github.com/rollup/rollup-plugin-commonjs/issues/77), [#83](https://github.com/rollup/rollup-plugin-commonjs/issues/83))
119
120## 5.0.1
121
122* Deconflict against globals ([#84](https://github.com/rollup/rollup-plugin-commonjs/issues/84))
123
124## 5.0.0
125
126* Optimise modules that don't need to be wrapped in a function ([#106](https://github.com/rollup/rollup-plugin-commonjs/pull/106))
127* Ignore modules containing `import` and `export` statements ([#96](https://github.com/rollup/rollup-plugin-commonjs/pull/96))
128
129## 4.1.0
130
131* Ignore dead branches ([#93](https://github.com/rollup/rollup-plugin-commonjs/issues/93))
132
133## 4.0.1
134
135* Fix `ignoreGlobal` option ([#86](https://github.com/rollup/rollup-plugin-commonjs/pull/86))
136
137## 4.0.0
138
139* Better interop and smaller output ([#92](https://github.com/rollup/rollup-plugin-commonjs/pull/92))
140
141## 3.3.1
142
143* Deconflict export and local module ([rollup/rollup#554](https://github.com/rollup/rollup/issues/554))
144
145## 3.3.0
146
147* Keep the order of execution for require calls ([#43](https://github.com/rollup/rollup-plugin-commonjs/pull/43))
148* Use interopDefault as helper ([#42](https://github.com/rollup/rollup-plugin-commonjs/issues/42))
149
150## 3.2.0
151
152* Use named exports as a function when no default export is defined ([#524](https://github.com/rollup/rollup/issues/524))
153
154## 3.1.0
155
156* Replace `typeof require` with `'function'` ([#38](https://github.com/rollup/rollup-plugin-commonjs/issues/38))
157* Don't attempt to resolve entry file relative to importer ([#63](https://github.com/rollup/rollup-plugin-commonjs/issues/63))
158
159## 3.0.2
160
161* Handle multiple references to `global`
162
163## 3.0.1
164
165* Return a `name`
166
167## 3.0.0
168
169* Make `transform` stateless ([#71](https://github.com/rollup/rollup-plugin-commonjs/pull/71))
170* Support web worker `global` ([#50](https://github.com/rollup/rollup-plugin-commonjs/issues/50))
171* Ignore global with `options.ignoreGlobal` ([#48](https://github.com/rollup/rollup-plugin-commonjs/issues/48))
172
173## 2.2.1
174
175* Prevent false positives with `namedExports` ([#36](https://github.com/rollup/rollup-plugin-commonjs/issues/36))
176
177## 2.2.0
178
179* Rewrite top-level `this` expressions to mean the same as `global` ([#31](https://github.com/rollup/rollup-plugin-commonjs/issues/31))
180
181## 2.1.0
182
183* Optimised module wrappers ([#20](https://github.com/rollup/rollup-plugin-commonjs/pull/20))
184* Allow control over named exports via `options.namedExports` ([#18](https://github.com/rollup/rollup-plugin-commonjs/issues/18))
185* Handle bare imports correctly ([#23](https://github.com/rollup/rollup-plugin-commonjs/issues/23))
186* Blacklist all reserved words as export names ([#21](https://github.com/rollup/rollup-plugin-commonjs/issues/21))
187* Configure allowed file extensions via `options.extensions` ([#27](https://github.com/rollup/rollup-plugin-commonjs/pull/27))
188
189## 2.0.0
190
191* Support for transpiled modules – `exports.default` is used as the default export in place of `module.exports`, if applicable, and `__esModule` is not exported ([#16](https://github.com/rollup/rollup-plugin-commonjs/pull/16))
192
193## 1.4.0
194
195* Generate sourcemaps by default
196
197## 1.3.0
198
199* Handle references to `global` ([#6](https://github.com/rollup/rollup-plugin-commonjs/issues/6))
200
201## 1.2.0
202
203* Generate named exports where possible ([#5](https://github.com/rollup/rollup-plugin-commonjs/issues/5))
204* Handle shadowed `require`/`module`/`exports`
205
206## 1.1.0
207
208* Handle dots in filenames ([#3](https://github.com/rollup/rollup-plugin-commonjs/issues/3))
209* Wrap modules in IIFE for more readable output
210
211## 1.0.0
212
213* Stable release, now that Rollup supports plugins
214
215## 0.2.1
216
217* Allow mixed CommonJS/ES6 imports/exports
218* Use `var` instead of `let`
219
220## 0.2.0
221
222* Sourcemap support
223* Support `options.include` and `options.exclude`
224* Bail early if module is obviously not a CommonJS module
225
226## 0.1.1
227
228Add dist files to package (whoops!)
229
230## 0.1.0
231
232* First release