@rollup/wasm-node 4.23.0 → 4.24.1

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.23.0
4
- Tue, 01 Oct 2024 07:09:35 GMT - commit ed98e0821e6ad064839f0af46ceca061adbe3f14
3
+ Rollup.js v4.24.1
4
+ Sun, 27 Oct 2024 06:42:30 GMT - commit 88a54d892dacbb0efdbcade263a32d9df1a77b37
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.23.0
4
- Tue, 01 Oct 2024 07:09:35 GMT - commit ed98e0821e6ad064839f0af46ceca061adbe3f14
3
+ Rollup.js v4.24.1
4
+ Sun, 27 Oct 2024 06:42:30 GMT - commit 88a54d892dacbb0efdbcade263a32d9df1a77b37
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -63,10 +63,11 @@ class FileWatcher {
63
63
  createWatcher(transformWatcherId) {
64
64
  const task = this.task;
65
65
  const isLinux = node_os.platform() === 'linux';
66
+ const isFreeBSD = node_os.platform() === 'freebsd';
66
67
  const isTransformDependency = transformWatcherId !== null;
67
68
  const handleChange = (id, event) => {
68
69
  const changedId = transformWatcherId || id;
69
- if (isLinux) {
70
+ if (isLinux || isFreeBSD) {
70
71
  // unwatching and watching fixes an issue with chokidar where on certain systems,
71
72
  // a file that was unlinked and immediately recreated would create a change event
72
73
  // but then no longer any further events
@@ -121,16 +121,17 @@ function getArrayU8FromWasm0(ptr, len) {
121
121
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
122
122
  }
123
123
  /**
124
- * @param {string} code
125
- * @param {boolean} allow_return_outside_function
126
- * @returns {Uint8Array}
127
- */
128
- module.exports.parse = function(code, allow_return_outside_function) {
124
+ * @param {string} code
125
+ * @param {boolean} allow_return_outside_function
126
+ * @param {boolean} jsx
127
+ * @returns {Uint8Array}
128
+ */
129
+ module.exports.parse = function(code, allow_return_outside_function, jsx) {
129
130
  try {
130
131
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
131
132
  const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
132
133
  const len0 = WASM_VECTOR_LEN;
133
- wasm.parse(retptr, ptr0, len0, allow_return_outside_function);
134
+ wasm.parse(retptr, ptr0, len0, allow_return_outside_function, jsx);
134
135
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
135
136
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
136
137
  var v2 = getArrayU8FromWasm0(r0, r1).slice();
@@ -142,9 +143,9 @@ module.exports.parse = function(code, allow_return_outside_function) {
142
143
  };
143
144
 
144
145
  /**
145
- * @param {Uint8Array} input
146
- * @returns {string}
147
- */
146
+ * @param {Uint8Array} input
147
+ * @returns {string}
148
+ */
148
149
  module.exports.xxhashBase64Url = function(input) {
149
150
  let deferred1_0;
150
151
  let deferred1_1;
@@ -163,9 +164,9 @@ module.exports.xxhashBase64Url = function(input) {
163
164
  };
164
165
 
165
166
  /**
166
- * @param {Uint8Array} input
167
- * @returns {string}
168
- */
167
+ * @param {Uint8Array} input
168
+ * @returns {string}
169
+ */
169
170
  module.exports.xxhashBase36 = function(input) {
170
171
  let deferred1_0;
171
172
  let deferred1_1;
@@ -184,9 +185,9 @@ module.exports.xxhashBase36 = function(input) {
184
185
  };
185
186
 
186
187
  /**
187
- * @param {Uint8Array} input
188
- * @returns {string}
189
- */
188
+ * @param {Uint8Array} input
189
+ * @returns {string}
190
+ */
190
191
  module.exports.xxhashBase16 = function(input) {
191
192
  let deferred1_0;
192
193
  let deferred1_1;
@@ -275,37 +276,37 @@ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return hand
275
276
  getObject(arg0).getRandomValues(getObject(arg1));
276
277
  }, arguments) };
277
278
 
278
- module.exports.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
279
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
280
+ const ret = getObject(arg0);
281
+ return addHeapObject(ret);
282
+ };
283
+
284
+ module.exports.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
279
285
  const ret = new Function(getStringFromWasm0(arg0, arg1));
280
286
  return addHeapObject(ret);
281
287
  };
282
288
 
283
- module.exports.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
289
+ module.exports.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
284
290
  const ret = getObject(arg0).call(getObject(arg1));
285
291
  return addHeapObject(ret);
286
292
  }, arguments) };
287
293
 
288
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
289
- const ret = getObject(arg0);
290
- return addHeapObject(ret);
291
- };
292
-
293
- module.exports.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
294
+ module.exports.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () {
294
295
  const ret = self.self;
295
296
  return addHeapObject(ret);
296
297
  }, arguments) };
