@rollup/wasm-node 4.52.4-3 → 4.52.4
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 +2 -2
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +5 -4
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +5 -4
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm.js +27 -34
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +11 -11
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.52.4
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.52.4
|
|
5
|
+
Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.52.4
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.52.4
|
|
4
|
+
Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
|
|
|
27
27
|
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version = "4.52.4
|
|
30
|
+
var version = "4.52.4";
|
|
31
31
|
|
|
32
32
|
// src/vlq.ts
|
|
33
33
|
var comma = ",".charCodeAt(0);
|
|
@@ -14254,7 +14254,8 @@ class LogicalExpression extends NodeBase {
|
|
|
14254
14254
|
this.isBranchResolutionAnalysed = true;
|
|
14255
14255
|
const leftValue = this.left.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this);
|
|
14256
14256
|
const booleanOrUnknown = tryCastLiteralValueToBoolean(leftValue);
|
|
14257
|
-
if (typeof booleanOrUnknown === 'symbol'
|
|
14257
|
+
if (typeof booleanOrUnknown === 'symbol' ||
|
|
14258
|
+
(this.operator === '??' && typeof leftValue === 'symbol')) {
|
|
14258
14259
|
return null;
|
|
14259
14260
|
}
|
|
14260
14261
|
else {
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.52.4
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.52.4
|
|
4
|
+
Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
|
|
|
42
42
|
|
|
43
43
|
const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
|
|
44
44
|
|
|
45
|
-
var version = "4.52.4
|
|
45
|
+
var version = "4.52.4";
|
|
46
46
|
|
|
47
47
|
function ensureArray$1(items) {
|
|
48
48
|
if (Array.isArray(items)) {
|
|
@@ -15864,7 +15864,8 @@ class LogicalExpression extends NodeBase {
|
|
|
15864
15864
|
this.isBranchResolutionAnalysed = true;
|
|
15865
15865
|
const leftValue = this.left.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this);
|
|
15866
15866
|
const booleanOrUnknown = tryCastLiteralValueToBoolean(leftValue);
|
|
15867
|
-
if (typeof booleanOrUnknown === 'symbol'
|
|
15867
|
+
if (typeof booleanOrUnknown === 'symbol' ||
|
|
15868
|
+
(this.operator === '??' && typeof leftValue === 'symbol')) {
|
|
15868
15869
|
return null;
|
|
15869
15870
|
}
|
|
15870
15871
|
else {
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
let imports = {};
|
|
3
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
-
let wasm;
|
|
5
|
-
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
4
|
|
|
7
5
|
let cachedUint8ArrayMemory0 = null;
|
|
8
6
|
|
|
@@ -26,7 +24,7 @@ function getStringFromWasm0(ptr, len) {
|
|
|
26
24
|
return decodeText(ptr, len);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
let heap = new Array(128).fill(undefined);
|
|
30
28
|
|
|
31
29
|
heap.push(undefined, null, true, false);
|
|
32
30
|
|
|
@@ -50,20 +48,18 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
50
48
|
|
|
51
49
|
let WASM_VECTOR_LEN = 0;
|
|
52
50
|
|
|
53
|
-
const cachedTextEncoder = new TextEncoder(
|
|
51
|
+
const cachedTextEncoder = new TextEncoder();
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
54
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
55
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
56
|
+
view.set(buf);
|
|
57
|
+
return {
|
|
58
|
+
read: arg.length,
|
|
59
|
+
written: buf.length
|
|
60
|
+
};
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
|
-
: function (arg, view) {
|
|
60
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
61
|
-
view.set(buf);
|
|
62
|
-
return {
|
|
63
|
-
read: arg.length,
|
|
64
|
-
written: buf.length
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
63
|
|
|
68
64
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
69
65
|
|
|
@@ -94,7 +90,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
94
90
|
}
|
|
95
91
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
96
92
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
97
|
-
const ret =
|
|
93
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
98
94
|
|
|
99
95
|
offset += ret.written;
|
|
100
96
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -130,7 +126,7 @@ function takeObject(idx) {
|
|
|
130
126
|
* @param {boolean} jsx
|
|
131
127
|
* @returns {Uint8Array}
|
|
132
128
|
*/
|
|
133
|
-
|
|
129
|
+
exports.parse = function(code, allow_return_outside_function, jsx) {
|
|
134
130
|
try {
|
|
135
131
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
136
132
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
@@ -150,7 +146,7 @@ module.exports.parse = function(code, allow_return_outside_function, jsx) {
|
|
|
150
146
|
* @param {Uint8Array} input
|
|
151
147
|
* @returns {string}
|
|
152
148
|
*/
|
|
153
|
-
|
|
149
|
+
exports.xxhashBase64Url = function(input) {
|
|
154
150
|
let deferred1_0;
|
|
155
151
|
let deferred1_1;
|
|
156
152
|
try {
|
|
@@ -171,7 +167,7 @@ module.exports.xxhashBase64Url = function(input) {
|
|
|
171
167
|
* @param {Uint8Array} input
|
|
172
168
|
* @returns {string}
|
|
173
169
|
*/
|
|
174
|
-
|
|
170
|
+
exports.xxhashBase36 = function(input) {
|
|
175
171
|
let deferred1_0;
|
|
176
172
|
let deferred1_1;
|
|
177
173
|
try {
|
|
@@ -192,7 +188,7 @@ module.exports.xxhashBase36 = function(input) {
|
|
|
192
188
|
* @param {Uint8Array} input
|
|
193
189
|
* @returns {string}
|
|
194
190
|
*/
|
|
195
|
-
|
|
191
|
+
exports.xxhashBase16 = function(input) {
|
|
196
192
|
let deferred1_0;
|
|
197
193
|
let deferred1_1;
|
|
198
194
|
try {
|
|
@@ -209,7 +205,7 @@ module.exports.xxhashBase16 = function(input) {
|
|
|
209
205
|
}
|
|
210
206
|
};
|
|
211
207
|
|
|
212
|
-
|
|
208
|
+
exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
213
209
|
let deferred0_0;
|
|
214
210
|
let deferred0_1;
|
|
215
211
|
try {
|
|
@@ -221,21 +217,21 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
221
217
|
}
|
|
222
218
|
};
|
|
223
219
|
|
|
224
|
-
|
|
220
|
+
exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
225
221
|
const ret = getObject(arg0).length;
|
|
226
222
|
return ret;
|
|
227
223
|
};
|
|
228
224
|
|
|
229
|
-
|
|
225
|
+
exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
230
226
|
const ret = new Error();
|
|
231
227
|
return addHeapObject(ret);
|
|
232
228
|
};
|
|
233
229
|
|
|
234
|
-
|
|
230
|
+
exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
235
231
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
236
232
|
};
|
|
237
233
|
|
|
238
|
-
|
|
234
|
+
exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
239
235
|
const ret = getObject(arg1).stack;
|
|
240
236
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
241
237
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -243,19 +239,16 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
|
243
239
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
244
240
|
};
|
|
245
241
|
|
|
246
|
-
|
|
242
|
+
exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
247
243
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
248
244
|
};
|
|
249
245
|
|
|
250
|
-
|
|
246
|
+
exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
251
247
|
takeObject(arg0);
|
|
252
248
|
};
|
|
253
249
|
|
|
254
|
-
const
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
259
|
-
wasm = wasmInstance.exports;
|
|
260
|
-
module.exports.__wasm = wasm;
|
|
250
|
+
const wasmPath = `${__dirname}/bindings_wasm_bg.wasm`;
|
|
251
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
252
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
253
|
+
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
261
254
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.52.4
|
|
3
|
+
"version": "4.52.4",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@codemirror/language": "^6.11.3",
|
|
41
41
|
"@codemirror/search": "^6.5.11",
|
|
42
42
|
"@codemirror/state": "^6.5.2",
|
|
43
|
-
"@codemirror/view": "^6.38.
|
|
43
|
+
"@codemirror/view": "^6.38.4",
|
|
44
44
|
"@eslint/js": "^9.36.0",
|
|
45
45
|
"@inquirer/prompts": "^7.8.6",
|
|
46
46
|
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
47
|
-
"@mermaid-js/mermaid-cli": "^11.
|
|
47
|
+
"@mermaid-js/mermaid-cli": "^11.4.0",
|
|
48
48
|
"@napi-rs/cli": "^3.2.0",
|
|
49
49
|
"@rollup/plugin-alias": "^5.1.1",
|
|
50
50
|
"@rollup/plugin-buble": "^1.0.3",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"@rollup/pluginutils": "^5.3.0",
|
|
58
58
|
"@shikijs/vitepress-twoslash": "^3.13.0",
|
|
59
59
|
"@types/mocha": "^10.0.10",
|
|
60
|
-
"@types/node": "^20.19.
|
|
60
|
+
"@types/node": "^20.19.18",
|
|
61
61
|
"@types/picomatch": "^4.0.2",
|
|
62
62
|
"@types/semver": "^7.7.1",
|
|
63
63
|
"@types/yargs-parser": "^21.0.3",
|
|
64
|
-
"@vue/language-server": "^3.0
|
|
64
|
+
"@vue/language-server": "^3.1.0",
|
|
65
65
|
"acorn": "^8.15.0",
|
|
66
66
|
"acorn-import-assertions": "^1.9.0",
|
|
67
67
|
"acorn-jsx": "^5.3.2",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"chokidar": "^3.6.0",
|
|
71
71
|
"concurrently": "^9.2.1",
|
|
72
72
|
"core-js": "3.38.1",
|
|
73
|
-
"cross-env": "^10.
|
|
73
|
+
"cross-env": "^10.1.0",
|
|
74
74
|
"date-time": "^4.0.0",
|
|
75
75
|
"es5-shim": "^4.6.7",
|
|
76
76
|
"es6-shim": "^0.35.8",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"globals": "^16.4.0",
|
|
87
87
|
"husky": "^9.1.7",
|
|
88
88
|
"is-reference": "^3.0.3",
|
|
89
|
-
"lint-staged": "^16.2.
|
|
89
|
+
"lint-staged": "^16.2.3",
|
|
90
90
|
"locate-character": "^3.0.0",
|
|
91
91
|
"magic-string": "^0.30.19",
|
|
92
|
-
"memfs": "^4.
|
|
92
|
+
"memfs": "^4.47.0",
|
|
93
93
|
"mocha": "^11.7.2",
|
|
94
94
|
"nodemon": "^3.1.10",
|
|
95
95
|
"nyc": "^17.1.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"pretty-bytes": "^7.1.0",
|
|
102
102
|
"pretty-ms": "^9.3.0",
|
|
103
103
|
"requirejs": "^2.3.7",
|
|
104
|
-
"rollup": "^4.52.
|
|
104
|
+
"rollup": "^4.52.3",
|
|
105
105
|
"rollup-plugin-license": "^3.6.0",
|
|
106
106
|
"rollup-plugin-string": "^3.0.0",
|
|
107
107
|
"semver": "^7.7.2",
|
|
@@ -113,10 +113,10 @@
|
|
|
113
113
|
"terser": "^5.44.0",
|
|
114
114
|
"tslib": "^2.8.1",
|
|
115
115
|
"typescript": "^5.9.2",
|
|
116
|
-
"typescript-eslint": "^8.
|
|
116
|
+
"typescript-eslint": "^8.45.0",
|
|
117
117
|
"vite": "^7.1.7",
|
|
118
118
|
"vitepress": "^1.6.4",
|
|
119
|
-
"vue": "^3.5.
|
|
119
|
+
"vue": "^3.5.22",
|
|
120
120
|
"vue-eslint-parser": "^10.2.0",
|
|
121
121
|
"vue-tsc": "^2.2.12",
|
|
122
122
|
"wasm-pack": "^0.13.1",
|