Effect 3.2 (Release)
Effect 3.2.0 has been released! This release includes a number of new features and improvements. Here’s a summary of what’s new:
These functions allow you to calculate the difference between two Chunk
’s. This
can be useful when you want to know what elements are in one chunk but not in
another.
Tracing spans now capture their source location. This can be useful when debugging and trying to understand where a span was created. It will also add the source location to any errors created within the span.
To disable this feature, pass captureStackTrace: false
to the Effect.withSpan
options:
You can use this to extract Error instances from a Cause, that have clean stack traces and have had span information added to them.
This can be useful when integrating Effect with other libraries that expect Error instances.
This api allows you to define an effectful function that is wrapped with a span.
You can also use the function arguments to generate the span options.
Do notation has been added to the Array
module, for building up arrays in a
sequential manner.
To convert a Stream
to a ReadableStream
, that supports using Effect
context / requirements, you can use the Stream.toReadableStreamEffect
or
Stream.toReadableStreamRuntime
function.
The $is
and $match
helpers have been added to the
Data.TaggedEnum.WithGenerics
constructors. You can use these apis to perform
type-safe checks and pattern matching.
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!