@rspack/core 1.0.13 → 1.0.14

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.
Files changed (82) hide show
  1. package/dist/Compiler.d.ts +0 -1
  2. package/dist/FileSystem.d.ts +0 -1
  3. package/dist/NormalModule.d.ts +2 -7
  4. package/dist/RuntimeGlobals.d.ts +1 -1
  5. package/dist/builtin-plugin/APIPlugin.d.ts +2 -2
  6. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +2 -2
  7. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +2 -2
  8. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +2 -2
  9. package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
  10. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +2 -2
  11. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +2 -2
  12. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +2 -2
  13. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +2 -2
  14. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
  15. package/dist/builtin-plugin/CssModulesPlugin.d.ts +2 -2
  16. package/dist/builtin-plugin/DataUriPlugin.d.ts +2 -2
  17. package/dist/builtin-plugin/DefinePlugin.d.ts +2 -2
  18. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
  19. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
  20. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +2 -2
  21. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
  22. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +2 -2
  23. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +2 -2
  24. package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
  25. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
  26. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
  27. package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
  28. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +2 -2
  29. package/dist/builtin-plugin/FileUriPlugin.d.ts +2 -2
  30. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +2 -2
  31. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
  32. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +15 -9
  33. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +2 -2
  34. package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
  35. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +2 -2
  36. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +2 -2
  37. package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +2 -2
  38. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +2 -2
  39. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
  40. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +2 -2
  41. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +2 -2
  42. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
  43. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +2 -2
  44. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +2 -2
  45. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
  46. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
  47. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +2 -2
  48. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +2 -2
  49. package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
  50. package/dist/builtin-plugin/ProvidePlugin.d.ts +2 -2
  51. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +2 -2
  52. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +2 -2
  53. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
  54. package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
  55. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +2 -2
  56. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +4 -4
  57. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
  58. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -2
  59. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +2 -2
  60. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
  61. package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
  62. package/dist/builtin-plugin/lazy-compilation/backend.d.ts +1 -5
  63. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +2 -2
  64. package/dist/config/adapterRuleUse.d.ts +0 -1
  65. package/dist/config/types.d.ts +500 -0
  66. package/dist/config/zod.d.ts +250 -1062
  67. package/dist/container/ModuleFederationRuntimePlugin.d.ts +2 -2
  68. package/dist/exports.d.ts +2 -2
  69. package/dist/index.js +36 -15
  70. package/dist/lib/HookWebpackError.d.ts +1 -1
  71. package/dist/lib/WebpackError.d.ts +0 -1
  72. package/dist/node/nodeConsole.d.ts +0 -1
  73. package/dist/stats/statsFactoryUtils.d.ts +1 -2
  74. package/dist/util/fs.d.ts +0 -3
  75. package/dist/util/hash/BatchedHash.d.ts +0 -1
  76. package/dist/util/hash/index.d.ts +0 -1
  77. package/dist/util/hash/wasm-hash.d.ts +0 -1
  78. package/dist/util/identifier.d.ts +8 -8
  79. package/dist/util/index.d.ts +0 -1
  80. package/dist/util/memoize.d.ts +1 -1
  81. package/dist/util/webpack.d.ts +1 -1
  82. package/package.json +3 -3
@@ -4,7 +4,7 @@ export declare const ModuleFederationRuntimePlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
6
  affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
package/dist/exports.d.ts CHANGED
@@ -10,7 +10,7 @@ import { RspackOptionsApply } from "./rspackOptionsApply";
10
10
  export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
11
11
  export type { Chunk } from "./Chunk";
12
12
  export type { ChunkGroup } from "./ChunkGroup";
13
- export type { Module } from "./Module";
13
+ export type { Module, ResolveData } from "./Module";
14
14
  export { MultiStats } from "./MultiStats";
15
15
  export { NormalModule } from "./NormalModule";
16
16
  export type { NormalModuleFactory } from "./NormalModuleFactory";
