Packages

effect

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

Your version

2.3.7

18 Feb 2024Where it was published

2.4.19 is the newest release of 2.x.

In short

1 new2 fixed

Security

2 advisories affect 2.3.7; 3.22.1 fixes them

Release note

Patch Changes

  • Expose version control via ModuleVersion.

    This enables low level framework authors to run their own effect version which won't conflict with any other effect versions running on the same process.

    Imagine cases where for example a function runtime is built on effect, we don't want lifecycle of the runtime to clash with lifecycle of user-land provided code.

    To manually control the module version one can use:

    import * as ModuleVersion from "effect/ModuleVersion";
    
    ModuleVersion.setCurrentVersion(
      `my-effect-runtime-${ModuleVersion.getCurrentVersion()}`,
    );

    Note that this code performs side effects and should be executed before any module is imported ideally via an init script.

    The resulting order of execution has to be:

    import * as ModuleVersion from "effect/ModuleVersion";
    
    ModuleVersion.setCurrentVersion(
      `my-effect-runtime-${ModuleVersion.getCurrentVersion()}`,
    );
    
    import { Effect } from "effect";
    
    // rest of code
  • Avoid incrementing cache hits for expired entries

  • Fix Hash implemention for Option.none

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.