@rspack/browser 2.1.0-beta.0 → 2.1.0-rc.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.
@@ -39,7 +39,7 @@ export type ChunkLoading = false | ChunkLoadingType;
39
39
  /** Whether to create a load-on-demand asynchronous chunk for entry. */
40
40
  export type AsyncChunks = boolean;
41
41
  /** Option to set the method of loading WebAssembly Modules. */
42
- export type WasmLoadingType = LiteralUnion<'fetch-streaming' | 'fetch' | 'async-node', string>;
42
+ export type WasmLoadingType = 'fetch' | 'async-node' | 'universal';
43
43
  /** Option to set the method of loading WebAssembly Modules. */
44
44
  export type WasmLoading = false | WasmLoadingType;
45
45
  export type ScriptType = false | 'text/javascript' | 'module';
@@ -194,7 +194,7 @@ export type StrictModuleErrorHandling = boolean;
194
194
  /** Indicates what global object will be used to mount the library. */
195
195
  export type GlobalObject = string;
196
196
  /** List of wasm loading types enabled for use by entry points. */
197
- export type EnabledWasmLoadingTypes = string[];
197
+ export type EnabledWasmLoadingTypes = ('...' | WasmLoadingType)[];
198
198
  /** The name of the native import() function. */
199
199
  export type ImportFunctionName = string;
200
200
  /** The name of the native import.meta object. */
@@ -1380,14 +1380,15 @@ export type CacheStorageOptions = {
1380
1380
  directory?: string;
1381
1381
  /**
1382
1382
  * Maximum age of unused filesystem cache in seconds. Must be an integer
1383
- * between 0 and 4294967295.
1383
+ * between 1 and 4294967295, or Infinity to disable age-based cleanup.
1384
1384
  * @default 7 * 24 * 60 * 60
1385
1385
  */
1386
1386
  maxAge?: number;
1387
1387
  /**
1388
1388
  * Maximum number of filesystem cache generations to retain in the cache
1389
- * directory. Must be an integer between 0 and 4294967295.
1390
- * @default No generation count limit; maxAge cleanup still applies
1389
+ * directory. Must be an integer between 1 and 4294967295, or Infinity to
1390
+ * disable generation-based cleanup.
1391
+ * @default 3
1391
1392
  */
1392
1393
  maxGenerations?: number;
1393
1394
  };