effect@3.3.0
Minor Changes
-
#2837
9305b76Thanks @mattrossman! - Add queuing strategy option for Stream.toReadableStream -
#2837
0f40d98Thanks @tim-smart! - addtimeToLiveStrategytoPooloptionsThe
timeToLiveStrategydetermines how items are invalidated. If set to
"creation", then items are invalidated based on their creation time. If set
to "usage", then items are invalidated based on pool usage.By default, the
timeToLiveStrategyis set to "usage". -
#2837
b761ef0Thanks @tim-smart! - add Layer.annotateLogs & Layer.annotateSpansThis allows you to add log & span annotation to a Layer.
import { Effect, Layer } from "effect"; Layer.effectDiscard(Effect.log("hello")).pipe( Layer.annotateLogs({ service: "my-service", }), );
-
#2837
b53f69bThanks @dilame! - Types: implementTupleOfandTupleOfAtLeasttypesPredicate: implement
isTupleOfandisTupleOfAtLeasttype guards -
#2837
0f40d98Thanks @tim-smart! - addconcurrency&targetUtilizationoption toPool.make&Pool.makeWithTTLThis option allows you to specify the level of concurrent access per pool item.
I.e. settingconcurrency: 2will allow each pool item to be in use by 2 concurrent tasks.targetUtilizationdetermines when to create new pool items. It is a value
between 0 and 1, where 1 means only create new pool items when all the existing
items are fully utilized.A
targetUtilizationof 0.5 will create new pool items when the existing items are
50% utilized. -
#2837
5bd549eThanks @KhraksMamtsov! - Supportthisargument for{STM, Either, Option}.gen -
#2837
67f160aThanks @KhraksMamtsov! - IntroducedRedacted<out T = string>module -Secretgeneralization
Secret extends Redacted
The use of theRedactedhas been replaced by the use of theRedactedin packages with version0.*.*