rollup 4.36.0 → 4.37.0

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.36.0
5
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
4
+ Rollup.js v4.37.0
5
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
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.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
15
15
  import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
 
18
- var version = "4.36.0";
18
+ var version = "4.37.0";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -12442,7 +12442,18 @@ class ExportNamedDeclaration extends NodeBase {
12442
12442
  code.remove(start, end);
12443
12443
  }
12444
12444
  else {
12445
- code.remove(this.start, this.declaration.start);
12445
+ let endBoundary = this.declaration.start;
12446
+ // the start of the decorator may be before the start of the class declaration
12447
+ if (this.declaration instanceof ClassDeclaration) {
12448
+ const decorators = this.declaration.decorators;
12449
+ for (const decorator of decorators) {
12450
+ endBoundary = Math.min(endBoundary, decorator.start);
12451
+ }
12452
+ if (endBoundary <= this.start) {
12453
+ endBoundary = this.declaration.start;
12454
+ }
12455
+ }
12456
+ code.remove(this.start, endBoundary);
12446
12457
  this.declaration.render(code, options, { end, start });
12447
12458
  }
12448
12459
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/native.js CHANGED
@@ -22,7 +22,7 @@ const bindingsByPlatformAndArch = {
22
22
  arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
23
23
  loong64: { base: 'linux-loongarch64-gnu', musl: null },
24
24
  ppc64: { base: 'linux-powerpc64le-gnu', musl: null },
25
- riscv64: { base: 'linux-riscv64-gnu', musl: null },
25
+ riscv64: { base: 'linux-riscv64-gnu', musl: 'linux-riscv64-musl' },
26
26
  s390x: { base: 'linux-s390x-gnu', musl: null },
27
27
  x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
28
28
  },
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
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.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
17
17
  const node_perf_hooks = require('node:perf_hooks');
18
18
  const promises = require('node:fs/promises');
19
19
 
20
- var version = "4.36.0";
20
+ var version = "4.37.0";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -13910,7 +13910,18 @@ class ExportNamedDeclaration extends NodeBase {
13910
13910
  code.remove(start, end);
13911
13911
  }
13912
13912
  else {
13913
- code.remove(this.start, this.declaration.start);
13913
+ let endBoundary = this.declaration.start;
13914
+ // the start of the decorator may be before the start of the class declaration
13915
+ if (this.declaration instanceof ClassDeclaration) {
13916
+ const decorators = this.declaration.decorators;
13917
+ for (const decorator of decorators) {
13918
+ endBoundary = Math.min(endBoundary, decorator.start);
13919
+ }
13920
+ if (endBoundary <= this.start) {
13921
+ endBoundary = this.declaration.start;
13922
+ }
13923
+ }
13924
+ code.remove(this.start, endBoundary);
13914
13925
  this.declaration.render(code, options, { end, start });
13915
13926
  }
13916
13927
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.36.0
4
- Mon, 17 Mar 2025 08:35:11 GMT - commit ab7bfa8fe9c25e41cc62058fa2dcde6b321fd51d
3
+ Rollup.js v4.37.0
4
+ Sun, 23 Mar 2025 14:56:38 GMT - commit 8b1c634d945dda9294cf579de68c4b223c618e7f
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.36.0",
3
+ "version": "4.37.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -28,6 +28,7 @@
28
28
  "i686-pc-windows-msvc",
29
29
  "loongarch64-unknown-linux-gnu",
30
30
  "riscv64gc-unknown-linux-gnu",
31
+ "riscv64gc-unknown-linux-musl",
31
32
  "powerpc64le-unknown-linux-gnu",
32
33
  "s390x-unknown-linux-gnu",
33
34
  "x86_64-apple-darwin",
@@ -110,25 +111,26 @@
110
111
  "homepage": "https://rollupjs.org/",
