Packages

effect

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

Your version

3.13.2

18 Feb 2025Where it was published

3.22.5 is the newest release of 3.x.

In short

1 fixed

Security

2 advisories affect 3.13.2; 3.22.1 fixes them

Release note

Patch Changes

  • Fix Schema.Enums toString() method to display correct enum values.

    Now, toString() correctly displays the actual enum values instead of internal numeric indices.

    Before

    import { Schema } from "effect"
    
    enum Fruits {
      Apple = "apple",
      Banana = "banana",
      Cantaloupe = 0
    }
    
    const schema = Schema.Enums(Fruits)
    
    console.log(String(schema))
    // Output: <enum 3 value(s): 0 | 1 | 2> ❌ (incorrect)

    After

    import { Schema } from "effect"
    
    enum Fruits {
      Apple = "apple",
      Banana = "banana",
      Cantaloupe = 0
    }
    
    const schema = Schema.Enums(Fruits)
    
    console.log(String(schema))
    // Output: <enum 3 value(s): "apple" | "banana" | 0> ✅ (correct)

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.