rollup 4.46.0 → 4.46.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.46.0
5
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
4
+ Rollup.js v4.46.2
5
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
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.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
27
27
  return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
28
28
  }
29
29
 
30
- var version = "4.46.0";
30
+ var version = "4.46.2";
31
31
 
32
32
  // src/vlq.ts
33
33
  var comma = ",".charCodeAt(0);
@@ -11828,8 +11828,11 @@ class BinaryExpression extends NodeBase {
11828
11828
  if (typeof leftValue === 'symbol')
11829
11829
  return UnknownValue;
11830
11830
  // Optimize `'export' in namespace`
11831
- if (this.operator === 'in' && this.right.variable?.isNamespace) {
11832
- return (this.right.variable.context.traceExport(String(leftValue))[0] != null);
11831
+ if (this.operator === 'in' && this.right.variable instanceof NamespaceVariable) {
11832
+ const [variable] = this.right.variable.context.traceExport(String(leftValue));
11833
+ if (variable instanceof ExternalVariable)
11834
+ return UnknownValue;
11835
+ return !!variable;
11833
11836
  }
11834
11837
  const rightValue = this.right.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
11835
11838
  if (typeof rightValue === 'symbol')
@@ -11841,8 +11844,9 @@ class BinaryExpression extends NodeBase {
11841
11844
  }
11842
11845
  getRenderedLiteralValue() {
11843
11846
  // Only optimize `'export' in ns`
11844
- if (this.operator !== 'in' || !this.right.variable?.isNamespace)
11847
+ if (this.operator !== 'in' || !(this.right.variable instanceof NamespaceVariable)) {
11845
11848
  return UnknownValue;
11849
+ }
11846
11850
  if (this.renderedLiteralValue !== UNASSIGNED$1)
11847
11851
  return this.renderedLiteralValue;
11848
11852
  return (this.renderedLiteralValue = getRenderedLiteralValue(this.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this)));
@@ -11859,10 +11863,12 @@ class BinaryExpression extends NodeBase {
11859
11863
  hasEffectsOnInteractionAtPath(path, { type }) {
11860
11864
  return type !== INTERACTION_ACCESSED || path.length > 1;
11861
11865
  }
11862
- include(context, includeChildrenRecursively, _options) {
11863
- this.included = true;
11866
+ include(context, includeChildrenRecursively, options) {
11867
+ if (!this.included)
11868
+ this.includeNode(context);
11864
11869
  if (typeof this.getRenderedLiteralValue() === 'symbol') {
11865
- super.include(context, includeChildrenRecursively, _options);
11870
+ this.left.include(context, includeChildrenRecursively, options);
11871
+ this.right.include(context, includeChildrenRecursively, options);
11866
11872
  }
11867
11873
  }
11868
11874
  includeNode(context) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
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.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
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.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
42
42
 
43
43
  const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
44
44
 
45
- var version = "4.46.0";
45
+ var version = "4.46.2";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -13437,8 +13437,11 @@ class BinaryExpression extends NodeBase {
13437
13437
  if (typeof leftValue === 'symbol')
13438
13438
  return UnknownValue;
13439
13439
  // Optimize `'export' in namespace`
13440
- if (this.operator === 'in' && this.right.variable?.isNamespace) {
13441
- return (this.right.variable.context.traceExport(String(leftValue))[0] != null);
13440
+ if (this.operator === 'in' && this.right.variable instanceof NamespaceVariable) {
13441
+ const [variable] = this.right.variable.context.traceExport(String(leftValue));
13442
+ if (variable instanceof ExternalVariable)
13443
+ return UnknownValue;
13444
+ return !!variable;
13442
13445
  }
13443
13446
  const rightValue = this.right.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
13444
13447
  if (typeof rightValue === 'symbol')
@@ -13450,8 +13453,9 @@ class BinaryExpression extends NodeBase {
13450
13453
  }
13451
13454
  getRenderedLiteralValue() {
13452
13455
  // Only optimize `'export' in ns`
13453
- if (this.operator !== 'in' || !this.right.variable?.isNamespace)
13456
+ if (this.operator !== 'in' || !(this.right.variable instanceof NamespaceVariable)) {
13454
13457
  return UnknownValue;
13458
+ }
13455
13459
  if (this.renderedLiteralValue !== UNASSIGNED$1)
13456
13460
  return this.renderedLiteralValue;
13457
13461
  return (this.renderedLiteralValue = getRenderedLiteralValue(this.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this)));
@@ -13468,10 +13472,12 @@ class BinaryExpression extends NodeBase {
13468
13472
  hasEffectsOnInteractionAtPath(path, { type }) {
13469
13473
  return type !== INTERACTION_ACCESSED || path.length > 1;
13470
13474
  }
13471
- include(context, includeChildrenRecursively, _options) {
13472
- this.included = true;
13475
+ include(context, includeChildrenRecursively, options) {
13476
+ if (!this.included)
13477
+ this.includeNode(context);
13473
13478
  if (typeof this.getRenderedLiteralValue() === 'symbol') {
13474
- super.include(context, includeChildrenRecursively, _options);
13479
+ this.left.include(context, includeChildrenRecursively, options);
13480
+ this.right.include(context, includeChildrenRecursively, options);
13475
13481
  }
13476
13482
  }
13477
13483
  includeNode(context) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.0
4
- Sun, 27 Jul 2025 06:51:20 GMT - commit 09794f1bf24473e63b3ff10daa7e9f4d5d50ce1e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
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.46.0",
3
+ "version": "4.46.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -104,26 +104,26 @@
104
104
  "homepage": "https://rollupjs.org/",
105
105
  "optionalDependencies": {
106
106
  "fsevents": "~2.3.2",
107
- "@rollup/rollup-darwin-arm64": "4.46.0",
108
- "@rollup/rollup-android-arm64": "4.46.0",
109
- "@rollup/rollup-win32-arm64-msvc": "4.46.0",
110
- "@rollup/rollup-freebsd-arm64": "4.46.0",
111
- "@rollup/rollup-linux-arm64-gnu": "4.46.0",
112
- "@rollup/rollup-linux-arm64-musl": "4.46.0",
113
- "@rollup/rollup-android-arm-eabi": "4.46.0",
114
- "@rollup/rollup-linux-arm-gnueabihf": "4.46.0",
115
- "@rollup/rollup-linux-arm-musleabihf": "4.46.0",
116
- "@rollup/rollup-win32-ia32-msvc": "4.46.0",
117
- "@rollup/rollup-linux-loongarch64-gnu": "4.46.0",
118
- "@rollup/rollup-linux-riscv64-gnu": "4.46.0",
119
- "@rollup/rollup-linux-riscv64-musl": "4.46.0",
120
- "@rollup/rollup-linux-ppc64-gnu": "4.46.0",
121
- "@rollup/rollup-linux-s390x-gnu": "4.46.0",
122
- "@rollup/rollup-darwin-x64": "4.46.0",
123
- "@rollup/rollup-win32-x64-msvc": "4.46.0",
124
- "@rollup/rollup-freebsd-x64": "4.46.0",
125
- "@rollup/rollup-linux-x64-gnu": "4.46.0",
126
- "@rollup/rollup-linux-x64-musl": "4.46.0"
107
+ "@rollup/rollup-darwin-arm64": "4.46.2",
108
+ "@rollup/rollup-android-arm64": "4.46.2",
109
+ "@rollup/rollup-win32-arm64-msvc": "4.46.2",
110
+ "@rollup/rollup-freebsd-arm64": "4.46.2",
111
+ "@rollup/rollup-linux-arm64-gnu": "4.46.2",
112
+ "@rollup/rollup-linux-arm64-musl": "4.46.2",
113
+ "@rollup/rollup-android-arm-eabi": "4.46.2",
114
+ "@rollup/rollup-linux-arm-gnueabihf": "4.46.2",
115
+ "@rollup/rollup-linux-arm-musleabihf": "4.46.2",
116
+ "@rollup/rollup-win32-ia32-msvc": "4.46.2",
117
+ "@rollup/rollup-linux-loongarch64-gnu": "4.46.2",
118
+ "@rollup/rollup-linux-riscv64-gnu": "4.46.2",
119
+ "@rollup/rollup-linux-riscv64-musl": "4.46.2",
120
+ "@rollup/rollup-linux-ppc64-gnu": "4.46.2",
121
+ "@rollup/rollup-linux-s390x-gnu": "4.46.2",
122
+ "@rollup/rollup-darwin-x64": "4.46.2",
123
+ "@rollup/rollup-win32-x64-msvc": "4.46.2",
124
+ "@rollup/rollup-freebsd-x64": "4.46.2",
125
+ "@rollup/rollup-linux-x64-gnu": "4.46.2",
126
+ "@rollup/rollup-linux-x64-musl": "4.46.2"
127
127
  },
128
128
  "dependencies": {
129
129
  "@types/estree": "1.0.8"