rollup 4.44.2 → 4.45.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/dist/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.44.2
5
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
4
+ Rollup.js v4.45.0
5
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
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.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
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.44.2";
30
+ var version = "4.45.0";
31
31
 
32
32
  // src/vlq.ts
33
33
  var comma = ",".charCodeAt(0);
@@ -12258,8 +12258,20 @@ class ConditionalExpression extends NodeBase {
12258
12258
  }
12259
12259
  getLiteralValueAtPath(path, recursionTracker, origin) {
12260
12260
  const usedBranch = this.getUsedBranch();
12261
- if (!usedBranch)
12262
- return UnknownValue;
12261
+ if (!usedBranch) {
12262
+ const consequentValue = this.consequent.getLiteralValueAtPath(path, recursionTracker, origin);
12263
+ const castedConsequentValue = tryCastLiteralValueToBoolean(consequentValue);
12264
+ if (castedConsequentValue === UnknownValue)
12265
+ return UnknownValue;
12266
+ const alternateValue = this.alternate.getLiteralValueAtPath(path, recursionTracker, origin);
12267
+ const castedAlternateValue = tryCastLiteralValueToBoolean(alternateValue);
12268
+ if (castedConsequentValue !== castedAlternateValue)
12269
+ return UnknownValue;
12270
+ this.expressionsToBeDeoptimized.push(origin);
12271
+ if (consequentValue !== alternateValue)
12272
+ return castedConsequentValue ? UnknownTruthyValue : UnknownFalsyValue;
12273
+ return consequentValue;
12274
+ }
12263
12275
  this.expressionsToBeDeoptimized.push(origin);
12264
12276
  return usedBranch.getLiteralValueAtPath(path, recursionTracker, origin);
12265
12277
  }
@@ -15722,7 +15734,10 @@ const bufferParsers = [
15722
15734
  const body = (node.body = new Array(length));
15723
15735
  for (let index = 0; index < length; index++) {
15724
15736
  const nodePosition = buffer[bodyPosition + 1 + index];
15725
- body[index] = convertNode(node, (buffer[nodePosition + 3] & 1) === 0 ? scope.instanceScope : scope, nodePosition, buffer);
15737
+ body[index] = convertNode(node, buffer[nodePosition] !== 79 &&
15738
+ (buffer[nodePosition + 3] & /* the static flag is always first */ 1) === 0
15739
+ ? scope.instanceScope
15740
+ : scope, nodePosition, buffer);
15726
15741
  }
15727
15742
  }
