@rspack/core 1.3.15 → 1.4.0-beta.1

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 (53) hide show
  1. package/compiled/@swc/types/index.d.ts +18 -2
  2. package/compiled/@swc/types/package.json +1 -1
  3. package/compiled/tinypool/README.md +4 -196
  4. package/compiled/tinypool/dist/common-Qw-RoVFD.js +28 -0
  5. package/compiled/tinypool/dist/entry/process.d.ts +1 -2
  6. package/compiled/tinypool/dist/entry/process.js +63 -83
  7. package/compiled/tinypool/dist/entry/utils.d.ts +3 -1
  8. package/compiled/tinypool/dist/entry/utils.js +3 -9
  9. package/compiled/tinypool/dist/entry/worker.d.ts +1 -2
  10. package/compiled/tinypool/dist/entry/worker.js +66 -94
  11. package/compiled/tinypool/dist/index.d.ts +132 -125
  12. package/compiled/tinypool/dist/index.js +771 -1035
  13. package/compiled/tinypool/dist/utils-B--2TaWv.js +38 -0
  14. package/compiled/tinypool/dist/utils-De75vAgL.js +10 -0
  15. package/compiled/tinypool/package.json +6 -22
  16. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +19 -14
  17. package/compiled/zod/dist/types/v4/core/api.d.ts +5 -4
  18. package/compiled/zod/dist/types/v4/core/checks.d.ts +1 -1
  19. package/compiled/zod/dist/types/v4/core/core.d.ts +1 -1
  20. package/compiled/zod/dist/types/v4/core/registries.d.ts +3 -1
  21. package/compiled/zod/dist/types/v4/core/schemas.d.ts +33 -39
  22. package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +2 -2
  23. package/compiled/zod/dist/types/v4/core/util.d.ts +1 -1
  24. package/compiled/zod/dist/types/v4/locales/index.d.ts +1 -0
  25. package/compiled/zod/dist/types/v4/locales/ps.d.ts +4 -0
  26. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +77 -125
  27. package/compiled/zod/index.js +33 -33
  28. package/compiled/zod/package.json +1 -1
  29. package/dist/BuildInfo.d.ts +17 -0
  30. package/dist/FileSystem.d.ts +26 -3
  31. package/dist/Module.d.ts +1 -13
  32. package/dist/MultiCompiler.d.ts +4 -1
  33. package/dist/MultiWatching.d.ts +1 -0
  34. package/dist/builtin-loader/swc/types.d.ts +315 -296
  35. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +3 -3
  36. package/dist/config/devServer.d.ts +10 -10
  37. package/dist/config/normalization.d.ts +2 -0
  38. package/dist/config/types.d.ts +17 -1
  39. package/dist/config/utils.d.ts +1 -0
  40. package/dist/config/zod.d.ts +1707 -1086
  41. package/dist/cssExtractLoader.js +5 -5
  42. package/dist/exports.d.ts +5 -2
  43. package/dist/index.js +1130 -982
  44. package/dist/loader-runner/index.d.ts +0 -9
  45. package/dist/swc.d.ts +2 -0
  46. package/dist/trace/index.d.ts +16 -18
  47. package/dist/worker.js +2 -2
  48. package/module.d.ts +1 -1
  49. package/package.json +10 -10
  50. package/compiled/tinypool/dist/chunk-6LX4VMOV.js +0 -31
  51. package/compiled/tinypool/dist/chunk-ACQHDOFQ.js +0 -12
  52. package/compiled/tinypool/dist/chunk-E2J7JLFN.js +0 -53
  53. package/compiled/tinypool/dist/chunk-UBWFVGJX.js +0 -38