297
298
 
298
- module.exports.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
299
+ module.exports.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () {
299
300
  const ret = window.window;
300
301
  return addHeapObject(ret);
301
302
  }, arguments) };
302
303
 
303
- module.exports.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
304
+ module.exports.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () {
304
305
  const ret = globalThis.globalThis;
305
306
  return addHeapObject(ret);
306
307
  }, arguments) };
307
308
 
308
- module.exports.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
309
+ module.exports.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () {
309
310
  const ret = global.global;
310
311
  return addHeapObject(ret);
311
312
  }, arguments) };
@@ -315,41 +316,41 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
315
316
  return ret;
316
317
  };
317
318
 
318
- module.exports.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
319
+ module.exports.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
319
320
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
320
321
  return addHeapObject(ret);
321
322
  }, arguments) };
322
323
 
323
- module.exports.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
324
+ module.exports.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
324
325
  const ret = getObject(arg0).buffer;
325
326
  return addHeapObject(ret);
326
327
  };
327
328
 
328
- module.exports.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
329
+ module.exports.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
329
330
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
330
331
  return addHeapObject(ret);
331
332
  };
332
333
 
333
- module.exports.__wbg_new_ea1883e1e5e86686 = function(arg0) {
334
+ module.exports.__wbg_new_fec2611eb9180f95 = function(arg0) {
334
335
  const ret = new Uint8Array(getObject(arg0));
335
336
  return addHeapObject(ret);
336
337
  };
337
338
 
338
- module.exports.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
339
+ module.exports.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
339
340
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
340
341
  };
341
342
 
342
- module.exports.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
343
+ module.exports.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
343
344
  const ret = getObject(arg0).length;
344
345
  return ret;
345
346
  };
346
347
 
347
- module.exports.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
348
+ module.exports.__wbg_newwithlength_76462a666eca145f = function(arg0) {
348
349
  const ret = new Uint8Array(arg0 >>> 0);
349
350
  return addHeapObject(ret);
350
351
  };
351
352
 
352
- module.exports.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
353
+ module.exports.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
353
354
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
354
355
  return addHeapObject(ret);
355
356
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.23.0",
3
+ "version": "4.24.1",
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,34 +32,35 @@
32
32
  "core-js": "We only update manually as every update requires a snapshot update"
33
33
  },
