@rollup/wasm-node 4.36.0 → 4.37.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.36.0
5
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
4
+ Rollup.js v4.37.0
5
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
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.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
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.36.0";
18
+ var version = "4.37.0";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -12442,7 +12442,18 @@ class ExportNamedDeclaration extends NodeBase {
12442
12442
  code.remove(start, end);
12443
12443
  }
12444
12444
  else {
12445
- code.remove(this.start, this.declaration.start);
12445
+ let endBoundary = this.declaration.start;
12446
+ // the start of the decorator may be before the start of the class declaration
12447
+ if (this.declaration instanceof ClassDeclaration) {
12448
+ const decorators = this.declaration.decorators;
12449
+ for (const decorator of decorators) {
12450
+ endBoundary = Math.min(endBoundary, decorator.start);
12451
+ }
12452
+ if (endBoundary <= this.start) {
12453
+ endBoundary = this.declaration.start;
12454
+ }
12455
+ }
12456
+ code.remove(this.start, endBoundary);
12446
12457
  this.declaration.render(code, options, { end, start });
12447
12458
  }
12448
12459
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
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.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
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.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
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.36.0";
20
+ var version = "4.37.0";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -13910,7 +13910,18 @@ class ExportNamedDeclaration extends NodeBase {
13910
13910
  code.remove(start, end);
13911
13911
  }
13912
13912
  else {
13913
- code.remove(this.start, this.declaration.start);
13913
+ let endBoundary = this.declaration.start;
13914
+ // the start of the decorator may be before the start of the class declaration
13915
+ if (this.declaration instanceof ClassDeclaration) {
13916
+ const decorators = this.declaration.decorators;
13917
+ for (const decorator of decorators) {
13918
+ endBoundary = Math.min(endBoundary, decorator.start);
13919
+ }
13920
+ if (endBoundary <= this.start) {
13921
+ endBoundary = this.declaration.start;
13922
+ }
13923
+ }
13924
+ code.remove(this.start, endBoundary);
13914
13925
  this.declaration.render(code, options, { end, start });
13915
13926
  }
13916
13927
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -21,18 +21,6 @@ function addHeapObject(obj) {
21
21
  return idx;
22
22
  }
23
23
 
24
- function dropObject(idx) {
25
- if (idx < 132) return;
26
- heap[idx] = heap_next;
27
- heap_next = idx;
28
- }
29
-
30
- function takeObject(idx) {
31
- const ret = getObject(idx);
32
- dropObject(idx);
33
- return ret;
34
- }
35
-
36
24
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
25
 
38
26
  cachedTextDecoder.decode();
@@ -116,6 +104,18 @@ function getDataViewMemory0() {
116
104
  return cachedDataViewMemory0;
117
105
  }
118
106
 
107
+ function dropObject(idx) {
108
+ if (idx < 132) return;
109
+ heap[idx] = heap_next;
110
+ heap_next = idx;
111
+ }
112
+
113
+ function takeObject(idx) {
114
+ const ret = getObject(idx);
115
+ dropObject(idx);
116
+ return ret;
117
+ }
118
+
119
119
  function getArrayU8FromWasm0(ptr, len) {
120
120
  ptr = ptr >>> 0;
121
121
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -129,13 +129,13 @@ function getArrayU8FromWasm0(ptr, len) {
129
129
  module.exports.parse = function(code, allow_return_outside_function, jsx) {
130
130
  try {
131
131
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
132
- const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
132
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
133
133
  const len0 = WASM_VECTOR_LEN;
134
134
  wasm.parse(retptr, ptr0, len0, allow_return_outside_function, jsx);
135
135
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
136
136
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
137
137
  var v2 = getArrayU8FromWasm0(r0, r1).slice();
138
- wasm.__wbindgen_export_2(r0, r1 * 1, 1);
138
+ wasm.__wbindgen_export_0(r0, r1 * 1, 1);
139
139
  return v2;
140
140
  } finally {
141
141
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -159,7 +159,7 @@ module.exports.xxhashBase64Url = function(input) {
159
159
  return getStringFromWasm0(r0, r1);
160
160
  } finally {
161
161
  wasm.__wbindgen_add_to_stack_pointer(16);
162
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
162
+ wasm.__wbindgen_export_0(deferred1_0, deferred1_1, 1);
163
163
  }
164
164
  };
165
165
 
@@ -180,7 +180,7 @@ module.exports.xxhashBase36 = function(input) {
180
180
  return getStringFromWasm0(r0, r1);
181
181
  } finally {
182
182
  wasm.__wbindgen_add_to_stack_pointer(16);
183
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
183
+ wasm.__wbindgen_export_0(deferred1_0, deferred1_1, 1);
184
184
  }
185
185
  };
186
186
 
@@ -201,7 +201,7 @@ module.exports.xxhashBase16 = function(input) {
201
201
  return getStringFromWasm0(r0, r1);
202
202
  } finally {
203
203
  wasm.__wbindgen_add_to_stack_pointer(16);
204
- wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
204
+ wasm.__wbindgen_export_0(deferred1_0, deferred1_1, 1);
205
205
  }
206
206
  };
207
207
 
@@ -210,11 +210,28 @@ module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
210
210
  return addHeapObject(ret);
211
211
  };
