Repository navigation
v0.70.0
Minor Changes
-
#618
ed689f8Thanks @mattiamanzati! - ImproveglobalErrorInEffectFailurediagnostic to detect global Error type in any Effect failure channel.The diagnostic now works by finding
new Error()expressions and checking if they end up in an Effect's failure channel, rather than only checkingEffect.failcalls. This means it will now detect global Error usage in:Effect.fail(new Error(...))Effect.genfunctions that fail with global ErrorEffect.mapErrorconverting to global ErrorEffect.flatMapchains that include global Error
The diagnostic now reports at the
new Error()location for better precision.
Patch Changes
-
#616
b32da44Thanks @mattiamanzati! - ImprovemissedPipeableOpportunitydiagnostic message to show the suggested subject for.pipe(...).Before:
Nested function calls can be converted to pipeable style for better readability.After:
Nested function calls can be converted to pipeable style for better readability; consider using addOne(5).pipe(...) instead.