rollup 4.30.1 → 4.31.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.30.1
5
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
4
+ Rollup.js v4.31.0
5
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1";
18
+ var version = "4.31.0";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -19487,6 +19487,13 @@ async function findFile(file, preserveSymlinks) {
19487
19487
  }
19488
19488
  }
19489
19489
 
19490
+ function stripBom(content) {
19491
+ if (content.charCodeAt(0) === 0xfe_ff) {
19492
+ return stripBom(content.slice(1));
19493
+ }
19494
+ return content;
19495
+ }
19496
+
19490
19497
  const ANONYMOUS_PLUGIN_PREFIX = 'at position ';
19491
19498
  const ANONYMOUS_OUTPUT_PLUGIN_PREFIX = 'at output position ';
19492
19499
 
@@ -19973,10 +19980,7 @@ class ModuleLoader {
19973
19980
  : source != null && typeof source === 'object' && typeof source.code === 'string'
19974
19981
  ? source
19975
19982
  : error(logBadLoader(id));
19976
- const code = sourceDescription.code;
19977
- if (code.charCodeAt(0) === 0xfe_ff) {
19978
- sourceDescription.code = code.slice(1);
19979
- }
19983
+ sourceDescription.code = stripBom(sourceDescription.code);
19980
19984
  const cachedModule = this.graph.cachedModules.get(id);
19981
19985
  if (cachedModule &&
19982
19986
  !cachedModule.customTransformCache &&
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1";
20
+ var version = "4.31.0";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -20819,6 +20819,13 @@ async function findFile(file, preserveSymlinks) {
20819
20819
  }
20820
20820
  }
20821
20821
 
20822
+ function stripBom(content) {
20823
+ if (content.charCodeAt(0) === 0xfe_ff) {
20824
+ return stripBom(content.slice(1));
20825
+ }
20826
+ return content;
20827
+ }
20828
+
20822
20829
  async function transform(source, module, pluginDriver, log) {
20823
20830
  const id = module.id;
20824
20831
  const sourcemapChain = [];
@@ -21060,10 +21067,7 @@ class ModuleLoader {
21060
21067
  : source != null && typeof source === 'object' && typeof source.code === 'string'
21061
21068
  ? source
21062
21069
  : parseAst_js.error(parseAst_js.logBadLoader(id));
21063
- const code = sourceDescription.code;
21064
- if (code.charCodeAt(0) === 0xfe_ff) {
21065
- sourceDescription.code = code.slice(1);
21066
- }
21070
+ sourceDescription.code = stripBom(sourceDescription.code);
21067
21071
  const cachedModule = this.graph.cachedModules.get(id);
21068
21072
  if (cachedModule &&
21069
21073
  !cachedModule.customTransformCache &&
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -441,10 +441,6 @@ async function watch(command) {
441
441
  const runWatchHook = createWatchHooks(command);
442
442
  onExit(close);
443
443
  process$2.on('uncaughtException', closeWithError);
444
- if (!process$2.stdin.isTTY) {
445
- process$2.stdin.on('end', close);
446
- process$2.stdin.resume();
447
- }
448
444
  async function loadConfigFromFileAndTrack(configFile) {
449
445
  let configFileData = null;
450
446
  let configFileRevision = 0;
@@ -528,7 +524,7 @@ async function watch(command) {
528
524
  }
529
525
  case 'END': {
530
526
  runWatchHook('onEnd');
531
- if (!silent && isTTY) {
527
+ if (!silent) {
532
528
  rollup.stderr(`\n[${dateTime()}] waiting for changes...`);
533
529
  }
534
530
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.30.1
4
- Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
3
+ Rollup.js v4.31.0
4
+ Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
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.30.1",
3
+ "version": "4.31.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -110,25 +110,25 @@
110
110
  "homepage": "https://rollupjs.org/",
111
111
  "optionalDependencies": {
112
112
  "fsevents": "~2.3.2",
113
- "@rollup/rollup-darwin-arm64": "4.30.1",
114
- "@rollup/rollup-android-arm64": "4.30.1",
115
- "@rollup/rollup-win32-arm64-msvc": "4.30.1",
116
- "@rollup/rollup-freebsd-arm64": "4.30.1",
117
- "@rollup/rollup-linux-arm64-gnu": "4.30.1",
118
- "@rollup/rollup-linux-arm64-musl": "4.30.1",
119
- "@rollup/rollup-android-arm-eabi": "4.30.1",
120
- "@rollup/rollup-linux-arm-gnueabihf": "4.30.1",
121
- "@rollup/rollup-linux-arm-musleabihf": "4.30.1",
122
- "@rollup/rollup-win32-ia32-msvc": "4.30.1",
123
- "@rollup/rollup-linux-loongarch64-gnu": "4.30.1",
124
- "@rollup/rollup-linux-riscv64-gnu": "4.30.1",
125
- "@rollup/rollup-linux-powerpc64le-gnu": "4.30.1",
126
- "@rollup/rollup-linux-s390x-gnu": "4.30.1",
127
- "@rollup/rollup-darwin-x64": "4.30.1",
128
- "@rollup/rollup-win32-x64-msvc": "4.30.1",
129
- "@rollup/rollup-freebsd-x64": "4.30.1",
130
- "@rollup/rollup-linux-x64-gnu": "4.30.1",
131
- "@rollup/rollup-linux-x64-musl": "4.30.1"
113
+ "@rollup/rollup-darwin-arm64": "4.31.0",
114
+ "@rollup/rollup-android-arm64": "4.31.0",
115
+ "@rollup/rollup-win32-arm64-msvc": "4.31.0",
116
+ "@rollup/rollup-freebsd-arm64": "4.31.0",
117
+ "@rollup/rollup-linux-arm64-gnu": "4.31.0",
118
+ "@rollup/rollup-linux-arm64-musl": "4.31.0",
119
+ "@rollup/rollup-android-arm-eabi": "4.31.0",
120
+ "@rollup/rollup-linux-arm-gnueabihf": "4.31.0",
121
+ "@rollup/rollup-linux-arm-musleabihf": "4.31.0",
122
+ "@rollup/rollup-win32-ia32-msvc": "4.31.0",
123
+ "@rollup/rollup-linux-loongarch64-gnu": "4.31.0",
124
+ "@rollup/rollup-linux-riscv64-gnu": "4.31.0",
125
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.31.0",
126
+ "@rollup/rollup-linux-s390x-gnu": "4.31.0",
127
+ "@rollup/rollup-darwin-x64": "4.31.0",
128
+ "@rollup/rollup-win32-x64-msvc": "4.31.0",
129
+ "@rollup/rollup-freebsd-x64": "4.31.0",
130
+ "@rollup/rollup-linux-x64-gnu": "4.31.0",
131
+ "@rollup/rollup-linux-x64-musl": "4.31.0"
132
132
  },
133
133
  "dependencies": {
134
134
  "@types/estree": "1.0.6"
@@ -137,14 +137,14 @@
137
137
  "core-js": "We only update manually as every update requires a snapshot update"
138
138
  },
139
139
  "devDependencies": {
140
- "@codemirror/commands": "^6.7.1",
140
+ "@codemirror/commands": "^6.8.0",
141
141
  "@codemirror/lang-javascript": "^6.2.2",
142
142
  "@codemirror/language": "^6.10.8",
143
143
  "@codemirror/search": "^6.5.8",
144
- "@codemirror/state": "^6.5.0",
145
- "@codemirror/view": "^6.36.1",
146
- "@eslint/js": "^9.17.0",
147
- "@inquirer/prompts": "^7.2.1",
144
+ "@codemirror/state": "^6.5.1",
145
+ "@codemirror/view": "^6.36.2",
146
+ "@eslint/js": "^9.18.0",
147
+ "@inquirer/prompts": "^7.2.3",
148
148
  "@jridgewell/sourcemap-codec": "^1.5.0",
149
149
  "@mermaid-js/mermaid-cli": "^11.4.2",
150
150
  "@napi-rs/cli": "^2.18.4",
@@ -157,9 +157,9 @@
157
157
  "@rollup/plugin-terser": "^0.4.4",
158
158
  "@rollup/plugin-typescript": "^12.1.2",
159
159
  "@rollup/pluginutils": "^5.1.4",
160
- "@shikijs/vitepress-twoslash": "^1.24.4",
160
+ "@shikijs/vitepress-twoslash": "^1.26.2",
161
161
  "@types/mocha": "^10.0.10",
162
- "@types/node": "^18.19.68",
162
+ "@types/node": "^18.19.70",
163
163
  "@types/semver": "^7.5.8",
164
164
  "@types/yargs-parser": "^21.0.3",
165
165
  "@vue/language-server": "^2.2.0",
@@ -169,14 +169,14 @@
169
169
  "buble": "^0.20.0",
170
170
  "builtin-modules": "^4.0.0",
171
171
  "chokidar": "^3.6.0",
172
- "concurrently": "^9.1.0",
172
+ "concurrently": "^9.1.2",
173
173
  "core-js": "3.38.1",
174
174
  "cross-env": "^7.0.3",
175
175
  "date-time": "^4.0.0",
176
176
  "es5-shim": "^4.6.7",
177
177
  "es6-shim": "^0.35.8",
178
- "eslint": "^9.17.0",
179
- "eslint-config-prettier": "^9.1.0",
178
+ "eslint": "^9.18.0",
179
+ "eslint-config-prettier": "^10.0.1",
180
180
  "eslint-plugin-prettier": "^5.2.1",
181
181
  "eslint-plugin-unicorn": "^56.0.1",
182
182
  "eslint-plugin-vue": "^9.32.0",
@@ -187,7 +187,7 @@
187
187
  "globals": "^15.14.0",
188
188
  "husky": "^9.1.7",
189
189
  "is-reference": "^3.0.3",
190
- "lint-staged": "^15.2.11",
190
+ "lint-staged": "^15.3.0",
191
191
  "locate-character": "^3.0.0",
192
192
  "magic-string": "^0.30.17",
193
193
  "mocha": "^11.0.1",
@@ -201,7 +201,7 @@
201
201
  "pretty-bytes": "^6.1.1",
202
202
  "pretty-ms": "^9.2.0",
203
203
  "requirejs": "^2.3.7",
204
- "rollup": "^4.29.1",
204
+ "rollup": "^4.30.1",
205
205
  "rollup-plugin-license": "^3.5.3",
206
206
  "rollup-plugin-string": "^3.0.0",
207
207
  "semver": "^7.6.3",
@@ -212,9 +212,9 @@
212
212
  "systemjs": "^6.15.1",
213
213
  "terser": "^5.37.0",
214
214
  "tslib": "^2.8.1",
215
- "typescript": "^5.7.2",
216
- "typescript-eslint": "^8.18.2",
217
- "vite": "^6.0.5",
215
+ "typescript": "^5.7.3",
216
+ "typescript-eslint": "^8.20.0",
217
+ "vite": "^6.0.7",
218
218
  "vitepress": "^1.5.0",
219
219
  "vue": "^3.5.13",
220
220
  "vue-tsc": "^2.2.0",