@rspack/core 1.3.11 → 1.3.13
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/README.md +2 -2
- package/compiled/browserslist-load-config/index.d.ts +10 -0
- package/compiled/browserslist-load-config/index.js +266 -0
- package/compiled/browserslist-load-config/license +21 -0
- package/compiled/browserslist-load-config/package.json +1 -0
- package/compiled/watchpack/index.js +61 -19
- package/compiled/watchpack/package.json +1 -1
- package/compiled/webpack-sources/index.js +1539 -339
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +320 -0
- package/compiled/zod/dist/types/index.d.ts +3 -0
- package/compiled/zod/{lib → dist/types/v3}/ZodError.d.ts +7 -7
- package/compiled/zod/{lib → dist/types/v3}/errors.d.ts +2 -2
- package/compiled/zod/dist/types/v3/external.d.ts +6 -0
- package/compiled/zod/{lib → dist/types/v3}/helpers/errorUtil.d.ts +1 -1
- package/compiled/zod/{lib → dist/types/v3}/helpers/parseUtil.d.ts +4 -4
- package/compiled/zod/{lib → dist/types/v3}/helpers/partialUtil.d.ts +1 -1
- package/compiled/zod/{lib → dist/types/v3}/helpers/util.d.ts +12 -9
- package/compiled/zod/dist/types/v3/index.d.ts +4 -0
- package/compiled/zod/{lib → dist/types/v3}/locales/en.d.ts +1 -1
- package/compiled/zod/{lib/__tests__ → dist/types/v3/tests}/Mocker.d.ts +6 -6
- package/compiled/zod/{lib → dist/types/v3}/types.d.ts +118 -149
- package/compiled/zod/dist/types/v4/classic/checks.d.ts +1 -0
- package/compiled/zod/dist/types/v4/classic/coerce.d.ts +17 -0
- package/compiled/zod/dist/types/v4/classic/compat.d.ts +48 -0
- package/compiled/zod/dist/types/v4/classic/errors.d.ts +30 -0
- package/compiled/zod/dist/types/v4/classic/external.d.ts +8 -0
- package/compiled/zod/dist/types/v4/classic/index.d.ts +4 -0
- package/compiled/zod/dist/types/v4/classic/iso.d.ts +22 -0
- package/compiled/zod/dist/types/v4/classic/parse.d.ts +23 -0
- package/compiled/zod/dist/types/v4/classic/schemas.d.ts +661 -0
- package/compiled/zod/dist/types/v4/core/api.d.ts +273 -0
- package/compiled/zod/dist/types/v4/core/checks.d.ts +277 -0
- package/compiled/zod/dist/types/v4/core/config.d.ts +9 -0
- package/compiled/zod/dist/types/v4/core/core.d.ts +43 -0
- package/compiled/zod/dist/types/v4/core/doc.d.ts +14 -0
- package/compiled/zod/dist/types/v4/core/errors.d.ts +205 -0
- package/compiled/zod/dist/types/v4/core/function.d.ts +47 -0
- package/compiled/zod/dist/types/v4/core/index.d.ts +15 -0
- package/compiled/zod/dist/types/v4/core/json-schema.d.ts +100 -0
- package/compiled/zod/dist/types/v4/core/parse.d.ts +25 -0
- package/compiled/zod/dist/types/v4/core/regexes.d.ts +63 -0
- package/compiled/zod/dist/types/v4/core/registries.d.ts +32 -0
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +983 -0
- package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
- package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
- package/compiled/zod/dist/types/v4/core/util.d.ts +186 -0
- package/compiled/zod/dist/types/v4/core/versions.d.ts +5 -0
- package/compiled/zod/dist/types/v4/core/zsf.d.ts +91 -0
- package/compiled/zod/dist/types/v4/index.d.ts +3 -0
- package/compiled/zod/dist/types/v4/locales/ar.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/az.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/be.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ca.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/cs.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/de.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/en.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/es.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fa.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fi.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fr.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/frCA.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/he.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/hu.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/id.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/index.d.ts +34 -0
- package/compiled/zod/dist/types/v4/locales/it.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ja.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ko.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/mk.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ms.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/no.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ota.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/pl.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/pt.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ru.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/sl.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ta.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/th.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/tr.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ua.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ur.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/vi.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/zh-tw.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/checks.d.ts +1 -0
- package/compiled/zod/dist/types/v4/mini/coerce.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/external.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/index.d.ts +3 -0
- package/compiled/zod/dist/types/v4/mini/iso.d.ts +22 -0
- package/compiled/zod/dist/types/v4/mini/parse.d.ts +1 -0
- package/compiled/zod/dist/types/v4/mini/schemas.d.ts +407 -0
- package/compiled/zod/index.js +555 -602
- package/compiled/zod/license +1 -1
- package/compiled/zod/package.json +1 -1
- package/compiled/zod/v3/index.d.ts +1 -0
- package/compiled/zod/v4/core/index.d.ts +1 -0
- package/compiled/zod/v4/index.d.ts +1 -0
- package/compiled/zod/v4/locales/en.d.ts +2 -0
- package/compiled/zod/v4/locales/index.d.ts +1 -0
- package/compiled/zod/v4-mini/index.d.ts +1 -0
- package/dist/Compilation.d.ts +2 -2
- package/dist/Compiler.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -3
- package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/config/browserslistTargetHandler.d.ts +0 -6
- package/dist/exports.d.ts +2 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +187 -254
- package/dist/node/NodeWatchFileSystem.d.ts +2 -2
- package/dist/stats/statsFactoryUtils.d.ts +24 -0
- package/dist/trace/index.d.ts +5 -0
- package/module.d.ts +53 -21
- package/package.json +12 -14
- package/compiled/browserslist/index.d.ts +0 -1
- package/compiled/browserslist/index.js +0 -2123
- package/compiled/browserslist/license +0 -20
- package/compiled/browserslist/package.json +0 -1
- package/compiled/webpack-sources/index.d.ts +0 -130
- package/compiled/zod/index.d.ts +0 -2
- package/compiled/zod/lib/external.d.ts +0 -6
- package/compiled/zod/lib/index.d.ts +0 -4
- package/dist/setupEnv.d.ts +0 -1
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/datetime.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/discriminatedUnion.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/index.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/ipv4.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/object.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/primitives.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/realworld.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/string.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/union.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/helpers/enumUtil.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/helpers/typeAliases.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/standard-schema.d.ts +0 -0
package/compiled/zod/license
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"zod","author":"Colin McDonnell <
|
1
|
+
{"name":"zod","author":"Colin McDonnell <zod@colinhacks.com>","version":"3.25.31","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"./dist/types/index.d.ts","type":"commonjs"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "../dist/types/v3/index.d.ts";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "../../dist/types/v4/core/index.d.ts";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "../dist/types/v4/index.d.ts";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "../../dist/types/v4/locales/index.d.ts";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "../dist/types/v4/mini/index.d.ts";
|
package/dist/Compilation.d.ts
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
10
|
import * as binding from "@rspack/binding";
|
11
|
-
import {
|
11
|
+
import type { AssetInfo, Dependency, ExternalObject, JsCompilation, JsRuntimeModule } from "@rspack/binding";
|
12
12
|
export type { AssetInfo } from "@rspack/binding";
|
13
13
|
import * as liteTapable from "@rspack/lite-tapable";
|
14
14
|
import type { Source } from "../compiled/webpack-sources";
|
@@ -23,7 +23,7 @@ import ModuleGraph from "./ModuleGraph";
|
|
23
23
|
import type { NormalModuleCompilationHooks } from "./NormalModule";
|
24
24
|
import type { NormalModuleFactory } from "./NormalModuleFactory";
|
25
25
|
import type { ResolverFactory } from "./ResolverFactory";
|
26
|
-
import {
|
26
|
+
import type { RspackError } from "./RspackError";
|
27
27
|
import { RuntimeModule } from "./RuntimeModule";
|
28
28
|
import { Stats, type StatsAsset, type StatsError, type StatsModule } from "./Stats";
|
29
29
|
import type { EntryOptions, EntryPlugin } from "./builtin-plugin";
|
package/dist/Compiler.d.ts
CHANGED
@@ -172,7 +172,7 @@ declare class Compiler {
|
|
172
172
|
* Note: This is not a webpack public API, maybe removed in future.
|
173
173
|
* @internal
|
174
174
|
*/
|
175
|
-
|
175
|
+
__internal__takeModuleExecutionResult(id: number): any;
|
176
176
|
/**
|
177
177
|
* Note: This is not a webpack public API, maybe removed in future.
|
178
178
|
* @internal
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { BuiltinPluginName, type RawCopyPattern } from "@rspack/binding";
|
2
2
|
export type CopyRspackPluginOptions = {
|
3
|
-
|
4
|
-
|
5
|
-
} & Partial<RawCopyPattern>))[];
|
3
|
+
/** An array of objects that describe the copy operations to be performed. */
|
4
|
+
patterns: (string | (Pick<RawCopyPattern, "from"> & Partial<Omit<RawCopyPattern, "from">>))[];
|
6
5
|
};
|
7
6
|
export declare const CopyRspackPlugin: {
|
8
7
|
new (copy: CopyRspackPluginOptions): {
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { BuiltinPluginName, type RawRstestPluginOptions } from "@rspack/binding";
|
2
|
+
export type RstestPluginArgument = Partial<Omit<RawRstestPluginOptions, "handler">> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
|
3
|
+
export declare const RstestPlugin: {
|
4
|
+
new (rstest: RawRstestPluginOptions): {
|
5
|
+
name: BuiltinPluginName;
|
6
|
+
_args: [rstest: RawRstestPluginOptions];
|
7
|
+
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" | "additionalPass" | undefined;
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
10
|
+
};
|
11
|
+
};
|
@@ -50,6 +50,7 @@ export * from "./NaturalModuleIdsPlugin";
|
|
50
50
|
export * from "./NodeTargetPlugin";
|
51
51
|
export * from "./OccurrenceChunkIdsPlugin";
|
52
52
|
export * from "./ProgressPlugin";
|
53
|
+
export * from "./RstestPlugin";
|
53
54
|
export * from "./ProvidePlugin";
|
54
55
|
export * from "./RealContentHashPlugin";
|
55
56
|
export * from "./RemoveEmptyChunksPlugin";
|
@@ -8,12 +8,6 @@
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
10
|
import type { ApiTargetProperties, EcmaTargetProperties, PlatformTargetProperties } from "./target";
|
11
|
-
/**
|
12
|
-
* @param input input string
|
13
|
-
* @param context the context directory
|
14
|
-
* @returns selected browsers
|
15
|
-
*/
|
16
|
-
export declare const load: (input: string | null | undefined, context: string) => string[] | undefined;
|
17
11
|
/**
|
18
12
|
* @param browsers supported browsers list
|
19
13
|
* @returns target properties
|
package/dist/exports.d.ts
CHANGED
@@ -18,6 +18,7 @@ export { ContextModule } from "./ContextModule";
|
|
18
18
|
export { ConcatenatedModule } from "./ConcatenatedModule";
|
19
19
|
export { ExternalModule } from "./ExternalModule";
|
20
20
|
export type { NormalModuleFactory } from "./NormalModuleFactory";
|
21
|
+
export type { default as ModuleGraph } from "./ModuleGraph";
|
21
22
|
export { RuntimeGlobals } from "./RuntimeGlobals";
|
22
23
|
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from "./Stats";
|
23
24
|
export { Stats } from "./Stats";
|
@@ -58,6 +59,7 @@ export { IgnorePlugin, type IgnorePluginOptions } from "./builtin-plugin";
|
|
58
59
|
export { ProvidePlugin } from "./builtin-plugin";
|
59
60
|
export { DefinePlugin } from "./builtin-plugin";
|
60
61
|
export { ProgressPlugin } from "./builtin-plugin";
|
62
|
+
export { RstestPlugin } from "./builtin-plugin";
|
61
63
|
export { EntryPlugin } from "./builtin-plugin";
|
62
64
|
export { DynamicEntryPlugin } from "./builtin-plugin";
|
63
65
|
export { ExternalsPlugin } from "./builtin-plugin";
|
package/dist/index.d.ts
CHANGED