rollup 2.51.2 → 2.52.3

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.3
4
+ *2021-06-25*
5
+
6
+ ### Bug Fixes
7
+ * Fix an issue where code was wrongly removed when using vars in nested scopes (#4149)
8
+
9
+ ### Pull Requests
10
+ * [#4149](https://github.com/rollup/rollup/pull/4149): Make sure the initializer of hoisted variables is deoptimized (@lukastaegert)
11
+
12
+ ## 2.52.2
13
+ *2021-06-21*
14
+
15
+ ### Bug Fixes
16
+ * Support falsy plugins in types (#4144)
17
+ * Do not require return value in renderChunkHook type (#4144)
18
+
19
+ ### Pull Requests
20
+ * [#4144](https://github.com/rollup/rollup/pull/4144): Use TypeScript config and improve some types (@lukastaegert)
21
+
22
+ ## 2.52.1
23
+ *2021-06-17*
24
+
25
+ ### Bug Fixes
26
+ * Fix a memory leak in watch mode (#4142)
27
+
28
+ ### Pull Requests
29
+ * [#4142](https://github.com/rollup/rollup/pull/4142): Make array and object prototype singletons immutable for now (@lukastaegert)
30
+
31
+ ## 2.52.0
32
+ *2021-06-16*
33
+
34
+ ### Features
35
+ * Add `--configPlugin` CLI option to apply plugins to the config file for e.g. TypeScript configs (#3835)
36
+ * Add "safest" and "smallest" presets to tree-shaking options for easier configuration (#4131)
37
+ * Add `treeshake.correctVarValueBeforeDeclaration` option to deoptimize `var` declarations (#4139)
38
+
39
+ ### Pull Requests
40
+ * [#3835](https://github.com/rollup/rollup/pull/3835): Add typescript config support (@TheRealSyler)
41
+ * [#4131](https://github.com/rollup/rollup/pull/4131): Add presets to the tree-shaking options (@lukastaegert)
42
+ * [#4139](https://github.com/rollup/rollup/pull/4139): Add option to deoptimize var declarations for tree-shaking (@lukastaegert)
43
+ * [#4141](https://github.com/rollup/rollup/pull/4141): Update dependencies (@lukastaegert)
44
+
3
45
  ## 2.51.2
4
46
  *2021-06-11*
5
47
 
@@ -1535,7 +1577,7 @@ This version is identical to 2.4.0
1535
1577
  * The file structure of Rollup's ESM builds has changed:
1536
1578
  - The main ESM entry point is now at `rollup/dist/es/rollup.js` instead of `rollup/dist/rollup.es.js`
1537
1579
  - The ESM browser build is at `rollup/dist/es/rollup.browser.js` instead of `rollup/dist/rollup.browser.es.js`
1538
-
1580
+
1539
1581
  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)
1540
1582
  * 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)
1541
1583
  * Modules that are completely tree-shaken will no longer be listed as part of any chunks in `generateBundle`
@@ -2968,7 +3010,7 @@ This version is identical to 2.4.0
2968
3010
  - globals -> output.globals
2969
3011
  - indent -> output.indent
2970
3012
  - interop -> output.interop
2971
- - intro -> output.intro
3013
+ - intro -> output.intro
2972
3014
  - load -> use plugin API
2973
3015
  - moduleName -> output.name
2974
3016
  - name -> output.name
@@ -3123,9 +3165,9 @@ none
3123
3165
 
3124
3166
  ### Bug Fixes
3125
3167
  * Fix TypeScript type for sourcemaps (#2507)
3126
- * Fix order of external and inter-chunk imports to match the proper execution order (#2508)
3127
- * Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
3128
- * Prevent memory leak when using the bundle as cache (#2522)
3168
+ * Fix order of external and inter-chunk imports to match the proper execution order (#2508)
3169
+ * Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
3170
+ * Prevent memory leak when using the bundle as cache (#2522)
3129
3171
  * Fix mis-placed semicolons for certain SystemJS exports (#2529)
3130
3172
 
3131
3173
  ### 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.2
6
- Fri, 11 Jun 2021 05:35:15 GMT - commit bfae7910ea7553d56782cb5ee0c8581e2b451729
5
+ Rollup.js v2.52.3
6
+ Fri, 25 Jun 2021 13:12:43 GMT - commit 9c436a7c7c368f2ff840735a30119899513ff4bd
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;