@@ -0,0 +1,38 @@
1
+ import { pathToFileURL } from "node:url";
2
+
3
+ //#region src/entry/utils.ts
4
+ let importESMCached;
5
+ function getImportESM() {
6
+ if (importESMCached === void 0) importESMCached = new Function("specifier", "return import(specifier)");
7
+ return importESMCached;
8
+ }
9
+ const handlerCache = new Map();
10
+ async function getHandler(filename, name) {
11
+ let handler = handlerCache.get(`${filename}/${name}`);
12
+ if (handler !== void 0) return handler;
13
+ try {
14
+ const handlerModule = await import(filename);
15
+ handler = typeof handlerModule.default !== "function" && handlerModule.default || handlerModule;
16
+ if (typeof handler !== "function") handler = await handler[name];
17
+ } catch {}
18
+ if (typeof handler !== "function") {
19
+ handler = await getImportESM()(pathToFileURL(filename).href);
20
+ if (typeof handler !== "function") handler = await handler[name];
21
+ }
22
+ if (typeof handler !== "function") return null;
23
+ if (handlerCache.size > 1e3) {
24
+ const [handler$1] = handlerCache;
25
+ const key = handler$1[0];
26
+ handlerCache.delete(key);
27
+ }
28
+ handlerCache.set(`${filename}/${name}`, handler);
29
+ return handler;
30
+ }
31
+ function throwInNextTick(error) {
32
+ process.nextTick(() => {
33
+ throw error;
34
+ });
35
+ }
36
+
37
+ //#endregion
38
+ export { getHandler, throwInNextTick };
@@ -0,0 +1,10 @@
1
+ //#region src/utils.ts
2
+ function stdout() {
3
+ return console._stdout || process.stdout || void 0;
4
+ }
5
+ function stderr() {
6
+ return console._stderr || process.stderr || void 0;
7
+ }
8
+
9
+ //#endregion
10
+ export { stderr, stdout };
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "tinypool",
3
3
  "type": "module",
4
- "version": "1.0.2",
4
+ "version": "1.1.0",
5
+ "packageManager": "pnpm@9.0.6",
5
6
  "description": "A minimal and tiny Node.js Worker Thread Pool implementation, a fork of piscina, but with fewer features",
6
7
  "license": "MIT",
7
8
  "homepage": "https://github.com/tinylibs/tinypool#readme",
@@ -30,26 +31,9 @@
30
31
  "files": [
31
32
  "dist"
32
33
  ],
33
- "devDependencies": {
34
- "@types/node": "^20.12.8",
35
- "clean-publish": "^3.4.4",
36
- "eslint": "^9.4.0",
37
- "eslint-config-prettier": "^9.1.0",
38
- "eslint-plugin-prettier": "^5.1.3",
39
- "eslint-plugin-unicorn": "^53.0.0",
40
- "prettier": "^3.3.2",
41
- "tsup": "^8.0.2",
42
- "typescript": "^5.4.5",
43
- "typescript-eslint": "^7.13.0",
44
- "vite": "^5.2.11",
45
- "vitest": "^2.0.5"
46
- },
47
- "scripts": {
48
- "test": "vitest",
49
- "bench": "vitest bench",
50
- "dev": "tsup --watch",
51
- "build": "tsup",
52
- "lint": "eslint --max-warnings=0",
53
- "typecheck": "tsc --noEmit"
34
+ "pnpm": {
35
+ "overrides": {
36
+ "vitest>tinypool": "link:./"
37
+ }
54
38
  }
55
39
  }
@@ -32,7 +32,7 @@ export interface ZodType<out Output = unknown, out Input = unknown, out Internal
32
32
  nonoptional(params?: string | core.$ZodNonOptionalParams): ZodNonOptional<this>;
33
33
  nullable(): ZodNullable<this>;
34
34
  nullish(): ZodOptional<ZodNullable<this>>;
35
- default(def: util.NoUndefined<core.output<this>>): ZodDefault<this>;
35
+ default(def: core.output<this>): ZodDefault<this>;
36
36
  default(def: () => util.NoUndefined<core.output<this>>): ZodDefault<this>;
37
37
  prefault(def: () => core.input<this>): ZodPrefault<this>;
