github Effect-TS/effect effect@2.3.8

latest releases: @effect/sql-sqlite-wasm@0.21.1, @effect/sql-sqlite-bun@0.21.8, @effect/sql-libsql@0.9.8...
9 months ago

Patch Changes

  • #2167 5ad2eec Thanks @tim-smart! - add Hash.cached

    This api assists with adding a layer of caching, when hashing immutable data structures.

    import { Data, Hash } from "effect";
    
    class User extends Data.Class<{
      id: number;
      name: string;
    }> {
      [Hash.symbol]() {
        return Hash.cached(this, Hash.string(`${this.id}-${this.name}`));
      }
    }
  • #2187 e6d36c0 Thanks @tim-smart! - update development dependencies

Don't miss a new effect release

NewReleases is sending notifications on new releases.