@rollup/wasm-node 4.31.0-0 → 4.32.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.
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
8
8
  Released under the MIT License.
9
9
  */
10
10
  import { parse, parseAsync } from '../../native.js';
11
- import { resolve, dirname, basename, extname } from 'node:path';
11
+ import { resolve, basename, extname, dirname } from 'node:path';
12
12
 
13
13
  // This file is generated by scripts/generate-node-types.js.
14
14
  // Do not edit this file directly.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,8 +11,8 @@ import { getAugmentedNamespace, fseventsImporter, getDefaultExportFromCjs, creat
11
11
  import path from 'node:path';
12
12
  import process$1 from 'node:process';
13
13
  import require$$0$1 from 'path';
14
- import require$$2 from 'util';
15
14
  import require$$0$2 from 'fs';
15
+ import require$$2 from 'util';
16
16
  import require$$1 from 'stream';
17
17
  import require$$2$1 from 'os';
18
18
  import require$$0$3 from 'events';
@@ -5235,9 +5235,9 @@ function requireToRegexRange () {
5235
5235
  };
5236
5236
 
5237
5237
  function collatePatterns(neg, pos, options) {
5238
- let onlyNegative = filterPatterns(neg, pos, '-', false) || [];
5239
- let onlyPositive = filterPatterns(pos, neg, '', false) || [];
5240
- let intersected = filterPatterns(neg, pos, '-?', true) || [];
5238
+ let onlyNegative = filterPatterns(neg, pos, '-', false);
5239
+ let onlyPositive = filterPatterns(pos, neg, '', false);
5240
+ let intersected = filterPatterns(neg, pos, '-?', true);
5241
5241
  let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
5242
5242
  return subpatterns.join('|');
5243
5243
  }
@@ -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-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
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-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
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-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
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-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
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-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
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-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,8 +11,8 @@
11
11
 
12
12
  const rollup = require('./rollup.js');
13
13
  const require$$0$1 = require('path');
14
- const require$$2 = require('util');
15
14
  const require$$0$2 = require('fs');
15
+ const require$$2 = require('util');
16
16
  const require$$1 = require('stream');
17
17
  const require$$2$1 = require('os');
18
18
  const fseventsImporter = require('./fsevents-importer.js');
@@ -5231,9 +5231,9 @@ function requireToRegexRange () {
5231
5231
  };
5232
5232
 
5233
5233
  function collatePatterns(neg, pos, options) {
5234
- let onlyNegative = filterPatterns(neg, pos, '-', false) || [];
5235
- let onlyPositive = filterPatterns(pos, neg, '', false) || [];
5236
- let intersected = filterPatterns(neg, pos, '-?', true) || [];
5234
+ let onlyNegative = filterPatterns(neg, pos, '-', false);
5235
+ let onlyPositive = filterPatterns(pos, neg, '', false);
5236
+ let intersected = filterPatterns(neg, pos, '-?', true);
5237
5237
  let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
5238
5238
  return subpatterns.join('|');
5239
5239
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.31.0-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
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-0
4
- Tue, 14 Jan 2025 05:57:11 GMT - commit 8c80d5f657f0777d14bd75d446fee3fa4b7639fc
3
+ Rollup.js v4.32.0
4
+ Fri, 24 Jan 2025 08:27:05 GMT - commit 2538304efdc05ecb7c52e6376d5777565139f075
5
5
 
6
6
  https://github.com/rollup/rollup
7
7