rollup 4.46.2 → 4.46.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 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.4
5
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4";
31
31
 
32
32
  // src/vlq.ts
33
33
  var comma = ",".charCodeAt(0);
@@ -11832,6 +11832,8 @@ class BinaryExpression extends NodeBase {
11832
11832
  const [variable] = this.right.variable.context.traceExport(String(leftValue));
11833
11833
  if (variable instanceof ExternalVariable)
11834
11834
  return UnknownValue;
11835
+ if (variable instanceof SyntheticNamedExportVariable)
11836
+ return UnknownValue;
11835
11837
  return !!variable;
11836
11838
  }
11837
11839
  const rightValue = this.right.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
@@ -20091,7 +20093,8 @@ class Link {
20091
20093
  return null;
20092
20094
  // binary search through segments for the given column
20093
20095
  let searchStart = 0;
20094
- let searchEnd = segments.length - 1;
20096
+ const lastSegmentIndex = segments.length - 1;
20097
+ let searchEnd = lastSegmentIndex;
20095
20098
  while (searchStart <= searchEnd) {
20096
20099
  const m = (searchStart + searchEnd) >> 1;
20097
20100
  let segment = segments[m];
@@ -20100,13 +20103,7 @@ class Link {
20100
20103
  // 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
20104
  // we approximate by finding the closest segment whose segment[0] is less than the given column
20102
20105
  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
- }
20106
+ const approximatedSegmentIndex = segments[searchStart][0] > column ? Math.max(0, searchStart - 1) : searchStart;
20110
20107
  segment = segments[approximatedSegmentIndex];
20111
20108
  }
20112
20109
  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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -13441,6 +13441,8 @@ class BinaryExpression extends NodeBase {
13441
13441
  const [variable] = this.right.variable.context.traceExport(String(leftValue));
13442
13442
  if (variable instanceof ExternalVariable)
13443
13443
  return UnknownValue;
13444
+ if (variable instanceof SyntheticNamedExportVariable)
13445
+ return UnknownValue;
13444
13446
  return !!variable;
13445
13447
  }
13446
13448
  const rightValue = this.right.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
@@ -21584,7 +21586,8 @@ class Link {
21584
21586
  return null;
21585
21587
  // binary search through segments for the given column
21586
21588
  let searchStart = 0;
21587
- let searchEnd = segments.length - 1;
21589
+ const lastSegmentIndex = segments.length - 1;
21590
+ let searchEnd = lastSegmentIndex;
21588
21591
  while (searchStart <= searchEnd) {
21589
21592
  const m = (searchStart + searchEnd) >> 1;
21590
21593
  let segment = segments[m];
@@ -21593,13 +21596,7 @@ class Link {
21593
21596
  // 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
21597
  // we approximate by finding the closest segment whose segment[0] is less than the given column
21595
21598
  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
- }
21599
+ const approximatedSegmentIndex = segments[searchStart][0] > column ? Math.max(0, searchStart - 1) : searchStart;
21603
21600
  segment = segments[approximatedSegmentIndex];
21604
21601
  }
21605
21602
  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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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.4
4
+ Wed, 20 Aug 2025 05:32:50 GMT - commit bc353578bbde60d644d0d4ed5fb3b121aec19fd7
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",
3
- "version": "4.46.2",
3
+ "version": "4.46.4",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -104,26 +104,26 @@
104
104
  "homepage": "https://rollupjs.org/",
105
105
  "optionalDependencies": {
106
106
  "fsevents": "~2.3.2",
107
- "@rollup/rollup-darwin-arm64": "4.46.2",
108
- "@rollup/rollup-android-arm64": "4.46.2",
109
- "@rollup/rollup-win32-arm64-msvc": "4.46.2",
110
- "@rollup/rollup-freebsd-arm64": "4.46.2",
111
- "@rollup/rollup-linux-arm64-gnu": "4.46.2",
112
- "@rollup/rollup-linux-arm64-musl": "4.46.2",
113
- "@rollup/rollup-android-arm-eabi": "4.46.2",
114
- "@rollup/rollup-linux-arm-gnueabihf": "4.46.2",
115
- "@rollup/rollup-linux-arm-musleabihf": "4.46.2",
116
- "@rollup/rollup-win32-ia32-msvc": "4.46.2",
117
- "@rollup/rollup-linux-loongarch64-gnu": "4.46.2",
118
- "@rollup/rollup-linux-riscv64-gnu": "4.46.2",
119
- "@rollup/rollup-linux-riscv64-musl": "4.46.2",
120
- "@rollup/rollup-linux-ppc64-gnu": "4.46.2",
121
- "@rollup/rollup-linux-s390x-gnu": "4.46.2",
122
- "@rollup/rollup-darwin-x64": "4.46.2",
123
- "@rollup/rollup-win32-x64-msvc": "4.46.2",
124
- "@rollup/rollup-freebsd-x64": "4.46.2",
125
- "@rollup/rollup-linux-x64-gnu": "4.46.2",
126
- "@rollup/rollup-linux-x64-musl": "4.46.2"
107
+ "@rollup/rollup-darwin-arm64": "4.46.4",
108
+ "@rollup/rollup-android-arm64": "4.46.4",
109
+ "@rollup/rollup-win32-arm64-msvc": "4.46.4",
110
+ "@rollup/rollup-freebsd-arm64": "4.46.4",
111
+ "@rollup/rollup-linux-arm64-gnu": "4.46.4",
112
+ "@rollup/rollup-linux-arm64-musl": "4.46.4",
113
+ "@rollup/rollup-android-arm-eabi": "4.46.4",
114
+ "@rollup/rollup-linux-arm-gnueabihf": "4.46.4",
115
+ "@rollup/rollup-linux-arm-musleabihf": "4.46.4",
116
+ "@rollup/rollup-win32-ia32-msvc": "4.46.4",
117
+ "@rollup/rollup-linux-loongarch64-gnu": "4.46.4",
118
+ "@rollup/rollup-linux-riscv64-gnu": "4.46.4",
119
+ "@rollup/rollup-linux-riscv64-musl": "4.46.4",
120
+ "@rollup/rollup-linux-ppc64-gnu": "4.46.4",
121
+ "@rollup/rollup-linux-s390x-gnu": "4.46.4",
122
+ "@rollup/rollup-darwin-x64": "4.46.4",
123
+ "@rollup/rollup-win32-x64-msvc": "4.46.4",
124
+ "@rollup/rollup-freebsd-x64": "4.46.4",
125
+ "@rollup/rollup-linux-x64-gnu": "4.46.4",
126
+ "@rollup/rollup-linux-x64-musl": "4.46.4"
127
127
  },
128
128
  "dependencies": {
129
129
  "@types/estree": "1.0.8"
@@ -138,11 +138,11 @@
138
138
  "@codemirror/search": "^6.5.11",
139
139
  "@codemirror/state": "^6.5.2",
140
140
  "@codemirror/view": "^6.38.1",
141
- "@eslint/js": "^9.31.0",
142
- "@inquirer/prompts": "^7.7.1",
143
- "@jridgewell/sourcemap-codec": "^1.5.4",
144
- "@mermaid-js/mermaid-cli": "^11.6.0",
145
- "@napi-rs/cli": "^3.0.1",
141
+ "@eslint/js": "^9.33.0",
142
+ "@inquirer/prompts": "^7.8.2",
143
+ "@jridgewell/sourcemap-codec": "^1.5.5",
144
+ "@mermaid-js/mermaid-cli": "^11.9.0",
145
+ "@napi-rs/cli": "^3.1.4",
146
146
  "@rollup/plugin-alias": "^5.1.1",
147
147
  "@rollup/plugin-buble": "^1.0.3",
148
148
  "@rollup/plugin-commonjs": "^28.0.6",
@@ -152,13 +152,13 @@
152
152
  "@rollup/plugin-terser": "^0.4.4",
153
153
  "@rollup/plugin-typescript": "^12.1.4",
154
154
  "@rollup/pluginutils": "^5.2.0",
155
- "@shikijs/vitepress-twoslash": "^3.8.1",
155
+ "@shikijs/vitepress-twoslash": "^3.9.2",
156
156
  "@types/mocha": "^10.0.10",
157
- "@types/node": "^20.19.9",
158
- "@types/picomatch": "^4.0.1",
157
+ "@types/node": "^20.19.10",
158
+ "@types/picomatch": "^4.0.2",
159
159
  "@types/semver": "^7.7.0",
160
160
  "@types/yargs-parser": "^21.0.3",
161
- "@vue/language-server": "^3.0.3",
161
+ "@vue/language-server": "^3.0.5",
162
162
  "acorn": "^8.15.0",
163
163
  "acorn-import-assertions": "^1.9.0",
164
164
  "acorn-jsx": "^5.3.2",
@@ -167,26 +167,26 @@
167
167
  "chokidar": "^3.6.0",
168
168
  "concurrently": "^9.2.0",
169
169
  "core-js": "3.38.1",
170
- "cross-env": "^7.0.3",
170
+ "cross-env": "^10.0.0",
171
171
  "date-time": "^4.0.0",
172
172
  "es5-shim": "^4.6.7",
173
173
  "es6-shim": "^0.35.8",
174
- "eslint": "^9.31.0",
174
+ "eslint": "^9.33.0",
175
175
  "eslint-config-prettier": "^10.1.8",
176
- "eslint-plugin-prettier": "^5.5.3",
176
+ "eslint-plugin-prettier": "^5.5.4",
177
177
  "eslint-plugin-unicorn": "^60.0.0",
178
- "eslint-plugin-vue": "^10.3.0",
178
+ "eslint-plugin-vue": "^10.4.0",
179
179
  "fixturify": "^3.0.0",
180
180
  "flru": "^1.0.2",
181
- "fs-extra": "^11.3.0",
181
+ "fs-extra": "^11.3.1",
182
182
  "github-api": "^3.4.0",
183
183
  "globals": "^16.3.0",
184
184
  "husky": "^9.1.7",
185
185
  "is-reference": "^3.0.3",
186
- "lint-staged": "^16.1.2",
186
+ "lint-staged": "^16.1.5",
187
187
  "locate-character": "^3.0.0",
188
188
  "magic-string": "^0.30.17",
189
- "memfs": "^4.17.2",
189
+ "memfs": "^4.36.0",
190
190
  "mocha": "^11.7.1",
191
191
  "nodemon": "^3.1.10",
192
192
  "nyc": "^17.1.0",
@@ -195,24 +195,24 @@
195
195
  "pinia": "^3.0.3",
196
196
  "prettier": "^3.6.2",
197
197
  "prettier-plugin-organize-imports": "^4.2.0",
198
- "pretty-bytes": "^7.0.0",
198
+ "pretty-bytes": "^7.0.1",
199
199
  "pretty-ms": "^9.2.0",
200
200
  "requirejs": "^2.3.7",
201
- "rollup": "^4.45.1",
201
+ "rollup": "^4.46.2",
202
202
  "rollup-plugin-license": "^3.6.0",
203
203
  "rollup-plugin-string": "^3.0.0",
204
204
  "semver": "^7.7.2",
205
205
  "shx": "^0.4.0",
206
206
  "signal-exit": "^4.1.0",
207
- "source-map": "^0.7.4",
207
+ "source-map": "^0.7.6",
208
208
  "source-map-support": "^0.5.21",
209
209
  "systemjs": "^6.15.1",
210
210
  "terser": "^5.43.1",
211
211
  "tslib": "^2.8.1",
212
- "typescript": "^5.8.3",
213
- "typescript-eslint": "^8.38.0",
214
- "vite": "^7.0.5",
215
- "vitepress": "^1.6.3",
212
+ "typescript": "^5.9.2",
213
+ "typescript-eslint": "^8.39.1",
214
+ "vite": "^7.1.2",
215
+ "vitepress": "^1.6.4",
216
216
  "vue": "^3.5.18",
217
217
  "vue-eslint-parser": "^10.2.0",
218
218
  "vue-tsc": "^2.2.12",
@@ -220,7 +220,7 @@
220
220
  "yargs-parser": "^21.1.1"
221
221
  },
222
222
  "overrides": {
223
- "axios": "^1.10.0",
223
+ "axios": "^1.11.0",
224
224
  "semver": "^7.7.2",
225
225
  "readable-stream": "npm:@built-in/readable-stream@1",
226
226
  "esbuild": ">0.24.2"