Effect 3.1 (Release)
Effect 3.1.0 has been released! This release includes a number of new features and improvements. Here’s a summary of what’s new:
This new api allows you to create a Stream
from an EventTarget
:
@effect/platform-browser/BrowserStream
has also been added, with fromEventListenerWindow
& fromEventListenerDocument
apis.
A new timeout api has been added, which returns the result of the wrapped Effect as an Option
.
If the wrapped Effect times out, a Option.None
is returned - otherwise the result is wrapped with Option.Some
.
Tracing spans now include a kind
field, which is used to indicate the type of system that generated the span.
For example, @effect/platform/HttpServer
will generate spans with a kind
of server
. While @effect/platform/HttpClient
will generate spans with a kind
of client
.
Http.multipart.filesSchema
has been renamed toHttp.multipart.FilesSchema
Http.multipart.FileSchema
is now exportedHttp.multipart.SingleFileSchema
has been added
A new api has been added to Effect
which allows you to annotate logs during the lifetime of a Scope.
$is
& $match
helpers have been added to Data.TaggedEnum
constructors.
A type helper has been added, which transforms a type into a deeply mutable version.
SortedMap.lastOption
has been addedSortedMap.partition
has been added
There were several other smaller changes made. Take a look through the CHANGELOG to see them all: CHANGELOG.
Don’t forget to join our Discord Community to follow the last updates and discuss every tiny detail!