rollup 4.34.5 → 4.34.6

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.34.5
5
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
4
+ Rollup.js v4.34.6
5
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1203,7 +1203,7 @@ var _a, _b, _c;
1203
1203
  const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)
1204
1204
  ? Number(process.env.YARGS_MIN_NODE_VERSION)
1205
1205
  : 12;
1206
- const nodeVersion = (_b = (_a = process === null || process === undefined ? undefined : process.versions) === null || _a === undefined ? undefined : _a.node) !== null && _b !== undefined ? _b : (_c = process === null || process === undefined ? undefined : process.version) === null || _c === undefined ? undefined : _c.slice(1);
1206
+ const nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c = process === null || process === void 0 ? void 0 : process.version) === null || _c === void 0 ? void 0 : _c.slice(1);
1207
1207
  if (nodeVersion) {
1208
1208
  const major = Number(nodeVersion.match(/^([^.]+)/)[1]);
1209
1209
  if (major < minNodeVersion) {
@@ -1264,14 +1264,14 @@ PERFORMANCE OF THIS SOFTWARE.
1264
1264
 
1265
1265
 
1266
1266
  function __addDisposableResource(env, value, async) {
1267
- if (value !== null && value !== undefined) {
1267
+ if (value !== null && value !== void 0) {
1268
1268
  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
1269
1269
  var dispose, inner;
1270
1270
  if (async) {
1271
1271
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
1272
1272
  dispose = value[Symbol.asyncDispose];
1273
1273
  }
1274
- if (dispose === undefined) {
1274
+ if (dispose === void 0) {
1275
1275
  if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
1276
1276
  dispose = value[Symbol.dispose];
1277
1277
  if (async) inner = dispose;
@@ -1644,7 +1644,7 @@ function printTimings(timings) {
1644
1644
  }
1645
1645
 
1646
1646
  async function build(inputOptions, warnings, silent = false) {
1647
- const env_1 = { stack: [], error: undefined, hasError: false };
1647
+ const env_1 = { stack: [], error: void 0, hasError: false };
1648
1648
  try {
1649
1649
  const outputOptions = inputOptions.output;
1650
1650
  const useStdout = !outputOptions[0].file && !outputOptions[0].dir;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
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.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
15
15
  import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
 
18
- var version = "4.34.5";
18
+ var version = "4.34.6";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -10486,7 +10486,7 @@ function requireParse () {
10486
10486
  }
10487
10487
 
10488
10488
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
10489
- const end = rest[1] !== undefined ? '|$' : '';
10489
+ const end = rest[1] !== void 0 ? '|$' : '';
10490
10490
 
10491
10491
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
10492
10492
  prior.output = `(?:${prior.output}`;
@@ -14947,7 +14947,11 @@ class UnaryExpression extends NodeBase {
14947
14947
  }
14948
14948
  const CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE = /[\s([=%&*+-/<>^|,?:;]/;
14949
14949
  function getRenderedLiteralValue(value) {
14950
- if (value === undefined || typeof value === 'boolean') {
14950
+ if (value === undefined) {
14951
+ // At the moment, the undefined only happens when the operator is void
14952
+ return 'void 0';
14953
+ }
14954
+ if (typeof value === 'boolean') {
14951
14955
  return String(value);
14952
14956
  }
14953
14957
  if (typeof value === 'string') {
@@ -20279,18 +20283,18 @@ function flru (max) {
20279
20283
  return {
20280
20284
  clear: reset,
20281
20285
  has: function (key) {
20282
- return curr[key] !== undefined || prev[key] !== undefined;
20286
+ return curr[key] !== void 0 || prev[key] !== void 0;
20283
20287
  },
20284
20288
  get: function (key) {
20285
20289
  var val = curr[key];
20286
- if (val !== undefined) return val;
20287
- if ((val=prev[key]) !== undefined) {
20290
+ if (val !== void 0) return val;
20291
+ if ((val=prev[key]) !== void 0) {
20288
20292
  keep(key, val);
20289
20293
  return val;
20290
20294
  }
20291
20295
  },
20292
20296
  set: function (key, value) {
20293
- if (curr[key] !== undefined) {
20297
+ if (curr[key] !== void 0) {
20294
20298
  curr[key] = value;
20295
20299
  } else {
20296
20300
  keep(key, value);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1558,7 +1558,7 @@ function requireParse$2 () {
1558
1558
  }
1559
1559
 
1560
1560
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
1561
- const end = rest[1] !== undefined ? '|$' : '';
1561
+ const end = rest[1] !== void 0 ? '|$' : '';
1562
1562
 
1563
1563
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
1564
1564
  prior.output = `(?:${prior.output}`;
@@ -3969,7 +3969,7 @@ function requireParse$1 () {
3969
3969
  }
3970
3970
 
3971
3971
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
3972
- const end = rest[1] !== undefined ? '|$' : '';
3972
+ const end = rest[1] !== void 0 ? '|$' : '';
3973
3973
 
3974
3974
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
3975
3975
  prior.output = `(?:${prior.output}`;
@@ -5163,7 +5163,7 @@ function requireToRegexRange () {
5163
5163
  throw new TypeError('toRegexRange: expected the first argument to be a number');
5164
5164
  }
5165
5165
 
5166
- if (max === undefined || min === max) {
5166
+ if (max === void 0 || min === max) {
5167
5167
  return String(min);
5168
5168
  }
5169
5169
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
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.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
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.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1554,7 +1554,7 @@ function requireParse$2 () {
1554
1554
  }
1555
1555
 
1556
1556
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
1557
- const end = rest[1] !== undefined ? '|$' : '';
1557
+ const end = rest[1] !== void 0 ? '|$' : '';
1558
1558
 
1559
1559
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
1560
1560
  prior.output = `(?:${prior.output}`;
@@ -3965,7 +3965,7 @@ function requireParse$1 () {
3965
3965
  }
3966
3966
 
3967
3967
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
3968
- const end = rest[1] !== undefined ? '|$' : '';
3968
+ const end = rest[1] !== void 0 ? '|$' : '';
3969
3969
 
3970
3970
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
3971
3971
  prior.output = `(?:${prior.output}`;
@@ -5159,7 +5159,7 @@ function requireToRegexRange () {
5159
5159
  throw new TypeError('toRegexRange: expected the first argument to be a number');
5160
5160
  }
5161
5161
 
5162
- if (max === undefined || min === max) {
5162
+ if (max === void 0 || min === max) {
5163
5163
  return String(min);
5164
5164
  }
5165
5165
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
17
17
  const node_perf_hooks = require('node:perf_hooks');
18
18
  const promises = require('node:fs/promises');
19
19
 
20
- var version = "4.34.5";
20
+ var version = "4.34.6";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -11954,7 +11954,7 @@ function requireParse () {
11954
11954
  }
11955
11955
 
11956
11956
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
11957
- const end = rest[1] !== undefined ? '|$' : '';
11957
+ const end = rest[1] !== void 0 ? '|$' : '';
11958
11958
 
11959
11959
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
11960
11960
  prior.output = `(?:${prior.output}`;
@@ -16415,7 +16415,11 @@ class UnaryExpression extends NodeBase {
16415
16415
  }
16416
16416
  const CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE = /[\s([=%&*+-/<>^|,?:;]/;
16417
16417
  function getRenderedLiteralValue(value) {
16418
- if (value === undefined || typeof value === 'boolean') {
16418
+ if (value === undefined) {
16419
+ // At the moment, the undefined only happens when the operator is void
16420
+ return 'void 0';
16421
+ }
16422
+ if (typeof value === 'boolean') {
16419
16423
  return String(value);
16420
16424
  }
16421
16425
  if (typeof value === 'string') {
@@ -21611,18 +21615,18 @@ function flru (max) {
21611
21615
  return {
21612
21616
  clear: reset,
21613
21617
  has: function (key) {
21614
- return curr[key] !== undefined || prev[key] !== undefined;
21618
+ return curr[key] !== void 0 || prev[key] !== void 0;
21615
21619
  },
21616
21620
  get: function (key) {
21617
21621
  var val = curr[key];
21618
- if (val !== undefined) return val;
21619
- if ((val=prev[key]) !== undefined) {
21622
+ if (val !== void 0) return val;
21623
+ if ((val=prev[key]) !== void 0) {
21620
21624
  keep(key, val);
21621
21625
  return val;
21622
21626
  }
21623
21627
  },
21624
21628
  set: function (key, value) {
21625
- if (curr[key] !== undefined) {
21629
+ if (curr[key] !== void 0) {
21626
21630
  curr[key] = value;
21627
21631
  } else {
21628
21632
  keep(key, value);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.5
4
- Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
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.34.5",
3
+ "version": "4.34.6",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -110,25 +110,25 @@
110
110
  "homepage": "https://rollupjs.org/",
111
111
  "optionalDependencies": {
112
112
  "fsevents": "~2.3.2",
113
- "@rollup/rollup-darwin-arm64": "4.34.5",
114
- "@rollup/rollup-android-arm64": "4.34.5",
115
- "@rollup/rollup-win32-arm64-msvc": "4.34.5",
116
- "@rollup/rollup-freebsd-arm64": "4.34.5",
117
- "@rollup/rollup-linux-arm64-gnu": "4.34.5",
118
- "@rollup/rollup-linux-arm64-musl": "4.34.5",
119
- "@rollup/rollup-android-arm-eabi": "4.34.5",
120
- "@rollup/rollup-linux-arm-gnueabihf": "4.34.5",
121
- "@rollup/rollup-linux-arm-musleabihf": "4.34.5",
122
- "@rollup/rollup-win32-ia32-msvc": "4.34.5",
123
- "@rollup/rollup-linux-loongarch64-gnu": "4.34.5",
124
- "@rollup/rollup-linux-riscv64-gnu": "4.34.5",
125
- "@rollup/rollup-linux-powerpc64le-gnu": "4.34.5",
126
- "@rollup/rollup-linux-s390x-gnu": "4.34.5",
127
- "@rollup/rollup-darwin-x64": "4.34.5",
128
- "@rollup/rollup-win32-x64-msvc": "4.34.5",
129
- "@rollup/rollup-freebsd-x64": "4.34.5",
130
- "@rollup/rollup-linux-x64-gnu": "4.34.5",
131
- "@rollup/rollup-linux-x64-musl": "4.34.5"
113
+ "@rollup/rollup-darwin-arm64": "4.34.6",
114
+ "@rollup/rollup-android-arm64": "4.34.6",
115
+ "@rollup/rollup-win32-arm64-msvc": "4.34.6",
116
+ "@rollup/rollup-freebsd-arm64": "4.34.6",
117
+ "@rollup/rollup-linux-arm64-gnu": "4.34.6",
118
+ "@rollup/rollup-linux-arm64-musl": "4.34.6",
119
+ "@rollup/rollup-android-arm-eabi": "4.34.6",
120
+ "@rollup/rollup-linux-arm-gnueabihf": "4.34.6",
121
+ "@rollup/rollup-linux-arm-musleabihf": "4.34.6",
122
+ "@rollup/rollup-win32-ia32-msvc": "4.34.6",
123
+ "@rollup/rollup-linux-loongarch64-gnu": "4.34.6",
124
+ "@rollup/rollup-linux-riscv64-gnu": "4.34.6",
125
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.34.6",
126
+ "@rollup/rollup-linux-s390x-gnu": "4.34.6",
127
+ "@rollup/rollup-darwin-x64": "4.34.6",
128
+ "@rollup/rollup-win32-x64-msvc": "4.34.6",
129
+ "@rollup/rollup-freebsd-x64": "4.34.6",
130
+ "@rollup/rollup-linux-x64-gnu": "4.34.6",
131
+ "@rollup/rollup-linux-x64-musl": "4.34.6"
132
132
  },
133
133
  "dependencies": {
134
134
  "@types/estree": "1.0.6"