@rollup/wasm-node 4.46.2 → 4.46.3

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.46.2
5
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
4
+ Rollup.js v4.46.3
5
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1653,7 +1653,8 @@ function prettyBytes(number, options) {
1653
1653
  number = divide(number, (options.binary ? 1024 : 1000) ** exponent);
1654
1654
 
1655
1655
  if (!localeOptions) {
1656
- number = number.toPrecision(3);
1656
+ const minPrecision = Math.max(3, Number.parseInt(number, 10).toString().length);
1657
+ number = number.toPrecision(minPrecision);
1657
1658
  }
1658
1659
 
1659
1660
  const numberString = toLocaleString(Number(number), options.locale, localeOptions);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
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.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
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.46.2";
30
+ var version = "4.46.3";
31
31
 
32
32
  // src/vlq.ts
33
33
  var comma = ",".charCodeAt(0);
@@ -20091,7 +20091,8 @@ class Link {
20091
20091
  return null;
20092
20092
  // binary search through segments for the given column
20093
20093
  let searchStart = 0;
20094
- let searchEnd = segments.length - 1;
20094
+ const lastSegmentIndex = segments.length - 1;
20095
+ let searchEnd = lastSegmentIndex;
20095
20096
  while (searchStart <= searchEnd) {
20096
20097
  const m = (searchStart + searchEnd) >> 1;
20097
20098
  let segment = segments[m];
@@ -20100,13 +20101,7 @@ class Link {
20100
20101
  // 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),
20101
20102
  // we approximate by finding the closest segment whose segment[0] is less than the given column
20102
20103
  if (segment[0] !== column && searchStart === searchEnd) {
20103
- let approximatedSegmentIndex = 0;
20104
- for (let index = 0; index < segments.length; index++) {
20105
- if (segments[index][0] > column) {
20106
- break;
20107
- }
20108
- approximatedSegmentIndex = index;
20109
- }
20104
+ const approximatedSegmentIndex = segments[searchStart][0] > column ? Math.max(0, searchStart - 1) : searchStart;
20110
20105
  segment = segments[approximatedSegmentIndex];
20111
20106
  }
20112
20107
  if (segment[0] === column || searchStart === searchEnd) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
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.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
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.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
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.46.2";
45
+ var version = "4.46.3";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -21584,7 +21584,8 @@ class Link {
21584
21584
  return null;
21585
21585
  // binary search through segments for the given column
21586
21586
  let searchStart = 0;
21587
- let searchEnd = segments.length - 1;
21587
+ const lastSegmentIndex = segments.length - 1;
21588
+ let searchEnd = lastSegmentIndex;
21588
21589
  while (searchStart <= searchEnd) {
21589
21590
  const m = (searchStart + searchEnd) >> 1;
21590
21591
  let segment = segments[m];
@@ -21593,13 +21594,7 @@ class Link {
21593
21594
  // 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),
21594
21595
  // we approximate by finding the closest segment whose segment[0] is less than the given column
21595
21596
  if (segment[0] !== column && searchStart === searchEnd) {
21596
- let approximatedSegmentIndex = 0;
21597
- for (let index = 0; index < segments.length; index++) {
21598
- if (segments[index][0] > column) {
21599
- break;
21600
- }
21601
- approximatedSegmentIndex = index;
21602
- }
21597
+ const approximatedSegmentIndex = segments[searchStart][0] > column ? Math.max(0, searchStart - 1) : searchStart;
21603
21598
  segment = segments[approximatedSegmentIndex];
21604
21599
  }
21605
21600
  if (segment[0] === column || searchStart === searchEnd) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.2
4
- Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
3
+ Rollup.js v4.46.3
4
+ Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
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.46.2",
3
+ "version": "4.46.3",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -38,11 +38,11 @@
38
38
  "@codemirror/search": "^6.5.11",
39
39
  "@codemirror/state": "^6.5.2",
40
40
  "@codemirror/view": "^6.38.1",
41
- "@eslint/js": "^9.31.0",
42
- "@inquirer/prompts": "^7.7.1",
43
- "@jridgewell/sourcemap-codec": "^1.5.4",
44
- "@mermaid-js/mermaid-cli": "^11.6.0",
45
- "@napi-rs/cli": "^3.0.1",
41
+ "@eslint/js": "^9.33.0",
42
+ "@inquirer/prompts": "^7.8.2",
43
+ "@jridgewell/sourcemap-codec": "^1.5.5",
44
+ "@mermaid-js/mermaid-cli": "^11.9.0",
45
+ "@napi-rs/cli": "^3.1.4",
46
46
  "@rollup/plugin-alias": "^5.1.1",
47
47
  "@rollup/plugin-buble": "^1.0.3",
48
48
  "@rollup/plugin-commonjs": "^28.0.6",
@@ -52,13 +52,13 @@
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
53
  "@rollup/plugin-typescript": "^12.1.4",
54
54
  "@rollup/pluginutils": "^5.2.0",
55
- "@shikijs/vitepress-twoslash": "^3.8.1",
55
+ "@shikijs/vitepress-twoslash": "^3.9.2",
56
56
  "@types/mocha": "^10.0.10",
57
- "@types/node": "^20.19.9",
58
- "@types/picomatch": "^4.0.1",
57
+ "@types/node": "^20.19.10",
58
+ "@types/picomatch": "^4.0.2",
59
59
  "@types/semver": "^7.7.0",
60
60
  "@types/yargs-parser": "^21.0.3",
61
- "@vue/language-server": "^3.0.3",
61
+ "@vue/language-server": "^3.0.5",
62
62
  "acorn": "^8.15.0",
63
63
  "acorn-import-assertions": "^1.9.0",
64
64
  "acorn-jsx": "^5.3.2",
@@ -67,26 +67,26 @@
67
67
  "chokidar": "^3.6.0",
68
68
  "concurrently": "^9.2.0",
69
69
  "core-js": "3.38.1",
70
- "cross-env": "^7.0.3",
70
+ "cross-env": "^10.0.0",
71
71
  "date-time": "^4.0.0",
72
72
  "es5-shim": "^4.6.7",
73
73
  "es6-shim": "^0.35.8",
74
- "eslint": "^9.31.0",
74
+ "eslint": "^9.33.0",
75
75
  "eslint-config-prettier": "^10.1.8",
76
- "eslint-plugin-prettier": "^5.5.3",
76
+ "eslint-plugin-prettier": "^5.5.4",
77
77
  "eslint-plugin-unicorn": "^60.0.0",
78
- "eslint-plugin-vue": "^10.3.0",
78
+ "eslint-plugin-vue": "^10.4.0",
79
79
  "fixturify": "^3.0.0",
80
80
  "flru": "^1.0.2",
81
- "fs-extra": "^11.3.0",
81
+ "fs-extra": "^11.3.1",
82
82
  "github-api": "^3.4.0",
83
83
  "globals": "^16.3.0",
84
84
  "husky": "^9.1.7",
85
85
  "is-reference": "^3.0.3",
86
- "lint-staged": "^16.1.2",
86
+ "lint-staged": "^16.1.5",
87
87
  "locate-character": "^3.0.0",
88
88
  "magic-string": "^0.30.17",
89
- "memfs": "^4.17.2",
89
+ "memfs": "^4.36.0",
90
90
  "mocha": "^11.7.1",
91
91
  "nodemon": "^3.1.10",
92
92
  "nyc": "^17.1.0",
@@ -95,24 +95,24 @@
95
95
  "pinia": "^3.0.3",
96
96
  "prettier": "^3.6.2",
97
97
  "prettier-plugin-organize-imports": "^4.2.0",
98
- "pretty-bytes": "^7.0.0",
98
+ "pretty-bytes": "^7.0.1",
99
99
  "pretty-ms": "^9.2.0",
100
100
  "requirejs": "^2.3.7",
101
- "rollup": "^4.45.1",
101
+ "rollup": "^4.46.2",
102
102
  "rollup-plugin-license": "^3.6.0",
103
103
  "rollup-plugin-string": "^3.0.0",
104
104
  "semver": "^7.7.2",
105
105
  "shx": "^0.4.0",
106
106
  "signal-exit": "^4.1.0",
107
- "source-map": "^0.7.4",
107
+ "source-map": "^0.7.6",
108
108
  "source-map-support": "^0.5.21",
109
109
  "systemjs": "^6.15.1",
110
110
  "terser": "^5.43.1",
111
111
  "tslib": "^2.8.1",
112
- "typescript": "^5.8.3",
113
- "typescript-eslint": "^8.38.0",
114
- "vite": "^7.0.5",
115
- "vitepress": "^1.6.3",
112
+ "typescript": "^5.9.2",
113
+ "typescript-eslint": "^8.39.1",
114
+ "vite": "^7.1.2",
115
+ "vitepress": "^1.6.4",
116
116
  "vue": "^3.5.18",
117
117
  "vue-eslint-parser": "^10.2.0",
118
118
  "vue-tsc": "^2.2.12",
@@ -120,7 +120,7 @@
120
120
  "yargs-parser": "^21.1.1"
121
121
  },
122
122
  "overrides": {
123
- "axios": "^1.10.0",
123
+ "axios": "^1.11.0",
124
124
  "semver": "^7.7.2",
125
125
  "readable-stream": "npm:@built-in/readable-stream@1",
126
126
  "esbuild": ">0.24.2"