@rollup/wasm-node 4.9.5 → 4.10.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,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.10.0
4
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -2387,6 +2387,7 @@ var constants = {};
2387
2387
  exports.FSEVENT_MOVED = 'moved';
2388
2388
  exports.FSEVENT_CLONED = 'cloned';
2389
2389
  exports.FSEVENT_UNKNOWN = 'unknown';
2390
+ exports.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
2390
2391
  exports.FSEVENT_TYPE_FILE = 'file';
2391
2392
  exports.FSEVENT_TYPE_DIRECTORY = 'directory';
2392
2393
  exports.FSEVENT_TYPE_SYMLINK = 'symlink';
@@ -3112,6 +3113,7 @@ const {
3112
3113
  FSEVENT_MOVED,
3113
3114
  // FSEVENT_CLONED,
3114
3115
  FSEVENT_UNKNOWN,
3116
+ FSEVENT_FLAG_MUST_SCAN_SUBDIRS,
3115
3117
  FSEVENT_TYPE_FILE,
3116
3118
  FSEVENT_TYPE_DIRECTORY,
3117
3119
  FSEVENT_TYPE_SYMLINK,
@@ -3223,6 +3225,7 @@ function setFSEventsListener(path, realPath, listener, rawEmitter) {
3223
3225
  rawEmitter,
3224
3226
  watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
3225
3227
  if (!cont.listeners.size) return;
3228
+ if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS) return;
3226
3229
  const info = fsevents.getInfo(fullPath, flags);
3227
3230
  cont.listeners.forEach(list => {
3228
3231
  list(fullPath, flags, info);
@@ -4041,7 +4044,7 @@ add(paths_, _origAdd, _internal) {
4041
4044
 
4042
4045
  if (this.options.useFsEvents && this._fsEventsHandler) {
4043
4046
  if (!this._readyCount) this._readyCount = paths.length;
4044
- if (this.options.persistent) this._readyCount *= 2;
4047
+ if (this.options.persistent) this._readyCount += paths.length;
4045
4048
  paths.forEach((path) => this._fsEventsHandler._addToFsEvents(path));
4046
4049
  } else {
4047
4050
  if (!this._readyCount) this._readyCount = 0;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.10.0
4
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.10.0
4
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/native.js CHANGED
@@ -1,6 +1,13 @@
1
- const { parse, xxhashBase64Url } = require('./wasm-node/bindings_wasm.js');
1
+ const {
2
+ parse,
3
+ xxhashBase64Url,
4
+ xxhashBase36,
5
+ xxhashBase16
6
+ } = require('./wasm-node/bindings_wasm.js');
2
7
 
3
8
  exports.parse = parse;
4
9
  exports.parseAsync = async (code, allowReturnOutsideFunction, _signal) =>
5
10
  parse(code, allowReturnOutsideFunction);
6
11
  exports.xxhashBase64Url = xxhashBase64Url;
12
+ exports.xxhashBase36 = xxhashBase36;
13
+ exports.xxhashBase16 = xxhashBase16;
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.10.0
4
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -683,6 +683,8 @@ type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
683
683
 
684
684
  type OutputPluginOption = MaybePromise<OutputPlugin | NullValue | false | OutputPluginOption[]>;
685
685
 
686
+ type HashCharacters = 'base64' | 'base36' | 'hex';
687
+
686
688
  export interface OutputOptions {
687
689
  amd?: AmdOptions;
688
690
  assetFileNames?: string | ((chunkInfo: PreRenderedAsset) => string);
@@ -708,6 +710,7 @@ export interface OutputOptions {
708
710
  freeze?: boolean;
709
711
  generatedCode?: GeneratedCodePreset | GeneratedCodeOptions;
710
712
  globals?: GlobalsOption;
713
+ hashCharacters?: HashCharacters;
711
714
  hoistTransitiveImports?: boolean;
712
715
  indent?: string | boolean;
713
716
  inlineDynamicImports?: boolean;
@@ -758,6 +761,7 @@ export interface NormalizedOutputOptions {
758
761
  freeze: boolean;
759
762
  generatedCode: NormalizedGeneratedCodeOptions;
760
763
  globals: GlobalsOption;
764
+ hashCharacters: HashCharacters;
761
765
  hoistTransitiveImports: boolean;
762
766
  indent: true | string;
763
767
  inlineDynamicImports: boolean;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.10.0
4
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.10.0
4
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.10.0
4
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -2382,6 +2382,7 @@ var constants = {};
2382
2382
  exports.FSEVENT_MOVED = 'moved';
2383
2383
  exports.FSEVENT_CLONED = 'cloned';
2384
2384
  exports.FSEVENT_UNKNOWN = 'unknown';
2385
+ exports.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
2385
2386
  exports.FSEVENT_TYPE_FILE = 'file';
2386
2387
  exports.FSEVENT_TYPE_DIRECTORY = 'directory';
2387
2388
  exports.FSEVENT_TYPE_SYMLINK = 'symlink';
@@ -3107,6 +3108,7 @@ const {
3107
3108
  FSEVENT_MOVED,
3108
3109
  // FSEVENT_CLONED,
3109
3110
  FSEVENT_UNKNOWN,
3111
+ FSEVENT_FLAG_MUST_SCAN_SUBDIRS,
3110
3112
  FSEVENT_TYPE_FILE,
3111
3113
  FSEVENT_TYPE_DIRECTORY,
3112
3114
  FSEVENT_TYPE_SYMLINK,
@@ -3218,6 +3220,7 @@ function setFSEventsListener(path, realPath, listener, rawEmitter) {
3218
3220
  rawEmitter,
3219
3221
  watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
3220
3222
  if (!cont.listeners.size) return;
3223
+ if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS) return;
3221
3224
  const info = fsevents.getInfo(fullPath, flags);
3222
3225
  cont.listeners.forEach(list => {
3223
3226
  list(fullPath, flags, info);
@@ -4036,7 +4039,7 @@ add(paths_, _origAdd, _internal) {
4036
4039
 
4037
4040
  if (this.options.useFsEvents && this._fsEventsHandler) {
4038
4041
  if (!this._readyCount) this._readyCount = paths.length;
4039
- if (this.options.persistent) this._readyCount *= 2;
4042
+ if (this.options.persistent) this._readyCount += paths.length;
4040
4043
  paths.forEach((path) => this._fsEventsHandler._addToFsEvents(path));
4041
4044
  } else {
4042
4045
  if (!this._readyCount) this._readyCount = 0;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.10.0
4
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
5
5
 
6
6
  https://github.com/rollup/rollup
7
7