Packages

effect

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

Upgrading effect From 3.22.5 to 4.0.0

1 release in betweenevery note read

Other targets from 3.22.5Latest4.1.4
  1. 3.22.5yours
  2. 4.0.0target
  3. 30 pre

Start here

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0-beta.102
  • Breaking4.0.0-beta.102
  • Breaking4.0.0-beta.102
  • Breaking4.0.0-beta.102
  • Breaking4.0.0-beta.102
  • Breaking4.0.0-beta.102
  • Breaking4.0.0-beta.102
  • Breaking4.0.0-beta.102
  • Breaking4.0.0-beta.102

Release by release

  1. 4.0.0

    Migration needed1 Oct 20262 new · 20 fixes
    • Breaking

      APIs tagged @stability unstable may have breaking changes in minor releases.

    • New

      Speed up JIT and AOT Schema decoding of transformations whose source has checks, such as a pattern-checked string decoded to a number. Fix compiled TemplateLiteral validation to enforce oneOf parts and preserve interpreter diagnostics when templates appear in transformation chains.

    • New

      Add succeedEffect, failEffect, and verifyRoundTripEffect to TestSchema so assertions can use the calling Effect's services, test clock, and interruption, and mark the module and its public APIs as unstable. Preserve defects and interruption when they occur alongside schema validation failures. Rename verifyLosslessTransformation to verifyRoundTrip; existing callers must update to the new name.

    • Fixed

      Restrict Schema.brand to a single concrete identifier and require Schema.fromBrand to use the constructor's sole brand key. Apply brand or fromBrand repeatedly when composing distinct brands. For enum brand keys, pass the enum member instead of its string value.

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.