@rollup/wasm-node 4.0.0-23 → 4.0.0-25

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.0.0-23
4
- Tue, 26 Sep 2023 20:13:39 GMT - commit f1d93caae901c556ffb1e2f553428754038d65c1
3
+ Rollup.js v4.0.0-25
4
+ Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,6 +16,7 @@ const process$2 = require('node:process');
16
16
  const index = require('./index.js');
17
17
  const cli = require('../bin/rollup');
18
18
  const rollup = require('./rollup.js');
19
+ const parseAst_js = require('./parseAst.js');
19
20
  const loadConfigFile_js = require('./loadConfigFile.js');
20
21
  const node_child_process = require('node:child_process');
21
22
  const watchProxy = require('./watch-proxy.js');
@@ -29,7 +30,6 @@ require('events');
29
30
  require('node:path');
30
31
  require('tty');
31
32
  require('node:perf_hooks');
32
- require('node:crypto');
33
33
  require('../native.js');
34
34
  require('node:url');
35
35
  require('../getLogFilter.js');
@@ -512,7 +512,7 @@ async function watch(command) {
512
512
  ? input.join(', ')
513
513
  : Object.values(input).join(', ');
514
514
  }
515
- rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(rollup.relativeId).join(', '))}...`));
515
+ rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))}...`));
516
516
  }
517
517
  runWatchHook('onBundleStart');
518
518
  break;