38
38
  prefault(def: core.input<this>): ZodPrefault<this>;
@@ -382,7 +382,7 @@ export interface ZodDate extends _ZodDate<core.$ZodDateInternals<Date>> {
382
382
  }
383
383
  export declare const ZodDate: core.$constructor<ZodDate>;
384
384
  export declare function date(params?: string | core.$ZodDateParams): ZodDate;
385
- export interface ZodArray<T extends core.SomeType = core.$ZodType> extends ZodType<any, any, core.$ZodArrayInternals<T>>, core.$ZodArray<T> {
385
+ export interface ZodArray<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodArrayInternals<T>>, core.$ZodArray<T> {
386
386
  element: T;
387
387
  min(minLength: number, params?: string | core.$ZodCheckMinLengthParams): this;
388
388
  nonempty(params?: string | core.$ZodCheckMinLengthParams): this;
@@ -476,7 +476,7 @@ export interface ZodMap<Key extends core.SomeType = core.$ZodType, Value extends
476
476
  }
477
477
  export declare const ZodMap: core.$constructor<ZodMap>;
478
478
  export declare function map<Key extends core.SomeType, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): ZodMap<Key, Value>;
479
- export interface ZodSet<T extends core.SomeType = core.$ZodType> extends ZodType<any, any, core.$ZodSetInternals<T>>, core.$ZodSet<T> {
479
+ export interface ZodSet<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodSetInternals<T>>, core.$ZodSet<T> {
480
480
  min(minSize: number, params?: string | core.$ZodCheckMinSizeParams): this;
481
481
  /** */
482
482
  nonempty(params?: string | core.$ZodCheckMinSizeParams): this;
@@ -485,7 +485,9 @@ export interface ZodSet<T extends core.SomeType = core.$ZodType> extends ZodType
485
485
  }
486
486
  export declare const ZodSet: core.$constructor<ZodSet>;
487
487
  export declare function set<Value extends core.SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodSet<Value>;
488
- export interface ZodEnum<out T extends util.EnumLike = util.EnumLike> extends _ZodType<core.$ZodEnumInternals<T>>, core.$ZodEnum<T> {
488
+ export interface ZodEnum<
489
+ /** @ts-ignore Cast variance */
490
+ out T extends util.EnumLike = util.EnumLike> extends _ZodType<core.$ZodEnumInternals<T>>, core.$ZodEnum<T> {
489
491
  enum: T;
490
492
  options: Array<T[keyof T]>;
491
493
  extract<const U extends readonly (keyof T)[]>(values: U, params?: string | core.$ZodEnumParams): ZodEnum<util.Flatten<Pick<T, U[number]>>>;
@@ -509,7 +511,7 @@ export interface ZodLiteral<T extends util.Primitive = util.Primitive> extends _
509
511
  value: T;
510
512
  }
511
513
  export declare const ZodLiteral: core.$constructor<ZodLiteral>;
512
- export declare function literal<const T extends Array<util.Literal>>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T[number]>;
514
+ export declare function literal<const T extends ReadonlyArray<util.Literal>>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T[number]>;
513
515
  export declare function literal<const T extends util.Literal>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T>;
514
516
  export interface ZodFile extends _ZodType<core.$ZodFileInternals>, core.$ZodFile {
515
517
  min(size: number, params?: string | core.$ZodCheckMinSizeParams): this;
@@ -601,19 +603,22 @@ export declare function superRefine<T>(fn: (arg: T, payload: RefinementCtx<T>) =
601
603
  type ZodInstanceOfParams = core.Params<ZodCustom, core.$ZodIssueCustom, "type" | "check" | "checks" | "fn" | "abort" | "error" | "params" | "path">;
602
604
  declare function _instanceof<T extends typeof util.Class>(cls: T, params?: ZodInstanceOfParams): ZodCustom<InstanceType<T>, InstanceType<T>>;
603
605
  export { _instanceof as instanceof };
604
- export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodPipe<ZodUnknown, ZodBoolean>;
605
- export type ZodJSONSchema = ZodUnion<[
606
+ export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodPipe<ZodPipe<ZodString, ZodTransform<boolean, string>>, ZodBoolean>;
607
+ type _ZodJSONSchema = ZodUnion<[
606
608
  ZodString,
607
609
  ZodNumber,
608
610
  ZodBoolean,
609
611
  ZodNull,
610
612
  ZodArray<ZodJSONSchema>,
611
613
  ZodRecord<ZodString, ZodJSONSchema>
612
- ]> & {
613
- _zod: {
614
- input: util.JSONType;
615
- output: util.JSONType;
616
- };
617
- };
614
+ ]>;
615
+ type _ZodJSONSchemaInternals = _ZodJSONSchema["_zod"];
616
+ export interface ZodJSONSchemaInternals extends _ZodJSONSchemaInternals {
617
+ output: util.JSONType;
618
+ input: util.JSONType;
619
+ }
620
+ export interface ZodJSONSchema extends _ZodJSONSchema {
621
+ _zod: ZodJSONSchemaInternals;
622
+ }
618
623
  export declare function json(params?: string | core.$ZodCustomParams): ZodJSONSchema;
619
- export declare function preprocess<A, U extends core.SomeType>(fn: (arg: unknown, ctx: RefinementCtx) => A, schema: U): ZodPipe<ZodTransform<A, unknown>, U>;
624
+ export declare function preprocess<A, U extends core.SomeType, B = unknown>(fn: (arg: B, ctx: RefinementCtx) => A, schema: U): ZodPipe<ZodTransform<A, B>, U>;
@@ -260,14 +260,15 @@ export interface $ZodStringBoolParams extends TypeParams {
260
260
  truthy?: string[];
261
261
  falsy?: string[];
262
262
  /**
263
- * Options `"sensitive"`, `"insensitive"`
263
+ * Options: `"sensitive"`, `"insensitive"`
264
264
  *
265
- * Defaults to `"insensitive"`
265
+ * @default `"insensitive"`
266
266
  */
267
267
  case?: "sensitive" | "insensitive" | undefined;
268
268
  }
269
269
  export declare function _stringbool(Classes: {
270
270
  Pipe?: typeof schemas.$ZodPipe;
271
271
  Boolean?: typeof schemas.$ZodBoolean;
272
- Unknown?: typeof schemas.$ZodUnknown;
273
- }, _params?: string | $ZodStringBoolParams): schemas.$ZodPipe<schemas.$ZodUnknown, schemas.$ZodBoolean<boolean>>;
272
+ Transform?: typeof schemas.$ZodTransform;
273
+ String?: typeof schemas.$ZodString;
274
+ }, _params?: string | $ZodStringBoolParams): schemas.$ZodPipe<schemas.$ZodPipe<schemas.$ZodString, schemas.$ZodTransform<boolean, string>>, schemas.$ZodBoolean<boolean>>;
@@ -27,7 +27,7 @@ export interface $ZodCheckLessThanDef extends $ZodCheckDef {
27
27
  }
28
28
  export interface $ZodCheckLessThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> {
29
29
  def: $ZodCheckLessThanDef;
30
- issc: errors.$ZodIssueTooSmall<T>;
30
+ issc: errors.$ZodIssueTooBig<T>;
31
31
  }
32
32
  export interface $ZodCheckLessThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> {
33
33
  _zod: $ZodCheckLessThanInternals<T>;
@@ -20,7 +20,7 @@ export type $brand<T extends string | number | symbol = string | number | symbol
20
20
  [k in T]: true;
21
21
  };
22
22
  };
23
- export type $ZodBranded<T extends schemas._$ZodType, Brand extends string | number | symbol> = T & Record<"_zod", Record<"output", output<T> & $brand<Brand>>>;
23
+ export type $ZodBranded<T extends schemas.SomeType, Brand extends string | number | symbol> = T & Record<"_zod", Record<"output", output<T> & $brand<Brand>>>;
24
24
  export declare class $ZodAsyncError extends Error {
25
25
  constructor();
26
26
  }
@@ -4,7 +4,9 @@ export declare const $output: unique symbol;
4
4
  export type $output = typeof $output;
5
5
  export declare const $input: unique symbol;
6
6
  export type $input = typeof $input;
7
- export type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.output<S> : Meta extends $input ? core.input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends object ? {
7
+ export type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.output<S> : Meta extends $input ? core.input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends (...args: infer P) => infer R ? (...args: {
8
+ [K in keyof P]: $replace<P[K], S>;
9
+ }) => $replace<R, S> : Meta extends object ? {
8
10
  [K in keyof Meta]: $replace<Meta[K], S>;
9
11
  } : Meta;
10
12
  type MetadataType = Record<string, unknown> | undefined;
@@ -78,13 +78,15 @@ export interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$Z
78
78
  input: I;
79
79
  }
80
80
  export type $ZodStandardSchema<T> = StandardSchemaV1.Props<core.input<T>, core.output<T>>;
81
- export interface _$ZodType<T extends _$ZodTypeInternals = _$ZodTypeInternals> {
82
- _zod: T;
83
- }
84
- export type SomeType = _$ZodType;
85
- export interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> extends _$ZodType<Internals> {
81
+ export type SomeType = {
82
+ _zod: _$ZodTypeInternals;
83
+ };
84
+ export interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
85
+ _zod: Internals;
86
86
  "~standard": $ZodStandardSchema<this>;
87
87
  }
88
+ export interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {
89
+ }
88
90
  export declare const $ZodType: core.$constructor<$ZodType>;
89
91
  export { clone } from "./util.js";
90
92
  export interface $ZodStringDef extends $ZodTypeDef {
@@ -106,8 +108,7 @@ export interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, In
106
108
  contentEncoding: string;
107
109
  }>;
108
110
  }