15728
15743
  else {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
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.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
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.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
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.44.2";
45
+ var version = "4.45.0";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -13867,8 +13867,20 @@ class ConditionalExpression extends NodeBase {
13867
13867
  }
13868
13868
  getLiteralValueAtPath(path, recursionTracker, origin) {
13869
13869
  const usedBranch = this.getUsedBranch();
13870
- if (!usedBranch)
13871
- return UnknownValue;
13870
+ if (!usedBranch) {
13871
+ const consequentValue = this.consequent.getLiteralValueAtPath(path, recursionTracker, origin);
13872
+ const castedConsequentValue = tryCastLiteralValueToBoolean(consequentValue);
13873
+ if (castedConsequentValue === UnknownValue)
13874
+ return UnknownValue;
13875
+ const alternateValue = this.alternate.getLiteralValueAtPath(path, recursionTracker, origin);
13876
+ const castedAlternateValue = tryCastLiteralValueToBoolean(alternateValue);
13877
+ if (castedConsequentValue !== castedAlternateValue)
13878
+ return UnknownValue;
13879
+ this.expressionsToBeDeoptimized.push(origin);
13880
+ if (consequentValue !== alternateValue)
13881
+ return castedConsequentValue ? UnknownTruthyValue : UnknownFalsyValue;
13882
+ return consequentValue;
13883
+ }
13872
13884
  this.expressionsToBeDeoptimized.push(origin);
13873
13885
  return usedBranch.getLiteralValueAtPath(path, recursionTracker, origin);
13874
13886
  }
@@ -17331,7 +17343,10 @@ const bufferParsers = [
17331
17343
  const body = (node.body = new Array(length));
17332
17344
  for (let index = 0; index < length; index++) {
17333
17345
  const nodePosition = buffer[bodyPosition + 1 + index];
17334
- body[index] = convertNode(node, (buffer[nodePosition + 3] & 1) === 0 ? scope.instanceScope : scope, nodePosition, buffer);
17346
+ body[index] = convertNode(node, buffer[nodePosition] !== 79 &&
17347
+ (buffer[nodePosition + 3] & /* the static flag is always first */ 1) === 0
17348
+ ? scope.instanceScope
17349
+ : scope, nodePosition, buffer);
17335
17350
  }
17336
17351
  }
17337
17352
  else {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.2
4
- Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
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.44.2",
3
+ "version": "4.45.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -109,26 +109,26 @@
109
109
  "homepage": "https://rollupjs.org/",
110
110
  "optionalDependencies": {
111
111
  "fsevents": "~2.3.2",
112
- "@rollup/rollup-darwin-arm64": "4.44.2",
113
- "@rollup/rollup-android-arm64": "4.44.2",
114
- "@rollup/rollup-win32-arm64-msvc": "4.44.2",
115
- "@rollup/rollup-freebsd-arm64": "4.44.2",
116
- "@rollup/rollup-linux-arm64-gnu": "4.44.2",
117
- "@rollup/rollup-linux-arm64-musl": "4.44.2",
118
- "@rollup/rollup-android-arm-eabi": "4.44.2",
119
- "@rollup/rollup-linux-arm-gnueabihf": "4.44.2",
120
- "@rollup/rollup-linux-arm-musleabihf": "4.44.2",
121
- "@rollup/rollup-win32-ia32-msvc": "4.44.2",
122
- "@rollup/rollup-linux-loongarch64-gnu": "4.44.2",
123
- "@rollup/rollup-linux-riscv64-gnu": "4.44.2",
124
- "@rollup/rollup-linux-riscv64-musl": "4.44.2",
125
- "@rollup/rollup-linux-powerpc64le-gnu": "4.44.2",
126
- "@rollup/rollup-linux-s390x-gnu": "4.44.2",
127
- "@rollup/rollup-darwin-x64": "4.44.2",
128
- "@rollup/rollup-win32-x64-msvc": "4.44.2",
129
- "@rollup/rollup-freebsd-x64": "4.44.2",
130
- "@rollup/rollup-linux-x64-gnu": "4.44.2",
131
- "@rollup/rollup-linux-x64-musl": "4.44.2"
112
+ "@rollup/rollup-darwin-arm64": "4.45.0",
113
+ "@rollup/rollup-android-arm64": "4.45.0",
114
+ "@rollup/rollup-win32-arm64-msvc": "4.45.0",
115
+ "@rollup/rollup-freebsd-arm64": "4.45.0",
116
+ "@rollup/rollup-linux-arm64-gnu": "4.45.0",
117
+ "@rollup/rollup-linux-arm64-musl": "4.45.0",
118
+ "@rollup/rollup-android-arm-eabi": "4.45.0",
119
+ "@rollup/rollup-linux-arm-gnueabihf": "4.45.0",
120
+ "@rollup/rollup-linux-arm-musleabihf": "4.45.0",
121
+ "@rollup/rollup-win32-ia32-msvc": "4.45.0",
122
+ "@rollup/rollup-linux-loongarch64-gnu": "4.45.0",
123
+ "@rollup/rollup-linux-riscv64-gnu": "4.45.0",
124
+ "@rollup/rollup-linux-riscv64-musl": "4.45.0",
125
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.45.0",
126
+ "@rollup/rollup-linux-s390x-gnu": "4.45.0",
127
+ "@rollup/rollup-darwin-x64": "4.45.0",
128
+ "@rollup/rollup-win32-x64-msvc": "4.45.0",
129
+ "@rollup/rollup-freebsd-x64": "4.45.0",
130
+ "@rollup/rollup-linux-x64-gnu": "4.45.0",
131
+ "@rollup/rollup-linux-x64-musl": "4.45.0"
132
132
  },
133
133
  "dependencies": {
134
134
  "@types/estree": "1.0.8"
@@ -247,8 +247,8 @@
247
247
  "exports": {
248
248
  ".": {
249
249
  "types": "./dist/rollup.d.ts",
250
- "require": "./dist/rollup.js",
251
- "import": "./dist/es/rollup.js"
250
+ "import": "./dist/es/rollup.js",
251
+ "require": "./dist/rollup.js"
252
252
  },
253
253
  "./loadConfigFile": {
254
254
  "types": "./dist/loadConfigFile.d.ts",
@@ -257,13 +257,13 @@
257
257
  },
258
258
  "./getLogFilter": {
259
259
  "types": "./dist/getLogFilter.d.ts",
260
- "require": "./dist/getLogFilter.js",
261
- "import": "./dist/es/getLogFilter.js"
260
+ "import": "./dist/es/getLogFilter.js",
261
+ "require": "./dist/getLogFilter.js"
262
262
  },
263
263
  "./parseAst": {
264
264
  "types": "./dist/parseAst.d.ts",
265
- "require": "./dist/parseAst.js",
266
- "import": "./dist/es/parseAst.js"
265
+ "import": "./dist/es/parseAst.js",
266
+ "require": "./dist/parseAst.js"
267
267
  },
268
268
  "./dist/*": "./dist/*",
269
269
  "./package.json": "./package.json"