@rollup/wasm-node 4.43.0 → 4.44.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.
package/dist/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.43.0
5
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
4
+ Rollup.js v4.44.1
5
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
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.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
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.43.0";
30
+ var version = "4.44.1";
31
31
 
32
32
  const comma = ','.charCodeAt(0);
33
33
  const semicolon = ';'.charCodeAt(0);
@@ -9059,7 +9059,11 @@ function getAugmentedNamespace(n) {
9059
9059
  var f = n.default;
9060
9060
  if (typeof f == "function") {
9061
9061
  var a = function a () {
9062
- if (this instanceof a) {
9062
+ var isInstance = false;
9063
+ try {
9064
+ isInstance = this instanceof a;
9065
+ } catch {}
9066
+ if (isInstance) {
9063
9067
  return Reflect.construct(f, arguments, this.constructor);
9064
9068
  }
9065
9069
  return f.apply(this, arguments);
@@ -16425,14 +16429,18 @@ function getOriginalLocation(sourcemapChain, location) {
16425
16429
  if (line) {
16426
16430
  const filteredLine = line.filter((segment) => segment.length > 1);
16427
16431
  const lastSegment = filteredLine[filteredLine.length - 1];
16428
- for (const segment of filteredLine) {
16432
+ let previousSegment = filteredLine[0];
16433
+ for (let segment of filteredLine) {
16429
16434
  if (segment[0] >= location.column || segment === lastSegment) {
16435
+ const notMatched = segment[0] !== location.column;
16436
+ segment = notMatched ? previousSegment : segment;
16430
16437
  location = {
16431
16438
  column: segment[3],
16432
16439
  line: segment[2] + 1
16433
16440
  };
16434
16441
  continue traceSourcemap;
16435
16442
  }
16443
+ previousSegment = segment;
16436
16444
  }
16437
16445
  }
16438
16446
  throw new Error("Can't resolve original location of error.");
@@ -20023,10 +20031,21 @@ class Link {
20023
20031
  let searchEnd = segments.length - 1;
20024
20032
  while (searchStart <= searchEnd) {
20025
20033
  const m = (searchStart + searchEnd) >> 1;
20026
- const segment = segments[m];
20034
+ let segment = segments[m];
20027
20035
  // If a sourcemap does not have sufficient resolution to contain a
20028
- // necessary mapping, e.g. because it only contains line information, we
20029
- // use the best approximation we could find
20036
+ // necessary mapping, e.g. because it only contains line information or
20037
+ // the column is not precise (e.g. the sourcemap is generated by esbuild, segment[0] may be shorter than the location of the first letter),
20038
+ // we approximate by finding the closest segment whose segment[0] is less than the given column
20039
+ if (segment[0] !== column && searchStart === searchEnd) {
20040
+ let approximatedSegmentIndex = 0;
20041
+ for (let index = 0; index < segments.length; index++) {
20042
+ if (segments[index][0] > column) {
20043
+ break;
20044
+ }
20045
+ approximatedSegmentIndex = index;
20046
+ }
20047
+ segment = segments[approximatedSegmentIndex];
20048
+ }
20030
20049
  if (segment[0] === column || searchStart === searchEnd) {
20031
20050
  if (segment.length == 1)
20032
20051
  return null;
@@ -22781,7 +22800,7 @@ const getMaxParallelFileOps = (config) => {
22781
22800
  return Infinity;
22782
22801
  return maxParallelFileOps;
22783
22802
  }
22784
- return 20;
22803
+ return 1000;
22785
22804
  };
22786
22805
  const getModuleContext = (config, context) => {
22787
22806
  const configModuleContext = config.moduleContext;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
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.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
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.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
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.43.0";
45
+ var version = "4.44.1";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -944,7 +944,11 @@ function getAugmentedNamespace(n) {
944
944
  var f = n.default;
945
945
  if (typeof f == "function") {
946
946
  var a = function a () {
947
- if (this instanceof a) {
947
+ var isInstance = false;
948
+ try {
949
+ isInstance = this instanceof a;
950
+ } catch {}
951
+ if (isInstance) {
948
952
  return Reflect.construct(f, arguments, this.constructor);
949
953
  }
950
954
  return f.apply(this, arguments);
@@ -18027,14 +18031,18 @@ function getOriginalLocation(sourcemapChain, location) {
18027
18031
  if (line) {
18028
18032
  const filteredLine = line.filter((segment) => segment.length > 1);
18029
18033
  const lastSegment = filteredLine[filteredLine.length - 1];
18030
- for (const segment of filteredLine) {
18034
+ let previousSegment = filteredLine[0];
18035
+ for (let segment of filteredLine) {
18031
18036
  if (segment[0] >= location.column || segment === lastSegment) {
18037
+ const notMatched = segment[0] !== location.column;
18038
+ segment = notMatched ? previousSegment : segment;
18032
18039
  location = {
18033
18040
  column: segment[3],
18034
18041
  line: segment[2] + 1
18035
18042
  };
18036
18043
  continue traceSourcemap;
18037
18044
  }
18045
+ previousSegment = segment;
18038
18046
  }
18039
18047
  }
18040
18048
  throw new Error("Can't resolve original location of error.");
@@ -21516,10 +21524,21 @@ class Link {
21516
21524
  let searchEnd = segments.length - 1;
21517
21525
  while (searchStart <= searchEnd) {
21518
21526
  const m = (searchStart + searchEnd) >> 1;
21519
- const segment = segments[m];
21527
+ let segment = segments[m];
21520
21528
  // If a sourcemap does not have sufficient resolution to contain a
21521
- // necessary mapping, e.g. because it only contains line information, we
21522
- // use the best approximation we could find
21529
+ // necessary mapping, e.g. because it only contains line information or
21530
+ // the column is not precise (e.g. the sourcemap is generated by esbuild, segment[0] may be shorter than the location of the first letter),
21531
+ // we approximate by finding the closest segment whose segment[0] is less than the given column
21532
+ if (segment[0] !== column && searchStart === searchEnd) {
21533
+ let approximatedSegmentIndex = 0;
21534
+ for (let index = 0; index < segments.length; index++) {
21535
+ if (segments[index][0] > column) {
21536
+ break;
21537
+ }
21538
+ approximatedSegmentIndex = index;
21539
+ }
21540
+ segment = segments[approximatedSegmentIndex];
21541
+ }
21523
21542
  if (segment[0] === column || searchStart === searchEnd) {
21524
21543
  if (segment.length == 1)
21525
21544
  return null;
@@ -23117,7 +23136,7 @@ const getMaxParallelFileOps = (config) => {
23117
23136
  return Infinity;
23118
23137
  return maxParallelFileOps;
23119
23138
  }
23120
- return 20;
23139
+ return 1000;
23121
23140
  };
23122
23141
  const getModuleContext = (config, context) => {
23123
23142
  const configModuleContext = config.moduleContext;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.43.0
4
- Wed, 11 Jun 2025 05:22:04 GMT - commit 72858cb1474b81c91902794ab7d28c79f34b8ca8
3
+ Rollup.js v4.44.1
4
+ Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.43.0",
3
+ "version": "4.44.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",
@@ -26,7 +26,7 @@
26
26
  "fsevents": "~2.3.2"
27
27
  },
28
28
  "dependencies": {
29
- "@types/estree": "1.0.7"
29
+ "@types/estree": "1.0.8"
30
30
  },
31
31
  "devDependenciesComments": {
32
32
  "core-js": "We only update manually as every update requires a snapshot update"
@@ -37,29 +37,29 @@
37
37
  "@codemirror/language": "^6.11.1",
38
38
  "@codemirror/search": "^6.5.11",
39
39
  "@codemirror/state": "^6.5.2",
40
- "@codemirror/view": "^6.37.1",
41
- "@eslint/js": "^9.28.0",
40
+ "@codemirror/view": "^6.37.2",
41
+ "@eslint/js": "^9.29.0",
42
42
  "@inquirer/prompts": "^7.5.3",
43
43
  "@jridgewell/sourcemap-codec": "^1.5.0",
44
- "@mermaid-js/mermaid-cli": "^11.4.2",
44
+ "@mermaid-js/mermaid-cli": "^11.4.3",
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.3",
48
+ "@rollup/plugin-commonjs": "^28.0.5",
49
49
  "@rollup/plugin-json": "^6.1.0",
50
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.4.2",
55
+ "@shikijs/vitepress-twoslash": "^3.6.0",
56
56
  "@types/mocha": "^10.0.10",
57
- "@types/node": "^18.19.110",
57
+ "@types/node": "^18.19.112",
58
58
  "@types/picomatch": "^4.0.0",
59
59
  "@types/semver": "^7.7.0",
60
60
  "@types/yargs-parser": "^21.0.3",
61
61
  "@vue/language-server": "^2.2.10",
62
- "acorn": "^8.14.1",
62
+ "acorn": "^8.15.0",
63
63
  "acorn-import-assertions": "^1.9.0",
64
64
  "acorn-jsx": "^5.3.2",
65
65
  "buble": "^0.20.0",
@@ -71,11 +71,11 @@
71
71
  "date-time": "^4.0.0",
72
72
  "es5-shim": "^4.6.7",
73
73
  "es6-shim": "^0.35.8",
74
- "eslint": "^9.28.0",
74
+ "eslint": "^9.29.0",
75
75
  "eslint-config-prettier": "^10.1.5",
76
76
  "eslint-plugin-prettier": "^5.4.1",
77
77
  "eslint-plugin-unicorn": "^59.0.1",
78
- "eslint-plugin-vue": "^10.1.0",
78
+ "eslint-plugin-vue": "^10.2.0",
79
79
  "fixturify": "^3.0.0",
80
80
  "flru": "^1.0.2",
81
81
  "fs-extra": "^11.3.0",
@@ -83,22 +83,22 @@
83
83
  "globals": "^16.2.0",
84
84
  "husky": "^9.1.7",
85
85
  "is-reference": "^3.0.3",
86
- "lint-staged": "^16.1.0",
86
+ "lint-staged": "^16.1.2",
87
87
  "locate-character": "^3.0.0",
88
88
  "magic-string": "^0.30.17",
89
- "memfs": "^4.17.0",
90
- "mocha": "^11.5.0",
89
+ "memfs": "^4.17.2",
90
+ "mocha": "^11.6.0",
91
91
  "nodemon": "^3.1.10",
92
92
  "nyc": "^17.1.0",
93
93
  "picocolors": "^1.1.1",
94
94
  "picomatch": "^4.0.2",
95
- "pinia": "^3.0.2",
95
+ "pinia": "^3.0.3",
96
96
  "prettier": "^3.5.3",
97
97
  "prettier-plugin-organize-imports": "^4.1.0",
98
98
  "pretty-bytes": "^7.0.0",
99
99
  "pretty-ms": "^9.2.0",
100
100
  "requirejs": "^2.3.7",
101
- "rollup": "^4.41.1",
101
+ "rollup": "^4.43.0",
102
102
  "rollup-plugin-license": "^3.6.0",
103
103
  "rollup-plugin-string": "^3.0.0",
104
104
  "semver": "^7.7.2",
@@ -107,10 +107,10 @@
107
107
  "source-map": "^0.7.4",
108
108
  "source-map-support": "^0.5.21",
109
109
  "systemjs": "^6.15.1",
110
- "terser": "^5.40.0",
110
+ "terser": "^5.42.0",
111
111
  "tslib": "^2.8.1",
112
112
  "typescript": "^5.8.3",
113
- "typescript-eslint": "^8.33.1",
113
+ "typescript-eslint": "^8.34.1",
114
114
  "vite": "^6.3.5",
115
115
  "vitepress": "^1.6.3",
116
116
  "vue": "^3.5.16",
@@ -119,7 +119,7 @@
119
119
  "yargs-parser": "^21.1.1"
120
120
  },
121
121
  "overrides": {
122
- "axios": "^1.9.0",
122
+ "axios": "^1.10.0",
123
123
  "semver": "^7.7.2",
124
124
  "readable-stream": "npm:@built-in/readable-stream@1",
125
125
  "esbuild": ">0.24.2"