Packages

effect

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

Your version

2.2.5

7 Feb 2024Where it was published

2.4.19 is the newest release of 2.x.

In short

2 new

Security

2 advisories affect 2.2.5; 3.22.1 fixes them

Release note

Patch Changes

  • Add apis for manipulating context to the Runtime module

    These include:

    • Runtime.updateContext for modifying the Context directly

    • Runtime.provideService for adding services to an existing Runtime

    Example:

    import { Context, Runtime } from "effect";
    
    interface Name {
      readonly _: unique symbol;
    }
    const Name = Context.Tag<Name, string>("Name");
    
    const runtime: Runtime.Runtime<Name> = Runtime.defaultRuntime.pipe(
      Runtime.provideService(Name, "John"),
    );
  • Add apis for patching runtime flags to the Runtime module

    The apis include:

    • Runtime.updateRuntimeFlags for updating all the flags at once

    • Runtime.enableRuntimeFlag for enabling a single runtime flag

    • Runtime.disableRuntimeFlag for disabling a single runtime flag

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.