111
112
  "optionalDependencies": {
112
113
  "fsevents": "~2.3.2",
113
- "@rollup/rollup-darwin-arm64": "4.36.0",
114
- "@rollup/rollup-android-arm64": "4.36.0",
115
- "@rollup/rollup-win32-arm64-msvc": "4.36.0",
116
- "@rollup/rollup-freebsd-arm64": "4.36.0",
117
- "@rollup/rollup-linux-arm64-gnu": "4.36.0",
118
- "@rollup/rollup-linux-arm64-musl": "4.36.0",
119
- "@rollup/rollup-android-arm-eabi": "4.36.0",
120
- "@rollup/rollup-linux-arm-gnueabihf": "4.36.0",
121
- "@rollup/rollup-linux-arm-musleabihf": "4.36.0",
122
- "@rollup/rollup-win32-ia32-msvc": "4.36.0",
123
- "@rollup/rollup-linux-loongarch64-gnu": "4.36.0",
124
- "@rollup/rollup-linux-riscv64-gnu": "4.36.0",
125
- "@rollup/rollup-linux-powerpc64le-gnu": "4.36.0",
126
- "@rollup/rollup-linux-s390x-gnu": "4.36.0",
127
- "@rollup/rollup-darwin-x64": "4.36.0",
128
- "@rollup/rollup-win32-x64-msvc": "4.36.0",
129
- "@rollup/rollup-freebsd-x64": "4.36.0",
130
- "@rollup/rollup-linux-x64-gnu": "4.36.0",
131
- "@rollup/rollup-linux-x64-musl": "4.36.0"
114
+ "@rollup/rollup-darwin-arm64": "4.37.0",
115
+ "@rollup/rollup-android-arm64": "4.37.0",
116
+ "@rollup/rollup-win32-arm64-msvc": "4.37.0",
117
+ "@rollup/rollup-freebsd-arm64": "4.37.0",
118
+ "@rollup/rollup-linux-arm64-gnu": "4.37.0",
119
+ "@rollup/rollup-linux-arm64-musl": "4.37.0",
120
+ "@rollup/rollup-android-arm-eabi": "4.37.0",
121
+ "@rollup/rollup-linux-arm-gnueabihf": "4.37.0",
122
+ "@rollup/rollup-linux-arm-musleabihf": "4.37.0",
123
+ "@rollup/rollup-win32-ia32-msvc": "4.37.0",
124
+ "@rollup/rollup-linux-loongarch64-gnu": "4.37.0",
125
+ "@rollup/rollup-linux-riscv64-gnu": "4.37.0",
126
+ "@rollup/rollup-linux-riscv64-musl": "4.37.0",
127
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.37.0",
128
+ "@rollup/rollup-linux-s390x-gnu": "4.37.0",
129
+ "@rollup/rollup-darwin-x64": "4.37.0",
130
+ "@rollup/rollup-win32-x64-msvc": "4.37.0",
131
+ "@rollup/rollup-freebsd-x64": "4.37.0",
132
+ "@rollup/rollup-linux-x64-gnu": "4.37.0",
133
+ "@rollup/rollup-linux-x64-musl": "4.37.0"
132
134
  },
133
135
  "dependencies": {
134
136
  "@types/estree": "1.0.6"
@@ -139,12 +141,12 @@
139
141
  "devDependencies": {
140
142
  "@codemirror/commands": "^6.8.0",
141
143
  "@codemirror/lang-javascript": "^6.2.3",
142
- "@codemirror/language": "^6.10.8",
144
+ "@codemirror/language": "^6.11.0",
143
145
  "@codemirror/search": "^6.5.10",
144
146
  "@codemirror/state": "^6.5.2",
145
147
  "@codemirror/view": "^6.36.4",
146
148
  "@eslint/js": "^9.22.0",
147
- "@inquirer/prompts": "^7.3.3",
149
+ "@inquirer/prompts": "^7.4.0",
148
150
  "@jridgewell/sourcemap-codec": "^1.5.0",
149
151
  "@mermaid-js/mermaid-cli": "^11.4.2",
150
152
  "@napi-rs/cli": "^2.18.4",
@@ -152,12 +154,12 @@
152
154
  "@rollup/plugin-buble": "^1.0.3",
153
155
  "@rollup/plugin-commonjs": "^28.0.3",
154
156
  "@rollup/plugin-json": "^6.1.0",
155
- "@rollup/plugin-node-resolve": "^16.0.0",
157
+ "@rollup/plugin-node-resolve": "^16.0.1",
156
158
  "@rollup/plugin-replace": "^6.0.2",
157
159
  "@rollup/plugin-terser": "^0.4.4",
158
160
  "@rollup/plugin-typescript": "^12.1.2",
159
161
  "@rollup/pluginutils": "^5.1.4",
160
- "@shikijs/vitepress-twoslash": "^3.1.0",
162
+ "@shikijs/vitepress-twoslash": "^3.2.1",
161
163
  "@types/mocha": "^10.0.10",
162
164
  "@types/node": "^18.19.80",
163
165
  "@types/semver": "^7.5.8",
@@ -187,7 +189,7 @@
187
189
  "globals": "^16.0.0",
188
190
  "husky": "^9.1.7",
189
191
  "is-reference": "^3.0.3",
190
- "lint-staged": "^15.4.3",
192
+ "lint-staged": "^15.5.0",
191
193
  "locate-character": "^3.0.0",
192
194
  "magic-string": "^0.30.17",
193
195
  "mocha": "^11.1.0",
@@ -201,11 +203,11 @@
201
203
  "pretty-bytes": "^6.1.1",
202
204
  "pretty-ms": "^9.2.0",
203
205
  "requirejs": "^2.3.7",
204
- "rollup": "^4.35.0",
206
+ "rollup": "^4.36.0",
205
207
  "rollup-plugin-license": "^3.6.0",
206
208
  "rollup-plugin-string": "^3.0.0",
207
209
  "semver": "^7.7.1",
208
- "shx": "^0.3.4",
210
+ "shx": "^0.4.0",
209
211
  "signal-exit": "^4.1.0",
210
212
  "source-map": "^0.7.4",
211
213
  "source-map-support": "^0.5.21",
@@ -214,7 +216,7 @@
214
216
  "tslib": "^2.8.1",
215
217
  "typescript": "^5.8.2",
216
218
  "typescript-eslint": "^8.26.1",
217
- "vite": "^6.2.1",
219
+ "vite": "^6.2.2",
218
220
  "vitepress": "^1.6.3",
219
221
  "vue": "^3.5.13",
220
222
  "vue-tsc": "^2.2.8",