109
- export interface $ZodString<Input = unknown> extends $ZodType {
110
- _zod: $ZodStringInternals<Input>;
111
+ export interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {
111
112
  }
112
113
  export declare const $ZodString: core.$constructor<$ZodString>;
113
114
  export interface $ZodStringFormatDef<Format extends checks.$ZodStringFormats = checks.$ZodStringFormats> extends $ZodStringDef, checks.$ZodCheckStringFormatDef<Format> {
@@ -509,29 +510,9 @@ export interface $ZodArrayInternals<T extends SomeType = $ZodType> extends $ZodT
509
510
  def: $ZodArrayDef<T>;
510
511
  isst: errors.$ZodIssueInvalidType;
511
512
  }
512
- export interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType {
513
- _zod: $ZodArrayInternals<T>;
513
+ export interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<core.output<T>[], core.input<T>[], $ZodArrayInternals<T>> {
514
514
  }
515
515
  export declare const $ZodArray: core.$constructor<$ZodArray>;
516
- export type $ZodShape = Readonly<{
517
- [k: string]: $ZodType;
518
- }>;
519
- export interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
520
- type: "object";
521
- shape: Shape;
522
- catchall?: $ZodType | undefined;
523
- }
524
- export interface $ZodObjectInternals<
525
- /** @ts-ignore Cast variance */
526
- out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
527
- def: $ZodObjectDef<Shape>;
528
- config: Config;
529
- isst: errors.$ZodIssueInvalidType | errors.$ZodIssueUnrecognizedKeys;
530
- propValues: util.PropValues;
531
- output: $InferObjectOutput<Shape, Config["out"]>;
532
- input: $InferObjectInput<Shape, Config["in"]>;
533
- }
534
- export type $ZodLooseShape = Record<string, any>;
535
516
  type OptionalOutSchema = {
536
517
  _zod: {
537
518
  optout: "optional";
@@ -542,21 +523,15 @@ type OptionalInSchema = {
542
523
  optin: "optional";
543
524
  };
544
525
  };
545
- export type $InferObjectOutputFallback<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
546
- -readonly [k in keyof T]: core.output<T[k]>;
547
- } & Extra>;
548
- export type $InferObjectInputFallback<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
549
- -readonly [k in keyof T]: core.input<T[k]>;
550
- } & Extra>;
551
526
  export type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