34
34
  "devDependencies": {
35
- "@codemirror/commands": "^6.6.2",
35
+ "@codemirror/commands": "^6.7.1",
36
36
  "@codemirror/lang-javascript": "^6.2.2",
37
37
  "@codemirror/language": "^6.10.3",
38
38
  "@codemirror/search": "^6.5.6",
39
39
  "@codemirror/state": "^6.4.1",
40
- "@codemirror/view": "^6.33.0",
41
- "@eslint/js": "^9.11.1",
42
- "@inquirer/prompts": "^6.0.1",
40
+ "@codemirror/view": "^6.34.1",
41
+ "@eslint/js": "^9.13.0",
42
+ "@inquirer/prompts": "^7.0.0",
43
43
  "@jridgewell/sourcemap-codec": "^1.5.0",
44
- "@mermaid-js/mermaid-cli": "^11.2.0",
44
+ "@mermaid-js/mermaid-cli": "^11.2.1",
45
45
  "@napi-rs/cli": "^2.18.4",
46
46
  "@rollup/plugin-alias": "^5.1.1",
47
47
  "@rollup/plugin-buble": "^1.0.3",
48
- "@rollup/plugin-commonjs": "^28.0.0",
48
+ "@rollup/plugin-commonjs": "^28.0.1",
49
49
  "@rollup/plugin-json": "^6.1.0",
50
50
  "@rollup/plugin-node-resolve": "^15.3.0",
51
51
  "@rollup/plugin-replace": "^6.0.1",
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
- "@rollup/plugin-typescript": "^12.1.0",
53
+ "@rollup/plugin-typescript": "^12.1.1",
54
54
  "@rollup/pluginutils": "^5.1.2",
55
- "@shikijs/vitepress-twoslash": "^1.18.0",
56
- "@types/mocha": "^10.0.8",
57
- "@types/node": "^18.19.50",
55
+ "@shikijs/vitepress-twoslash": "^1.22.0",
56
+ "@types/mocha": "^10.0.9",
57
+ "@types/node": "^18.19.58",
58
58
  "@types/semver": "^7.5.8",
59
59
  "@types/yargs-parser": "^21.0.3",
60
60
  "@vue/language-server": "^2.1.6",
61
- "acorn": "^8.12.1",
61
+ "acorn": "^8.13.0",
62
62
  "acorn-import-assertions": "^1.9.0",
63
+ "acorn-jsx": "^5.3.2",
63
64
  "buble": "^0.20.0",
64
65
  "builtin-modules": "^4.0.0",
65
66
  "chokidar": "^3.6.0",
@@ -70,32 +71,32 @@
70
71
  "date-time": "^4.0.0",
71
72
  "es5-shim": "^4.6.7",
72
73
  "es6-shim": "^0.35.8",
73
- "eslint": "^9.11.1",
74
+ "eslint": "^9.13.0",
74
75
  "eslint-config-prettier": "^9.1.0",
75
76
  "eslint-plugin-prettier": "^5.2.1",
76
- "eslint-plugin-unicorn": "^55.0.0",
77
- "eslint-plugin-vue": "^9.28.0",
77
+ "eslint-plugin-unicorn": "^56.0.0",
78
+ "eslint-plugin-vue": "^9.29.1",
78
79
  "fixturify": "^3.0.0",
79
80
  "flru": "^1.0.2",
80
81
  "fs-extra": "^11.2.0",
81
82
  "github-api": "^3.4.0",
82
- "globals": "^15.9.0",
83
+ "globals": "^15.11.0",
83
84
  "husky": "^9.1.6",
84
85
  "is-reference": "^3.0.2",
85
86
  "lint-staged": "^15.2.10",
86
87
  "locate-character": "^3.0.0",
87
- "magic-string": "^0.30.11",
88
+ "magic-string": "^0.30.12",
88
89
  "mocha": "^10.7.3",
89
90
  "nodemon": "^3.1.7",
90
91
  "npm-audit-resolver": "^3.0.0-RC.0",
91
92
  "nyc": "^17.1.0",
92
- "pinia": "^2.2.2",
93
+ "pinia": "^2.2.4",
93
94
  "prettier": "^3.3.3",
94
95
  "prettier-plugin-organize-imports": "^4.1.0",
95
96
  "pretty-bytes": "^6.1.1",
96
97
  "pretty-ms": "^9.1.0",
97
98
  "requirejs": "^2.3.7",
98
- "rollup": "^4.22.4",
99
+ "rollup": "^4.24.0",
99
100
  "rollup-plugin-license": "^3.5.3",
100
101
  "rollup-plugin-string": "^3.0.0",
101
102
  "semver": "^7.6.3",
@@ -104,13 +105,13 @@
104
105
  "source-map": "^0.7.4",
105
106
  "source-map-support": "^0.5.21",
106
107
  "systemjs": "^6.15.1",
107
- "terser": "^5.33.0",
108
- "tslib": "^2.7.0",
109
- "typescript": "^5.6.2",
110
- "typescript-eslint": "^8.7.0",
111
- "vite": "^5.4.7",
112
- "vitepress": "^1.3.4",
113
- "vue": "^3.5.8",
108
+ "terser": "^5.36.0",
109
+ "tslib": "^2.8.0",
110
+ "typescript": "^5.6.3",
111
+ "typescript-eslint": "^8.11.0",
112
+ "vite": "^5.4.9",
113
+ "vitepress": "^1.4.1",
114
+ "vue": "^3.5.12",
114
115
  "vue-tsc": "^2.1.6",
115
116
  "wasm-pack": "^0.13.0",
116
117
  "yargs-parser": "^21.1.1"