rollup 4.31.0 → 4.32.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.31.0
5
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
4
+ Rollup.js v4.32.1
5
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
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.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
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.31.0";
18
+ var version = "4.32.1";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -13059,6 +13059,7 @@ class LogicalExpression extends NodeBase {
13059
13059
  deoptimizeCache() {
13060
13060
  if (this.hasDeoptimizedCache)
13061
13061
  return;
13062
+ this.hasDeoptimizedCache = true;
13062
13063
  if (this.usedBranch) {
13063
13064
  const unusedBranch = this.usedBranch === this.left ? this.right : this.left;
13064
13065
  this.usedBranch = null;
@@ -13072,7 +13073,6 @@ class LogicalExpression extends NodeBase {
13072
13073
  // Request another pass because we need to ensure "include" runs again if
13073
13074
  // it is rendered
13074
13075
  context.requestTreeshakingPass();
13075
- this.hasDeoptimizedCache = true;
13076
13076
  }
13077
13077
  deoptimizePath(path) {
13078
13078
  const usedBranch = this.getUsedBranch();
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -9183,10 +9183,10 @@ class Task {
9183
9183
  return path.resolve(output.file || output.dir);
9184
9184
  return undefined;
9185
9185
  });
9186
- const watchOptions = this.options.watch || {};
9187
- this.filter = createFilter(watchOptions.include, watchOptions.exclude);
9186
+ this.watchOptions = this.options.watch || {};
9187
+ this.filter = createFilter(this.watchOptions.include, this.watchOptions.exclude);
9188
9188
  this.fileWatcher = new FileWatcher(this, {
9189
- ...watchOptions.chokidar,
9189
+ ...this.watchOptions.chokidar,
9190
9190
  disableGlobbing: true,
9191
9191
  ignoreInitial: true
9192
9192
  });
@@ -9206,6 +9206,7 @@ class Task {
9206
9206
  }
9207
9207
  }
9208
9208
  this.watcher.invalidate({ event: details.event, id });
9209
+ this.watchOptions.onInvalidate?.(id);
9209
9210
  }
9210
9211
  async run() {
9211
9212
  if (!this.invalidated)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
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.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -969,6 +969,7 @@ export interface WatcherOptions {
969
969
  exclude?: string | RegExp | (string | RegExp)[];
970
970
  include?: string | RegExp | (string | RegExp)[];
971
971
  skipWrite?: boolean;
972
+ onInvalidate?: (id: string) => void;
972
973
  }
973
974
 
974
975
  export interface RollupWatchOptions extends InputOptions {
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -204,7 +204,7 @@ const deferredHandlers = {
204
204
  };
205
205
  function defaultBody(log) {
206
206
  if (log.url) {
207
- info(parseAst_js.getRollupUrl(log.url));
207
+ info(log.url);
208
208
  }
209
209
  const loc = formatLocation(log);
210
210
  if (loc) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
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.31.0";
20
+ var version = "4.32.1";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -14527,6 +14527,7 @@ class LogicalExpression extends NodeBase {
14527
14527
  deoptimizeCache() {
14528
14528
  if (this.hasDeoptimizedCache)
14529
14529
  return;
14530
+ this.hasDeoptimizedCache = true;
14530
14531
  if (this.usedBranch) {
14531
14532
  const unusedBranch = this.usedBranch === this.left ? this.right : this.left;
14532
14533
  this.usedBranch = null;
@@ -14540,7 +14541,6 @@ class LogicalExpression extends NodeBase {
14540
14541
  // Request another pass because we need to ensure "include" runs again if
14541
14542
  // it is rendered
14542
14543
  context.requestTreeshakingPass();
14543
- this.hasDeoptimizedCache = true;
14544
14544
  }
14545
14545
  deoptimizePath(path) {
14546
14546
  const usedBranch = this.getUsedBranch();
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0
4
- Sun, 19 Jan 2025 12:56:16 GMT - commit 15c264d59e0768b7d283a7bb8ded0519d1b5199e
3
+ Rollup.js v4.32.1
4
+ Tue, 28 Jan 2025 08:32:49 GMT - commit abcf4febe11f3d313fae41ddca35fc60670b9ff8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -208,10 +208,10 @@ class Task {
208
208
  return path.resolve(output.file || output.dir);
209
209
  return undefined;
210
210
  });
211
- const watchOptions = this.options.watch || {};
212
- this.filter = rollup.createFilter(watchOptions.include, watchOptions.exclude);
211
+ this.watchOptions = this.options.watch || {};
212
+ this.filter = rollup.createFilter(this.watchOptions.include, this.watchOptions.exclude);
213
213
  this.fileWatcher = new FileWatcher(this, {
214
- ...watchOptions.chokidar,
214
+ ...this.watchOptions.chokidar,
215
215
  disableGlobbing: true,
216
216
  ignoreInitial: true
217
217
  });
@@ -231,6 +231,7 @@ class Task {
231
231
  }
232
232
  }
233
233
  this.watcher.invalidate({ event: details.event, id });
234
+ this.watchOptions.onInvalidate?.(id);
234
235
  }
235
236
  async run() {
236
237
  if (!this.invalidated)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "4.31.0",
3
+ "version": "4.32.1",
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.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"
113
+ "@rollup/rollup-darwin-arm64": "4.32.1",
114
+ "@rollup/rollup-android-arm64": "4.32.1",
115
+ "@rollup/rollup-win32-arm64-msvc": "4.32.1",
116
+ "@rollup/rollup-freebsd-arm64": "4.32.1",
117
+ "@rollup/rollup-linux-arm64-gnu": "4.32.1",
118
+ "@rollup/rollup-linux-arm64-musl": "4.32.1",
119
+ "@rollup/rollup-android-arm-eabi": "4.32.1",
120
+ "@rollup/rollup-linux-arm-gnueabihf": "4.32.1",
121
+ "@rollup/rollup-linux-arm-musleabihf": "4.32.1",
122
+ "@rollup/rollup-win32-ia32-msvc": "4.32.1",
123
+ "@rollup/rollup-linux-loongarch64-gnu": "4.32.1",
124
+ "@rollup/rollup-linux-riscv64-gnu": "4.32.1",
125
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.32.1",
126
+ "@rollup/rollup-linux-s390x-gnu": "4.32.1",
127
+ "@rollup/rollup-darwin-x64": "4.32.1",
128
+ "@rollup/rollup-win32-x64-msvc": "4.32.1",
129
+ "@rollup/rollup-freebsd-x64": "4.32.1",
130
+ "@rollup/rollup-linux-x64-gnu": "4.32.1",
131
+ "@rollup/rollup-linux-x64-musl": "4.32.1"
132
132
  },
133
133
  "dependencies": {
134
134
  "@types/estree": "1.0.6"
@@ -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.26.2",
160
+ "@shikijs/vitepress-twoslash": "^2.0.3",
161
161
  "@types/mocha": "^10.0.10",
162
- "@types/node": "^18.19.70",
162
+ "@types/node": "^18.19.71",
163
163
  "@types/semver": "^7.5.8",
164
164
  "@types/yargs-parser": "^21.0.3",
165
165
  "@vue/language-server": "^2.2.0",
@@ -177,31 +177,31 @@
177
177
  "es6-shim": "^0.35.8",
178
178
  "eslint": "^9.18.0",
179
179
  "eslint-config-prettier": "^10.0.1",
180
- "eslint-plugin-prettier": "^5.2.1",
180
+ "eslint-plugin-prettier": "^5.2.3",
181
181
  "eslint-plugin-unicorn": "^56.0.1",
182
182
  "eslint-plugin-vue": "^9.32.0",
183
183
  "fixturify": "^3.0.0",
184
184
  "flru": "^1.0.2",
185
- "fs-extra": "^11.2.0",
185
+ "fs-extra": "^11.3.0",
186
186
  "github-api": "^3.4.0",
187
187
  "globals": "^15.14.0",
188
188
  "husky": "^9.1.7",
189
189
  "is-reference": "^3.0.3",
190
- "lint-staged": "^15.3.0",
190
+ "lint-staged": "^15.4.1",
191
191
  "locate-character": "^3.0.0",
192
192
  "magic-string": "^0.30.17",
193
- "mocha": "^11.0.1",
193
+ "mocha": "^11.1.0",
194
194
  "nodemon": "^3.1.9",
195
195
  "npm-audit-resolver": "^3.0.0-RC.0",
196
196
  "nyc": "^17.1.0",
197
197
  "picocolors": "^1.1.1",
198
- "pinia": "^2.3.0",
198
+ "pinia": "^2.3.1",
199
199
  "prettier": "^3.4.2",
200
200
  "prettier-plugin-organize-imports": "^4.1.0",
201
201
  "pretty-bytes": "^6.1.1",
202
202
  "pretty-ms": "^9.2.0",
203
203
  "requirejs": "^2.3.7",
204
- "rollup": "^4.30.1",
204
+ "rollup": "^4.31.0",
205
205
  "rollup-plugin-license": "^3.5.3",
206
206
  "rollup-plugin-string": "^3.0.0",
207
207
  "semver": "^7.6.3",
@@ -213,9 +213,9 @@
213
213
  "terser": "^5.37.0",
214
214
  "tslib": "^2.8.1",
215
215
  "typescript": "^5.7.3",
216
- "typescript-eslint": "^8.20.0",
217
- "vite": "^6.0.7",
218
- "vitepress": "^1.5.0",
216
+ "typescript-eslint": "^8.21.0",
217
+ "vite": "^6.0.10",
218
+ "vitepress": "^1.6.1",
219
219
  "vue": "^3.5.13",
220
220
  "vue-tsc": "^2.2.0",
221
221
  "wasm-pack": "^0.13.1",