212
212
 
213
+ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
214
+ let deferred0_0;
215
+ let deferred0_1;
216
+ try {
217
+ deferred0_0 = arg0;
218
+ deferred0_1 = arg1;
219
+ console.error(getStringFromWasm0(arg0, arg1));
220
+ } finally {
221
+ wasm.__wbindgen_export_0(deferred0_0, deferred0_1, 1);
222
+ }
223
+ };
224
+
213
225
  module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
214
226
  const ret = getObject(arg0).length;
215
227
  return ret;
216
228
  };
217
229
 
230
+ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
231
+ const ret = new Error();
232
+ return addHeapObject(ret);
233
+ };
234
+
218
235
  module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
219
236
  const ret = new Uint8Array(getObject(arg0));
220
237
  return addHeapObject(ret);
@@ -224,6 +241,14 @@ module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
224
241
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
225
242
  };
226
243
 
244
+ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
245
+ const ret = getObject(arg1).stack;
246
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
247
+ const len1 = WASM_VECTOR_LEN;
248
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
249
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
250
+ };
251
+
227
252
  module.exports.__wbindgen_memory = function() {
228
253
  const ret = wasm.memory;
229
254
  return addHeapObject(ret);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.36.0",
3
+ "version": "4.37.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",
@@ -34,12 +34,12 @@
34
34
  "devDependencies": {
35
35
  "@codemirror/commands": "^6.8.0",
36
36
  "@codemirror/lang-javascript": "^6.2.3",
37
- "@codemirror/language": "^6.10.8",
37
+ "@codemirror/language": "^6.11.0",
38
38
  "@codemirror/search": "^6.5.10",
39
39
  "@codemirror/state": "^6.5.2",
40
40
  "@codemirror/view": "^6.36.4",
41
41
  "@eslint/js": "^9.22.0",
42
- "@inquirer/prompts": "^7.3.3",
42
+ "@inquirer/prompts": "^7.4.0",
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",
@@ -47,12 +47,12 @@
47
47
  "@rollup/plugin-buble": "^1.0.3",
48
48
  "@rollup/plugin-commonjs": "^28.0.3",
49
49
  "@rollup/plugin-json": "^6.1.0",
50
- "@rollup/plugin-node-resolve": "^16.0.0",
50
+ "@rollup/plugin-node-resolve": "^16.0.1",
51
51
  "@rollup/plugin-replace": "^6.0.2",
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": "^3.1.0",
55
+ "@shikijs/vitepress-twoslash": "^3.2.1",
56
56
  "@types/mocha": "^10.0.10",
57
57
  "@types/node": "^18.19.80",
58
58
  "@types/semver": "^7.5.8",
@@ -82,7 +82,7 @@
82
82
  "globals": "^16.0.0",
83
83
  "husky": "^9.1.7",
84
84
  "is-reference": "^3.0.3",
85
- "lint-staged": "^15.4.3",
85
+ "lint-staged": "^15.5.0",
86
86
  "locate-character": "^3.0.0",
87
87
  "magic-string": "^0.30.17",
88
88
  "mocha": "^11.1.0",
@@ -96,11 +96,11 @@
96
96
  "pretty-bytes": "^6.1.1",
97
97
  "pretty-ms": "^9.2.0",
98
98
  "requirejs": "^2.3.7",
99
- "rollup": "^4.35.0",
99
+ "rollup": "^4.36.0",
100
100
  "rollup-plugin-license": "^3.6.0",
101
101
  "rollup-plugin-string": "^3.0.0",
102
102
  "semver": "^7.7.1",
103
- "shx": "^0.3.4",
103
+ "shx": "^0.4.0",
104
104
  "signal-exit": "^4.1.0",
105
105
  "source-map": "^0.7.4",
106
106
  "source-map-support": "^0.5.21",
@@ -109,7 +109,7 @@
109
109
  "tslib": "^2.8.1",
110
110
  "typescript": "^5.8.2",
111
111
  "typescript-eslint": "^8.26.1",
112
- "vite": "^6.2.1",
112
+ "vite": "^6.2.2",
113
113
  "vitepress": "^1.6.3",
114
114
  "vue": "^3.5.13",
115
115
  "vue-tsc": "^2.2.8",