@rollup/wasm-node 4.67.5 → 4.68.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.67.5
4
- Wed, 04 Nov 2026 09:26:19 GMT - commit 6b1937666ffaffd346992115283d63336bd2464a
3
+ Rollup.js v4.68.0
4
+ Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.67.5
4
- Wed, 04 Nov 2026 09:26:19 GMT - commit 6b1937666ffaffd346992115283d63336bd2464a
3
+ Rollup.js v4.68.0
4
+ Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -9,15 +9,18 @@
9
9
  */
10
10
  function parse(code, allow_return_outside_function, jsx, swap_byte_order) {
11
11
  try {
12
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
12
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
13
+ const val2 = +allow_return_outside_function;
14
+ const val3 = +jsx;
15
+ const val4 = +swap_byte_order;
13
16
  const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
14
17
  const len0 = WASM_VECTOR_LEN;
15
- wasm.parse(retptr, ptr0, len0, allow_return_outside_function, jsx, swap_byte_order);
18
+ wasm.parse(retptr, ptr0, len0, val2, val3, val4);
16
19
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17
20
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
18
- var v2 = getArrayU8FromWasm0(r0, r1).slice();
21
+ var v5 = getArrayU8FromWasm0(r0, r1).slice();
19
22
  wasm.__wbindgen_export(r0, r1 * 1, 1);
20
- return v2;
23
+ return v5;
21
24
  } finally {
22
25
  wasm.__wbindgen_add_to_stack_pointer(16);
23
26
  }
@@ -32,8 +35,8 @@ function xxhashBase16(input) {
32
35
  let deferred1_0;
33
36
  let deferred1_1;
34
37
  try {
35
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
36
- wasm.xxhashBase16(retptr, addHeapObject(input));
38
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
39
+ wasm.xxhashBase16(retptr, input);
37
40
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
38
41
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
39
42
  deferred1_0 = r0;
@@ -54,8 +57,8 @@ function xxhashBase36(input) {
54
57
  let deferred1_0;
55
58
  let deferred1_1;
56
59
  try {
57
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
58
- wasm.xxhashBase36(retptr, addHeapObject(input));
60
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
61
+ wasm.xxhashBase36(retptr, input);
59
62
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
60
63
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
61
64
  deferred1_0 = r0;
@@ -76,8 +79,8 @@ function xxhashBase64Url(input) {
76
79
  let deferred1_0;
77
80
  let deferred1_1;
78
81
  try {
79
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
80
- wasm.xxhashBase64Url(retptr, addHeapObject(input));
82
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
83
+ wasm.xxhashBase64Url(retptr, input);
81
84
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
82
85
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
83
86
  deferred1_0 = r0;
@@ -92,7 +95,7 @@ exports.xxhashBase64Url = xxhashBase64Url;
92
95
  function __wbg_get_imports() {
93
96
  const import0 = {
94
97
  __proto__: null,
95
- __wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
98
+ __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
96
99
  throw new Error(getStringFromWasm0(arg0, arg1));
97
100
  },
98
101
  __wbg_error_757e9472f8410341: function(arg0, arg1) {
@@ -106,26 +109,31 @@ function __wbg_get_imports() {
106
109
  wasm.__wbindgen_export(deferred0_0, deferred0_1, 1);
107
110
  }
108
111
  },
109
- __wbg_length_7f3c00c40364105e: function(arg0) {
110
- const ret = getObject(arg0).length;
112
+ __wbg_length_186163212ffe79c3: function(arg0) {
113
+ const ret = arg0.length;
111
114
  return ret;
112
115
  },
113
- __wbg_new_227d7c05414eb861: function() {
116
+ __wbg_new_bb74001155cb8ca8: function() {
114
117
  const ret = new Error();
115
- return addHeapObject(ret);
118
+ return ret;
116
119
  },
117
- __wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
118
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
120
+ __wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
121
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
119
122
  },
120
- __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
121
- const ret = getObject(arg1).stack;
123
+ __wbg_stack_575c4e0918581b9c: function(arg0, arg1) {
124
+ const ret = arg1.stack;
122
125
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
123
126
  const len1 = WASM_VECTOR_LEN;
124
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
125
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
127
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
128
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
126
129
  },
127
- __wbindgen_object_drop_ref: function(arg0) {
128
- takeObject(arg0);
130
+ __wbindgen_init_externref_table: function() {
131
+ const table = wasm.__wbindgen_externrefs;
132
+ table.set(0, undefined);
133
+ table.set(1024, undefined);
134
+ table.set(1025, null);
135
+ table.set(1026, true);
136
+ table.set(1027, false);
129
137
  },
130
138
  };
131
139
  return {
@@ -134,21 +142,6 @@ function __wbg_get_imports() {
134
142
  };
135
143
  }
136
144
 
137
- function addHeapObject(obj) {
138
- if (heap_next === heap.length) heap.push(heap.length + 1);
139
- const idx = heap_next;
140
- heap_next = heap[idx];
141
-
142
- heap[idx] = obj;
143
- return idx;
144
- }
145
-
146
- function dropObject(idx) {
147
- if (idx < 1028) return;
148
- heap[idx] = heap_next;
149
- heap_next = idx;
150
- }
151
-
152
145
  function getArrayU8FromWasm0(ptr, len) {
153
146
  ptr = ptr >>> 0;
154
147
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -163,7 +156,8 @@ function getDataViewMemory0() {
163
156
  }
164
157
 
165
158
  function getStringFromWasm0(ptr, len) {
166
- return decodeText(ptr >>> 0, len);
159
+ ptr = ptr >>> 0;
160
+ return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
167
161
  }
168
162
 
169
163
  let cachedUint8ArrayMemory0 = null;
@@ -174,13 +168,6 @@ function getUint8ArrayMemory0() {
174
168
  return cachedUint8ArrayMemory0;
175
169
  }
176
170
 
177
- function getObject(idx) { return heap[idx]; }
178
-
179
- let heap = new Array(1024).fill(undefined);
180
- heap.push(undefined, null, true, false);
181
-
182
- let heap_next = heap.length;
183
-
184
171
  function passStringToWasm0(arg, malloc, realloc) {
185
172
  if (realloc === undefined) {
186
173
  const buf = cachedTextEncoder.encode(arg);
@@ -218,16 +205,10 @@ function passStringToWasm0(arg, malloc, realloc) {
218
205
  return ptr;
219
206
  }
220
207
 
221
- function takeObject(idx) {
222
- const ret = getObject(idx);
223
- dropObject(idx);
224
- return ret;
225
- }
226
-
227
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
208
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
228
209
  cachedTextDecoder.decode();
229
- function decodeText(ptr, len) {
230
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
210
+ function decodeText(bytes) {
211
+ return cachedTextDecoder.decode(bytes);
231
212
  }
232
213
 
233
214
  const cachedTextEncoder = new TextEncoder();
@@ -250,3 +231,4 @@ const wasmBytes = require('fs').readFileSync(wasmPath);
250
231
  const wasmModule = new WebAssembly.Module(wasmBytes);
251
232
  let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
252
233
  let wasm = wasmInstance.exports;
234
+ wasm.__wbindgen_start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.67.5",
3
+ "version": "4.68.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",
@@ -47,7 +47,7 @@
47
47
  "@eslint/js": "^10.0.1",
48
48
  "@inquirer/prompts": "^7.10.1",
49
49
  "@jridgewell/sourcemap-codec": "^1.6.0",
50
- "@mermaid-js/mermaid-cli": "^12.0.0",
50
+ "@mermaid-js/mermaid-cli": "^12.2.0",
51
51
  "@napi-rs/cli": "3.4.1",
52
52
  "@rollup/plugin-alias": "^6.0.1",
53
53
  "@rollup/plugin-buble": "^1.0.3",
@@ -58,26 +58,26 @@
58
58
  "@rollup/plugin-terser": "^0.4.4",
59
59
  "@rollup/plugin-typescript": "^12.3.1",
60
60
  "@rollup/pluginutils": "^5.5.1",
61
- "@shikijs/vitepress-twoslash": "^4.5.0",
61
+ "@shikijs/vitepress-twoslash": "^4.6.0",
62
62
  "@types/mocha": "^10.0.10",
63
63
  "@types/node": "^20.19.43",
64
64
  "@types/picomatch": "^4.0.3",
65
65
  "@types/semver": "^7.8.0",
66
66
  "@types/yargs-parser": "^21.0.3",
67
- "@vue/language-server": "^3.3.13",
67
+ "@vue/language-server": "^3.3.14",
68
68
  "acorn": "^8.19.0",
69
69
  "acorn-import-assertions": "^1.9.0",
70
70
  "acorn-import-phases": "^1.0.4",
71
71
  "acorn-jsx": "^5.3.2",
72
72
  "buble": "^0.20.0",
73
- "builtin-modules": "^5.4.0",
73
+ "builtin-modules": "^5.5.0",
74
74
  "chokidar": "^3.6.0",
75
75
  "concurrently": "^9.2.5",
76
76
  "core-js": "3.38.1",
77
77
  "date-time": "^4.0.0",
78
78
  "es5-shim": "^4.6.7",
79
79
  "es6-shim": "^0.35.8",
80
- "eslint": "^10.13.0",
80
+ "eslint": "^10.14.0",
81
81
  "eslint-config-prettier": "^10.1.8",
82
82
  "eslint-plugin-prettier": "^5.5.7",
83
83
  "eslint-plugin-unicorn": "^79.0.0",
@@ -86,12 +86,12 @@
86
86
  "flru": "^1.0.2",
87
87
  "fs-extra": "^11.4.1",
88
88
  "github-api": "^3.4.0",
89
- "globals": "^17.13.0",
89
+ "globals": "^17.14.0",
90
90
  "husky": "^9.1.7",
91
91
  "is-reference": "^3.0.3",
92
92
  "lint-staged": "^17.6.0",
93
93
  "locate-character": "^3.0.0",
94
- "magic-string": "^1.4.4",
94
+ "magic-string": "^1.4.5",
95
95
  "memfs": "^4.80.0",
96
96
  "mocha": "^11.8.0",
97
97
  "nodemon": "^3.1.14",
@@ -106,28 +106,28 @@
106
106
  "pretty-bytes": "^7.2.0",
107
107
  "pretty-ms": "^9.3.1",
108
108
  "requirejs": "^2.3.8",
109
- "rollup": "^4.65.1",
109
+ "rollup": "^4.67.4",
110
110
  "rollup-plugin-license": "^3.7.1",
111
- "semver": "^7.8.5",
111
+ "semver": "^7.8.6",
112
112
  "shx": "^0.4.0",
113
113
  "signal-exit": "^4.1.0",
114
114
  "source-map": "^0.8.0",
115
115
  "source-map-support": "^0.5.21",
116
116
  "systemjs": "^6.15.1",
117
117
  "terser": "^5.51.2",
118
- "tslib": "^2.8.1",
118
+ "tslib": "^2.9.1",
119
119
  "typescript": "^5.9.3",
120
120
  "typescript-eslint": "^8.72.1",
121
121
  "vite": "^7.3.7",
122
122
  "vitepress": "^1.6.4",
123
123
  "vue": "^3.5.44",
124
124
  "vue-eslint-parser": "^10.4.1",
125
- "vue-tsc": "^3.3.13",
126
- "wasm-pack": "^0.15.0",
125
+ "vue-tsc": "^3.3.14",
126
+ "wasm-pack": "^0.15.1",
127
127
  "yargs-parser": "^21.1.1"
128
128
  },
129
129
  "overrides": {
130
- "axios": "^1.20.0",
130
+ "axios": "^1.21.0",
131
131
  "esbuild": ">0.24.2",
132
132
  "lodash-es": ">4.17.22",
133
133
  "path-scurry": {
@@ -136,7 +136,7 @@
136
136
  "readable-stream": "npm:@built-in/readable-stream@1",
137
137
  "react": "^18.3.1",
138
138
  "react-dom": "^18.3.1",
139
- "semver": "^7.8.5",
139
+ "semver": "^7.8.6",
140
140
  "tar": ">7.5.6",
141
141
  "vite": "$vite"
142
142
  },