@rollup/wasm-node 4.31.0-0 → 4.32.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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -21,8 +21,8 @@ const loadConfigFile_js = require('./loadConfigFile.js');
21
21
  const node_child_process = require('node:child_process');
22
22
  const rollup_js = require('../rollup.js');
23
23
  require('path');
24
- require('util');
25
24
  require('fs');
25
+ require('util');
26
26
  require('stream');
27
27
  require('os');
28
28
  require('./fsevents-importer.js');
@@ -365,7 +365,23 @@ const {
365
365
  *
366
366
  * Returns a function that may be used to unload signal-exit.
367
367
  */
368
- onExit} = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
368
+ onExit,
369
+ /**
370
+ * Load the listeners. Likely you never need to call this, unless
371
+ * doing a rather deep integration with signal-exit functionality.
372
+ * Mostly exposed for the benefit of testing.
373
+ *
374
+ * @internal
375
+ */
376
+ load,
377
+ /**
378
+ * Unload the listeners. Likely you never need to call this, unless
379
+ * doing a rather deep integration with signal-exit functionality.
380
+ * Mostly exposed for the benefit of testing.
381
+ *
382
+ * @internal
383
+ */
384
+ unload, } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
369
385
 
370
386
  const CLEAR_SCREEN = '\u001Bc';
371
387
  function getResetScreen(configs, allowClearScreen) {
@@ -425,10 +441,6 @@ async function watch(command) {
425
441
  const runWatchHook = createWatchHooks(command);
426
442
  onExit(close);
427
443
  process$2.on('uncaughtException', closeWithError);
428
- if (!process$2.stdin.isTTY) {
429
- process$2.stdin.on('end', close);
430
- process$2.stdin.resume();
431
- }
432
444
  async function loadConfigFromFileAndTrack(configFile) {
433
445
  let configFileData = null;
434
446
  let configFileRevision = 0;
@@ -512,7 +524,7 @@ async function watch(command) {
512
524
  }
513
525
  case 'END': {
514
526
  runWatchHook('onEnd');
515
- if (!silent && isTTY) {
527
+ if (!silent) {
516
528
  rollup.stderr(`\n[${dateTime()}] waiting for changes...`);
517
529
  }
518
530
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -21,8 +21,8 @@ require('../native.js');
21
21
  require('path');
22
22
  require('node:perf_hooks');
23
23
  require('node:fs/promises');
24
- require('util');
25
24
  require('fs');
25
+ require('util');
26
26
  require('stream');
27
27
  require('os');
28
28
  require('./fsevents-importer.js');
@@ -208,10 +208,10 @@ class Task {
208
208
  return path.resolve(output.file || output.dir);
209
209
  return undefined;
210
210
  });
211
- const watchOptions = this.options.watch || {};
212
- this.filter = rollup.createFilter(watchOptions.include, watchOptions.exclude);
211
+ this.watchOptions = this.options.watch || {};
212
+ this.filter = rollup.createFilter(this.watchOptions.include, this.watchOptions.exclude);
213
213
  this.fileWatcher = new FileWatcher(this, {
214
- ...watchOptions.chokidar,
214
+ ...this.watchOptions.chokidar,
215
215
  disableGlobbing: true,
216
216
  ignoreInitial: true
217
217
  });
@@ -231,6 +231,7 @@ class Task {
231
231
  }
232
232
  }
233
233
  this.watcher.invalidate({ event: details.event, id });
234
+ this.watchOptions.onInvalidate?.(id);
234
235
  }
235
236
  async run() {
236
237
  if (!this.invalidated)
@@ -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.31.0-0",
3
+ "version": "4.32.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": "^2.0.3",
56
56
  "@types/mocha": "^10.0.10",
57
- "@types/node": "^18.19.68",
57
+ "@types/node": "^18.19.71",
58
58
  "@types/semver": "^7.5.8",
59
59
  "@types/yargs-parser": "^21.0.3",
60
60
  "@vue/language-server": "^2.2.0",
@@ -64,39 +64,39 @@
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",
75
- "eslint-plugin-prettier": "^5.2.1",
73
+ "eslint": "^9.18.0",
74
+ "eslint-config-prettier": "^10.0.1",
75
+ "eslint-plugin-prettier": "^5.2.3",
76
76
  "eslint-plugin-unicorn": "^56.0.1",
77
77
  "eslint-plugin-vue": "^9.32.0",
78
78
  "fixturify": "^3.0.0",
79
79
  "flru": "^1.0.2",
80
- "fs-extra": "^11.2.0",
80
+ "fs-extra": "^11.3.0",
81
81
  "github-api": "^3.4.0",
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.4.1",
86
86
  "locate-character": "^3.0.0",
87
87
  "magic-string": "^0.30.17",
88
- "mocha": "^11.0.1",
88
+ "mocha": "^11.1.0",
89
89
  "nodemon": "^3.1.9",
90
90
  "npm-audit-resolver": "^3.0.0-RC.0",
91
91
  "nyc": "^17.1.0",
92
92
  "picocolors": "^1.1.1",
93
- "pinia": "^2.3.0",
93
+ "pinia": "^2.3.1",
94
94
  "prettier": "^3.4.2",
95
95
  "prettier-plugin-organize-imports": "^4.1.0",
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.31.0",
100
100
  "rollup-plugin-license": "^3.5.3",
101
101
  "rollup-plugin-string": "^3.0.0",
102
102
  "semver": "^7.6.3",
@@ -107,10 +107,10 @@
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",
113
- "vitepress": "^1.5.0",
110
+ "typescript": "^5.7.3",
111
+ "typescript-eslint": "^8.21.0",
112
+ "vite": "^6.0.10",
113
+ "vitepress": "^1.6.1",
114
114
  "vue": "^3.5.13",
115
115
  "vue-tsc": "^2.2.0",
116
116
  "wasm-pack": "^0.13.1",