@rspack/core 1.3.12 → 1.3.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 (156) hide show
  1. package/README.md +2 -2
  2. package/compiled/browserslist-load-config/index.d.ts +10 -0
  3. package/compiled/browserslist-load-config/index.js +266 -0
  4. package/compiled/browserslist-load-config/license +21 -0
  5. package/compiled/browserslist-load-config/package.json +1 -0
  6. package/compiled/watchpack/index.js +18 -14
  7. package/compiled/watchpack/package.json +1 -1
  8. package/compiled/zod/dist/types/v3/types.d.ts +2 -2
  9. package/compiled/zod/dist/types/v4/classic/coerce.d.ts +5 -5
  10. package/compiled/zod/dist/types/v4/classic/external.d.ts +6 -1
  11. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +95 -133
  12. package/compiled/zod/dist/types/v4/core/api.d.ts +2 -2
  13. package/compiled/zod/dist/types/v4/core/core.d.ts +11 -7
  14. package/compiled/zod/dist/types/v4/core/errors.d.ts +0 -1
  15. package/compiled/zod/dist/types/v4/core/function.d.ts +16 -11
  16. package/compiled/zod/dist/types/v4/core/regexes.d.ts +1 -1
  17. package/compiled/zod/dist/types/v4/core/registries.d.ts +6 -1
  18. package/compiled/zod/dist/types/v4/core/schemas.d.ts +145 -117
  19. package/compiled/zod/dist/types/v4/core/util.d.ts +5 -9
  20. package/compiled/zod/dist/types/v4/locales/ar.d.ts +0 -3
  21. package/compiled/zod/dist/types/v4/locales/az.d.ts +0 -3
  22. package/compiled/zod/dist/types/v4/locales/be.d.ts +0 -3
  23. package/compiled/zod/dist/types/v4/locales/ca.d.ts +0 -3
  24. package/compiled/zod/dist/types/v4/locales/cs.d.ts +0 -3
  25. package/compiled/zod/dist/types/v4/locales/de.d.ts +0 -3
  26. package/compiled/zod/dist/types/v4/locales/en.d.ts +0 -2
  27. package/compiled/zod/dist/types/v4/locales/es.d.ts +0 -3
  28. package/compiled/zod/dist/types/v4/locales/fa.d.ts +0 -3
  29. package/compiled/zod/dist/types/v4/locales/fi.d.ts +0 -3
  30. package/compiled/zod/dist/types/v4/locales/{frCA.d.ts → fr-CA.d.ts} +0 -3
  31. package/compiled/zod/dist/types/v4/locales/fr.d.ts +0 -3
  32. package/compiled/zod/dist/types/v4/locales/he.d.ts +0 -3
  33. package/compiled/zod/dist/types/v4/locales/hu.d.ts +0 -3
  34. package/compiled/zod/dist/types/v4/locales/id.d.ts +0 -3
  35. package/compiled/zod/dist/types/v4/locales/index.d.ts +5 -2
  36. package/compiled/zod/dist/types/v4/locales/it.d.ts +0 -3
  37. package/compiled/zod/dist/types/v4/locales/ja.d.ts +0 -3
  38. package/compiled/zod/dist/types/v4/locales/{zh-tw.d.ts → kh.d.ts} +0 -3
  39. package/compiled/zod/dist/types/v4/locales/ko.d.ts +0 -3
  40. package/compiled/zod/dist/types/v4/locales/mk.d.ts +0 -3
  41. package/compiled/zod/dist/types/v4/locales/ms.d.ts +0 -3
  42. package/compiled/zod/dist/types/v4/locales/nl.d.ts +4 -0
  43. package/compiled/zod/dist/types/v4/locales/no.d.ts +0 -3
  44. package/compiled/zod/dist/types/v4/locales/ota.d.ts +0 -3
  45. package/compiled/zod/dist/types/v4/locales/pl.d.ts +0 -3
  46. package/compiled/zod/dist/types/v4/locales/pt.d.ts +0 -3
  47. package/compiled/zod/dist/types/v4/locales/ru.d.ts +0 -3
  48. package/compiled/zod/dist/types/v4/locales/sl.d.ts +0 -3
  49. package/compiled/zod/dist/types/v4/locales/sv.d.ts +4 -0
  50. package/compiled/zod/dist/types/v4/locales/ta.d.ts +0 -3
  51. package/compiled/zod/dist/types/v4/locales/th.d.ts +0 -3
  52. package/compiled/zod/dist/types/v4/locales/tr.d.ts +0 -2
  53. package/compiled/zod/dist/types/v4/locales/ua.d.ts +0 -3
  54. package/compiled/zod/dist/types/v4/locales/ur.d.ts +0 -3
  55. package/compiled/zod/dist/types/v4/locales/vi.d.ts +0 -3
  56. package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +0 -3
  57. package/compiled/zod/dist/types/v4/locales/zh-TW.d.ts +4 -0
  58. package/compiled/zod/dist/types/v4/mini/external.d.ts +5 -1
  59. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +40 -49
  60. package/compiled/zod/index.js +42 -64
  61. package/compiled/zod/package.json +1 -1
  62. package/compiled/zod/v3/index.d.ts +3 -1
  63. package/compiled/zod/v4/core/index.d.ts +1 -1
  64. package/compiled/zod/v4/index.d.ts +3 -1
  65. package/compiled/zod/v4/locales/index.d.ts +1 -1
  66. package/compiled/zod/v4-mini/index.d.ts +1 -1
  67. package/dist/ErrorHelpers.d.ts +0 -15
  68. package/dist/Module.d.ts +5 -1
  69. package/dist/ModuleTypeConstants.d.ts +0 -85
  70. package/dist/RspackError.d.ts +0 -3
  71. package/dist/builtin-loader/lightningcss/index.d.ts +23 -1
  72. package/dist/builtin-loader/swc/types.d.ts +289 -2426
  73. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  74. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  75. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  76. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  77. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  78. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  79. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  80. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  81. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  82. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  83. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  84. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  85. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  86. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  87. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  88. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  89. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  90. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  91. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  92. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  93. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  94. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  95. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  96. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  97. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  98. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  99. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  100. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  101. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  102. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  103. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  104. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  105. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  106. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  107. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  108. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  109. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  110. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  111. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  112. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  113. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  114. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  115. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  116. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  117. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  118. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  119. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  120. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  121. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
  122. package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
  123. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  124. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  125. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  126. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  127. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  128. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  129. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  130. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  131. package/dist/builtin-plugin/base.d.ts +1 -2
  132. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  133. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  134. package/dist/config/browserslistTargetHandler.d.ts +0 -6
  135. package/dist/config/zod.d.ts +370 -370
  136. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  137. package/dist/exports.d.ts +1 -0
  138. package/dist/index.js +67 -71
  139. package/dist/lib/AbstractMethodError.d.ts +0 -1
  140. package/dist/lib/CacheFacade.d.ts +0 -28
  141. package/dist/loader-runner/index.d.ts +1 -0
  142. package/dist/stats/statsFactoryUtils.d.ts +24 -4
  143. package/dist/util/cleverMerge.d.ts +0 -30
  144. package/dist/util/comparators.d.ts +0 -4
  145. package/dist/util/hash/wasm-hash.d.ts +0 -1
  146. package/dist/util/identifier.d.ts +0 -12
  147. package/dist/util/index.d.ts +1 -7
  148. package/dist/util/memoize.d.ts +0 -1
  149. package/dist/worker.js +5 -7
  150. package/module.d.ts +53 -21
  151. package/package.json +11 -12
  152. package/compiled/browserslist/index.d.ts +0 -1
  153. package/compiled/browserslist/index.js +0 -2123
  154. package/compiled/browserslist/license +0 -20
  155. package/compiled/browserslist/package.json +0 -1
  156. package/dist/util/hash/BatchedHash.d.ts +0 -25
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,5 @@
1
1
  import type * as errors from "../core/errors.js";