@@ -37,7 +37,7 @@ export type * from "./config";
37
37
  import { ValidationError } from "./util/validate";
38
38
  export { ValidationError };
39
39
  export declare const util: {
40
- createHash: (algorithm: (string & {}) | "debug" | "xxhash64" | "md4" | "native-md4" | (new () => import("./util/hash").default)) => import("./util/hash").default;
40
+ createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
41
41
  cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
42
42
  };
43
43
  export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
package/dist/index.js CHANGED
@@ -9121,7 +9121,7 @@ var RuntimeGlobals = {
9121
9121
  */
9122
9122
  compatGetDefaultExport: "__webpack_require__.n",
9123
9123
  /**
9124
- * harmony module decorator
9124
+ * ES modules decorator
9125
9125
  */
9126
9126
  harmonyModuleDecorator: "__webpack_require__.hmd",
9127
9127
  /**
@@ -11587,9 +11587,10 @@ function getRawIncremental(incremental2) {
11587
11587
  emitAssets: incremental2.emitAssets,
11588
11588
  inferAsyncModules: incremental2.inferAsyncModules,
11589
11589
  providedExports: incremental2.providedExports,
11590
- moduleHashes: incremental2.moduleHashes,
11591
- moduleCodegen: incremental2.moduleCodegen,
11592
- moduleRuntimeRequirements: incremental2.moduleRuntimeRequirements
11590
+ dependenciesDiagnostics: incremental2.dependenciesDiagnostics,
11591
+ modulesHashes: incremental2.modulesHashes,
11592
+ modulesCodegen: incremental2.modulesCodegen,
11593
+ modulesRuntimeRequirements: incremental2.modulesRuntimeRequirements
11593
11594
  };
11594
11595
  }
11595
11596
  function getRawRspackFutureOptions(future) {
@@ -12796,9 +12797,10 @@ var applyExperimentsDefaults = (experiments3) => {
12796
12797
  D(experiments3.incremental, "emitAssets", true);
12797
12798
  D(experiments3.incremental, "inferAsyncModules", false);
12798
12799
  D(experiments3.incremental, "providedExports", false);
12799
- D(experiments3.incremental, "moduleHashes", false);
12800
- D(experiments3.incremental, "moduleCodegen", false);
12801
- D(experiments3.incremental, "moduleRuntimeRequirements", false);
12800
+ D(experiments3.incremental, "dependenciesDiagnostics", false);
12801
+ D(experiments3.incremental, "modulesHashes", false);
12802
+ D(experiments3.incremental, "modulesCodegen", false);
12803
+ D(experiments3.incremental, "modulesRuntimeRequirements", false);
12802
12804
  }
12803
12805
  D(experiments3, "rspackFuture", {});
12804
12806
  };
@@ -13746,7 +13748,16 @@ var getNormalizedRspackOptions = (config2) => {
13746
13748
  ),
13747
13749
  incremental: optionalNestedConfig(
13748
13750
  experiments3.incremental,
13749
- (options) => options === true ? {} : options
13751
+ (options) => options === true ? {
13752
+ make: true,
13753
+ emitAssets: true,
13754
+ dependenciesDiagnostics: true,
13755
+ inferAsyncModules: true,
13756
+ providedExports: true,
13757
+ modulesHashes: true,
13758
+ modulesCodegen: true,
13759
+ modulesRuntimeRequirements: true
13760
+ } : options
13750
13761
  )
13751
13762
  })),
13752
13763
  watch: config2.watch,
@@ -14380,7 +14391,11 @@ var allowTarget = import_zod.z.union([
14380
14391
  (value) => typeof value === "string" && /^browserslist:(.+)$/.test(value)
14381
14392
  )
14382
14393
  ]);
14383
- var target = import_zod.z.union([import_zod.z.literal(false), allowTarget, allowTarget.array()]);
14394
+ var target = import_zod.z.union([
14395
+ import_zod.z.literal(false),
14396
+ allowTarget,
14397
+ allowTarget.array()
14398
+ ]);
14384
14399
  var externalsType = import_zod.z.enum([
14385
14400
  "var",
14386
14401
  "module",
@@ -14442,7 +14457,9 @@ var externalsPresets = import_zod.z.strictObject({
14442
14457
  electronRenderer: import_zod.z.boolean().optional(),
14443
14458
  nwjs: import_zod.z.boolean().optional()
14444
14459
  });
14445
- var filterItemTypes = import_zod.z.instanceof(RegExp).or(import_zod.z.string()).or(import_zod.z.function().args(import_zod.z.string()).returns(import_zod.z.boolean()));
14460
+ var filterItemTypes = import_zod.z.instanceof(RegExp).or(import_zod.z.string()).or(
14461
+ import_zod.z.function().args(import_zod.z.string()).returns(import_zod.z.boolean())
14462
+ );
14446
14463
  var filterTypes = filterItemTypes.array().or(filterItemTypes);
14447
14464
  var infrastructureLogging = import_zod.z.strictObject({
14448
14465
  appendOnly: import_zod.z.boolean().optional(),
@@ -14488,7 +14505,9 @@ var nodeOptions = import_zod.z.strictObject({
14488
14505
  });
14489
14506
  var node = import_zod.z.literal(false).or(nodeOptions);
14490
14507
  var loader = import_zod.z.record(import_zod.z.string(), import_zod.z.any());
14491
- var snapshotOptions = import_zod.z.strictObject({});
14508
+ var snapshotOptions = import_zod.z.strictObject(
14509
+ {}
14510
+ );
14492
14511
  var cacheOptions = import_zod.z.boolean();
14493
14512
  var statsPresets = import_zod.z.enum([
14494
14513
  "normal",
@@ -14700,9 +14719,10 @@ var incremental = import_zod.z.strictObject({
14700
14719
  emitAssets: import_zod.z.boolean().optional(),
14701
14720
  inferAsyncModules: import_zod.z.boolean().optional(),
14702
14721
  providedExports: import_zod.z.boolean().optional(),
14703
- moduleHashes: import_zod.z.boolean().optional(),
14704
- moduleCodegen: import_zod.z.boolean().optional(),
14705
- moduleRuntimeRequirements: import_zod.z.boolean().optional()
14722
+ dependenciesDiagnostics: import_zod.z.boolean().optional(),
14723
+ modulesHashes: import_zod.z.boolean().optional(),
14724
+ modulesCodegen: import_zod.z.boolean().optional(),
14725
+ modulesRuntimeRequirements: import_zod.z.boolean().optional()
14706
14726
  });
14707
14727
  var experiments = import_zod.z.strictObject({
14708
14728
  lazyCompilation: import_zod.z.boolean().optional().or(lazyCompilationOptions),
@@ -15472,7 +15492,7 @@ HtmlRspackPlugin.getCompilationOptions = (compilation) => {
15472
15492
  }
15473
15493
  return compilationOptionsMap.get(compilation);
15474
15494
  };
15475
- HtmlRspackPlugin.getCompilationHooks = (compilation) => {
15495
+ HtmlRspackPlugin.getHooks = HtmlRspackPlugin.getCompilationHooks = (compilation) => {
15476
15496
  if (!(compilation instanceof Compilation)) {
15477
15497
  throw new TypeError(
15478
15498
  "The 'compilation' argument must be an instance of Compilation"
@@ -15496,6 +15516,7 @@ HtmlRspackPlugin.getCompilationHooks = (compilation) => {
15496
15516
  }
15497
15517
  return hooks;
15498
15518
  };
15519
+ HtmlRspackPlugin.version = 5;
15499
15520
 
15500
15521
  // src/builtin-plugin/HttpExternalsRspackPlugin.ts
15501
15522
  var import_binding39 = require("@rspack/binding");
@@ -31,7 +31,7 @@ export declare const makeWebpackError: (error: Error, hook: string) => WebpackEr
31
31
  * @param hook name of hook
32
32
  * @returns generic callback
33
33
  */
34
- export declare const makeWebpackErrorCallback: <T>(callback: (error?: WebpackError | null, result?: T | undefined) => void, hook: string) => Callback<Error, T>;
34
+ export declare const makeWebpackErrorCallback: <T>(callback: (error?: WebpackError | null, result?: T) => void, hook: string) => Callback<Error, T>;
35
35
  /**
36
36
  * @param fn function which will be wrapping in try catch
37
37
  * @param hook name of hook
@@ -7,7 +7,6 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- /// <reference types="node" />
11
10
  import { inspect } from "node:util";
12
11
  import type { Chunk } from "../Chunk";
13
12
  import type { Module } from "../Module";
@@ -7,7 +7,6 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- /// <reference types="node" />
11
10
  import type { LoggerConsole } from "../logging/createConsoleLogger";
12
11
  export default function ({ colors, appendOnly, stream }: {
13
12
  colors?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type * as binding from "@rspack/binding";
3
2
  import type { JsOriginRecord } from "@rspack/binding";
4
3
  import type { Compilation } from "../Compilation";
@@ -273,7 +272,7 @@ export declare const spaceLimited: (itemsAndGroups: ItemChildren, max: number, f
273
272
  filteredChildren: any;
274
273
  };
275
274
  export declare const countWithChildren: (compilation: Compilation, getItems: (compilation: Compilation, key: string) => any[]) => number;
276
- export declare const sortByField: (field: string) => (a1: Object, a2: Object) => number;
275
+ export declare const sortByField: (field: string) => ((a1: Object, a2: Object) => number);
277
276
  export declare const assetGroup: (children: StatsAsset[]) => {
278
277
  size: number;
279
278
  };
package/dist/util/fs.d.ts CHANGED
@@ -7,9 +7,6 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- /// <reference types="node" />
11
- /// <reference types="node" />
12
- /// <reference types="node" />
13
10
  import type { Abortable } from "node:events";
14
11
  import type { WatchOptions } from "../config";
15
12
  export interface Watcher {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * The following code is modified based on
4
3
  * https://github.com/webpack/webpack/blob/4b4ca3b/lib/util/hash/BatchedHash.js
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  export default class Hash {
3
2
  /**
4
3
  * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
@@ -7,7 +7,6 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- /// <reference types="node" />
11
10
  export declare const MAX_SHORT_STRING: number;
12
11
  type Exports = WebAssembly.Instance["exports"] & {
13
12
  init: () => void;
@@ -11,13 +11,13 @@ export declare const makePathsRelative: {
11
11
  * @param {Object=} associatedObjectForCache an object to which the cache will be attached
12
12
  * @returns {function(string, string): string} cached function
13
13
  */
14
- bindCache(associatedObjectForCache: object | undefined): (arg0: string, arg1: string) => string;
14
+ bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
15
15
  /**
16
16
  * @param {string} context context used to create relative path
17
17
  * @param {Object=} associatedObjectForCache an object to which the cache will be attached
18
18
  * @returns {function(string): string} cached function
19
19
  */
20
- bindContextCache(context: string, associatedObjectForCache: object | undefined): (arg0: string) => string;
20
+ bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
21
21
  };
