rollup 2.51.1 → 2.52.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.52.2
4
+ *2021-06-21*
5
+
6
+ ### Bug Fixes
7
+ * Support falsy plugins in types (#4144)
8
+ * Do not require return value in renderChunkHook type (#4144)
9
+
10
+ ### Pull Requests
11
+ * [#4144](https://github.com/rollup/rollup/pull/4144): Use TypeScript config and improve some types (@lukastaegert)
12
+
13
+ ## 2.52.1
14
+ *2021-06-17*
15
+
16
+ ### Bug Fixes
17
+ * Fix a memory leak in watch mode (#4142)
18
+
19
+ ### Pull Requests
20
+ * [#4142](https://github.com/rollup/rollup/pull/4142): Make array and object prototype singletons immutable for now (@lukastaegert)
21
+
22
+ ## 2.52.0
23
+ *2021-06-16*
24
+
25
+ ### Features
26
+ * Add `--configPlugin` CLI option to apply plugins to the config file for e.g. TypeScript configs (#3835)
27
+ * Add "safest" and "smallest" presets to tree-shaking options for easier configuration (#4131)
28
+ * Add `treeshake.correctVarValueBeforeDeclaration` option to deoptimize `var` declarations (#4139)
29
+
30
+ ### Pull Requests
31
+ * [#3835](https://github.com/rollup/rollup/pull/3835): Add typescript config support (@TheRealSyler)
32
+ * [#4131](https://github.com/rollup/rollup/pull/4131): Add presets to the tree-shaking options (@lukastaegert)
33
+ * [#4139](https://github.com/rollup/rollup/pull/4139): Add option to deoptimize var declarations for tree-shaking (@lukastaegert)
34
+ * [#4141](https://github.com/rollup/rollup/pull/4141): Update dependencies (@lukastaegert)
35
+
36
+ ## 2.51.2
37
+ *2021-06-11*
38
+
39
+ ### Bug Fixes
40
+ * Include modules imported from no-treeshake modules even if they would be empty (#4138)
41
+
42
+ ### Pull Requests
43
+ * [#4138](https://github.com/rollup/rollup/pull/4138): Include all dependencies from modules with no-treeshake (@lukastaegert)
44
+
3
45
  ## 2.51.1
4
46
  *2021-06-08*
5
47
 
@@ -1526,7 +1568,7 @@ This version is identical to 2.4.0
1526
1568
  * The file structure of Rollup's ESM builds has changed:
1527
1569
  - The main ESM entry point is now at `rollup/dist/es/rollup.js` instead of `rollup/dist/rollup.es.js`
1528
1570
  - The ESM browser build is at `rollup/dist/es/rollup.browser.js` instead of `rollup/dist/rollup.browser.es.js`
1529
-
1571
+
1530
1572
  In general, the ESM builds now follow the same naming scheme as the CJS builds but are located in the `rollup/dist/es` subfolder instead of `rollup/dist` (#3391)
1531
1573
  * The "watch.chokidar" option no longer accepts a `boolean` value but only an object of parameters that is passed to the bundled Chokidar instance. Chokidar installations by the user will be ignored in favour of the bundled instance (#3331)
1532
1574
  * Modules that are completely tree-shaken will no longer be listed as part of any chunks in `generateBundle`
@@ -2959,7 +3001,7 @@ This version is identical to 2.4.0
2959
3001
  - globals -> output.globals
2960
3002
  - indent -> output.indent
2961
3003
  - interop -> output.interop
2962
- - intro -> output.intro
3004
+ - intro -> output.intro
2963
3005
  - load -> use plugin API
2964
3006
  - moduleName -> output.name
2965
3007
  - name -> output.name
@@ -3114,9 +3156,9 @@ none
3114
3156
 
3115
3157
  ### Bug Fixes
3116
3158
  * Fix TypeScript type for sourcemaps (#2507)
3117
- * Fix order of external and inter-chunk imports to match the proper execution order (#2508)
3118
- * Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
3119
- * Prevent memory leak when using the bundle as cache (#2522)
3159
+ * Fix order of external and inter-chunk imports to match the proper execution order (#2508)
3160
+ * Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
3161
+ * Prevent memory leak when using the bundle as cache (#2522)
3120
3162
  * Fix mis-placed semicolons for certain SystemJS exports (#2529)
3121
3163
 
3122
3164
  ### Pull Requests
package/LICENSE.md CHANGED
@@ -114,6 +114,16 @@ License: MIT
114
114
  By: Sindre Sorhus
115
115
  Repository: sindresorhus/binary-extensions
116
116
 
117
+ > MIT License
118
+ >
119
+ > Copyright (c) 2019 Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com), Paul Miller (https://paulmillr.com)
120
+ >
121
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
122
+ >
123
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
124
+ >
125
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
126
+
117
127
  ---------------------------------------
118
128
 
119
129
  ## braces
@@ -194,6 +204,16 @@ License: MIT
194
204
  By: Sindre Sorhus
195
205
  Repository: sindresorhus/date-time
196
206
 
207
+ > MIT License
208
+ >
209
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
210
+ >
211
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
212
+ >
213
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
214
+ >
215
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
216
+
197
217
  ---------------------------------------
198
218
 
199
219
  ## fill-range
@@ -282,6 +302,16 @@ License: MIT
282
302
  By: Sindre Sorhus
283
303
  Repository: sindresorhus/is-binary-path
284
304
 
305
+ > MIT License
306
+ >
307
+ > Copyright (c) 2019 Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com), Paul Miller (https://paulmillr.com)
308
+ >
309
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
310
+ >
311
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
312
+ >
313
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
314
+
285
315
  ---------------------------------------
286
316
 
287
317
  ## is-extglob
@@ -483,6 +513,16 @@ License: MIT
483
513
  By: Sindre Sorhus
484
514
  Repository: sindresorhus/parse-ms
485
515
 
516
+ > MIT License
517
+ >
518
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
519
+ >
520
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
521
+ >
522
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
523
+ >
524
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
525
+
486
526
  ---------------------------------------
487
527
 
488
528
  ## picomatch
@@ -519,6 +559,16 @@ License: MIT
519
559
  By: Sindre Sorhus
520
560
  Repository: sindresorhus/pretty-bytes
521
561
 
562
+ > MIT License
563
+ >
564
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
565
+ >
566
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
567
+ >
568
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
569
+ >
570
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
571
+
522
572
  ---------------------------------------
523
573
 
524
574
  ## pretty-ms
@@ -526,6 +576,16 @@ License: MIT
526
576
  By: Sindre Sorhus
527
577
  Repository: sindresorhus/pretty-ms
528
578
 
579
+ > MIT License
580
+ >
581
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
582
+ >
583
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
584
+ >
585
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
586
+ >
587
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
588
+
529
589
  ---------------------------------------
530
590
 
531
591
  ## readdirp
@@ -629,6 +689,16 @@ License: MIT
629
689
  By: Sindre Sorhus
630
690
  Repository: sindresorhus/time-zone
631
691
 
692
+ > MIT License
693
+ >
694
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
695
+ >
696
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
697
+ >
698
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
699
+ >
700
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
701
+
632
702
  ---------------------------------------
633
703
 
634
704
  ## to-regex-range
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v2.51.1
6
- Tue, 08 Jun 2021 05:41:03 GMT - commit 76dedd65e6059f60964684ac7c3cfb89ce5c5523
5
+ Rollup.js v2.52.2
6
+ Mon, 21 Jun 2021 05:09:47 GMT - commit a9346bae21287e17eda8d0490b4776402e067db1
7
7
 
8
8
 
9
9
  https://github.com/rollup/rollup
@@ -1605,7 +1605,7 @@ function getConfigPath(commandConfig) {
1605
1605
  }
1606
1606
  function findConfigFileNameInCwd() {
1607
1607
  const filesInWorkingDir = new Set(fs.readdirSync(process.cwd()));
1608
- for (const extension of ['mjs', 'cjs']) {
1608
+ for (const extension of ['mjs', 'cjs', 'ts']) {
1609
1609
  const fileName = `${DEFAULT_CONFIG_BASE}.${extension}`;
1610
1610
  if (filesInWorkingDir.has(fileName))
1611
1611
  return fileName;