rollup 2.67.3 → 2.69.1

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,58 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.69.1
4
+
5
+ _2022-03-04_
6
+
7
+ ### Bug Fixes
8
+
9
+ - Approximate source position instead of ignoring it when using a low-resolution source map in a transform hook (#4334)
10
+
11
+ ### Pull Requests
12
+
13
+ - [#4334](https://github.com/rollup/rollup/pull/4334): fix(sourcemap): fall back to low-resolution line mapping (@aleclarson and @lukastaegert)
14
+
15
+ ## 2.69.0
16
+
17
+ _2022-03-02_
18
+
19
+ ### Features
20
+
21
+ - Introduce new `output.generatedCode.symbols` to control the usage of Symbols in Rollup-generated code (#4378)
22
+ - soft-deprecate `output.namespaceToStringTag` in favor of `output.generatedCode.symbols` (#4378)
23
+
24
+ ### Bug Fixes
25
+
26
+ - Properly handle `./` and `../` as external dependencies (#4419)
27
+ - Make generated "Module" namespace toStringTag non-enumerable for correct Object.assign/spread behaviour (#4378)
28
+ - Add file name to error when top-level-await is used in disallowed formats (#4421)
29
+
30
+ ### Pull Requests
31
+
32
+ - [#4378](https://github.com/rollup/rollup/pull/4378): Make namespace @@toStringTag "Module" non-enumerable (@dnalborczyk and @lukastaegert)
33
+ - [#4413](https://github.com/rollup/rollup/pull/4413): refactor: some code and type fixes (@dnalborczyk)
34
+ - [#4418](https://github.com/rollup/rollup/pull/4418): chore: bump deps (@dnalborczyk)
35
+ - [#4419](https://github.com/rollup/rollup/pull/4419): Properly handle upper directories as external dependencies (@lukastaegert)
36
+ - [#4421](https://github.com/rollup/rollup/pull/4421): Improve the error prompt and output the error file name (@caoxiemeihao)
37
+ - [#4423](https://github.com/rollup/rollup/pull/4423): Update 999-big-list-of-options.md (@leoj3n)
38
+
39
+ ## 2.68.0
40
+
41
+ _2022-02-22_
42
+
43
+ ### Features
44
+
45
+ - provide information about cached import resolutions in `shouldTransformCachedModule` (#4414)
46
+ - Add "types" field to Rollup's package exports (#4416)
47
+
48
+ ### Pull Requests
49
+
50
+ - [#4410](https://github.com/rollup/rollup/pull/4410): refactor: use map for declarations and name suggestions (@dnalborczyk)
51
+ - [#4411](https://github.com/rollup/rollup/pull/4411): refactor: use map for namespace reexports by name (@dnalborczyk)
52
+ - [#4412](https://github.com/rollup/rollup/pull/4412): refactor: use includes where appropriate (@dnalborczyk)
53
+ - [#4414](https://github.com/rollup/rollup/pull/4414): Add resolved sources to shouldTransformCachedModule (@lukastaegert)
54
+ - [#4416](https://github.com/rollup/rollup/pull/4416): Add Typescript 4.5 nodenext node12 module resolution support (@frank-dspeed)
55
+
3
56
  ## 2.67.3
4
57
 
5
58
  _2022-02-18_
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v2.67.3
6
- Fri, 18 Feb 2022 05:29:45 GMT - commit fa4e1b720f64ffae24fcbf99a44b605842ac7f23
5
+ Rollup.js v2.69.1
6
+ Fri, 04 Mar 2022 13:38:38 GMT - commit 994c1eccf4d53e416a010f47e54a2086f1a0f4e9
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
  });
@@ -1633,14 +1632,12 @@ async function runRollup(command) {
1633
1632
  inputSource = command.input;
1634
1633
  }
1635
1634
  if (inputSource && inputSource.length > 0) {
1636
- if (inputSource.some((input) => input.indexOf('=') !== -1)) {
1635
+ if (inputSource.some((input) => input.includes('='))) {
1637
1636
  command.input = {};
1638
1637
  inputSource.forEach((input) => {
1639
1638
  const equalsIndex = input.indexOf('=');
1640
- const value = input.substr(equalsIndex + 1);
1641
- let key = input.substr(0, equalsIndex);
1642
- if (!key)
1643
- key = rollup.getAliasName(input);
1639
+ const value = input.substring(equalsIndex + 1);
1640
+ const key = input.substring(0, equalsIndex) || rollup.getAliasName(input);
1644
1641
  command.input[key] = value;
1645
1642
  });
1646
1643
  }
@@ -1655,12 +1652,7 @@ async function runRollup(command) {
1655
1652
  environment.forEach((arg) => {
1656
1653
  arg.split(',').forEach((pair) => {
1657
1654
  const [key, ...value] = pair.split(':');
1658
- if (value.length) {
1659
- process.env[key] = value.join(':');
1660
- }
1661
- else {
1662
- process.env[key] = String(true);
1663
- }
1655
+ process$1.env[key] = value.length === 0 ? String(true) : value.join(':');
1664
1656
  });
1665
1657
  });
1666
1658
  }