Repository navigation
effect@2.2.5
·
7804 commits
to main
since this release
Patch Changes
-
#2075
3ddfdbfThanks @tim-smart! - add apis for manipulating context to the Runtime moduleThese include:
Runtime.updateContextfor modifying theContextdirectlyRuntime.provideServicefor 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"), );
-
#2075
3ddfdbfThanks @tim-smart! - add apis for patching runtime flags to the Runtime moduleThe apis include:
Runtime.updateRuntimeFlagsfor updating all the flags at onceRuntime.enableRuntimeFlagfor enabling a single runtime flagRuntime.disableRuntimeFlagfor disabling a single runtime flag