552
- -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: core.output<T[k]>;
527
+ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"];
553
528
  } & {
554
- -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: core.output<T[k]>;
529
+ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"];
555
530
  } & Extra>;
556
531
  export type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
557
- -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: core.input<T[k]>;
532
+ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"];
558
533
  } & {
559
- -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: core.input<T[k]>;
534
+ -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"];
560
535
  } & Extra>;
561
536
  export type $ZodObjectConfig = {
562
537
  out: Record<string, unknown>;
@@ -574,7 +549,7 @@ export type $strip = {
574
549
  out: {};
575
550
  in: {};
576
551
  };
577
- export type $catchall<T extends _$ZodType> = {
552
+ export type $catchall<T extends SomeType> = {
578
553
  out: {
579
554
  [k: string]: core.output<T>;
580
555
  };
@@ -582,6 +557,25 @@ export type $catchall<T extends _$ZodType> = {
582
557
  [k: string]: core.input<T>;
583
558
  };
584
559
  };
560
+ export type $ZodShape = Readonly<{
561
+ [k: string]: $ZodType;
562
+ }>;
563
+ export interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
564
+ type: "object";
565
+ shape: Shape;
566
+ catchall?: $ZodType | undefined;
567
+ }
568
+ export interface $ZodObjectInternals<
569
+ /** @ts-ignore Cast variance */
570
+ out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
571
+ def: $ZodObjectDef<Shape>;
572
+ config: Config;
573
+ isst: errors.$ZodIssueInvalidType | errors.$ZodIssueUnrecognizedKeys;
574
+ propValues: util.PropValues;
575
+ output: $InferObjectOutput<Shape, Config["out"]>;
576
+ input: $InferObjectInput<Shape, Config["in"]>;
577
+ }
578
+ export type $ZodLooseShape = Record<string, any>;
585
579
  export interface $ZodObject<
