Packages

effect

4.1.4 · 11 Nov 2026MIT67.1M / weekRepositoryHomepagenpmAtom feed

Your version

3.14.22

9 May 2025Where it was published

3.22.5 is the newest release of 3.x.

In short

1 fixed

Security

2 advisories affect 3.14.22; 3.22.1 fixes them

Release note

Patch Changes

  • Schema: TaggedError no longer crashes when the message field is explicitly defined.

    If you define a message field in your schema, TaggedError will no longer add its own message getter. 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({}))

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.