@rollup/wasm-node 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/wasm-node",
3
- "version": "4.44.2",
3
+ "version": "4.45.0",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -143,8 +143,8 @@
143
143
  "exports": {
144
144
  ".": {
145
145
  "types": "./dist/rollup.d.ts",
146
- "require": "./dist/rollup.js",
147
- "import": "./dist/es/rollup.js"
146
+ "import": "./dist/es/rollup.js",
147
+ "require": "./dist/rollup.js"
148
148
  },
149
149
  "./loadConfigFile": {
150
150
  "types": "./dist/loadConfigFile.d.ts",
@@ -153,13 +153,13 @@
153
153
  },
154
154
  "./getLogFilter": {
155
155
  "types": "./dist/getLogFilter.d.ts",
156
- "require": "./dist/getLogFilter.js",
157
- "import": "./dist/es/getLogFilter.js"
156
+ "import": "./dist/es/getLogFilter.js",
157
+ "require": "./dist/getLogFilter.js"
158
158
  },
159
159
  "./parseAst": {
160
160
  "types": "./dist/parseAst.d.ts",
161
- "require": "./dist/parseAst.js",
162
- "import": "./dist/es/parseAst.js"
161
+ "import": "./dist/es/parseAst.js",
162
+ "require": "./dist/parseAst.js"
163
163
  },
164
164
  "./dist/*": "./dist/*",
165
165
  "./package.json": "./package.json"