Packages

effect

4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.3

19 Apr 2024Where it was published

3.22.5 is the newest release of 3.x.

In short

1 new

Security

2 advisories affect 3.0.3; 3.22.1 fixes them

Release note

Patch Changes

  • Add Match.withReturnType api

    Which can be used to constrain the return type of a match expression.

    import { Match } from "effect";
    
    Match.type<string>().pipe(
      Match.withReturnType<string>(),
      Match.when("foo", () => "foo"), // valid
      Match.when("bar", () => 123), // type error
      Match.else(() => "baz"),
    );

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.