Patch Changes
-
#2167
5ad2eec
Thanks @tim-smart! - add Hash.cachedThis 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