rollup 2.68.0 → 2.69.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,55 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.69.2
4
+
5
+ _2022-03-06_
6
+
7
+ ### Bug Fixes
8
+
9
+ - Mark `Object.entries` and `Object.fromEntries` as pure (#4429)
10
+ - Make sure new properties on Array.prototype and Object.prototype are not evaluated as "undefined" (#4428)
11
+
12
+ ### Pull Requests
13
+
14
+ - [#4428](https://github.com/rollup/rollup/pull/4428): Treat unknown prototype props as unknown (@lukastaegert)
15
+ - [#4429](https://github.com/rollup/rollup/pull/4429): Treat unknown prototype props as unknown (@869288142)
16
+
17
+ ## 2.69.1
18
+
19
+ _2022-03-04_
20
+
21
+ ### Bug Fixes
22
+
23
+ - Approximate source position instead of ignoring it when using a low-resolution source map in a transform hook (#4334)
24
+
25
+ ### Pull Requests
26
+
27
+ - [#4334](https://github.com/rollup/rollup/pull/4334): fix(sourcemap): fall back to low-resolution line mapping (@aleclarson and @lukastaegert)
28
+
29
+ ## 2.69.0
30
+
31
+ _2022-03-02_
32
+
33
+ ### Features
34
+
35
+ - Introduce new `output.generatedCode.symbols` to control the usage of Symbols in Rollup-generated code (#4378)
36
+ - soft-deprecate `output.namespaceToStringTag` in favor of `output.generatedCode.symbols` (#4378)
37
+
38
+ ### Bug Fixes
39
+
40
+ - Properly handle `./` and `../` as external dependencies (#4419)
41
+ - Make generated "Module" namespace toStringTag non-enumerable for correct Object.assign/spread behaviour (#4378)
42
+ - Add file name to error when top-level-await is used in disallowed formats (#4421)
43
+
44
+ ### Pull Requests
45
+
46
+ - [#4378](https://github.com/rollup/rollup/pull/4378): Make namespace @@toStringTag "Module" non-enumerable (@dnalborczyk and @lukastaegert)
47
+ - [#4413](https://github.com/rollup/rollup/pull/4413): refactor: some code and type fixes (@dnalborczyk)
48
+ - [#4418](https://github.com/rollup/rollup/pull/4418): chore: bump deps (@dnalborczyk)
49
+ - [#4419](https://github.com/rollup/rollup/pull/4419): Properly handle upper directories as external dependencies (@lukastaegert)
50
+ - [#4421](https://github.com/rollup/rollup/pull/4421): Improve the error prompt and output the error file name (@caoxiemeihao)
51
+ - [#4423](https://github.com/rollup/rollup/pull/4423): Update 999-big-list-of-options.md (@leoj3n)
52
+
3
53
  ## 2.68.0
4
54
 
5
55
  _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.2
6
+ Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
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
  }