rollup 2.67.3 → 2.68.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,22 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.68.0
4
+
5
+ _2022-02-22_
6
+
7
+ ### Features
8
+
9
+ - provide information about cached import resolutions in `shouldTransformCachedModule` (#4414)
10
+ - Add "types" field to Rollup's package exports (#4416)
11
+
12
+ ### Pull Requests
13
+
14
+ - [#4410](https://github.com/rollup/rollup/pull/4410): refactor: use map for declarations and name suggestions (@dnalborczyk)
15
+ - [#4411](https://github.com/rollup/rollup/pull/4411): refactor: use map for namespace reexports by name (@dnalborczyk)
16
+ - [#4412](https://github.com/rollup/rollup/pull/4412): refactor: use includes where appropriate (@dnalborczyk)
17
+ - [#4414](https://github.com/rollup/rollup/pull/4414): Add resolved sources to shouldTransformCachedModule (@lukastaegert)
18
+ - [#4416](https://github.com/rollup/rollup/pull/4416): Add Typescript 4.5 nodenext node12 module resolution support (@frank-dspeed)
19
+
3
20
  ## 2.67.3
4
21
 
5
22
  _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.68.0
6
+ Tue, 22 Feb 2022 06:24:42 GMT - commit 51cab92373bcf8c844a8de2a6765869f7eb05a5d
7
7
 
8
8
 
9
9
  https://github.com/rollup/rollup
@@ -1633,14 +1633,12 @@ async function runRollup(command) {
1633
1633
  inputSource = command.input;
1634
1634
  }
1635
1635
  if (inputSource && inputSource.length > 0) {
1636
- if (inputSource.some((input) => input.indexOf('=') !== -1)) {
1636
+ if (inputSource.some((input) => input.includes('='))) {
1637
1637
  command.input = {};
1638
1638
  inputSource.forEach((input) => {
1639
1639
  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);
1640
+ const value = input.substring(equalsIndex + 1);
1641
+ const key = input.substring(0, equalsIndex) || rollup.getAliasName(input);
1644
1642
  command.input[key] = value;
1645
1643
  });
1646
1644
  }