@rollup/wasm-node 4.30.1 → 4.31.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.30.1
5
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
4
+ Rollup.js v4.31.0
5
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1";
18
+ var version = "4.31.0";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -19487,6 +19487,13 @@ async function findFile(file, preserveSymlinks) {
19487
19487
  }
19488
19488
  }
19489
19489
 
19490
+ function stripBom(content) {
19491
+ if (content.charCodeAt(0) === 0xfe_ff) {
19492
+ return stripBom(content.slice(1));
19493
+ }
19494
+ return content;
19495
+ }
19496
+
19490
19497
  const ANONYMOUS_PLUGIN_PREFIX = 'at position ';
19491
19498
  const ANONYMOUS_OUTPUT_PLUGIN_PREFIX = 'at output position ';
19492
19499
 
@@ -19973,10 +19980,7 @@ class ModuleLoader {
19973
19980
  : source != null && typeof source === 'object' && typeof source.code === 'string'
19974
19981
  ? source
19975
19982
  : error(logBadLoader(id));
19976
- const code = sourceDescription.code;
19977
- if (code.charCodeAt(0) === 0xfe_ff) {
19978
- sourceDescription.code = code.slice(1);
19979
- }
19983
+ sourceDescription.code = stripBom(sourceDescription.code);
19980
19984
  const cachedModule = this.graph.cachedModules.get(id);
19981
19985
  if (cachedModule &&
19982
19986
  !cachedModule.customTransformCache &&
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1";
20
+ var version = "4.31.0";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -20819,6 +20819,13 @@ async function findFile(file, preserveSymlinks) {
20819
20819
  }
20820
20820
  }
20821
20821
 
20822
+ function stripBom(content) {
20823
+ if (content.charCodeAt(0) === 0xfe_ff) {
20824
+ return stripBom(content.slice(1));
20825
+ }
20826
+ return content;
20827
+ }
20828
+
20822
20829
  async function transform(source, module, pluginDriver, log) {
20823
20830
  const id = module.id;
20824
20831
  const sourcemapChain = [];
@@ -21060,10 +21067,7 @@ class ModuleLoader {
21060
21067
  : source != null && typeof source === 'object' && typeof source.code === 'string'
21061
21068
  ? source
21062
21069
  : parseAst_js.error(parseAst_js.logBadLoader(id));
21063
- const code = sourceDescription.code;
21064
- if (code.charCodeAt(0) === 0xfe_ff) {
21065
- sourceDescription.code = code.slice(1);
21066
- }
21070
+ sourceDescription.code = stripBom(sourceDescription.code);
21067
21071
  const cachedModule = this.graph.cachedModules.get(id);
21068
21072
  if (cachedModule &&
21069
21073
  !cachedModule.customTransformCache &&
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -441,10 +441,6 @@ async function watch(command) {
441
441
  const runWatchHook = createWatchHooks(command);
442
442
  onExit(close);
443
443
  process$2.on('uncaughtException', closeWithError);
444
- if (!process$2.stdin.isTTY) {
445
- process$2.stdin.on('end', close);
446
- process$2.stdin.resume();
447
- }
448
444
  async function loadConfigFromFileAndTrack(configFile) {
449
445
  let configFileData = null;
450
446
  let configFileRevision = 0;
@@ -528,7 +524,7 @@ async function watch(command) {
528
524
  }
529
525
  case 'END': {
530
526
  runWatchHook('onEnd');
531
- if (!silent && isTTY) {
527
+ if (!silent) {
532
528
  rollup.stderr(`\n[${dateTime()}] waiting for changes...`);
533
529
  }
534
530
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -217,18 +217,18 @@ module.exports.xxhashBase16 = function(input) {
217
217
  }
218
218
  };
219
219
 
220
- module.exports.__wbg_buffer_61b7ce01341d7f88 = function(arg0) {
220
+ module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
221
221
  const ret = getObject(arg0).buffer;
222
222
  return addHeapObject(ret);
223
223
  };
224
224
 
225
- module.exports.__wbg_call_500db948e69c7330 = function() { return handleError(function (arg0, arg1, arg2) {
226
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
225
+ module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
226
+ const ret = getObject(arg0).call(getObject(arg1));
227
227
  return addHeapObject(ret);
228
228
  }, arguments) };
229
229
 
230
- module.exports.__wbg_call_b0d8e36992d9900d = function() { return handleError(function (arg0, arg1) {
231
- const ret = getObject(arg0).call(getObject(arg1));
230
+ module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
231
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
232
232
  return addHeapObject(ret);
233
233
  }, arguments) };
234
234
 
@@ -241,7 +241,7 @@ module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return hand
241
241
  getObject(arg0).getRandomValues(getObject(arg1));
242
242
  }, arguments) };
243
243
 
244
- module.exports.__wbg_length_65d1cd11729ced11 = function(arg0) {
244
+ module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
245
245
  const ret = getObject(arg0).length;
246
246
  return ret;
247
247
  };
@@ -251,22 +251,22 @@ module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
251
251
  return addHeapObject(ret);
252
252
  };
253
253
 
254
- module.exports.__wbg_new_3ff5b33b1ce712df = function(arg0) {
254
+ module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
255
255
  const ret = new Uint8Array(getObject(arg0));
256
256
  return addHeapObject(ret);
257
257
  };
258
258
 
259
- module.exports.__wbg_newnoargs_fd9e4bf8be2bc16d = function(arg0, arg1) {
259
+ module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
260
260
  const ret = new Function(getStringFromWasm0(arg0, arg1));
261
261
  return addHeapObject(ret);
262
262
  };
263
263
 
264
- module.exports.__wbg_newwithbyteoffsetandlength_ba35896968751d91 = function(arg0, arg1, arg2) {
264
+ module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
265
265
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
266
266
  return addHeapObject(ret);
267
267
  };
268
268
 
269
- module.exports.__wbg_newwithlength_34ce8f1051e74449 = function(arg0) {
269
+ module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
270
270
  const ret = new Uint8Array(arg0 >>> 0);
271
271
  return addHeapObject(ret);
272
272
  };
@@ -290,31 +290,31 @@ module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(
290
290
  return addHeapObject(ret);
291
291
  }, arguments) };
292
292
 
293
- module.exports.__wbg_set_23d69db4e5c66a6e = function(arg0, arg1, arg2) {
293
+ module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
294
294
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
295
295
  };
296
296
 
297
- module.exports.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3 = function() {
297
+ module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
298
298
  const ret = typeof global === 'undefined' ? null : global;
299
299
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
300
300
  };
301
301
 
302
- module.exports.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb = function() {
302
+ module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
303
303
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
304
304
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
305
305
  };
306
306
 
307
- module.exports.__wbg_static_accessor_SELF_1dc398a895c82351 = function() {
307
+ module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
308
308
  const ret = typeof self === 'undefined' ? null : self;
309
309
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
310
310
  };
311
311
 
312
- module.exports.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a = function() {
312
+ module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
313
313
  const ret = typeof window === 'undefined' ? null : window;
314
314
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
315
315
  };
316
316
 
317
- module.exports.__wbg_subarray_46adeb9b86949d12 = function(arg0, arg1, arg2) {
317
+ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
318
318
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
319
319
  return addHeapObject(ret);
320
320
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.30.1",
3
+ "version": "4.31.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",
@@ -32,14 +32,14 @@
32
32
  "core-js": "We only update manually as every update requires a snapshot update"
33
33
  },
34
34
  "devDependencies": {
35
- "@codemirror/commands": "^6.7.1",
35
+ "@codemirror/commands": "^6.8.0",
36
36
  "@codemirror/lang-javascript": "^6.2.2",
37
37
  "@codemirror/language": "^6.10.8",
38
38
  "@codemirror/search": "^6.5.8",
39
- "@codemirror/state": "^6.5.0",
40
- "@codemirror/view": "^6.36.1",
41
- "@eslint/js": "^9.17.0",
42
- "@inquirer/prompts": "^7.2.1",
39
+ "@codemirror/state": "^6.5.1",
40
+ "@codemirror/view": "^6.36.2",
41
+ "@eslint/js": "^9.18.0",
42
+ "@inquirer/prompts": "^7.2.3",
43
43
  "@jridgewell/sourcemap-codec": "^1.5.0",
44
44
  "@mermaid-js/mermaid-cli": "^11.4.2",
45
45
  "@napi-rs/cli": "^2.18.4",
@@ -52,9 +52,9 @@
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
53
  "@rollup/plugin-typescript": "^12.1.2",
54
54
  "@rollup/pluginutils": "^5.1.4",
55
- "@shikijs/vitepress-twoslash": "^1.24.4",
55
+ "@shikijs/vitepress-twoslash": "^1.26.2",
56
56
  "@types/mocha": "^10.0.10",
57
- "@types/node": "^18.19.68",
57
+ "@types/node": "^18.19.70",
58
58
  "@types/semver": "^7.5.8",
59
59
  "@types/yargs-parser": "^21.0.3",
60
60
  "@vue/language-server": "^2.2.0",
@@ -64,14 +64,14 @@
64
64
  "buble": "^0.20.0",
65
65
  "builtin-modules": "^4.0.0",
66
66
  "chokidar": "^3.6.0",
67
- "concurrently": "^9.1.0",
67
+ "concurrently": "^9.1.2",
68
68
  "core-js": "3.38.1",
69
69
  "cross-env": "^7.0.3",
70
70
  "date-time": "^4.0.0",
71
71
  "es5-shim": "^4.6.7",
72
72
  "es6-shim": "^0.35.8",
73
- "eslint": "^9.17.0",
74
- "eslint-config-prettier": "^9.1.0",
73
+ "eslint": "^9.18.0",
74
+ "eslint-config-prettier": "^10.0.1",
75
75
  "eslint-plugin-prettier": "^5.2.1",
76
76
  "eslint-plugin-unicorn": "^56.0.1",
77
77
  "eslint-plugin-vue": "^9.32.0",
@@ -82,7 +82,7 @@
82
82
  "globals": "^15.14.0",
83
83
  "husky": "^9.1.7",
84
84
  "is-reference": "^3.0.3",
85
- "lint-staged": "^15.2.11",
85
+ "lint-staged": "^15.3.0",
86
86
  "locate-character": "^3.0.0",
87
87
  "magic-string": "^0.30.17",
88
88
  "mocha": "^11.0.1",
@@ -96,7 +96,7 @@
96
96
  "pretty-bytes": "^6.1.1",
97
97
  "pretty-ms": "^9.2.0",
98
98
  "requirejs": "^2.3.7",
99
- "rollup": "^4.29.1",
99
+ "rollup": "^4.30.1",
100
100
  "rollup-plugin-license": "^3.5.3",
101
101
  "rollup-plugin-string": "^3.0.0",
102
102
  "semver": "^7.6.3",
@@ -107,9 +107,9 @@
107
107
  "systemjs": "^6.15.1",
108
108
  "terser": "^5.37.0",
109
109
  "tslib": "^2.8.1",
110
- "typescript": "^5.7.2",
111
- "typescript-eslint": "^8.18.2",
112
- "vite": "^6.0.5",
110
+ "typescript": "^5.7.3",
111
+ "typescript-eslint": "^8.20.0",
112
+ "vite": "^6.0.7",
113
113
  "vitepress": "^1.5.0",
114
114
  "vue": "^3.5.13",
115
115
  "vue-tsc": "^2.2.0",