Patch Changes
-
#2096
6654f5f
Thanks @tim-smart! - default tonever
for Runtime returning functionsThis includes:
- Effect.runtime
- FiberSet.makeRuntime
It prevents
unknown
from creeping into types, as well asnever
being a
useful default type for propogating Fiber Refs and other context. -
#2094
2eb11b4
Thanks @tim-smart! - revert some type param adjustments in FiberSetmakeRuntime
now has the R parameter first again.Default to
unknown
for the A and E parameters instead of never. -
#2103
56c09bd
Thanks @patroza! - Expand Either and OptionandThen
to support themap
case like Effects'andThen
For example:
expect(pipe(Either.right(1), Either.andThen(2))).toStrictEqual( Either.right(2), ); expect( pipe( Either.right(1), Either.andThen(() => 2), ), ).toStrictEqual(Either.right(2)); expect(pipe(Option.some(1), Option.andThen(2))).toStrictEqual(Option.some(2)); expect( pipe( Option.some(1), Option.andThen(() => 2), ), ).toStrictEqual(Option.some(2));
-
#2098
71aa5b1
Thanks @ethanniser! - removed./internal/timeout
and replaced all usages withsetTimeout
directlypreviously it was required to abstract away conditionally solving an bun had an issue with
setTimeout
, that caused incorrect behavior
that bug has since been fixed, and theisBun
check is no longer needed
as such the timeout module is also no longer needed -
#2099
1700af8
Thanks @tim-smart! - optimize Effect.zip{Left,Right}for the sequential case, avoid using Effect.all internally