@temporary-name/zod 1.9.3-alpha.cf2fe368e72e6a6ab0ce041b812dbf8134f70b0b → 1.9.3-alpha.d751d322a9d105467b863db2bab6037dd277fd56

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/dist/index.d.mts CHANGED
@@ -186,17 +186,6 @@ interface KrustyType<out Output = unknown, out Input = unknown, out Internals ex
186
186
  or<T extends core.SomeType>(option: T): ZodUnion<[this, T], KInternals>;
187
187
  and<T extends core.SomeType>(incoming: T): ZodIntersection<this, T, KInternals>;
188
188
  transform<NewOut>(transform: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, core.output<this>>, KInternals>;
189
- catch(def: core.output<this>): ZodCatch<this, KInternals>;
190
- catch(def: (ctx: core.$ZodCatchCtx) => core.output<this>): ZodCatch<this, KInternals>;
191
- pipe<T extends core.$ZodType<any, core.output<this>>>(target: T | core.$ZodType<any, core.output<this>>): ZodPipe<this, T, KInternals>;
192
- readonly(): ZodReadonly<this, KInternals>;
193
- /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
194
- describe(description: string): this;
195
- description?: string;
196
- /** Returns the metadata associated with this instance in `z.globalRegistry` */
197
- meta(): core.$replace<core.GlobalMeta, this> | undefined;
198
- /** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
199
- meta(data: core.$replace<core.GlobalMeta, this>): this;
200
189
  }
201
190
  declare const KrustyType: core.$constructor<KrustyType>;
202
191
  interface _ZodString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
package/dist/index.d.ts CHANGED
@@ -186,17 +186,6 @@ interface KrustyType<out Output = unknown, out Input = unknown, out Internals ex
186
186
  or<T extends core.SomeType>(option: T): ZodUnion<[this, T], KInternals>;
187
187
  and<T extends core.SomeType>(incoming: T): ZodIntersection<this, T, KInternals>;
188
188
  transform<NewOut>(transform: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, core.output<this>>, KInternals>;
189
- catch(def: core.output<this>): ZodCatch<this, KInternals>;
190
- catch(def: (ctx: core.$ZodCatchCtx) => core.output<this>): ZodCatch<this, KInternals>;
191
- pipe<T extends core.$ZodType<any, core.output<this>>>(target: T | core.$ZodType<any, core.output<this>>): ZodPipe<this, T, KInternals>;
192
- readonly(): ZodReadonly<this, KInternals>;
193
- /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
194
- describe(description: string): this;
195
- description?: string;
196
- /** Returns the metadata associated with this instance in `z.globalRegistry` */
197
- meta(): core.$replace<core.GlobalMeta, this> | undefined;
198
- /** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
199
- meta(data: core.$replace<core.GlobalMeta, this>): this;
200
189
  }
201
190
  declare const KrustyType: core.$constructor<KrustyType>;
202
191
  interface _ZodString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
package/dist/index.mjs CHANGED
@@ -418,28 +418,6 @@ const KrustyType = /* @__PURE__ */ core.$constructor(
418
418
  inst.transform = (tx) => pipe(inst, transform(tx));
419
419
  inst.default = (def2) => _default(inst, def2);
420
420
  inst.prefault = (def2) => prefault(inst, def2);
421
- inst.catch = (params) => _catch(inst, params);
422
- inst.pipe = (target) => pipe(inst, target);
423
- inst.readonly = () => readonly(inst);
424
- inst.describe = (description) => {
425
- const cl = inst.clone();
426
- core.globalRegistry.add(cl, { description });
427
- return cl;
428
- };
429
- Object.defineProperty(inst, "description", {
430
- get() {
431
- return core.globalRegistry.get(inst)?.description;
432
- },
433
- configurable: true
434
- });
435
- inst.meta = (...args) => {
436
- if (args.length === 0) {
437
- return core.globalRegistry.get(inst);
438
- }
439
- const cl = inst.clone();
440
- core.globalRegistry.add(cl, args[0]);
441
- return cl;
442
- };
443
421
  return inst;
444
422
  }
445
423
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@temporary-name/zod",
3
3
  "type": "module",
4
- "version": "1.9.3-alpha.cf2fe368e72e6a6ab0ce041b812dbf8134f70b0b",
4
+ "version": "1.9.3-alpha.d751d322a9d105467b863db2bab6037dd277fd56",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.stainless.com/",
7
7
  "repository": {
@@ -28,14 +28,14 @@
28
28
  "dist"
29
29
  ],
30
30
  "peerDependencies": {
31
- "@temporary-name/contract": "1.9.3-alpha.cf2fe368e72e6a6ab0ce041b812dbf8134f70b0b",
32
- "@temporary-name/server": "1.9.3-alpha.cf2fe368e72e6a6ab0ce041b812dbf8134f70b0b"
31
+ "@temporary-name/contract": "1.9.3-alpha.d751d322a9d105467b863db2bab6037dd277fd56",
32
+ "@temporary-name/server": "1.9.3-alpha.d751d322a9d105467b863db2bab6037dd277fd56"
33
33
  },
34
34
  "dependencies": {
35
35
  "escape-string-regexp": "^5.0.0",
36
36
  "wildcard-match": "^5.1.3",
37
37
  "zod": "^4.1.11",
38
- "@temporary-name/shared": "1.9.3-alpha.cf2fe368e72e6a6ab0ce041b812dbf8134f70b0b"
38
+ "@temporary-name/shared": "1.9.3-alpha.d751d322a9d105467b863db2bab6037dd277fd56"
39
39
  },
40
40
  "devDependencies": {},
41
41
  "scripts": {