Repository navigation
effect@3.14.22
·
5821 commits
to main
since this release
Patch Changes
-
#4847
24a9ebbThanks @gcanti! - Schema: TaggedError no longer crashes when themessagefield is explicitly defined.If you define a
messagefield in your schema,TaggedErrorwill no longer add its ownmessagegetter. This avoids a stack overflow caused by infinite recursion.Before
import { Schema } from "effect" class Todo extends Schema.TaggedError<Todo>()("Todo", { message: Schema.optional(Schema.String) }) {} // ❌ Throws "Maximum call stack size exceeded" console.log(Todo.make({}))
After
// ✅ Works correctly console.log(Todo.make({}))