2
2
  export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
3
  export default function (): {
6
4
  localeError: errors.$ZodErrorMap;
7
5
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -9,21 +9,24 @@ export { default as es } from "./es.js";
9
9
  export { default as fa } from "./fa.js";
10
10
  export { default as fi } from "./fi.js";
11
11
  export { default as fr } from "./fr.js";
12
- export { default as frCA } from "./frCA.js";
12
+ export { default as frCA } from "./fr-CA.js";
13
13
  export { default as he } from "./he.js";
14
14
  export { default as hu } from "./hu.js";
15
15
  export { default as id } from "./id.js";
16
16
  export { default as it } from "./it.js";
17
17
  export { default as ja } from "./ja.js";
18
+ export { default as kh } from "./kh.js";
18
19
  export { default as ko } from "./ko.js";
19
20
  export { default as mk } from "./mk.js";
20
21
  export { default as ms } from "./ms.js";
22
+ export { default as nl } from "./nl.js";
21
23
  export { default as no } from "./no.js";
22
24
  export { default as ota } from "./ota.js";
23
25
  export { default as pl } from "./pl.js";
24
26
  export { default as pt } from "./pt.js";
25
27
  export { default as ru } from "./ru.js";
26
28
  export { default as sl } from "./sl.js";
29
+ export { default as sv } from "./sv.js";
27
30
  export { default as ta } from "./ta.js";
28
31
  export { default as th } from "./th.js";
29
32
  export { default as tr } from "./tr.js";
@@ -31,4 +34,4 @@ export { default as ua } from "./ua.js";
31
34
  export { default as ur } from "./ur.js";
32
35
  export { default as vi } from "./vi.js";
33
36
  export { default as zhCN } from "./zh-CN.js";
34
- export { default as zhTW } from "./zh-tw.js";
37
+ export { default as zhTW } from "./zh-TW.js";
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -0,0 +1,4 @@
1
+ import type * as errors from "../core/errors.js";
2
+ export default function (): {
3
+ localeError: errors.$ZodErrorMap;
4
+ };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -0,0 +1,4 @@
1
+ import type * as errors from "../core/errors.js";
2
+ export default function (): {
3
+ localeError: errors.$ZodErrorMap;
4
+ };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,5 @@
1
1
  import type * as errors from "../core/errors.js";
2
2
  export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
3
  export default function (): {
6
4
  localeError: errors.$ZodErrorMap;
7
5
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -1,7 +1,4 @@
1
1
  import type * as errors from "../core/errors.js";
2
- export declare const parsedType: (data: any) => string;
3
- declare const error: errors.$ZodErrorMap;
4
- export { error };
5
2
  export default function (): {
6
3
  localeError: errors.$ZodErrorMap;
7
4
  };
@@ -0,0 +1,4 @@
1
+ import type * as errors from "../core/errors.js";
2
+ export default function (): {
3
+ localeError: errors.$ZodErrorMap;
4
+ };
@@ -3,5 +3,9 @@ export * from "./parse.js";
3
3
  export * from "./schemas.js";
4
4
  export * from "./checks.js";
5
5
  export type { infer, output, input } from "zod/v4/core";
6
- export { globalRegistry, registry, config, $output, $input, $brand, function, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, locales, } from "zod/v4/core";
6
+ export { globalRegistry, registry, config, $output, $input, $brand, function, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, } from "zod/v4/core";
7
+ export * as locales from "../locales/index.js";
7
8
  /** A special constant with type `never` */
9
+ export * as iso from "./iso.js";
10
+ export { ZodMiniISODateTime, ZodMiniISODate, ZodMiniISOTime, ZodMiniISODuration, } from "./iso.js";
11
+ export * as coerce from "./coerce.js";
@@ -1,24 +1,23 @@
1
1
  import * as core from "zod/v4/core";
2
2
  import { util } from "zod/v4/core";
3
- export * as coerce from "./coerce.js";
4
- export * as iso from "./iso.js";
5
- type SomeType = core.$ZodType;
6
- export interface ZodMiniType<out Output = unknown, out Input = unknown> extends core.$ZodType<Output, Input> {
7
- check(...checks: (core.CheckFn<this["_zod"]["output"]> | core.$ZodCheck<this["_zod"]["output"]>)[]): this;
8
- clone(def?: this["_zod"]["def"], params?: {
3
+ type SomeType = core.SomeType;
4
+ export interface ZodMiniType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> {
5
+ check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
6
+ clone(def?: Internals["def"], params?: {
9
7
  parent: boolean;
10
8
  }): this;
11
9
  register<R extends core.$ZodRegistry>(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [core.$replace<R["_meta"], this>?] : [core.$replace<R["_meta"], this>] : ["Incompatible schema"]): this;
12
- brand<T extends PropertyKey = PropertyKey>(value?: T): PropertyKey extends T ? this : this & Record<"_zod", Record<"~output", core.output<this> & core.$brand<T>>>;
13
- def: this["_zod"]["def"];
10
+ brand<T extends PropertyKey = PropertyKey>(value?: T): PropertyKey extends T ? this : this & Record<"_zod", Record<"output", core.output<this> & core.$brand<T>>>;
11
+ def: Internals["def"];
14
12
  parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
15
13
  safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): util.SafeParseResult<core.output<this>>;
16
14
  parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
17
15
  safeParseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<util.SafeParseResult<core.output<this>>>;
18
16
  }
17
+ interface _ZodMiniType<out Internals extends core.$ZodTypeInternals = core.$ZodTypeInternals> extends ZodMiniType<Internals["output"], Internals["input"], Internals> {
18
+ }
19
19
  export declare const ZodMiniType: core.$constructor<ZodMiniType>;
20
- export interface ZodMiniString<Input = unknown> extends ZodMiniType {
21
- _zod: core.$ZodStringInternals<Input>;
20
+ export interface ZodMiniString<Input = unknown> extends _ZodMiniType<core.$ZodStringInternals<Input>>, core.$ZodString<Input> {
22
21
  }
23
22
  export declare const ZodMiniString: core.$constructor<ZodMiniString>;
24
23
  export declare function string(params?: string | core.$ZodStringParams): ZodMiniString<string>;
@@ -197,16 +196,14 @@ export interface ZodMiniDate<T = unknown> extends ZodMiniType {
197
196
  }
198
197
  export declare const ZodMiniDate: core.$constructor<ZodMiniDate>;
199
198
  export declare function date(params?: string | core.$ZodDateParams): ZodMiniDate<Date>;
200
- export interface ZodMiniArray<T extends SomeType = SomeType> extends ZodMiniType {
201
- _zod: core.$ZodArrayInternals<T>;
199
+ export interface ZodMiniArray<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodArrayInternals<T>>, core.$ZodArray<T> {
202
200
  }
203
201
  export declare const ZodMiniArray: core.$constructor<ZodMiniArray>;
204
202
  export declare function array<T extends SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray<T>;
205
203
  export declare function keyof<T extends ZodMiniObject>(schema: T): ZodMiniLiteral<keyof T["shape"]>;
206
204
  export interface ZodMiniObject<
207
205
  /** @ts-ignore Cast variance */
208
- out Shape extends core.$ZodShape = core.$ZodShape, out Config extends core.$ZodObjectConfig = core.$ZodObjectConfig> extends ZodMiniType {
209
- _zod: core.$ZodObjectInternals<Shape, Config>;
206
+ out Shape extends core.$ZodShape = core.$ZodShape, out Config extends core.$ZodObjectConfig = core.$ZodObjectConfig> extends ZodMiniType<any, any, core.$ZodObjectInternals<Shape, Config>>, core.$ZodObject<Shape, Config> {
210
207
  shape: Shape;
211
208
  }
212
209
  export declare const ZodMiniObject: core.$constructor<ZodMiniObject>;
@@ -235,46 +232,40 @@ export declare function required<T extends ZodMiniObject>(schema: T): ZodMiniObj
235
232
  export declare function required<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(schema: T, mask: M): ZodMiniObject<util.Extend<T["shape"], {
236
233
  [k in keyof M & keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
237
234
  }>, T["_zod"]["config"]>;
238
- export interface ZodMiniUnion<T extends readonly SomeType[] = readonly SomeType[]> extends ZodMiniType {
235
+ export interface ZodMiniUnion<T extends readonly SomeType[] = readonly core.$ZodType[]> extends ZodMiniType {
239
236
  _zod: core.$ZodUnionInternals<T>;
240
237
  }
241
238
  export declare const ZodMiniUnion: core.$constructor<ZodMiniUnion>;
242
239
  export declare function union<const T extends readonly SomeType[]>(options: T, params?: string | core.$ZodUnionParams): ZodMiniUnion<T>;
243
- export interface ZodMiniDiscriminatedUnion<Options extends readonly SomeType[] = readonly SomeType[]> extends ZodMiniUnion<Options> {
240
+ export interface ZodMiniDiscriminatedUnion<Options extends readonly SomeType[] = readonly core.$ZodType[]> extends ZodMiniUnion<Options> {
244
241
  _zod: core.$ZodDiscriminatedUnionInternals<Options>;
245
242
  }
246
243
  export declare const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUnion>;
247
- export interface $ZodTypeDiscriminableInternals extends core.$ZodTypeInternals {
248
- disc: util.DiscriminatorMap;
249
- }
250
- export interface $ZodTypeDiscriminable extends ZodMiniType {
251
- _zod: $ZodTypeDiscriminableInternals;
252
- }
253
- export declare function discriminatedUnion<Types extends readonly [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]]>(discriminator: string, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodMiniDiscriminatedUnion<Types>;
254
- export interface ZodMiniIntersection<A extends SomeType = SomeType, B extends SomeType = SomeType> extends ZodMiniType {
244
+ export declare function discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]]>(discriminator: string, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodMiniDiscriminatedUnion<Types>;
245
+ export interface ZodMiniIntersection<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType> extends ZodMiniType {
255
246
  _zod: core.$ZodIntersectionInternals<A, B>;
256
247
  }
257
248
  export declare const ZodMiniIntersection: core.$constructor<ZodMiniIntersection>;
258
249
  export declare function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodMiniIntersection<T, U>;
259
- export interface ZodMiniTuple<T extends util.TupleItems = util.TupleItems, Rest extends SomeType | null = SomeType | null> extends ZodMiniType {
250
+ export interface ZodMiniTuple<T extends util.TupleItems = readonly core.$ZodType[], Rest extends SomeType | null = core.$ZodType | null> extends ZodMiniType {
260
251
  _zod: core.$ZodTupleInternals<T, Rest>;
261
252
  }
262
253
  export declare const ZodMiniTuple: core.$constructor<ZodMiniTuple>;
263
- export declare function tuple<T extends readonly [SomeType, ...SomeType[]]>(items: T, params?: string | core.$ZodTupleParams): ZodMiniTuple<T, null>;
264
- export declare function tuple<T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(items: T, rest: Rest, params?: string | core.$ZodTupleParams): ZodMiniTuple<T, Rest>;
254
+ export declare function tuple<const T extends readonly [SomeType, ...SomeType[]]>(items: T, params?: string | core.$ZodTupleParams): ZodMiniTuple<T, null>;
255
+ export declare function tuple<const T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(items: T, rest: Rest, params?: string | core.$ZodTupleParams): ZodMiniTuple<T, Rest>;
265
256
  export declare function tuple(items: [], params?: string | core.$ZodTupleParams): ZodMiniTuple<[], null>;
266
- export interface ZodMiniRecord<Key extends core.$ZodRecordKey = core.$ZodRecordKey, Value extends SomeType = SomeType> extends ZodMiniType {
257
+ export interface ZodMiniRecord<Key extends core.$ZodRecordKey = core.$ZodRecordKey, Value extends SomeType = core.$ZodType> extends ZodMiniType {
267
258
  _zod: core.$ZodRecordInternals<Key, Value>;
268
259
  }
269
260
  export declare const ZodMiniRecord: core.$constructor<ZodMiniRecord>;
270
261
  export declare function record<Key extends core.$ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodMiniRecord<Key, Value>;
271
262
  export declare function partialRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodMiniRecord<ZodMiniUnion<[Key, ZodMiniNever]>, Value>;
272
- export interface ZodMiniMap<Key extends SomeType = SomeType, Value extends SomeType = SomeType> extends ZodMiniType {
263
+ export interface ZodMiniMap<Key extends SomeType = core.$ZodType, Value extends SomeType = core.$ZodType> extends ZodMiniType {
273
264
  _zod: core.$ZodMapInternals<Key, Value>;
274
265
  }
275
266
  export declare const ZodMiniMap: core.$constructor<ZodMiniMap>;
276
267
  export declare function map<Key extends SomeType, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): ZodMiniMap<Key, Value>;
277
- export interface ZodMiniSet<T extends SomeType = SomeType> extends ZodMiniType {
268
+ export interface ZodMiniSet<T extends SomeType = core.$ZodType> extends ZodMiniType {
278
269
  _zod: core.$ZodSetInternals<T>;
279
270
  }
280
271
  export declare const ZodMiniSet: core.$constructor<ZodMiniSet>;
@@ -310,38 +301,38 @@ export interface ZodMiniTransform<O = unknown, I = unknown> extends ZodMiniType
310
301
  }
311
302
  export declare const ZodMiniTransform: core.$constructor<ZodMiniTransform>;
312
303
  export declare function transform<I = unknown, O = I>(fn: (input: I, ctx: core.ParsePayload) => O): ZodMiniTransform<Awaited<O>, I>;
313
- export interface ZodMiniOptional<T extends SomeType = SomeType> extends ZodMiniType {
304
+ export interface ZodMiniOptional<T extends SomeType = core.$ZodType> extends ZodMiniType {
314
305
  _zod: core.$ZodOptionalInternals<T>;
315
306
  }
316
307
  export declare const ZodMiniOptional: core.$constructor<ZodMiniOptional>;
317
308
  export declare function optional<T extends SomeType>(innerType: T): ZodMiniOptional<T>;
318
- export interface ZodMiniNullable<T extends SomeType = SomeType> extends ZodMiniType {
309
+ export interface ZodMiniNullable<T extends SomeType = core.$ZodType> extends ZodMiniType {
319
310
  _zod: core.$ZodNullableInternals<T>;
320
311
  }
321
312
  export declare const ZodMiniNullable: core.$constructor<ZodMiniNullable>;
322
313
  export declare function nullable<T extends SomeType>(innerType: T): ZodMiniNullable<T>;
323
314
  export declare function nullish<T extends SomeType>(innerType: T): ZodMiniOptional<ZodMiniNullable<T>>;
324
- export interface ZodMiniDefault<T extends SomeType = SomeType> extends ZodMiniType {
315
+ export interface ZodMiniDefault<T extends SomeType = core.$ZodType> extends ZodMiniType {
325
316
  _zod: core.$ZodDefaultInternals<T>;
326
317
  }
327
318
  export declare const ZodMiniDefault: core.$constructor<ZodMiniDefault>;
328
319
  export declare function _default<T extends SomeType>(innerType: T, defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)): ZodMiniDefault<T>;
329
- export interface ZodMiniPrefault<T extends SomeType = SomeType> extends ZodMiniType {
320
+ export interface ZodMiniPrefault<T extends SomeType = core.$ZodType> extends ZodMiniType {
330
321
  _zod: core.$ZodPrefaultInternals<T>;
331
322
  }
332
323
  export declare const ZodMiniPrefault: core.$constructor<ZodMiniPrefault>;
333
324
  export declare function prefault<T extends SomeType>(innerType: T, defaultValue: util.NoUndefined<core.input<T>> | (() => util.NoUndefined<core.input<T>>)): ZodMiniPrefault<T>;
334
- export interface ZodMiniNonOptional<T extends SomeType = SomeType> extends ZodMiniType {
325
+ export interface ZodMiniNonOptional<T extends SomeType = core.$ZodType> extends ZodMiniType {
335
326
  _zod: core.$ZodNonOptionalInternals<T>;
336
327
  }
337
328
  export declare const ZodMiniNonOptional: core.$constructor<ZodMiniNonOptional>;
338
329
  export declare function nonoptional<T extends SomeType>(innerType: T, params?: string | core.$ZodNonOptionalParams): ZodMiniNonOptional<T>;
339
- export interface ZodMiniSuccess<T extends SomeType = SomeType> extends ZodMiniType {
330
+ export interface ZodMiniSuccess<T extends SomeType = core.$ZodType> extends ZodMiniType {
340
331
  _zod: core.$ZodSuccessInternals<T>;
341
332
  }
342
333
  export declare const ZodMiniSuccess: core.$constructor<ZodMiniSuccess>;
343
334
  export declare function success<T extends SomeType>(innerType: T): ZodMiniSuccess<T>;
344
- export interface ZodMiniCatch<T extends SomeType = SomeType> extends ZodMiniType {
335
+ export interface ZodMiniCatch<T extends SomeType = core.$ZodType> extends ZodMiniType {
345
336
  _zod: core.$ZodCatchInternals<T>;
346
337
  }
347
338
  export declare const ZodMiniCatch: core.$constructor<ZodMiniCatch>;
@@ -352,12 +343,12 @@ export interface ZodMiniNaN extends ZodMiniType {
352
343
  }
353
344
  export declare const ZodMiniNaN: core.$constructor<ZodMiniNaN>;
354
345
  export declare function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN;
355
- export interface ZodMiniPipe<A extends SomeType = SomeType, B extends SomeType = SomeType> extends ZodMiniType {
346
+ export interface ZodMiniPipe<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType> extends ZodMiniType {
356
347
  _zod: core.$ZodPipeInternals<A, B>;
357
348
  }
358
349
  export declare const ZodMiniPipe: core.$constructor<ZodMiniPipe>;
359
- export declare function pipe<const A extends core.$ZodType, B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>, params?: string | core.$ZodPipeParams): ZodMiniPipe<A, B>;
360
- export interface ZodMiniReadonly<T extends SomeType = SomeType> extends ZodMiniType {
350
+ export declare function pipe<const A extends SomeType, B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodMiniPipe<A, B>;
351
+ export interface ZodMiniReadonly<T extends SomeType = core.$ZodType> extends ZodMiniType {
361
352
  _zod: core.$ZodReadonlyInternals<T>;
362
353
  }
363
354
  export declare const ZodMiniReadonly: core.$constructor<ZodMiniReadonly>;
@@ -367,13 +358,13 @@ export interface ZodMiniTemplateLiteral<Template extends string = string> extend
367
358
  }
368
359
  export declare const ZodMiniTemplateLiteral: core.$constructor<ZodMiniTemplateLiteral>;
369
360
  export declare function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(parts: Parts, params?: string | core.$ZodTemplateLiteralParams): ZodMiniTemplateLiteral<core.$PartsToTemplateLiteral<Parts>>;
370
- export interface ZodMiniLazy<T extends SomeType = SomeType> extends ZodMiniType {
361
+ export interface ZodMiniLazy<T extends SomeType = core.$ZodType> extends ZodMiniType {
371
362
  _zod: core.$ZodLazyInternals<T>;
372
363
  }
373
364
  export declare const ZodMiniLazy: core.$constructor<ZodMiniLazy>;
374
365
  declare function _lazy<T extends SomeType>(getter: () => T): ZodMiniLazy<T>;
375
366
  export { _lazy as lazy };
376
- export interface ZodMiniPromise<T extends SomeType = SomeType> extends ZodMiniType {
367
+ export interface ZodMiniPromise<T extends SomeType = core.$ZodType> extends ZodMiniType {
377
368
  _zod: core.$ZodPromiseInternals<T>;
378
369
  }
379
370
  export declare const ZodMiniPromise: core.$constructor<ZodMiniPromise>;
@@ -383,22 +374,22 @@ export interface ZodMiniCustom<O = unknown, I = unknown> extends ZodMiniType {
383
374
  }
384
375
  export declare const ZodMiniCustom: core.$constructor<ZodMiniCustom>;
385
376
  export declare function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O>;
386
- export declare function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T>;
387
377
  export declare function custom<O = unknown, I = O>(fn?: (data: O) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodMiniCustom<O, I>;
378
+ export declare function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T>;
388
379
  declare abstract class Class {
389
380
  constructor(..._args: any[]);
390
381
  }
391
- declare function _instanceof<T extends typeof Class>(cls: T, params?: core.$ZodCustomParams): ZodMiniCustom<InstanceType<T>>;
382
+ declare function _instanceof<T extends typeof Class>(cls: T, params?: core.$ZodCustomParams): ZodMiniCustom<InstanceType<T>, InstanceType<T>>;
392
383
  export { _instanceof as instanceof };
393
384
  export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniPipe<ZodMiniUnknown, ZodMiniBoolean<boolean>>;
394
- export type ZodMiniJSONSchema = ZodMiniLazy<ZodMiniUnion<[
395
- ZodMiniString<string>,
396
- ZodMiniNumber<number>,
397
- ZodMiniBoolean<boolean>,
385
+ export type ZodMiniJSONSchema = ZodMiniUnion<[
386
+ ZodMiniString,
387
+ ZodMiniNumber,
388
+ ZodMiniBoolean,
398
389
  ZodMiniNull,
399
390
  ZodMiniArray<ZodMiniJSONSchema>,
400
391
  ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>
401
- ]>> & {
392
+ ]> & {
402
393
  _zod: {
403
394
  input: util.JSONType;
404
395
  output: util.JSONType;