Repository navigation
effect@2.3.2
Patch Changes
-
#2096
6654f5fThanks @tim-smart! - default toneverfor Runtime returning functionsThis includes:
- Effect.runtime
- FiberSet.makeRuntime
It prevents
unknownfrom creeping into types, as well asneverbeing a
useful default type for propogating Fiber Refs and other context. -
#2094
2eb11b4Thanks @tim-smart! - revert some type param adjustments in FiberSetmakeRuntimenow has the R parameter first again.Default to
unknownfor the A and E parameters instead of never. -
#2103
56c09bdThanks @patroza! - Expand Either and OptionandThento support themapcase like Effects'andThenFor 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
71aa5b1Thanks @ethanniser! - removed./internal/timeoutand replaced all usages withsetTimeoutdirectlypreviously 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 theisBuncheck is no longer needed
as such the timeout module is also no longer needed -
#2099
1700af8Thanks @tim-smart! - optimize Effect.zip{Left,Right}for the sequential case, avoid using Effect.all internally