github Effect-TS/effect effect@2.3.7

latest releases: @effect/schema@0.68.14, @effect/sql-sqlite-wasm@0.3.16, @effect/sql-sqlite-react-native@0.6.16...
4 months ago

Patch Changes

  • #2142 bc8404d Thanks @mikearnaldi! - 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
  • #2159 2c5cbcd Thanks @IMax153! - Avoid incrementing cache hits for expired entries

  • #2165 6565916 Thanks @tim-smart! - fix Hash implemention for Option.none

Don't miss a new effect release

NewReleases is sending notifications on new releases.