586
580
  /** @ts-ignore Cast variance */
587
581
  out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {
@@ -70,9 +70,9 @@ export declare class JSONSchemaGenerator {
70
70
  process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema;
71
71
  emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema;
72
72
  }
73
- interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, never> {
73
+ interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
74
74
  }
75
- interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, never> {
75
+ interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
76
76
  uri?: (id: string) => string;
77
77
  }
78
78
  export declare function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema;
@@ -131,7 +131,7 @@ export declare function isObject(data: any): data is Record<PropertyKey, unknown
131
131
  export declare const allowsEval: {
132
132
  value: boolean;
133
133
  };
134
- export declare function isPlainObject(data: any): data is Record<PropertyKey, unknown>;
134
+ export declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;
135
135
  export declare function numKeys(data: any): number;
136
136
  export declare const getParsedType: (data: any) => ParsedTypes;
137
137
  export declare const propertyKeyTypes: Set<string>;
@@ -22,6 +22,7 @@ export { default as ms } from "./ms.js";
22
22
  export { default as nl } from "./nl.js";
23
23
  export { default as no } from "./no.js";
24
24
  export { default as ota } from "./ota.js";
25
+ export { default as ps } from "./ps.js";
25
26
  export { default as pl } from "./pl.js";
26
27
  export { default as pt } from "./pt.js";
27
28
  export { default as ru } from "./ru.js";
@@ -0,0 +1,4 @@
1
+ import type * as errors from "../core/errors.js";
2
+ export default function (): {
3
+ localeError: errors.$ZodErrorMap;
4
+ };