rollup 2.68.0 → 2.69.0

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,29 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.69.0
4
+
5
+ _2022-03-02_
6
+
7
+ ### Features
8
+
9
+ - Introduce new `output.generatedCode.symbols` to control the usage of Symbols in Rollup-generated code (#4378)
10
+ - soft-deprecate `output.namespaceToStringTag` in favor of `output.generatedCode.symbols` (#4378)
11
+
12
+ ### Bug Fixes
13
+
14
+ - Properly handle `./` and `../` as external dependencies (#4419)
15
+ - Make generated "Module" namespace toStringTag non-enumerable for correct Object.assign/spread behaviour (#4378)
16
+ - Add file name to error when top-level-await is used in disallowed formats (#4421)
17
+
18
+ ### Pull Requests
19
+
20
+ - [#4378](https://github.com/rollup/rollup/pull/4378): Make namespace @@toStringTag "Module" non-enumerable (@dnalborczyk and @lukastaegert)
21
+ - [#4413](https://github.com/rollup/rollup/pull/4413): refactor: some code and type fixes (@dnalborczyk)
22
+ - [#4418](https://github.com/rollup/rollup/pull/4418): chore: bump deps (@dnalborczyk)
23
+ - [#4419](https://github.com/rollup/rollup/pull/4419): Properly handle upper directories as external dependencies (@lukastaegert)
24
+ - [#4421](https://github.com/rollup/rollup/pull/4421): Improve the error prompt and output the error file name (@caoxiemeihao)
25
+ - [#4423](https://github.com/rollup/rollup/pull/4423): Update 999-big-list-of-options.md (@leoj3n)
26
+
3
27
  ## 2.68.0
4
28
 
5
29
  _2022-02-22_
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v2.68.0
6
- Tue, 22 Feb 2022 06:24:42 GMT - commit 51cab92373bcf8c844a8de2a6765869f7eb05a5d
5
+ Rollup.js v2.69.0
6
+ Wed, 02 Mar 2022 13:21:33 GMT - commit 10dc32678944cb276c2efe781b12350a8e0a5adf
7
7
 
8
8
 
9
9
  https://github.com/rollup/rollup
@@ -12,7 +12,7 @@
12
12
  */
13
13
  'use strict';
14
14
 
15
- Object.defineProperty(exports, '__esModule', { value: true });
15
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
16
16
 
17
17
  const process$1 = require('process');
18
18
  const rollup = require('../shared/rollup.js');
@@ -1501,9 +1501,8 @@ var prettyBytes = (number, options) => {
1501
1501
  const prettyBytes$1 = prettyBytes;
1502
1502
 
1503
1503
  function printTimings(timings) {
1504
- Object.keys(timings).forEach(label => {
1504
+ Object.entries(timings).forEach(([label, [time, memory, total]]) => {
1505
1505
  const appliedColor = label[0] === '#' ? (label[1] !== '#' ? loadConfigFile_js.underline : loadConfigFile_js.bold) : (text) => text;
1506
- const [time, memory, total] = timings[label];
1507
1506
  const row = `${label}: ${time.toFixed(0)}ms, ${prettyBytes$1(memory)} / ${prettyBytes$1(total)}`;
1508
1507
  console.info(appliedColor(row));
1509
1508
  });
@@ -1653,12 +1652,7 @@ async function runRollup(command) {
1653
1652
  environment.forEach((arg) => {
1654
1653
  arg.split(',').forEach((pair) => {
1655
1654
  const [key, ...value] = pair.split(':');
1656
- if (value.length) {
1657
- process.env[key] = value.join(':');
1658
- }
1659
- else {
1660
- process.env[key] = String(true);
1661
- }
1655
+ process$1.env[key] = value.length === 0 ? String(true) : value.join(':');
1662
1656
  });
1663
1657
  });
1664
1658
  }