Skip to content

Commit

Permalink
add Micro module (#2884)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Jun 20, 2024
1 parent fc11ae1 commit 984d516
Show file tree
Hide file tree
Showing 8 changed files with 4,896 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .changeset/swift-ties-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"effect": minor
---

add Micro module

A lightweight alternative to Effect, for when bundle size really matters.

At a minimum, Micro adds 5kb gzipped to your bundle, and scales with the amount
of features you use.
2 changes: 1 addition & 1 deletion packages/effect/src/Cause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export interface CauseReducer<in C, in E, in out Z> {
*/
export interface YieldableError extends Pipeable, Inspectable, Readonly<Error> {
readonly [Effect.EffectTypeId]: Effect.Effect.VarianceStruct<never, this, never>
readonly [Stream.StreamTypeId]: Effect.Effect.VarianceStruct<never, this, never>
readonly [Stream.StreamTypeId]: Stream.Stream.VarianceStruct<never, this, never>
readonly [Sink.SinkTypeId]: Sink.Sink.VarianceStruct<never, unknown, never, this, never>
readonly [Channel.ChannelTypeId]: Channel.Channel.VarianceStruct<never, unknown, this, unknown, never, unknown, never>
[Symbol.iterator](): Effect.EffectGenerator<Effect.Effect<never, this, never>>
Expand Down
Loading

0 comments on commit 984d516

Please sign in to comment.