Skip to content

Commit 93f296d

Browse files
committed
Fix error name issue
1 parent ce61025 commit 93f296d

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

packages/zod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zod",
3-
"version": "3.25.24-canary.0",
3+
"version": "3.25.24",
44
"type": "module",
55
"author": "Colin McDonnell <[email protected]>",
66
"description": "TypeScript-first schema declaration and validation library with static type inference",

packages/zod/src/v4/classic/tests/error.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ test("error serialization", () => {
683683
try {
684684
z.string().parse(123);
685685
} catch (e) {
686+
console.dir(e, { depth: null });
686687
expect(e).toMatchInlineSnapshot(`
687688
[ZodError: [
688689
{

packages/zod/src/v4/core/core.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,6 @@ export /*@__NO_SIDE_EFFECTS__*/ function $constructor<T extends ZodTrait, D = T[
3232
inst._zod.def = def;
3333
}
3434

35-
// function construct(instance: any, def: D) {
36-
// init(instance, def);
37-
// instance._zod.deferred ??= [];
38-
// for (const fn of instance._zod.deferred) {
39-
// fn();
40-
// }
41-
// return instance;
42-
// }
43-
44-
// const Parent = params?.Parent ?? Object;
45-
// class Definition extends Parent {}
46-
47-
// function _(this: any, def: D) {
48-
// if (params?.Parent) {
49-
// return construct(new Definition(), def);
50-
// }
51-
52-
// return construct(this, def);
53-
// }
54-
5535
// doesn't work if Parent has a constructor with arguments
5636
const Parent = params?.Parent ?? Object;
5737
class Definition extends Parent {}

0 commit comments

Comments
 (0)