rollup 4.16.0 → 4.16.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/dist/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.16.0
5
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
4
+ Rollup.js v4.16.2
5
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version = "4.16.0";
19
+ var version = "4.16.2";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -5922,13 +5922,13 @@ class ParameterVariable extends LocalVariable {
5922
5922
  }
5923
5923
  }
5924
5924
  deoptimizePath(path) {
5925
- if (this.deoptimizedFields.has(UnknownKey)) {
5926
- return;
5927
- }
5928
5925
  if (path.length === 0) {
5929
5926
  this.markReassigned();
5930
5927
  return;
5931
5928
  }
5929
+ if (this.deoptimizedFields.has(UnknownKey)) {
5930
+ return;
5931
+ }
5932
5932
  const key = path[0];
5933
5933
  if (this.deoptimizedFields.has(key)) {
5934
5934
  return;
@@ -9636,12 +9636,20 @@ class ConditionalExpression extends NodeBase {
9636
9636
  this.alternate.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
9637
9637
  }
9638
9638
  deoptimizeCache() {
9639
- this.isBranchResolutionAnalysed = false;
9639
+ if (this.usedBranch ||
9640
+ this.isBranchResolutionAnalysed ||
9641
+ this.expressionsToBeDeoptimized.length > 0) {
9642
+ // Request another pass because we need to ensure "include" runs again if it is rendered
9643
+ this.scope.context.requestTreeshakingPass();
9644
+ }
9640
9645
  const { expressionsToBeDeoptimized } = this;
9641
- this.expressionsToBeDeoptimized = [];
9642
- for (const expression of expressionsToBeDeoptimized) {
9643
- expression.deoptimizeCache();
9646
+ if (expressionsToBeDeoptimized.length > 0) {
9647
+ this.expressionsToBeDeoptimized = [];
9648
+ for (const expression of expressionsToBeDeoptimized) {
9649
+ expression.deoptimizeCache();
9650
+ }
9644
9651
  }
9652
+ this.isBranchResolutionAnalysed = false;
9645
9653
  if (this.usedBranch !== null) {
9646
9654
  const unusedBranch = this.usedBranch === this.consequent ? this.alternate : this.consequent;
9647
9655
  this.usedBranch = null;
@@ -10961,17 +10969,20 @@ class LogicalExpression extends NodeBase {
10961
10969
  this.right.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
10962
10970
  }
10963
10971
  deoptimizeCache() {
10964
- this.isBranchResolutionAnalysed = false;
10965
- if (this.expressionsToBeDeoptimized.length > 0) {
10966
- const { scope: { context }, expressionsToBeDeoptimized } = this;
10972
+ if (this.usedBranch ||
10973
+ this.isBranchResolutionAnalysed ||
10974
+ this.expressionsToBeDeoptimized.length > 0) {
10975
+ // Request another pass because we need to ensure "include" runs again if it is rendered
10976
+ this.scope.context.requestTreeshakingPass();
10977
+ }
10978
+ const { expressionsToBeDeoptimized } = this;
10979
+ if (expressionsToBeDeoptimized.length > 0) {
10967
10980
  this.expressionsToBeDeoptimized = [];
10968
10981
  for (const expression of expressionsToBeDeoptimized) {
10969
10982
  expression.deoptimizeCache();
10970
10983
  }
10971
- // Request another pass because we need to ensure "include" runs again if
10972
- // it is rendered
10973
- context.requestTreeshakingPass();
10974
10984
  }
10985
+ this.isBranchResolutionAnalysed = false;
10975
10986
  if (this.usedBranch) {
10976
10987
  const unusedBranch = this.usedBranch === this.left ? this.right : this.left;
10977
10988
  this.usedBranch = null;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version = "4.16.0";
34
+ var version = "4.16.2";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -7378,13 +7378,13 @@ class ParameterVariable extends LocalVariable {
7378
7378
  }
7379
7379
  }
7380
7380
  deoptimizePath(path) {
7381
- if (this.deoptimizedFields.has(UnknownKey)) {
7382
- return;
7383
- }
7384
7381
  if (path.length === 0) {
7385
7382
  this.markReassigned();
7386
7383
  return;
7387
7384
  }
7385
+ if (this.deoptimizedFields.has(UnknownKey)) {
7386
+ return;
7387
+ }
7388
7388
  const key = path[0];
7389
7389
  if (this.deoptimizedFields.has(key)) {
7390
7390
  return;
@@ -11078,12 +11078,20 @@ class ConditionalExpression extends NodeBase {
11078
11078
  this.alternate.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
11079
11079
  }
11080
11080
  deoptimizeCache() {
11081
- this.isBranchResolutionAnalysed = false;
11081
+ if (this.usedBranch ||
11082
+ this.isBranchResolutionAnalysed ||
11083
+ this.expressionsToBeDeoptimized.length > 0) {
11084
+ // Request another pass because we need to ensure "include" runs again if it is rendered
11085
+ this.scope.context.requestTreeshakingPass();
11086
+ }
11082
11087
  const { expressionsToBeDeoptimized } = this;
11083
- this.expressionsToBeDeoptimized = [];
11084
- for (const expression of expressionsToBeDeoptimized) {
11085
- expression.deoptimizeCache();
11088
+ if (expressionsToBeDeoptimized.length > 0) {
11089
+ this.expressionsToBeDeoptimized = [];
11090
+ for (const expression of expressionsToBeDeoptimized) {
11091
+ expression.deoptimizeCache();
11092
+ }
11086
11093
  }
11094
+ this.isBranchResolutionAnalysed = false;
11087
11095
  if (this.usedBranch !== null) {
11088
11096
  const unusedBranch = this.usedBranch === this.consequent ? this.alternate : this.consequent;
11089
11097
  this.usedBranch = null;
@@ -12403,17 +12411,20 @@ class LogicalExpression extends NodeBase {
12403
12411
  this.right.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
12404
12412
  }
12405
12413
  deoptimizeCache() {
12406
- this.isBranchResolutionAnalysed = false;
12407
- if (this.expressionsToBeDeoptimized.length > 0) {
12408
- const { scope: { context }, expressionsToBeDeoptimized } = this;
12414
+ if (this.usedBranch ||
12415
+ this.isBranchResolutionAnalysed ||
12416
+ this.expressionsToBeDeoptimized.length > 0) {
12417
+ // Request another pass because we need to ensure "include" runs again if it is rendered
12418
+ this.scope.context.requestTreeshakingPass();
12419
+ }
12420
+ const { expressionsToBeDeoptimized } = this;
12421
+ if (expressionsToBeDeoptimized.length > 0) {
12409
12422
  this.expressionsToBeDeoptimized = [];
12410
12423
  for (const expression of expressionsToBeDeoptimized) {
12411
12424
  expression.deoptimizeCache();
12412
12425
  }
12413
- // Request another pass because we need to ensure "include" runs again if
12414
- // it is rendered
12415
- context.requestTreeshakingPass();
12416
12426
  }
12427
+ this.isBranchResolutionAnalysed = false;
12417
12428
  if (this.usedBranch) {
12418
12429
  const unusedBranch = this.usedBranch === this.left ? this.right : this.left;
12419
12430
  this.usedBranch = null;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.0
4
- Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
3
+ Rollup.js v4.16.2
4
+ Mon, 22 Apr 2024 15:18:39 GMT - commit 18839eb234f79adc44a591e355fd7b3243a4cd21
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "4.16.0",
3
+ "version": "4.16.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -104,22 +104,22 @@
104
104
  "homepage": "https://rollupjs.org/",
105
105
  "optionalDependencies": {
106
106
  "fsevents": "~2.3.2",
107
- "@rollup/rollup-darwin-arm64": "4.16.0",
108
- "@rollup/rollup-android-arm64": "4.16.0",
109
- "@rollup/rollup-win32-arm64-msvc": "4.16.0",
110
- "@rollup/rollup-linux-arm64-gnu": "4.16.0",
111
- "@rollup/rollup-linux-arm64-musl": "4.16.0",
112
- "@rollup/rollup-android-arm-eabi": "4.16.0",
113
- "@rollup/rollup-linux-arm-gnueabihf": "4.16.0",
114
- "@rollup/rollup-linux-arm-musleabihf": "4.16.0",
115
- "@rollup/rollup-win32-ia32-msvc": "4.16.0",
116
- "@rollup/rollup-linux-riscv64-gnu": "4.16.0",
117
- "@rollup/rollup-linux-powerpc64le-gnu": "4.16.0",
118
- "@rollup/rollup-linux-s390x-gnu": "4.16.0",
119
- "@rollup/rollup-darwin-x64": "4.16.0",
120
- "@rollup/rollup-win32-x64-msvc": "4.16.0",
121
- "@rollup/rollup-linux-x64-gnu": "4.16.0",
122
- "@rollup/rollup-linux-x64-musl": "4.16.0"
107
+ "@rollup/rollup-darwin-arm64": "4.16.2",
108
+ "@rollup/rollup-android-arm64": "4.16.2",
109
+ "@rollup/rollup-win32-arm64-msvc": "4.16.2",
110
+ "@rollup/rollup-linux-arm64-gnu": "4.16.2",
111
+ "@rollup/rollup-linux-arm64-musl": "4.16.2",
112
+ "@rollup/rollup-android-arm-eabi": "4.16.2",
113
+ "@rollup/rollup-linux-arm-gnueabihf": "4.16.2",
114
+ "@rollup/rollup-linux-arm-musleabihf": "4.16.2",
115
+ "@rollup/rollup-win32-ia32-msvc": "4.16.2",
116
+ "@rollup/rollup-linux-riscv64-gnu": "4.16.2",
117
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.16.2",
118
+ "@rollup/rollup-linux-s390x-gnu": "4.16.2",
119
+ "@rollup/rollup-darwin-x64": "4.16.2",
120
+ "@rollup/rollup-win32-x64-msvc": "4.16.2",
121
+ "@rollup/rollup-linux-x64-gnu": "4.16.2",
122
+ "@rollup/rollup-linux-x64-musl": "4.16.2"
123
123
  },
124
124
  "dependencies": {
125
125
  "@types/estree": "1.0.5"