@@ -520,7 +520,7 @@ async function watch(command) {
520
520
  case 'BUNDLE_END': {
521
521
  warnings.flush();
522
522
  if (!silent)
523
- rollup.stderr(rollup.green(`created ${rollup.bold(event.output.map(rollup.relativeId).join(', '))} in ${rollup.bold(cli.prettyMilliseconds(event.duration))}`));
523
+ rollup.stderr(rollup.green(`created ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))} in ${rollup.bold(cli.prettyMilliseconds(event.duration))}`));
524
524
  runWatchHook('onBundleEnd');
525
525
  if (event.result && event.result.getTimings) {
526
526
  cli.printTimings(event.result.getTimings());
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-23
4
- Tue, 26 Sep 2023 20:13:39 GMT - commit f1d93caae901c556ffb1e2f553428754038d65c1
3
+ Rollup.js v4.0.0-25
4
+ Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -10,6 +10,7 @@
10
10
  'use strict';
11
11
 
12
12
  const rollup = require('./rollup.js');
13
+ const parseAst_js = require('./parseAst.js');
13
14
  const fseventsImporter = require('./fsevents-importer.js');
14
15
 
15
16
  class WatchEmitter {
@@ -76,7 +77,7 @@ async function watchInternal(configs, emitter) {
76
77
  const optionsList = await Promise.all(rollup.ensureArray(configs).map(config => rollup.mergeOptions(config, true)));
77
78
  const watchOptionsList = optionsList.filter(config => config.watch !== false);
78
79
  if (watchOptionsList.length === 0) {
79
- return rollup.error(rollup.logInvalidOption('watch', rollup.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"'));
80
+ return parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"'));
80
81
  }
81
82
  await fseventsImporter.loadFsEvents();
82
83
  const { Watcher } = await Promise.resolve().then(() => require('./watch.js'));
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-23
4
- Tue, 26 Sep 2023 20:13:39 GMT - commit f1d93caae901c556ffb1e2f553428754038d65c1
3
+ Rollup.js v4.0.0-25
4
+ Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,11 +16,11 @@ const process = require('node:process');
16
16
  const rollup = require('./rollup.js');
17
17
  const node_os = require('node:os');
18
18
  const index = require('./index.js');
19
+ require('./parseAst.js');
20
+ require('../native.js');
19
21
  require('tty');
20
22
  require('path');
21
23
  require('node:perf_hooks');
22
- require('node:crypto');
23
- require('../native.js');
24
24
  require('node:fs/promises');
25
25
  require('fs');
26
26
  require('util');
@@ -217,6 +217,27 @@ module.exports.parse = function(code, allow_return_outside_function) {
217
217
  }
218
218
  };
219
219
 
220
+ /**
221
+ * @param {Uint8Array} input
222
+ * @returns {string}
223
+ */
224
+ module.exports.xxhash_base64_url = function(input) {
225
+ let deferred1_0;
226
+ let deferred1_1;
227
+ try {
228
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
229
+ wasm.xxhash_base64_url(retptr, addHeapObject(input));
230
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
231
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
232
+ deferred1_0 = r0;
233
+ deferred1_1 = r1;
234
+ return getStringFromWasm0(r0, r1);
235
+ } finally {
236
+ wasm.__wbindgen_add_to_stack_pointer(16);
237
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
238
+ }
239
+ };
240
+
220
241
  /**
221
242
  * @param {string} query
222
243
  * @param {any} opts
@@ -252,8 +273,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
252
273
  takeObject(arg0);
253
274
  };
254
275
 
255
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
256
- const ret = getStringFromWasm0(arg0, arg1);
276
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
277
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
257
278
  return addHeapObject(ret);
258
279
  };
259
280
 
@@ -288,8 +309,8 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
288
309
  return ret;
289
310
  };
290
311
 
291
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
292
- const ret = new Error(getStringFromWasm0(arg0, arg1));
312
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
313
+ const ret = getStringFromWasm0(arg0, arg1);
293
314
  return addHeapObject(ret);
294
315
  };
295
316
 
@@ -310,6 +331,11 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
310
331
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
311
332
  };
312
333
 
334
+ module.exports.__wbindgen_number_new = function(arg0) {
335
+ const ret = arg0;
336
+ return addHeapObject(ret);
337
+ };
338
+
313
339
  module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
314
340
  const ret = getObject(arg0)[getObject(arg1)];
315
341
  return addHeapObject(ret);
@@ -433,6 +459,11 @@ module.exports.__wbg_getTimezoneOffset_8aee3445f323973e = function(arg0) {
433
459
  return ret;
434
460
  };
435
461
 
462
+ module.exports.__wbg_new_cd59bfc8881f487b = function(arg0) {
463
+ const ret = new Date(getObject(arg0));
464
+ return addHeapObject(ret);
465
+ };
466
+
436
467
  module.exports.__wbg_new0_c0be7df4b6bd481f = function() {
437
468
  const ret = new Date();
438
469
  return addHeapObject(ret);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.0.0-23",
3
+ "version": "4.0.0-25",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -29,15 +29,15 @@
29
29
  "@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
30
30
  },
31
31
  "devDependencies": {
32
- "@codemirror/commands": "^6.2.5",
32
+ "@codemirror/commands": "^6.3.0",
33
33
  "@codemirror/lang-javascript": "^6.2.1",
34
- "@codemirror/language": "^6.9.0",
35
- "@codemirror/search": "^6.5.3",
34
+ "@codemirror/language": "^6.9.1",
35
+ "@codemirror/search": "^6.5.4",
36
36
  "@codemirror/state": "^6.2.1",
37
- "@codemirror/view": "^6.19.0",
37
+ "@codemirror/view": "^6.21.2",
38
38
  "@jridgewell/sourcemap-codec": "^1.4.15",
39
39
  "@mermaid-js/mermaid-cli": "^10.4.0",
40
- "@napi-rs/cli": "^2.16.2",
40
+ "@napi-rs/cli": "^2.16.3",
41
41
  "@rollup/plugin-alias": "^5.0.0",
42
42
  "@rollup/plugin-buble": "^1.0.2",
43
43
  "@rollup/plugin-commonjs": "^25.0.4",
@@ -45,14 +45,14 @@
45
45
  "@rollup/plugin-node-resolve": "^15.2.1",
46
46
  "@rollup/plugin-replace": "^5.0.2",
47
47
  "@rollup/plugin-terser": "^0.4.3",
48
- "@rollup/plugin-typescript": "11.1.2",
48
+ "@rollup/plugin-typescript": "11.1.4",
49
49
  "@rollup/pluginutils": "^5.0.4",
50
- "@types/estree": "1.0.1",
51
- "@types/mocha": "^10.0.1",
50
+ "@types/estree": "1.0.2",
51
+ "@types/mocha": "^10.0.2",
52
52
  "@types/node": "18.0.0",
53
- "@types/yargs-parser": "^21.0.0",
54
- "@typescript-eslint/eslint-plugin": "^6.7.2",
55
- "@typescript-eslint/parser": "^6.7.2",
53
+ "@types/yargs-parser": "^21.0.1",
54
+ "@typescript-eslint/eslint-plugin": "^6.7.4",
55
+ "@typescript-eslint/parser": "^6.7.4",
56
56
  "@vue/eslint-config-prettier": "^8.0.0",
57
57
  "@vue/eslint-config-typescript": "^12.0.0",
58
58
  "acorn": "^8.10.0",
@@ -62,11 +62,11 @@
62
62
  "chokidar": "^3.5.3",
63
63
  "colorette": "^2.0.20",
64
64
  "concurrently": "^8.2.1",
65
- "core-js": "^3.32.2",
65
+ "core-js": "^3.33.0",
66
66
  "date-time": "^4.0.0",
67
67
  "es5-shim": "^4.6.7",
68
68
  "es6-shim": "^0.35.8",
69
- "eslint": "^8.49.0",
69
+ "eslint": "^8.50.0",
70
70
  "eslint-config-prettier": "^9.0.0",
71
71
  "eslint-plugin-import": "^2.28.1",
72
72
  "eslint-plugin-prettier": "^5.0.0",
@@ -82,7 +82,7 @@
82
82
  "is-reference": "^3.0.2",
83
83
  "lint-staged": "^14.0.1",
84
84
  "locate-character": "^3.0.0",
85
- "magic-string": "^0.30.3",
85
+ "magic-string": "^0.30.4",
86
86
  "mocha": "^10.2.0",
87
87
  "nyc": "^15.1.0",
88
88
  "pinia": "^2.1.6",
@@ -90,7 +90,7 @@
90
90
  "pretty-bytes": "^6.1.1",
91
91
  "pretty-ms": "^8.0.0",
92
92
  "requirejs": "^2.3.6",
93
- "rollup": "^3.29.2",
93
+ "rollup": "^3.29.4",
94
94
  "rollup-plugin-license": "^3.1.0",
95
95
  "rollup-plugin-string": "^3.0.0",
96
96
  "rollup-plugin-thatworks": "^1.0.4",
@@ -100,11 +100,11 @@
100
100
  "source-map": "^0.7.4",
101
101
  "source-map-support": "^0.5.21",
102
102
  "systemjs": "^6.14.2",
103
- "terser": "^5.19.4",
103
+ "terser": "^5.21.0",
104
104
  "tslib": "^2.6.2",
105
105
  "typescript": "^5.2.2",
106
- "vite": "^4.4.9",
107
- "vitepress": "^1.0.0-rc.14",
106
+ "vite": "^4.4.11",
107
+ "vitepress": "^1.0.0-rc.20",
108
108
  "vue": "^3.3.4",
109
109
  "wasm-pack": "^0.12.1",
110
110
  "weak-napi": "^2.0.2",
@@ -141,6 +141,11 @@
141
141
  "require": "./dist/getLogFilter.js",
142
142
  "import": "./dist/es/getLogFilter.js"
143
143
  },
144
+ "./parseAst": {
145
+ "types": "./dist/parseAst.d.ts",
146
+ "require": "./dist/parseAst.js",
147
+ "import": "./dist/es/parseAst.js"
148
+ },
144
149
  "./dist/*": "./dist/*"
145
150
  }
146
151
  }