UNPKG

11.5 kBMarkdownView Raw
1# rollup-plugin-commonjs changelog
2
3## 10.1.0
4*2019-08-27*
5* Normalize ids before looking up in named export map ([#406](https://github.com/rollup/rollup-plugin-commonjs/issues/406))
6* Update README.md with note on symlinks ([#405](https://github.com/rollup/rollup-plugin-commonjs/issues/405))
7
8## 10.0.2
9*2019-08-03*
10* Support preserveSymlinks: false ([#401](https://github.com/rollup/rollup-plugin-commonjs/issues/401))
11
12## 10.0.1
13*2019-06-27*
14* Make tests run with Node 6 again and update dependencies ([#389](https://github.com/rollup/rollup-plugin-commonjs/issues/389))
15* Handle builtins appropriately for resolve 1.11.0 ([#395](https://github.com/rollup/rollup-plugin-commonjs/issues/395))
16
17## 10.0.0
18*2019-05-15*
19* Use new Rollup@1.12 context functions, fix issue when resolveId returns an object ([#387](https://github.com/rollup/rollup-plugin-commonjs/issues/387))
20
21## 9.3.4
22*2019-04-04*
23* Make "extensions" optional ([#384](https://github.com/rollup/rollup-plugin-commonjs/issues/384))
24* Use same typing for include and exclude properties ([#385](https://github.com/rollup/rollup-plugin-commonjs/issues/385))
25
26## 9.3.3
27*2019-04-04*
28* Remove colon from module prefixes ([#371](https://github.com/rollup/rollup-plugin-commonjs/issues/371))
29
30## 9.3.2
31*2019-04-04*
32* Use shared extractAssignedNames, fix destructuring issue ([#303](https://github.com/rollup/rollup-plugin-commonjs/issues/303))
33
34## 9.3.1
35*2019-04-04*
36* Include typings in release ([#382](https://github.com/rollup/rollup-plugin-commonjs/issues/382))
37
38## 9.3.0
39*2019-04-03*
40* Add TypeScript types ([#363](https://github.com/rollup/rollup-plugin-commonjs/issues/363))
41
42## 9.2.3
43*2019-04-02*
44* Improve support for ES3 browsers ([#364](https://github.com/rollup/rollup-plugin-commonjs/issues/364))
45* Add note about monorepo usage to readme ([#372](https://github.com/rollup/rollup-plugin-commonjs/issues/372))
46* Add .js extension to generated helper file ([#373](https://github.com/rollup/rollup-plugin-commonjs/issues/373))
47
48## 9.2.2
49*2019-03-25*
50* Handle array destructuring assignment ([#379](https://github.com/rollup/rollup-plugin-commonjs/issues/379))
51
52## 9.2.1
53*2019-02-23*
54* Use correct context when manually resolving ids ([#370](https://github.com/rollup/rollup-plugin-commonjs/issues/370))
55
56## 9.2.0
57*2018-10-10*
58* Fix missing default warning, produce better code when importing known ESM default exports ([#349](https://github.com/rollup/rollup-plugin-commonjs/issues/349))
59* Refactor code and add prettier ([#346](https://github.com/rollup/rollup-plugin-commonjs/issues/346))
60
61## 9.1.8
62*2018-09-18*
63* Ignore virtual modules created by other plugins ([#327](https://github.com/rollup/rollup-plugin-commonjs/issues/327))
64* Add "location" and "process" to reserved words ([#330](https://github.com/rollup/rollup-plugin-commonjs/issues/330))
65
66## 9.1.6
67*2018-08-24*
68* Keep commonJS detection between instantiations ([#338](https://github.com/rollup/rollup-plugin-commonjs/issues/338))
69
70## 9.1.5
71*2018-08-09*
72* Handle object form of input ([#329](https://github.com/rollup/rollup-plugin-commonjs/issues/329))
73
74## 9.1.4
75*2018-07-27*
76* Make "from" a reserved word ([#320](https://github.com/rollup/rollup-plugin-commonjs/issues/320))
77
78## 9.1.3
79*2018-04-30*
80* Fix a caching issue ([#316](https://github.com/rollup/rollup-plugin-commonjs/issues/316))
81
82## 9.1.2
83*2018-04-30*
84* Re-publication of 9.1.0
85
86## 9.1.1
87*2018-04-30*
88* Fix ordering of modules when using rollup 0.58 ([#302](https://github.com/rollup/rollup-plugin-commonjs/issues/302))
89
90## 9.1.0
91
92* Do not automatically wrap modules with return statements in top level arrow functions ([#302](https://github.com/rollup/rollup-plugin-commonjs/issues/302))
93
94## 9.0.0
95
96* Make rollup a peer dependency with a version range ([#300](https://github.com/rollup/rollup-plugin-commonjs/issues/300))
97
98## 8.4.1
99
100* Re-release of 8.3.0 as #287 was actually a breaking change
101
102## 8.4.0
103
104* Better handle non-CJS files that contain CJS keywords ([#285](https://github.com/rollup/rollup-plugin-commonjs/issues/285))
105* Use rollup's plugin context`parse` function ([#287](https://github.com/rollup/rollup-plugin-commonjs/issues/287))
106* Improve error handling ([#288](https://github.com/rollup/rollup-plugin-commonjs/issues/288))
107
108## 8.3.0
109
110* Handle multiple entry points ([#283](https://github.com/rollup/rollup-plugin-commonjs/issues/283))
111* Extract named exports from exported object literals ([#272](https://github.com/rollup/rollup-plugin-commonjs/issues/272))
112* Fix when `options.external` is modified by other plugins ([#264](https://github.com/rollup/rollup-plugin-commonjs/issues/264))
113* Recognize static template strings in require statements ([#271](https://github.com/rollup/rollup-plugin-commonjs/issues/271))
114
115## 8.2.4
116
117* Don't import default from ES modules that don't export default ([#206](https://github.com/rollup/rollup-plugin-commonjs/issues/206))
118
119## 8.2.3
120
121* Prevent duplicate default exports ([#230](https://github.com/rollup/rollup-plugin-commonjs/pull/230))
122* Only include default export when it exists ([#226](https://github.com/rollup/rollup-plugin-commonjs/pull/226))
123* Deconflict `require` aliases ([#232](https://github.com/rollup/rollup-plugin-commonjs/issues/232))
124
125## 8.2.1
126
127* Fix magic-string deprecation warning
128
129## 8.2.0
130
131* Avoid using `index` as a variable name ([#208](https://github.com/rollup/rollup-plugin-commonjs/pull/208))
132
133## 8.1.1
134
135* Compatibility with 0.48 ([#220](https://github.com/rollup/rollup-plugin-commonjs/issues/220))
136
137## 8.1.0
138
139* Handle `options.external` correctly ([#212](https://github.com/rollup/rollup-plugin-commonjs/pull/212))
140* Support top-level return ([#195](https://github.com/rollup/rollup-plugin-commonjs/pull/195))
141
142## 8.0.2
143
144* Fix another `var` rewrite bug ([#181](https://github.com/rollup/rollup-plugin-commonjs/issues/181))
145
146## 8.0.1
147
148* Remove declarators within a var declaration correctly ([#179](https://github.com/rollup/rollup-plugin-commonjs/issues/179))
149
150## 8.0.0
151
152* 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))
153
154## 7.1.0
155
156* Allow certain `require` statements to pass through unmolested ([#174](https://github.com/rollup/rollup-plugin-commonjs/issues/174))
157
158## 7.0.2
159
160* Handle duplicate default exports ([#158](https://github.com/rollup/rollup-plugin-commonjs/issues/158))
161
162## 7.0.1
163
164* Fix exports with parentheses ([#168](https://github.com/rollup/rollup-plugin-commonjs/issues/168))
165
166## 7.0.0
167
168* Rewrite `typeof module`, `typeof module.exports` and `typeof exports` as `'object'` ([#151](https://github.com/rollup/rollup-plugin-commonjs/issues/151))
169
170## 6.0.1
171
172* Don't overwrite globals ([#127](https://github.com/rollup/rollup-plugin-commonjs/issues/127))
173
174## 6.0.0
175
176* 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))
177* Support ES2017 syntax ([#132](https://github.com/rollup/rollup-plugin-commonjs/issues/132))
178* Deconflict exported reserved keywords ([#116](https://github.com/rollup/rollup-plugin-commonjs/issues/116))
179
180## 5.0.5
181* Fix parenthesis wrapped exports ([#120](https://github.com/rollup/rollup-plugin-commonjs/issues/120))
182
183## 5.0.4
184
185* Ensure named exports are added to default export in optimised modules ([#112](https://github.com/rollup/rollup-plugin-commonjs/issues/112))
186
187## 5.0.3
188
189* Respect custom `namedExports` in optimised modules ([#35](https://github.com/rollup/rollup-plugin-commonjs/issues/35))
190
191## 5.0.2
192
193* 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))
194
195## 5.0.1
196
197* Deconflict against globals ([#84](https://github.com/rollup/rollup-plugin-commonjs/issues/84))
198
199## 5.0.0
200
201* Optimise modules that don't need to be wrapped in a function ([#106](https://github.com/rollup/rollup-plugin-commonjs/pull/106))
202* Ignore modules containing `import` and `export` statements ([#96](https://github.com/rollup/rollup-plugin-commonjs/pull/96))
203
204## 4.1.0
205
206* Ignore dead branches ([#93](https://github.com/rollup/rollup-plugin-commonjs/issues/93))
207
208## 4.0.1
209
210* Fix `ignoreGlobal` option ([#86](https://github.com/rollup/rollup-plugin-commonjs/pull/86))
211
212## 4.0.0
213
214* Better interop and smaller output ([#92](https://github.com/rollup/rollup-plugin-commonjs/pull/92))
215
216## 3.3.1
217
218* Deconflict export and local module ([rollup/rollup#554](https://github.com/rollup/rollup/issues/554))
219
220## 3.3.0
221
222* Keep the order of execution for require calls ([#43](https://github.com/rollup/rollup-plugin-commonjs/pull/43))
223* Use interopDefault as helper ([#42](https://github.com/rollup/rollup-plugin-commonjs/issues/42))
224
225## 3.2.0
226
227* Use named exports as a function when no default export is defined ([#524](https://github.com/rollup/rollup/issues/524))
228
229## 3.1.0
230
231* Replace `typeof require` with `'function'` ([#38](https://github.com/rollup/rollup-plugin-commonjs/issues/38))
232* Don't attempt to resolve entry file relative to importer ([#63](https://github.com/rollup/rollup-plugin-commonjs/issues/63))
233
234## 3.0.2
235
236* Handle multiple references to `global`
237
238## 3.0.1
239
240* Return a `name`
241
242## 3.0.0
243
244* Make `transform` stateless ([#71](https://github.com/rollup/rollup-plugin-commonjs/pull/71))
245* Support web worker `global` ([#50](https://github.com/rollup/rollup-plugin-commonjs/issues/50))
246* Ignore global with `options.ignoreGlobal` ([#48](https://github.com/rollup/rollup-plugin-commonjs/issues/48))
247
248## 2.2.1
249
250* Prevent false positives with `namedExports` ([#36](https://github.com/rollup/rollup-plugin-commonjs/issues/36))
251
252## 2.2.0
253
254* Rewrite top-level `this` expressions to mean the same as `global` ([#31](https://github.com/rollup/rollup-plugin-commonjs/issues/31))
255
256## 2.1.0
257
258* Optimised module wrappers ([#20](https://github.com/rollup/rollup-plugin-commonjs/pull/20))
259* Allow control over named exports via `options.namedExports` ([#18](https://github.com/rollup/rollup-plugin-commonjs/issues/18))
260* Handle bare imports correctly ([#23](https://github.com/rollup/rollup-plugin-commonjs/issues/23))
261* Blacklist all reserved words as export names ([#21](https://github.com/rollup/rollup-plugin-commonjs/issues/21))
262* Configure allowed file extensions via `options.extensions` ([#27](https://github.com/rollup/rollup-plugin-commonjs/pull/27))
263
264## 2.0.0
265
266* 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))
267
268## 1.4.0
269
270* Generate sourcemaps by default
271
272## 1.3.0
273
274* Handle references to `global` ([#6](https://github.com/rollup/rollup-plugin-commonjs/issues/6))
275
276## 1.2.0
277
278* Generate named exports where possible ([#5](https://github.com/rollup/rollup-plugin-commonjs/issues/5))
279* Handle shadowed `require`/`module`/`exports`
280
281## 1.1.0
282
283* Handle dots in filenames ([#3](https://github.com/rollup/rollup-plugin-commonjs/issues/3))
284* Wrap modules in IIFE for more readable output
285
286## 1.0.0
287
288* Stable release, now that Rollup supports plugins
289
290## 0.2.1
291
292* Allow mixed CommonJS/ES6 imports/exports
293* Use `var` instead of `let`
294
295## 0.2.0
296
297* Sourcemap support
298* Support `options.include` and `options.exclude`
299* Bail early if module is obviously not a CommonJS module
300
301## 0.1.1
302
303Add dist files to package (whoops!)
304
305## 0.1.0
306
307* First release