22
22
  export declare const makePathsAbsolute: {
23
23
  (context: string, identifier: string, associatedObjectForCache: object | undefined): string;
@@ -25,13 +25,13 @@ export declare const makePathsAbsolute: {
25
25
  * @param {Object=} associatedObjectForCache an object to which the cache will be attached
26
26
  * @returns {function(string, string): string} cached function
27
27
  */
28
- bindCache(associatedObjectForCache: object | undefined): (arg0: string, arg1: string) => string;
28
+ bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
29
29
  /**
30
30
  * @param {string} context context used to create relative path
31
31
  * @param {Object=} associatedObjectForCache an object to which the cache will be attached
32
32
  * @returns {function(string): string} cached function
33
33
  */
34
- bindContextCache(context: string, associatedObjectForCache: object | undefined): (arg0: string) => string;
34
+ bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
35
35
  };
36
36
  export declare const contextify: {
37
37
  (context: string, identifier: string, associatedObjectForCache: object | undefined): string;
@@ -39,13 +39,13 @@ export declare const contextify: {
39
39
  * @param {Object=} associatedObjectForCache an object to which the cache will be attached
40
40
  * @returns {function(string, string): string} cached function
41
41
  */
42
- bindCache(associatedObjectForCache: object | undefined): (arg0: string, arg1: string) => string;
42
+ bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
43
43
  /**
44
44
  * @param {string} context context used to create relative path
45
45
  * @param {Object=} associatedObjectForCache an object to which the cache will be attached
46
46
  * @returns {function(string): string} cached function
47
47
  */
48
- bindContextCache(context: string, associatedObjectForCache: object | undefined): (arg0: string) => string;
48
+ bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
49
49
  };
50
50
  export declare const absolutify: {
51
51
  (context: string, identifier: string, associatedObjectForCache: object | undefined): string;
@@ -53,13 +53,13 @@ export declare const absolutify: {
53
53
  * @param {Object=} associatedObjectForCache an object to which the cache will be attached
54
54
  * @returns {function(string, string): string} cached function
55
55
  */
56
- bindCache(associatedObjectForCache: object | undefined): (arg0: string, arg1: string) => string;
56
+ bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
57
57
  /**
58
58
  * @param {string} context context used to create relative path
59
59
  * @param {Object=} associatedObjectForCache an object to which the cache will be attached
60
60
  * @returns {function(string): string} cached function
61
61
  */
62
- bindContextCache(context: string, associatedObjectForCache: object | undefined): (arg0: string) => string;
62
+ bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
63
63
  };
64
64
  export declare const parseResource: {
65
65
  (str: string, associatedObjectForCache?: object): ParsedResource;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { JsRspackError, JsStatsError } from "@rspack/binding";
3
2
  import type { LoaderObject } from "../loader-runner";
4
3
  export declare function mapValues(record: Record<string, string>, fn: (key: string) => string): {
@@ -1,3 +1,3 @@
1
- export declare const memoize: <T>(fn: () => T) => () => T;
1
+ export declare const memoize: <T>(fn: () => T) => (() => T);
2
2
  export declare const memoizeFn: <const T extends readonly unknown[], const P>(fn: () => (...args: T) => P) => (...args: T) => P;
3
3
  export declare function memoizeValue<T>(fn: () => T): T;
@@ -1,4 +1,4 @@
1
1
  declare const _default: {
2
- readonly createHash: (algorithm: (string & {}) | "debug" | "xxhash64" | "md4" | "native-md4" | (new () => import("./hash").default)) => import("./hash").default;
2
+ readonly createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./hash").default)) => import("./hash").default;
3
3
  };
4
4
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -50,7 +50,7 @@
50
50
  "prebundle": "^1.1.0",
51
51
  "tsc-alias": "^1.8.8",
52
52
  "tsup": "^8.3.0",
53
- "typescript": "5.0.2",
53
+ "typescript": "^5.6.3",
54
54
  "watchpack": "^2.4.0",
55
55
  "webpack-dev-server": "5.0.4",
56
56
  "webpack-sources": "3.2.3",
@@ -61,7 +61,7 @@
61
61
  "@module-federation/runtime-tools": "0.5.1",
62
62
  "@rspack/lite-tapable": "1.0.1",
63
63
  "caniuse-lite": "^1.0.30001616",
64
- "@rspack/binding": "1.0.13"
64
+ "@rspack/binding": "1.0.14"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@swc/helpers": ">=0.5.1"