@typed/fx 1.31.0 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +344 -2
- package/dist/Fx/Fx.d.ts +96 -0
- package/dist/Fx/Fx.d.ts.map +1 -0
- package/dist/Fx/Fx.js +35 -0
- package/dist/Fx/TypeId.d.ts +20 -0
- package/dist/Fx/TypeId.d.ts.map +1 -0
- package/dist/Fx/TypeId.js +15 -0
- package/dist/Fx/combinators/catch.d.ts +53 -0
- package/dist/Fx/combinators/catch.d.ts.map +1 -0
- package/dist/Fx/combinators/catch.js +69 -0
- package/dist/Fx/combinators/causes.d.ts +12 -0
- package/dist/Fx/combinators/causes.d.ts.map +1 -0
- package/dist/Fx/combinators/causes.js +16 -0
- package/dist/Fx/combinators/compact.d.ts +12 -0
- package/dist/Fx/combinators/compact.d.ts.map +1 -0
- package/dist/Fx/combinators/compact.js +11 -0
- package/dist/Fx/combinators/continueWith.d.ts +51 -0
- package/dist/Fx/combinators/continueWith.d.ts.map +1 -0
- package/dist/Fx/combinators/continueWith.js +41 -0
- package/dist/Fx/combinators/ensuring.d.ts +16 -0
- package/dist/Fx/combinators/ensuring.d.ts.map +1 -0
- package/dist/Fx/combinators/ensuring.js +13 -0
- package/dist/Fx/combinators/exhaustLatestMap.d.ts +15 -0
- package/dist/Fx/combinators/exhaustLatestMap.d.ts.map +1 -0
- package/dist/Fx/combinators/exhaustLatestMap.js +48 -0
- package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts +13 -0
- package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/exhaustLatestMapEffect.js +14 -0
- package/dist/Fx/combinators/exhaustMap.d.ts +11 -0
- package/dist/Fx/combinators/exhaustMap.d.ts.map +1 -0
- package/dist/Fx/combinators/exhaustMap.js +19 -0
- package/dist/Fx/combinators/exhaustMapEffect.d.ts +11 -0
- package/dist/Fx/combinators/exhaustMapEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/exhaustMapEffect.js +12 -0
- package/dist/Fx/combinators/exit.d.ts +12 -0
- package/dist/Fx/combinators/exit.d.ts.map +1 -0
- package/dist/Fx/combinators/exit.js +11 -0
- package/dist/Fx/combinators/filter.d.ts +14 -0
- package/dist/Fx/combinators/filter.d.ts.map +1 -0
- package/dist/Fx/combinators/filter.js +12 -0
- package/dist/Fx/combinators/filterEffect.d.ts +15 -0
- package/dist/Fx/combinators/filterEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/filterEffect.js +12 -0
- package/dist/Fx/combinators/filterMap.d.ts +15 -0
- package/dist/Fx/combinators/filterMap.d.ts.map +1 -0
- package/dist/Fx/combinators/filterMap.js +12 -0
- package/dist/Fx/combinators/filterMapEffect.d.ts +16 -0
- package/dist/Fx/combinators/filterMapEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/filterMapEffect.js +12 -0
- package/dist/Fx/combinators/filterMapLoop.d.ts +17 -0
- package/dist/Fx/combinators/filterMapLoop.d.ts.map +1 -0
- package/dist/Fx/combinators/filterMapLoop.js +14 -0
- package/dist/Fx/combinators/filterMapLoopCause.d.ts +18 -0
- package/dist/Fx/combinators/filterMapLoopCause.d.ts.map +1 -0
- package/dist/Fx/combinators/filterMapLoopCause.js +14 -0
- package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts +18 -0
- package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/filterMapLoopCauseEffect.js +13 -0
- package/dist/Fx/combinators/filterMapLoopEffect.d.ts +17 -0
- package/dist/Fx/combinators/filterMapLoopEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/filterMapLoopEffect.js +13 -0
- package/dist/Fx/combinators/flatMap.d.ts +23 -0
- package/dist/Fx/combinators/flatMap.d.ts.map +1 -0
- package/dist/Fx/combinators/flatMap.js +21 -0
- package/dist/Fx/combinators/flatMapConcurrently.d.ts +12 -0
- package/dist/Fx/combinators/flatMapConcurrently.d.ts.map +1 -0
- package/dist/Fx/combinators/flatMapConcurrently.js +22 -0
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts +12 -0
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.js +13 -0
- package/dist/Fx/combinators/flatMapEffect.d.ts +24 -0
- package/dist/Fx/combinators/flatMapEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/flatMapEffect.js +14 -0
- package/dist/Fx/combinators/flip.d.ts +11 -0
- package/dist/Fx/combinators/flip.d.ts.map +1 -0
- package/dist/Fx/combinators/flip.js +11 -0
- package/dist/Fx/combinators/gen.d.ts +20 -0
- package/dist/Fx/combinators/gen.d.ts.map +1 -0
- package/dist/Fx/combinators/gen.js +14 -0
- package/dist/Fx/combinators/genScoped.d.ts +20 -0
- package/dist/Fx/combinators/genScoped.d.ts.map +1 -0
- package/dist/Fx/combinators/genScoped.js +13 -0
- package/dist/Fx/combinators/index.d.ts +52 -0
- package/dist/Fx/combinators/index.d.ts.map +1 -0
- package/dist/Fx/combinators/index.js +51 -0
- package/dist/Fx/combinators/keyed.d.ts +44 -0
- package/dist/Fx/combinators/keyed.d.ts.map +1 -0
- package/dist/Fx/combinators/keyed.js +199 -0
- package/dist/Fx/combinators/loop.d.ts +16 -0
- package/dist/Fx/combinators/loop.d.ts.map +1 -0
- package/dist/Fx/combinators/loop.js +14 -0
- package/dist/Fx/combinators/loopCause.d.ts +16 -0
- package/dist/Fx/combinators/loopCause.d.ts.map +1 -0
- package/dist/Fx/combinators/loopCause.js +13 -0
- package/dist/Fx/combinators/loopCauseEffect.d.ts +17 -0
- package/dist/Fx/combinators/loopCauseEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/loopCauseEffect.js +13 -0
- package/dist/Fx/combinators/loopEffect.d.ts +16 -0
- package/dist/Fx/combinators/loopEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/loopEffect.js +13 -0
- package/dist/Fx/combinators/map.d.ts +14 -0
- package/dist/Fx/combinators/map.d.ts.map +1 -0
- package/dist/Fx/combinators/map.js +12 -0
- package/dist/Fx/combinators/mapEffect.d.ts +15 -0
- package/dist/Fx/combinators/mapEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/mapEffect.js +12 -0
- package/dist/Fx/combinators/mergeAll.d.ts +11 -0
- package/dist/Fx/combinators/mergeAll.d.ts.map +1 -0
- package/dist/Fx/combinators/mergeAll.js +15 -0
- package/dist/Fx/combinators/mergeOrdered.d.ts +14 -0
- package/dist/Fx/combinators/mergeOrdered.d.ts.map +1 -0
- package/dist/Fx/combinators/mergeOrdered.js +89 -0
- package/dist/Fx/combinators/onError.d.ts +17 -0
- package/dist/Fx/combinators/onError.d.ts.map +1 -0
- package/dist/Fx/combinators/onError.js +14 -0
- package/dist/Fx/combinators/onExit.d.ts +16 -0
- package/dist/Fx/combinators/onExit.d.ts.map +1 -0
- package/dist/Fx/combinators/onExit.js +39 -0
- package/dist/Fx/combinators/onInterrupt.d.ts +16 -0
- package/dist/Fx/combinators/onInterrupt.d.ts.map +1 -0
- package/dist/Fx/combinators/onInterrupt.js +38 -0
- package/dist/Fx/combinators/provide.d.ts +23 -0
- package/dist/Fx/combinators/provide.d.ts.map +1 -0
- package/dist/Fx/combinators/provide.js +27 -0
- package/dist/Fx/combinators/skip.d.ts +14 -0
- package/dist/Fx/combinators/skip.d.ts.map +1 -0
- package/dist/Fx/combinators/skip.js +11 -0
- package/dist/Fx/combinators/skipRepeats.d.ts +11 -0
- package/dist/Fx/combinators/skipRepeats.d.ts.map +1 -0
- package/dist/Fx/combinators/skipRepeats.js +12 -0
- package/dist/Fx/combinators/skipRepeatsWith.d.ts +12 -0
- package/dist/Fx/combinators/skipRepeatsWith.d.ts.map +1 -0
- package/dist/Fx/combinators/skipRepeatsWith.js +20 -0
- package/dist/Fx/combinators/slice.d.ts +23 -0
- package/dist/Fx/combinators/slice.d.ts.map +1 -0
- package/dist/Fx/combinators/slice.js +12 -0
- package/dist/Fx/combinators/switchMap.d.ts +13 -0
- package/dist/Fx/combinators/switchMap.d.ts.map +1 -0
- package/dist/Fx/combinators/switchMap.js +33 -0
- package/dist/Fx/combinators/switchMapEffect.d.ts +13 -0
- package/dist/Fx/combinators/switchMapEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/switchMapEffect.js +14 -0
- package/dist/Fx/combinators/take.d.ts +14 -0
- package/dist/Fx/combinators/take.d.ts.map +1 -0
- package/dist/Fx/combinators/take.js +11 -0
- package/dist/Fx/combinators/takeUntil.d.ts +28 -0
- package/dist/Fx/combinators/takeUntil.d.ts.map +1 -0
- package/dist/Fx/combinators/takeUntil.js +31 -0
- package/dist/Fx/combinators/tapEffect.d.ts +15 -0
- package/dist/Fx/combinators/tapEffect.d.ts.map +1 -0
- package/dist/Fx/combinators/tapEffect.js +18 -0
- package/dist/Fx/combinators/tuple.d.ts +27 -0
- package/dist/Fx/combinators/tuple.d.ts.map +1 -0
- package/dist/Fx/combinators/tuple.js +46 -0
- package/dist/Fx/combinators/unwrap.d.ts +12 -0
- package/dist/Fx/combinators/unwrap.d.ts.map +1 -0
- package/dist/Fx/combinators/unwrap.js +14 -0
- package/dist/Fx/combinators/unwrapScoped.d.ts +15 -0
- package/dist/Fx/combinators/unwrapScoped.d.ts.map +1 -0
- package/dist/Fx/combinators/unwrapScoped.js +16 -0
- package/dist/Fx/combinators/when.d.ts +36 -0
- package/dist/Fx/combinators/when.d.ts.map +1 -0
- package/dist/Fx/combinators/when.js +28 -0
- package/dist/Fx/combinators/withSpan.d.ts +4 -0
- package/dist/Fx/combinators/withSpan.d.ts.map +1 -0
- package/dist/Fx/combinators/withSpan.js +6 -0
- package/dist/Fx/constructors/at.d.ts +16 -0
- package/dist/Fx/constructors/at.d.ts.map +1 -0
- package/dist/Fx/constructors/at.js +13 -0
- package/dist/Fx/constructors/die.d.ts +11 -0
- package/dist/Fx/constructors/die.d.ts.map +1 -0
- package/dist/Fx/constructors/die.js +12 -0
- package/dist/Fx/constructors/empty.d.ts +8 -0
- package/dist/Fx/constructors/empty.d.ts.map +1 -0
- package/dist/Fx/constructors/empty.js +8 -0
- package/dist/Fx/constructors/fail.d.ts +11 -0
- package/dist/Fx/constructors/fail.d.ts.map +1 -0
- package/dist/Fx/constructors/fail.js +12 -0
- package/dist/Fx/constructors/failCause.d.ts +12 -0
- package/dist/Fx/constructors/failCause.d.ts.map +1 -0
- package/dist/Fx/constructors/failCause.js +11 -0
- package/dist/Fx/constructors/fn.d.ts +47 -0
- package/dist/Fx/constructors/fn.d.ts.map +1 -0
- package/dist/Fx/constructors/fn.js +23 -0
- package/dist/Fx/constructors/fromEffect.d.ts +21 -0
- package/dist/Fx/constructors/fromEffect.d.ts.map +1 -0
- package/dist/Fx/constructors/fromEffect.js +21 -0
- package/dist/Fx/constructors/fromFailures.d.ts +10 -0
- package/dist/Fx/constructors/fromFailures.d.ts.map +1 -0
- package/dist/Fx/constructors/fromFailures.js +13 -0
- package/dist/Fx/constructors/fromIterable.d.ts +12 -0
- package/dist/Fx/constructors/fromIterable.d.ts.map +1 -0
- package/dist/Fx/constructors/fromIterable.js +12 -0
- package/dist/Fx/constructors/fromSchedule.d.ts +13 -0
- package/dist/Fx/constructors/fromSchedule.d.ts.map +1 -0
- package/dist/Fx/constructors/fromSchedule.js +13 -0
- package/dist/Fx/constructors/fromYieldable.d.ts +12 -0
- package/dist/Fx/constructors/fromYieldable.d.ts.map +1 -0
- package/dist/Fx/constructors/fromYieldable.js +12 -0
- package/dist/Fx/constructors/index.d.ts +16 -0
- package/dist/Fx/constructors/index.d.ts.map +1 -0
- package/dist/Fx/constructors/index.js +15 -0
- package/dist/Fx/constructors/interrupt.d.ts +10 -0
- package/dist/Fx/constructors/interrupt.d.ts.map +1 -0
- package/dist/Fx/constructors/interrupt.js +12 -0
- package/dist/Fx/constructors/make.d.ts +40 -0
- package/dist/Fx/constructors/make.d.ts.map +1 -0
- package/dist/Fx/constructors/make.js +61 -0
- package/dist/Fx/constructors/periodic.d.ts +12 -0
- package/dist/Fx/constructors/periodic.d.ts.map +1 -0
- package/dist/Fx/constructors/periodic.js +12 -0
- package/dist/Fx/constructors/succeed.d.ts +32 -0
- package/dist/Fx/constructors/succeed.d.ts.map +1 -0
- package/dist/Fx/constructors/succeed.js +32 -0
- package/dist/Fx/constructors/suspend.d.ts +3 -0
- package/dist/Fx/constructors/suspend.d.ts.map +1 -0
- package/dist/Fx/constructors/suspend.js +3 -0
- package/dist/Fx/index.d.ts +7 -0
- package/dist/Fx/index.d.ts.map +1 -0
- package/dist/Fx/index.js +6 -0
- package/dist/Fx/internal/DeferredRef.d.ts +29 -0
- package/dist/Fx/internal/DeferredRef.d.ts.map +1 -0
- package/dist/{esm → Fx}/internal/DeferredRef.js +21 -15
- package/dist/Fx/internal/UnionToTuple.d.ts.map +1 -0
- package/dist/Fx/internal/UnionToTuple.js +1 -0
- package/dist/{dts → Fx}/internal/diff.d.ts +3 -1
- package/dist/Fx/internal/diff.d.ts.map +1 -0
- package/dist/{esm → Fx}/internal/diff.js +37 -23
- package/dist/Fx/internal/equivalence.d.ts +4 -0
- package/dist/Fx/internal/equivalence.d.ts.map +1 -0
- package/dist/Fx/internal/equivalence.js +10 -0
- package/dist/Fx/internal/multicast.d.ts +10 -0
- package/dist/Fx/internal/multicast.d.ts.map +1 -0
- package/dist/Fx/internal/multicast.js +32 -0
- package/dist/Fx/internal/ring-buffer.d.ts +14 -0
- package/dist/Fx/internal/ring-buffer.d.ts.map +1 -0
- package/dist/Fx/internal/ring-buffer.js +52 -0
- package/dist/Fx/internal/scope.d.ts +11 -0
- package/dist/Fx/internal/scope.d.ts.map +1 -0
- package/dist/Fx/internal/scope.js +12 -0
- package/dist/Fx/internal/yieldable.d.ts +17 -0
- package/dist/Fx/internal/yieldable.d.ts.map +1 -0
- package/dist/Fx/internal/yieldable.js +20 -0
- package/dist/Fx/run/collect.d.ts +45 -0
- package/dist/Fx/run/collect.d.ts.map +1 -0
- package/dist/Fx/run/collect.js +51 -0
- package/dist/Fx/run/first.d.ts +14 -0
- package/dist/Fx/run/first.d.ts.map +1 -0
- package/dist/Fx/run/first.js +16 -0
- package/dist/Fx/run/fork.d.ts +29 -0
- package/dist/Fx/run/fork.d.ts.map +1 -0
- package/dist/Fx/run/fork.js +27 -0
- package/dist/Fx/run/index.d.ts +6 -0
- package/dist/Fx/run/index.d.ts.map +1 -0
- package/dist/Fx/run/index.js +5 -0
- package/dist/Fx/run/observe.d.ts +53 -0
- package/dist/Fx/run/observe.d.ts.map +1 -0
- package/dist/Fx/run/observe.js +55 -0
- package/dist/Fx/run/runPromise.d.ts +25 -0
- package/dist/Fx/run/runPromise.d.ts.map +1 -0
- package/dist/Fx/run/runPromise.js +23 -0
- package/dist/Fx/stream.d.ts +7 -0
- package/dist/Fx/stream.d.ts.map +1 -0
- package/dist/Fx/stream.js +7 -0
- package/dist/Fx.d.ts +2 -0
- package/dist/Fx.d.ts.map +1 -0
- package/dist/Fx.js +1 -0
- package/dist/Push/Push.d.ts +312 -0
- package/dist/Push/Push.d.ts.map +1 -0
- package/dist/Push/Push.js +289 -0
- package/dist/Push/index.d.ts +2 -0
- package/dist/Push/index.d.ts.map +1 -0
- package/dist/Push/index.js +1 -0
- package/dist/Push.d.ts +2 -0
- package/dist/Push.d.ts.map +1 -0
- package/dist/Push.js +1 -0
- package/dist/{dts → RefSubject}/RefArray.d.ts +68 -18
- package/dist/RefSubject/RefArray.d.ts.map +1 -0
- package/dist/{esm → RefSubject}/RefArray.js +80 -12
- package/dist/RefSubject/RefBigDecimal.d.ts +183 -0
- package/dist/RefSubject/RefBigDecimal.d.ts.map +1 -0
- package/dist/RefSubject/RefBigDecimal.js +161 -0
- package/dist/RefSubject/RefBigInt.d.ts +138 -0
- package/dist/RefSubject/RefBigInt.d.ts.map +1 -0
- package/dist/RefSubject/RefBigInt.js +126 -0
- package/dist/RefSubject/RefBoolean.d.ts +135 -0
- package/dist/RefSubject/RefBoolean.d.ts.map +1 -0
- package/dist/RefSubject/RefBoolean.js +124 -0
- package/dist/RefSubject/RefCause.d.ts +100 -0
- package/dist/RefSubject/RefCause.d.ts.map +1 -0
- package/dist/RefSubject/RefCause.js +93 -0
- package/dist/{dts → RefSubject}/RefChunk.d.ts +157 -71
- package/dist/RefSubject/RefChunk.d.ts.map +1 -0
- package/dist/{esm → RefSubject}/RefChunk.js +142 -52
- package/dist/RefSubject/RefDateTime.d.ts +155 -0
- package/dist/RefSubject/RefDateTime.d.ts.map +1 -0
- package/dist/RefSubject/RefDateTime.js +101 -0
- package/dist/RefSubject/RefDuration.d.ts +126 -0
- package/dist/RefSubject/RefDuration.d.ts.map +1 -0
- package/dist/RefSubject/RefDuration.js +115 -0
- package/dist/RefSubject/RefGraph.d.ts +239 -0
- package/dist/RefSubject/RefGraph.d.ts.map +1 -0
- package/dist/RefSubject/RefGraph.js +272 -0
- package/dist/RefSubject/RefHashMap.d.ts +228 -0
- package/dist/RefSubject/RefHashMap.d.ts.map +1 -0
- package/dist/RefSubject/RefHashMap.js +212 -0
- package/dist/RefSubject/RefHashRing.d.ts +123 -0
- package/dist/RefSubject/RefHashRing.d.ts.map +1 -0
- package/dist/RefSubject/RefHashRing.js +115 -0
- package/dist/RefSubject/RefHashSet.d.ts +179 -0
- package/dist/RefSubject/RefHashSet.d.ts.map +1 -0
- package/dist/RefSubject/RefHashSet.js +164 -0
- package/dist/RefSubject/RefIterable.d.ts +257 -0
- package/dist/RefSubject/RefIterable.d.ts.map +1 -0
- package/dist/RefSubject/RefIterable.js +237 -0
- package/dist/RefSubject/RefOption.d.ts +124 -0
- package/dist/RefSubject/RefOption.d.ts.map +1 -0
- package/dist/RefSubject/RefOption.js +115 -0
- package/dist/RefSubject/RefRecord.d.ts +264 -0
- package/dist/RefSubject/RefRecord.d.ts.map +1 -0
- package/dist/RefSubject/RefRecord.js +249 -0
- package/dist/RefSubject/RefResult.d.ts +121 -0
- package/dist/RefSubject/RefResult.d.ts.map +1 -0
- package/dist/RefSubject/RefResult.js +107 -0
- package/dist/RefSubject/RefString.d.ts +147 -0
- package/dist/RefSubject/RefString.d.ts.map +1 -0
- package/dist/RefSubject/RefString.js +137 -0
- package/dist/RefSubject/RefStruct.d.ts +123 -0
- package/dist/RefSubject/RefStruct.d.ts.map +1 -0
- package/dist/RefSubject/RefStruct.js +113 -0
- package/dist/RefSubject/RefSubject.d.ts +1010 -0
- package/dist/RefSubject/RefSubject.d.ts.map +1 -0
- package/dist/RefSubject/RefSubject.js +1310 -0
- package/dist/RefSubject/RefTrie.d.ts +216 -0
- package/dist/RefSubject/RefTrie.d.ts.map +1 -0
- package/dist/RefSubject/RefTrie.js +201 -0
- package/dist/RefSubject/RefTuple.d.ts +107 -0
- package/dist/RefSubject/RefTuple.d.ts.map +1 -0
- package/dist/RefSubject/RefTuple.js +94 -0
- package/dist/RefSubject/index.d.ts +22 -0
- package/dist/RefSubject/index.d.ts.map +1 -0
- package/dist/RefSubject/index.js +21 -0
- package/dist/RefSubject.d.ts +2 -0
- package/dist/RefSubject.d.ts.map +1 -0
- package/dist/RefSubject.js +1 -0
- package/dist/Sink/Sink.d.ts +94 -0
- package/dist/Sink/Sink.d.ts.map +1 -0
- package/dist/Sink/Sink.js +34 -0
- package/dist/Sink/combinators.d.ts +171 -0
- package/dist/Sink/combinators.d.ts.map +1 -0
- package/dist/{esm/Sink.js → Sink/combinators.js} +265 -352
- package/dist/Sink/index.d.ts +3 -0
- package/dist/Sink/index.d.ts.map +1 -0
- package/dist/Sink/index.js +2 -0
- package/dist/Sink.d.ts +2 -0
- package/dist/Sink.d.ts.map +1 -0
- package/dist/Sink.js +1 -0
- package/dist/Subject/Subject.d.ts +152 -0
- package/dist/Subject/Subject.d.ts.map +1 -0
- package/dist/Subject/Subject.js +272 -0
- package/dist/Subject/index.d.ts +2 -0
- package/dist/Subject/index.d.ts.map +1 -0
- package/dist/Subject/index.js +1 -0
- package/dist/Subject.d.ts +2 -0
- package/dist/Subject.d.ts.map +1 -0
- package/dist/Subject.js +1 -0
- package/dist/Versioned/Versioned.d.ts +176 -0
- package/dist/Versioned/Versioned.d.ts.map +1 -0
- package/dist/Versioned/Versioned.js +228 -0
- package/dist/Versioned/index.d.ts +2 -0
- package/dist/Versioned/index.d.ts.map +1 -0
- package/dist/Versioned/index.js +1 -0
- package/dist/Versioned.d.ts +2 -0
- package/dist/Versioned.d.ts.map +1 -0
- package/dist/Versioned.js +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/package.json +19 -191
- package/src/Fx/Fx.ts +164 -0
- package/src/Fx/TypeId.ts +25 -0
- package/src/Fx/combinators/catch.ts +165 -0
- package/src/Fx/combinators/causes.ts +23 -0
- package/src/Fx/combinators/compact.ts +15 -0
- package/src/Fx/combinators/continueWith.ts +78 -0
- package/src/Fx/combinators/ensuring.ts +23 -0
- package/src/Fx/combinators/exhaustLatestMap.ts +74 -0
- package/src/Fx/combinators/exhaustLatestMapEffect.ts +25 -0
- package/src/Fx/combinators/exhaustMap.ts +36 -0
- package/src/Fx/combinators/exhaustMapEffect.ts +23 -0
- package/src/Fx/combinators/exit.ts +15 -0
- package/src/Fx/combinators/filter.ts +22 -0
- package/src/Fx/combinators/filterEffect.ts +31 -0
- package/src/Fx/combinators/filterMap.ts +23 -0
- package/src/Fx/combinators/filterMapEffect.ts +32 -0
- package/src/Fx/combinators/filterMapLoop.ts +35 -0
- package/src/Fx/combinators/filterMapLoopCause.ts +36 -0
- package/src/Fx/combinators/filterMapLoopCauseEffect.ts +46 -0
- package/src/Fx/combinators/filterMapLoopEffect.ts +36 -0
- package/src/Fx/combinators/flatMap.ts +51 -0
- package/src/Fx/combinators/flatMapConcurrently.ts +36 -0
- package/src/Fx/combinators/flatMapConcurrentlyEffect.ts +26 -0
- package/src/Fx/combinators/flatMapEffect.ts +42 -0
- package/src/Fx/combinators/flip.ts +14 -0
- package/src/Fx/combinators/gen.ts +24 -0
- package/src/Fx/combinators/genScoped.ts +24 -0
- package/src/Fx/combinators/index.ts +51 -0
- package/src/Fx/combinators/keyed.ts +369 -0
- package/src/Fx/combinators/loop.ts +27 -0
- package/src/Fx/combinators/loopCause.ts +34 -0
- package/src/Fx/combinators/loopCauseEffect.ts +36 -0
- package/src/Fx/combinators/loopEffect.ts +34 -0
- package/src/Fx/combinators/map.ts +22 -0
- package/src/Fx/combinators/mapEffect.ts +32 -0
- package/src/Fx/combinators/mergeAll.ts +22 -0
- package/src/Fx/combinators/mergeOrdered.ts +123 -0
- package/src/Fx/combinators/onError.ts +40 -0
- package/src/Fx/combinators/onExit.ts +82 -0
- package/src/Fx/combinators/onInterrupt.ts +87 -0
- package/src/Fx/combinators/provide.ts +62 -0
- package/src/Fx/combinators/skip.ts +20 -0
- package/src/Fx/combinators/skipRepeats.ts +15 -0
- package/src/Fx/combinators/skipRepeatsWith.ts +40 -0
- package/src/Fx/combinators/slice.ts +32 -0
- package/src/Fx/combinators/switchMap.ts +55 -0
- package/src/Fx/combinators/switchMapEffect.ts +25 -0
- package/src/Fx/combinators/take.ts +17 -0
- package/src/Fx/combinators/takeUntil.ts +50 -0
- package/src/Fx/combinators/tapEffect.ts +39 -0
- package/src/Fx/combinators/tuple.ts +79 -0
- package/src/Fx/combinators/unwrap.ts +21 -0
- package/src/Fx/combinators/unwrapScoped.ts +26 -0
- package/src/Fx/combinators/when.ts +64 -0
- package/src/Fx/combinators/withSpan.ts +24 -0
- package/src/Fx/constructors/at.ts +23 -0
- package/src/Fx/constructors/die.ts +17 -0
- package/src/Fx/constructors/empty.ts +10 -0
- package/src/Fx/constructors/fail.ts +14 -0
- package/src/Fx/constructors/failCause.ts +14 -0
- package/src/Fx/constructors/fn.ts +245 -0
- package/src/Fx/constructors/fromEffect.ts +24 -0
- package/src/Fx/constructors/fromFailures.ts +19 -0
- package/src/Fx/constructors/fromIterable.ts +15 -0
- package/src/Fx/constructors/fromSchedule.ts +18 -0
- package/src/Fx/constructors/fromYieldable.ts +17 -0
- package/src/Fx/constructors/index.ts +15 -0
- package/src/Fx/constructors/interrupt.ts +13 -0
- package/src/Fx/constructors/make.ts +103 -0
- package/src/Fx/constructors/periodic.ts +15 -0
- package/src/Fx/constructors/succeed.ts +37 -0
- package/src/Fx/constructors/suspend.ts +6 -0
- package/src/Fx/index.ts +6 -0
- package/src/Fx/internal/DeferredRef.ts +87 -0
- package/src/Fx/internal/UnionToTuple.ts +12 -0
- package/src/Fx/internal/diff.ts +191 -0
- package/src/Fx/internal/equivalence.ts +12 -0
- package/src/Fx/internal/multicast.ts +51 -0
- package/src/Fx/internal/ring-buffer.ts +60 -0
- package/src/Fx/internal/scope.ts +58 -0
- package/src/Fx/internal/yieldable.ts +31 -0
- package/src/Fx/run/collect.ts +79 -0
- package/src/Fx/run/first.ts +20 -0
- package/src/Fx/run/fork.ts +40 -0
- package/src/Fx/run/index.ts +5 -0
- package/src/Fx/run/observe.ts +114 -0
- package/src/Fx/run/runPromise.ts +32 -0
- package/src/Fx/stream.ts +42 -0
- package/src/Fx.catch.test.ts +61 -0
- package/src/Fx.fn.test.ts +51 -0
- package/src/Fx.lifecycle.test.ts +80 -0
- package/src/Fx.test.ts +71 -0
- package/src/Fx.ts +1 -2591
- package/src/Push/Push.ts +903 -0
- package/src/Push/index.ts +1 -0
- package/src/Push.test.ts +26 -0
- package/src/Push.ts +1 -480
- package/src/{RefArray.ts → RefSubject/RefArray.ts} +246 -248
- package/src/RefSubject/RefBigDecimal.test.ts +56 -0
- package/src/RefSubject/RefBigDecimal.ts +295 -0
- package/src/RefSubject/RefBigInt.test.ts +56 -0
- package/src/RefSubject/RefBigInt.ts +189 -0
- package/src/RefSubject/RefBoolean.test.ts +57 -0
- package/src/RefSubject/RefBoolean.ts +185 -0
- package/src/RefSubject/RefCause.test.ts +53 -0
- package/src/RefSubject/RefCause.ts +146 -0
- package/src/RefSubject/RefChunk.ts +510 -0
- package/src/RefSubject/RefDateTime.test.ts +43 -0
- package/src/RefSubject/RefDateTime.ts +264 -0
- package/src/RefSubject/RefDuration.test.ts +49 -0
- package/src/RefSubject/RefDuration.ts +188 -0
- package/src/RefSubject/RefGraph.ts +650 -0
- package/src/RefSubject/RefHashMap.ts +465 -0
- package/src/RefSubject/RefHashRing.ts +262 -0
- package/src/RefSubject/RefHashSet.ts +308 -0
- package/src/RefSubject/RefIterable.ts +445 -0
- package/src/RefSubject/RefOption.test.ts +67 -0
- package/src/RefSubject/RefOption.ts +193 -0
- package/src/RefSubject/RefRecord.ts +612 -0
- package/src/RefSubject/RefResult.test.ts +63 -0
- package/src/RefSubject/RefResult.ts +209 -0
- package/src/RefSubject/RefString.test.ts +61 -0
- package/src/RefSubject/RefString.ts +256 -0
- package/src/RefSubject/RefStruct.test.ts +60 -0
- package/src/RefSubject/RefStruct.ts +253 -0
- package/src/RefSubject/RefSubject.ts +2545 -0
- package/src/RefSubject/RefTrie.ts +356 -0
- package/src/RefSubject/RefTuple.test.ts +60 -0
- package/src/RefSubject/RefTuple.ts +231 -0
- package/src/RefSubject/index.ts +21 -0
- package/src/RefSubject.test.ts +65 -0
- package/src/RefSubject.ts +1 -2488
- package/src/Sink/Sink.ts +159 -0
- package/src/Sink/combinators.ts +993 -0
- package/src/Sink/index.ts +2 -0
- package/src/Sink.ts +1 -1044
- package/src/Subject/Subject.ts +441 -0
- package/src/Subject/index.ts +1 -0
- package/src/Subject.test.ts +47 -0
- package/src/Subject.ts +1 -330
- package/src/Versioned/Versioned.ts +521 -0
- package/src/Versioned/index.ts +1 -0
- package/src/Versioned.test.ts +23 -0
- package/src/Versioned.ts +1 -357
- package/src/index.ts +7 -130
- package/tsconfig.json +6 -0
- package/AsyncData/package.json +0 -6
- package/Emitter/package.json +0 -6
- package/Form/package.json +0 -6
- package/FormEntry/package.json +0 -6
- package/Fx/package.json +0 -6
- package/Idle/package.json +0 -6
- package/LICENSE +0 -21
- package/Match/package.json +0 -6
- package/Pull/package.json +0 -6
- package/Push/package.json +0 -6
- package/RefArray/package.json +0 -6
- package/RefChunk/package.json +0 -6
- package/RefHashMap/package.json +0 -6
- package/RefHashSet/package.json +0 -6
- package/RefSubject/package.json +0 -6
- package/Sink/package.json +0 -6
- package/Stream/package.json +0 -6
- package/Subject/package.json +0 -6
- package/TypeId/package.json +0 -6
- package/Typeclass/package.json +0 -6
- package/Versioned/package.json +0 -6
- package/dist/cjs/AsyncData.js +0 -188
- package/dist/cjs/AsyncData.js.map +0 -1
- package/dist/cjs/Emitter.js +0 -44
- package/dist/cjs/Emitter.js.map +0 -1
- package/dist/cjs/Form.js +0 -178
- package/dist/cjs/Form.js.map +0 -1
- package/dist/cjs/FormEntry.js +0 -110
- package/dist/cjs/FormEntry.js.map +0 -1
- package/dist/cjs/Fx.js +0 -998
- package/dist/cjs/Fx.js.map +0 -1
- package/dist/cjs/Idle.js +0 -190
- package/dist/cjs/Idle.js.map +0 -1
- package/dist/cjs/Match.js +0 -191
- package/dist/cjs/Match.js.map +0 -1
- package/dist/cjs/Pull.js +0 -52
- package/dist/cjs/Pull.js.map +0 -1
- package/dist/cjs/Push.js +0 -168
- package/dist/cjs/Push.js.map +0 -1
- package/dist/cjs/RefArray.js +0 -253
- package/dist/cjs/RefArray.js.map +0 -1
- package/dist/cjs/RefChunk.js +0 -212
- package/dist/cjs/RefChunk.js.map +0 -1
- package/dist/cjs/RefHashMap.js +0 -198
- package/dist/cjs/RefHashMap.js.map +0 -1
- package/dist/cjs/RefHashSet.js +0 -99
- package/dist/cjs/RefHashSet.js.map +0 -1
- package/dist/cjs/RefSubject.js +0 -1115
- package/dist/cjs/RefSubject.js.map +0 -1
- package/dist/cjs/Sink.js +0 -662
- package/dist/cjs/Sink.js.map +0 -1
- package/dist/cjs/Stream.js +0 -87
- package/dist/cjs/Stream.js.map +0 -1
- package/dist/cjs/Subject.js +0 -205
- package/dist/cjs/Subject.js.map +0 -1
- package/dist/cjs/TypeId.js +0 -32
- package/dist/cjs/TypeId.js.map +0 -1
- package/dist/cjs/Typeclass.js +0 -380
- package/dist/cjs/Typeclass.js.map +0 -1
- package/dist/cjs/Versioned.js +0 -172
- package/dist/cjs/Versioned.js.map +0 -1
- package/dist/cjs/index.js +0 -89
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/internal/DeferredRef.js +0 -67
- package/dist/cjs/internal/DeferredRef.js.map +0 -1
- package/dist/cjs/internal/UnionToTuple.js +0 -6
- package/dist/cjs/internal/UnionToTuple.js.map +0 -1
- package/dist/cjs/internal/bounds.js +0 -26
- package/dist/cjs/internal/bounds.js.map +0 -1
- package/dist/cjs/internal/core.js +0 -1774
- package/dist/cjs/internal/core.js.map +0 -1
- package/dist/cjs/internal/diff.js +0 -122
- package/dist/cjs/internal/diff.js.map +0 -1
- package/dist/cjs/internal/effect-loop-operator.js +0 -288
- package/dist/cjs/internal/effect-loop-operator.js.map +0 -1
- package/dist/cjs/internal/effect-operator.js +0 -156
- package/dist/cjs/internal/effect-operator.js.map +0 -1
- package/dist/cjs/internal/effect-producer.js +0 -74
- package/dist/cjs/internal/effect-producer.js.map +0 -1
- package/dist/cjs/internal/helpers.js +0 -317
- package/dist/cjs/internal/helpers.js.map +0 -1
- package/dist/cjs/internal/keyed.js +0 -168
- package/dist/cjs/internal/keyed.js.map +0 -1
- package/dist/cjs/internal/loop-operator.js +0 -213
- package/dist/cjs/internal/loop-operator.js.map +0 -1
- package/dist/cjs/internal/operator.js +0 -79
- package/dist/cjs/internal/operator.js.map +0 -1
- package/dist/cjs/internal/protos.js +0 -48
- package/dist/cjs/internal/protos.js.map +0 -1
- package/dist/cjs/internal/provide.js +0 -100
- package/dist/cjs/internal/provide.js.map +0 -1
- package/dist/cjs/internal/requestIdleCallback.js +0 -22
- package/dist/cjs/internal/requestIdleCallback.js.map +0 -1
- package/dist/cjs/internal/share.js +0 -74
- package/dist/cjs/internal/share.js.map +0 -1
- package/dist/cjs/internal/strategies.js +0 -34
- package/dist/cjs/internal/strategies.js.map +0 -1
- package/dist/cjs/internal/sync-operator.js +0 -120
- package/dist/cjs/internal/sync-operator.js.map +0 -1
- package/dist/cjs/internal/sync-producer.js +0 -118
- package/dist/cjs/internal/sync-producer.js.map +0 -1
- package/dist/cjs/internal/withKey.js +0 -63
- package/dist/cjs/internal/withKey.js.map +0 -1
- package/dist/dts/AsyncData.d.ts +0 -179
- package/dist/dts/AsyncData.d.ts.map +0 -1
- package/dist/dts/Emitter.d.ts +0 -24
- package/dist/dts/Emitter.d.ts.map +0 -1
- package/dist/dts/Form.d.ts +0 -145
- package/dist/dts/Form.d.ts.map +0 -1
- package/dist/dts/FormEntry.d.ts +0 -65
- package/dist/dts/FormEntry.d.ts.map +0 -1
- package/dist/dts/Fx.d.ts +0 -1678
- package/dist/dts/Fx.d.ts.map +0 -1
- package/dist/dts/Idle.d.ts +0 -84
- package/dist/dts/Idle.d.ts.map +0 -1
- package/dist/dts/Match.d.ts +0 -60
- package/dist/dts/Match.d.ts.map +0 -1
- package/dist/dts/Pull.d.ts +0 -37
- package/dist/dts/Pull.d.ts.map +0 -1
- package/dist/dts/Push.d.ts +0 -176
- package/dist/dts/Push.d.ts.map +0 -1
- package/dist/dts/RefArray.d.ts.map +0 -1
- package/dist/dts/RefChunk.d.ts.map +0 -1
- package/dist/dts/RefHashMap.d.ts +0 -189
- package/dist/dts/RefHashMap.d.ts.map +0 -1
- package/dist/dts/RefHashSet.d.ts +0 -100
- package/dist/dts/RefHashSet.d.ts.map +0 -1
- package/dist/dts/RefSubject.d.ts +0 -601
- package/dist/dts/RefSubject.d.ts.map +0 -1
- package/dist/dts/Sink.d.ts +0 -252
- package/dist/dts/Sink.d.ts.map +0 -1
- package/dist/dts/Stream.d.ts +0 -66
- package/dist/dts/Stream.d.ts.map +0 -1
- package/dist/dts/Subject.d.ts +0 -61
- package/dist/dts/Subject.d.ts.map +0 -1
- package/dist/dts/TypeId.d.ts +0 -51
- package/dist/dts/TypeId.d.ts.map +0 -1
- package/dist/dts/Typeclass.d.ts +0 -284
- package/dist/dts/Typeclass.d.ts.map +0 -1
- package/dist/dts/Versioned.d.ts +0 -117
- package/dist/dts/Versioned.d.ts.map +0 -1
- package/dist/dts/index.d.ts +0 -111
- package/dist/dts/index.d.ts.map +0 -1
- package/dist/dts/internal/DeferredRef.d.ts +0 -22
- package/dist/dts/internal/DeferredRef.d.ts.map +0 -1
- package/dist/dts/internal/UnionToTuple.d.ts.map +0 -1
- package/dist/dts/internal/bounds.d.ts +0 -9
- package/dist/dts/internal/bounds.d.ts.map +0 -1
- package/dist/dts/internal/core.d.ts +0 -237
- package/dist/dts/internal/core.d.ts.map +0 -1
- package/dist/dts/internal/diff.d.ts.map +0 -1
- package/dist/dts/internal/effect-loop-operator.d.ts +0 -34
- package/dist/dts/internal/effect-loop-operator.d.ts.map +0 -1
- package/dist/dts/internal/effect-operator.d.ts +0 -40
- package/dist/dts/internal/effect-operator.d.ts.map +0 -1
- package/dist/dts/internal/effect-producer.d.ts +0 -25
- package/dist/dts/internal/effect-producer.d.ts.map +0 -1
- package/dist/dts/internal/helpers.d.ts +0 -60
- package/dist/dts/internal/helpers.d.ts.map +0 -1
- package/dist/dts/internal/keyed.d.ts +0 -4
- package/dist/dts/internal/keyed.d.ts.map +0 -1
- package/dist/dts/internal/loop-operator.d.ts +0 -40
- package/dist/dts/internal/loop-operator.d.ts.map +0 -1
- package/dist/dts/internal/operator.d.ts +0 -16
- package/dist/dts/internal/operator.d.ts.map +0 -1
- package/dist/dts/internal/protos.d.ts +0 -23
- package/dist/dts/internal/protos.d.ts.map +0 -1
- package/dist/dts/internal/provide.d.ts +0 -46
- package/dist/dts/internal/provide.d.ts.map +0 -1
- package/dist/dts/internal/requestIdleCallback.d.ts +0 -3
- package/dist/dts/internal/requestIdleCallback.d.ts.map +0 -1
- package/dist/dts/internal/share.d.ts +0 -33
- package/dist/dts/internal/share.d.ts.map +0 -1
- package/dist/dts/internal/strategies.d.ts +0 -9
- package/dist/dts/internal/strategies.d.ts.map +0 -1
- package/dist/dts/internal/sync-operator.d.ts +0 -32
- package/dist/dts/internal/sync-operator.d.ts.map +0 -1
- package/dist/dts/internal/sync-producer.d.ts +0 -36
- package/dist/dts/internal/sync-producer.d.ts.map +0 -1
- package/dist/dts/internal/withKey.d.ts +0 -4
- package/dist/dts/internal/withKey.d.ts.map +0 -1
- package/dist/esm/AsyncData.js +0 -156
- package/dist/esm/AsyncData.js.map +0 -1
- package/dist/esm/Emitter.js +0 -33
- package/dist/esm/Emitter.js.map +0 -1
- package/dist/esm/Form.js +0 -163
- package/dist/esm/Form.js.map +0 -1
- package/dist/esm/FormEntry.js +0 -100
- package/dist/esm/FormEntry.js.map +0 -1
- package/dist/esm/Fx.js +0 -984
- package/dist/esm/Fx.js.map +0 -1
- package/dist/esm/Idle.js +0 -178
- package/dist/esm/Idle.js.map +0 -1
- package/dist/esm/Match.js +0 -185
- package/dist/esm/Match.js.map +0 -1
- package/dist/esm/Pull.js +0 -41
- package/dist/esm/Pull.js.map +0 -1
- package/dist/esm/Push.js +0 -159
- package/dist/esm/Push.js.map +0 -1
- package/dist/esm/RefArray.js.map +0 -1
- package/dist/esm/RefChunk.js.map +0 -1
- package/dist/esm/RefHashMap.js +0 -176
- package/dist/esm/RefHashMap.js.map +0 -1
- package/dist/esm/RefHashSet.js +0 -86
- package/dist/esm/RefHashSet.js.map +0 -1
- package/dist/esm/RefSubject.js +0 -1076
- package/dist/esm/RefSubject.js.map +0 -1
- package/dist/esm/Sink.js.map +0 -1
- package/dist/esm/Stream.js +0 -76
- package/dist/esm/Stream.js.map +0 -1
- package/dist/esm/Subject.js +0 -198
- package/dist/esm/Subject.js.map +0 -1
- package/dist/esm/TypeId.js +0 -26
- package/dist/esm/TypeId.js.map +0 -1
- package/dist/esm/Typeclass.js +0 -375
- package/dist/esm/Typeclass.js.map +0 -1
- package/dist/esm/Versioned.js +0 -149
- package/dist/esm/Versioned.js.map +0 -1
- package/dist/esm/index.js +0 -111
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/internal/DeferredRef.js.map +0 -1
- package/dist/esm/internal/UnionToTuple.js +0 -2
- package/dist/esm/internal/UnionToTuple.js.map +0 -1
- package/dist/esm/internal/bounds.js +0 -13
- package/dist/esm/internal/bounds.js.map +0 -1
- package/dist/esm/internal/core.js +0 -1606
- package/dist/esm/internal/core.js.map +0 -1
- package/dist/esm/internal/diff.js.map +0 -1
- package/dist/esm/internal/effect-loop-operator.js +0 -269
- package/dist/esm/internal/effect-loop-operator.js.map +0 -1
- package/dist/esm/internal/effect-operator.js +0 -134
- package/dist/esm/internal/effect-operator.js.map +0 -1
- package/dist/esm/internal/effect-producer.js +0 -47
- package/dist/esm/internal/effect-producer.js.map +0 -1
- package/dist/esm/internal/helpers.js +0 -299
- package/dist/esm/internal/helpers.js.map +0 -1
- package/dist/esm/internal/keyed.js +0 -153
- package/dist/esm/internal/keyed.js.map +0 -1
- package/dist/esm/internal/loop-operator.js +0 -186
- package/dist/esm/internal/loop-operator.js.map +0 -1
- package/dist/esm/internal/operator.js +0 -68
- package/dist/esm/internal/operator.js.map +0 -1
- package/dist/esm/internal/protos.js +0 -39
- package/dist/esm/internal/protos.js.map +0 -1
- package/dist/esm/internal/provide.js +0 -72
- package/dist/esm/internal/provide.js.map +0 -1
- package/dist/esm/internal/requestIdleCallback.js +0 -16
- package/dist/esm/internal/requestIdleCallback.js.map +0 -1
- package/dist/esm/internal/share.js +0 -62
- package/dist/esm/internal/share.js.map +0 -1
- package/dist/esm/internal/strategies.js +0 -8
- package/dist/esm/internal/strategies.js.map +0 -1
- package/dist/esm/internal/sync-operator.js +0 -95
- package/dist/esm/internal/sync-operator.js.map +0 -1
- package/dist/esm/internal/sync-producer.js +0 -90
- package/dist/esm/internal/sync-producer.js.map +0 -1
- package/dist/esm/internal/withKey.js +0 -56
- package/dist/esm/internal/withKey.js.map +0 -1
- package/dist/esm/package.json +0 -4
- package/src/AsyncData.ts +0 -453
- package/src/Emitter.ts +0 -59
- package/src/Form.ts +0 -489
- package/src/FormEntry.ts +0 -214
- package/src/Idle.ts +0 -294
- package/src/Match.ts +0 -314
- package/src/Pull.ts +0 -95
- package/src/RefChunk.ts +0 -407
- package/src/RefHashMap.ts +0 -335
- package/src/RefHashSet.ts +0 -179
- package/src/Stream.ts +0 -140
- package/src/TypeId.ts +0 -59
- package/src/Typeclass.ts +0 -459
- package/src/internal/DeferredRef.ts +0 -72
- package/src/internal/UnionToTuple.ts +0 -11
- package/src/internal/bounds.ts +0 -21
- package/src/internal/core.ts +0 -2771
- package/src/internal/diff.ts +0 -171
- package/src/internal/effect-loop-operator.ts +0 -466
- package/src/internal/effect-operator.ts +0 -317
- package/src/internal/effect-producer.ts +0 -125
- package/src/internal/helpers.ts +0 -538
- package/src/internal/keyed.ts +0 -235
- package/src/internal/loop-operator.ts +0 -266
- package/src/internal/operator.ts +0 -87
- package/src/internal/protos.ts +0 -57
- package/src/internal/provide.ts +0 -151
- package/src/internal/requestIdleCallback.ts +0 -19
- package/src/internal/share.ts +0 -97
- package/src/internal/strategies.ts +0 -15
- package/src/internal/sync-operator.ts +0 -166
- package/src/internal/sync-producer.ts +0 -148
- package/src/internal/withKey.ts +0 -82
- /package/dist/{dts → Fx}/internal/UnionToTuple.d.ts +0 -0
package/dist/esm/Typeclass.js
DELETED
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
import * as COV from "@effect/typeclass/Covariant";
|
|
2
|
-
import { dual } from "effect/Function";
|
|
3
|
-
import { getLeft, getRight } from "effect/Option";
|
|
4
|
-
import * as Fx from "./Fx.js";
|
|
5
|
-
import { multicast } from "./internal/share.js";
|
|
6
|
-
/**
|
|
7
|
-
* Of instance for Fx
|
|
8
|
-
* @since 1.18.0
|
|
9
|
-
* @category Of
|
|
10
|
-
*/
|
|
11
|
-
export const Of = {
|
|
12
|
-
of: Fx.succeed
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Invariant instance for Fx
|
|
16
|
-
* @since 1.18.0
|
|
17
|
-
* @category Invariant
|
|
18
|
-
*/
|
|
19
|
-
export const Invariant = {
|
|
20
|
-
imap: COV.imap(Fx.map)
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Covariant instance for Fx
|
|
24
|
-
* @since 1.18.0
|
|
25
|
-
* @category Covariant
|
|
26
|
-
*/
|
|
27
|
-
export const Covariant = {
|
|
28
|
-
imap: Invariant.imap,
|
|
29
|
-
map: Fx.map
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Pointed instance for Fx
|
|
33
|
-
* @since 1.18.0
|
|
34
|
-
* @category Pointed
|
|
35
|
-
*/
|
|
36
|
-
export const Pointed = {
|
|
37
|
-
...Of,
|
|
38
|
-
...Covariant
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Bicovariant instance for Fx
|
|
42
|
-
* @since 1.18.0
|
|
43
|
-
* @category Bicovariant
|
|
44
|
-
*/
|
|
45
|
-
export const Bicovariant = {
|
|
46
|
-
bimap: Fx.mapBoth
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* SemiCoproduct instance for Fx which uses concatenation to join Fx together.
|
|
50
|
-
* @since 1.18.0
|
|
51
|
-
* @category SemiCoproduct
|
|
52
|
-
*/
|
|
53
|
-
export const SemiCoproductConcat = {
|
|
54
|
-
imap: Invariant.imap,
|
|
55
|
-
coproduct: (self, that) => Fx.continueWith(self, () => that),
|
|
56
|
-
coproductMany: (self, collection) => Fx.mergeSwitch([self, ...collection])
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* SemiCoproduct instance for Fx which uses merging to join Fx together.
|
|
60
|
-
* @since 1.18.0
|
|
61
|
-
* @category SemiCoproduct
|
|
62
|
-
*/
|
|
63
|
-
export const SemiCoproductMerge = {
|
|
64
|
-
imap: Invariant.imap,
|
|
65
|
-
coproduct: (self, that) => Fx.merge(self, that),
|
|
66
|
-
coproductMany: (self, collection) => Fx.mergeAll([self, ...collection])
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* SemiCoproduct instance for Fx which uses racing to join Fx together.
|
|
70
|
-
* @since 1.18.0
|
|
71
|
-
* @category SemiCoproduct
|
|
72
|
-
*/
|
|
73
|
-
export const SemiCoproductRace = {
|
|
74
|
-
imap: Invariant.imap,
|
|
75
|
-
coproduct: (self, that) => Fx.race(self, that),
|
|
76
|
-
coproductMany: (self, collection) => Fx.raceAll([self, ...collection])
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* SemiCoproduct instances for Fx.
|
|
80
|
-
* @since 1.18.0
|
|
81
|
-
* @category SemiCoproduct
|
|
82
|
-
*/
|
|
83
|
-
export const SemiCoproduct = {
|
|
84
|
-
concat: SemiCoproductConcat,
|
|
85
|
-
merge: SemiCoproductMerge,
|
|
86
|
-
race: SemiCoproductRace
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* SemiAlternative instance for Fx which uses concatenation to join Fx together.
|
|
90
|
-
* @since 1.18.0
|
|
91
|
-
* @category SemiAlternative
|
|
92
|
-
*/
|
|
93
|
-
export const SemiAlternativeConcat = {
|
|
94
|
-
...Covariant,
|
|
95
|
-
...SemiCoproductConcat
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* SemiAlternative instance for Fx which uses merging to join Fx together.
|
|
99
|
-
* @since 1.18.0
|
|
100
|
-
* @category SemiAlternative
|
|
101
|
-
*/
|
|
102
|
-
export const SemiAlternativeMerge = {
|
|
103
|
-
...Covariant,
|
|
104
|
-
...SemiCoproductMerge
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* SemiAlternative instance for Fx which uses racing to join Fx together.
|
|
108
|
-
* @since 1.18.0
|
|
109
|
-
* @category SemiAlternative
|
|
110
|
-
*/
|
|
111
|
-
export const SemiAlternativeRace = {
|
|
112
|
-
...Covariant,
|
|
113
|
-
...SemiCoproductRace
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* SemiAlternative instances for Fx.
|
|
117
|
-
* @since 1.18.0
|
|
118
|
-
* @category SemiAlternative
|
|
119
|
-
*/
|
|
120
|
-
export const SemiAlternative = {
|
|
121
|
-
concat: SemiAlternativeConcat,
|
|
122
|
-
merge: SemiAlternativeMerge,
|
|
123
|
-
race: SemiAlternativeRace
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Coproduct instance for Fx which uses concatenation to join Fx together.
|
|
127
|
-
* @since 1.18.0
|
|
128
|
-
* @category Coproduct
|
|
129
|
-
*/
|
|
130
|
-
export const CoproductConcat = {
|
|
131
|
-
...SemiCoproductConcat,
|
|
132
|
-
zero: () => Fx.empty,
|
|
133
|
-
coproductAll: (collection) => Fx.mergeSwitch(Array.from(collection))
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* Coproduct instance for Fx which uses merging to join Fx together.
|
|
137
|
-
* @since 1.18.0
|
|
138
|
-
* @category Coproduct
|
|
139
|
-
*/
|
|
140
|
-
export const CoproductMerge = {
|
|
141
|
-
...SemiCoproductMerge,
|
|
142
|
-
zero: () => Fx.empty,
|
|
143
|
-
coproductAll: (collection) => Fx.mergeAll(Array.from(collection))
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Coproduct instance for Fx which uses racing to join Fx together.
|
|
147
|
-
* @since 1.18.0
|
|
148
|
-
* @category Coproduct
|
|
149
|
-
*/
|
|
150
|
-
export const CoproductRace = {
|
|
151
|
-
...SemiCoproductRace,
|
|
152
|
-
zero: () => Fx.never,
|
|
153
|
-
coproductAll: (collection) => Fx.raceAll(Array.from(collection))
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Alternative instance for Fx which uses concatenation to join Fx together.
|
|
157
|
-
* @since 1.18.0
|
|
158
|
-
* @category Alternative
|
|
159
|
-
*/
|
|
160
|
-
export const AlternativeConcat = {
|
|
161
|
-
...SemiAlternativeConcat,
|
|
162
|
-
...CoproductConcat
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Alternative instance for Fx which uses merging to join Fx together.
|
|
166
|
-
* @since 1.18.0
|
|
167
|
-
* @category Alternative
|
|
168
|
-
*/
|
|
169
|
-
export const AlternativeMerge = {
|
|
170
|
-
...SemiAlternativeMerge,
|
|
171
|
-
...CoproductMerge
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* Alternative instance for Fx which uses racing to join Fx together.
|
|
175
|
-
* @since 1.18.0
|
|
176
|
-
* @category Alternative
|
|
177
|
-
*/
|
|
178
|
-
export const AlternativeRace = {
|
|
179
|
-
...SemiAlternativeRace,
|
|
180
|
-
...CoproductRace
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Alternative instances for Fx.
|
|
184
|
-
* @since 1.18.0
|
|
185
|
-
* @category Alternative
|
|
186
|
-
*/
|
|
187
|
-
export const Alternative = {
|
|
188
|
-
concat: AlternativeConcat,
|
|
189
|
-
merge: AlternativeMerge,
|
|
190
|
-
race: AlternativeRace
|
|
191
|
-
};
|
|
192
|
-
/**
|
|
193
|
-
* SemiProduct instance for Fx
|
|
194
|
-
* @since 1.18.0
|
|
195
|
-
* @category SemiProduct
|
|
196
|
-
*/
|
|
197
|
-
export const Semiproduct = {
|
|
198
|
-
imap: Invariant.imap,
|
|
199
|
-
product: (self, that) => Fx.tuple([self, that]),
|
|
200
|
-
productMany: (self, collection) => Fx.tuple([self, ...collection])
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* SemiAppliative instance for Fx
|
|
204
|
-
* @since 1.18.0
|
|
205
|
-
* @category SemiApplicative
|
|
206
|
-
*/
|
|
207
|
-
export const SemiApplicative = {
|
|
208
|
-
...Covariant,
|
|
209
|
-
...Semiproduct
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* Product instance for Fx
|
|
213
|
-
* @since 1.18.0
|
|
214
|
-
* @category Product
|
|
215
|
-
*/
|
|
216
|
-
export const Product = {
|
|
217
|
-
...Of,
|
|
218
|
-
...Semiproduct,
|
|
219
|
-
productAll: (collection) => Fx.tuple(Array.from(collection))
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* Applicative instance for Fx
|
|
223
|
-
* @since 1.18.0
|
|
224
|
-
* @category Applicative
|
|
225
|
-
*/
|
|
226
|
-
export const Applicative = {
|
|
227
|
-
...SemiApplicative,
|
|
228
|
-
...Product
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Filterable instance for Fx
|
|
232
|
-
* @since 1.18.0
|
|
233
|
-
* @category Filterable
|
|
234
|
-
*/
|
|
235
|
-
export const Filterable = {
|
|
236
|
-
partitionMap: dual(2, (self, f) => {
|
|
237
|
-
const m = multicast(Fx.map(self, f));
|
|
238
|
-
return [
|
|
239
|
-
Fx.filterMap(m, getLeft),
|
|
240
|
-
Fx.filterMap(m, getRight)
|
|
241
|
-
];
|
|
242
|
-
}),
|
|
243
|
-
filterMap: Fx.filterMap
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* FlatMap instance for Fx which uses unbounded concurrency
|
|
247
|
-
* @since 1.18.0
|
|
248
|
-
* @category FlatMap
|
|
249
|
-
*/
|
|
250
|
-
export const FlatMap = {
|
|
251
|
-
flatMap: Fx.flatMap
|
|
252
|
-
};
|
|
253
|
-
/**
|
|
254
|
-
* Monad instance for Fx which uses unbounded concurrency
|
|
255
|
-
* @since 1.18.0
|
|
256
|
-
* @category Chainable
|
|
257
|
-
*/
|
|
258
|
-
export const Chainable = {
|
|
259
|
-
...Covariant,
|
|
260
|
-
...FlatMap
|
|
261
|
-
};
|
|
262
|
-
/**
|
|
263
|
-
* Monad instance for Fx which uses unbounded concurrency
|
|
264
|
-
* @since 1.18.0
|
|
265
|
-
* @category Monad
|
|
266
|
-
*/
|
|
267
|
-
export const Monad = {
|
|
268
|
-
...Applicative,
|
|
269
|
-
...Chainable
|
|
270
|
-
};
|
|
271
|
-
/**
|
|
272
|
-
* FlatMap instance for Fx which uses bounded concurrency, favoring the latest inner Fx.
|
|
273
|
-
* @since 1.18.0
|
|
274
|
-
* @category FlatMap
|
|
275
|
-
*/
|
|
276
|
-
export const SwitchMap = {
|
|
277
|
-
flatMap: Fx.switchMap
|
|
278
|
-
};
|
|
279
|
-
/**
|
|
280
|
-
* Chainable instance for Fx which uses bounded concurrency, favoring the latest inner Fx.
|
|
281
|
-
* @since 1.18.0
|
|
282
|
-
* @category Chainable
|
|
283
|
-
*/
|
|
284
|
-
export const SwitchMapChainable = {
|
|
285
|
-
...Covariant,
|
|
286
|
-
...SwitchMap
|
|
287
|
-
};
|
|
288
|
-
/**
|
|
289
|
-
* Monad instance for Fx which uses bounded concurrency, favoring the latest inner Fx.
|
|
290
|
-
* @since 1.18.0
|
|
291
|
-
* @category Monad
|
|
292
|
-
*/
|
|
293
|
-
export const SwitchMapMonad = {
|
|
294
|
-
...Applicative,
|
|
295
|
-
...SwitchMapChainable
|
|
296
|
-
};
|
|
297
|
-
/**
|
|
298
|
-
* FlatMap instance for Fx which uses bounded concurrency, favoring the first inner Fx.
|
|
299
|
-
* @since 1.18.0
|
|
300
|
-
* @category FlatMap
|
|
301
|
-
*/
|
|
302
|
-
export const ExhaustMap = {
|
|
303
|
-
flatMap: Fx.exhaustMap
|
|
304
|
-
};
|
|
305
|
-
/**
|
|
306
|
-
* Chainable instance for Fx which uses bounded concurrency, favoring the first inner Fx.
|
|
307
|
-
* @since 1.18.0
|
|
308
|
-
* @category Chainable
|
|
309
|
-
*/
|
|
310
|
-
export const ExhaustMapChainable = {
|
|
311
|
-
...Covariant,
|
|
312
|
-
...ExhaustMap
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* Monad instance for Fx which uses bounded concurrency, favoring the first inner Fx.
|
|
316
|
-
* @since 1.18.0
|
|
317
|
-
* @category Monad
|
|
318
|
-
*/
|
|
319
|
-
export const ExhaustMapMonad = {
|
|
320
|
-
...Applicative,
|
|
321
|
-
...ExhaustMapChainable
|
|
322
|
-
};
|
|
323
|
-
/**
|
|
324
|
-
* FlatMap instance for Fx which uses bounded concurrency, favoring the first and latest inner Fx.
|
|
325
|
-
* @since 1.18.0
|
|
326
|
-
* @category FlatMap
|
|
327
|
-
*/
|
|
328
|
-
export const ExhaustMapLatest = {
|
|
329
|
-
flatMap: Fx.exhaustMapLatest
|
|
330
|
-
};
|
|
331
|
-
/**
|
|
332
|
-
* Chainable instance for Fx which uses bounded concurrency, favoring the first and latest inner Fx.
|
|
333
|
-
* @since 1.18.0
|
|
334
|
-
* @category Chainable
|
|
335
|
-
*/
|
|
336
|
-
export const ExhaustMapLatestChainable = {
|
|
337
|
-
...Covariant,
|
|
338
|
-
...ExhaustMapLatest
|
|
339
|
-
};
|
|
340
|
-
/**
|
|
341
|
-
* Monad instance for Fx which uses bounded concurrency, favoring the first and latest inner Fx.
|
|
342
|
-
* @since 1.18.0
|
|
343
|
-
* @category Monad
|
|
344
|
-
*/
|
|
345
|
-
export const ExhaustMapLatestMonad = {
|
|
346
|
-
...Applicative,
|
|
347
|
-
...ExhaustMapLatestChainable
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* FlatMap instance for Fx which uses bounded concurrency, concatenating inner Fx on after another.
|
|
351
|
-
* @since 1.18.0
|
|
352
|
-
* @category FlatMap
|
|
353
|
-
*/
|
|
354
|
-
export const ConcatMap = {
|
|
355
|
-
flatMap: Fx.concatMap
|
|
356
|
-
};
|
|
357
|
-
/**
|
|
358
|
-
* Chainable instance for Fx which uses bounded concurrency, concatenating inner Fx on after another.
|
|
359
|
-
* @since 1.18.0
|
|
360
|
-
* @category Chainable
|
|
361
|
-
*/
|
|
362
|
-
export const ConcatMapChainable = {
|
|
363
|
-
...Covariant,
|
|
364
|
-
...ConcatMap
|
|
365
|
-
};
|
|
366
|
-
/**
|
|
367
|
-
* Monad instance for Fx which uses bounded concurrency, concatenating inner Fx on after another.
|
|
368
|
-
* @since 1.18.0
|
|
369
|
-
* @category Monad
|
|
370
|
-
*/
|
|
371
|
-
export const ConcatMapMonad = {
|
|
372
|
-
...Applicative,
|
|
373
|
-
...ConcatMapChainable
|
|
374
|
-
};
|
|
375
|
-
//# sourceMappingURL=Typeclass.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"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EAAE,EAAE,CAAC,SAAS;CACtB,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,GAAG,SAAS;IACZ,GAAG,SAAS;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD,GAAG,WAAW;IACd,GAAG,kBAAkB;CACtB,CAAA"}
|
package/dist/esm/Versioned.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Versioned is a special Fx which is also an Effect, and keeps track of a version number of the
|
|
3
|
-
* current value it holds. The Fx portion is used to subscribe to changes, the Effect portion to
|
|
4
|
-
* sample the current value. The version can be utilized to avoid computing work related to this value.
|
|
5
|
-
* @since 1.0.0
|
|
6
|
-
*/
|
|
7
|
-
import * as Effect from "effect/Effect";
|
|
8
|
-
import * as Exit from "effect/Exit";
|
|
9
|
-
import { dual, flow } from "effect/Function";
|
|
10
|
-
import { sum } from "effect/Number";
|
|
11
|
-
import * as Option from "effect/Option";
|
|
12
|
-
import * as core from "./internal/core.js";
|
|
13
|
-
import { MulticastEffect } from "./internal/helpers.js";
|
|
14
|
-
import { FxEffectBase } from "./internal/protos.js";
|
|
15
|
-
import * as coreShare from "./internal/share.js";
|
|
16
|
-
/**
|
|
17
|
-
* @since 1.0.0
|
|
18
|
-
*/
|
|
19
|
-
export function make(version, fx, effect) {
|
|
20
|
-
return new VersionedImpl(version, fx, effect);
|
|
21
|
-
}
|
|
22
|
-
class VersionedImpl extends FxEffectBase {
|
|
23
|
-
version;
|
|
24
|
-
fx;
|
|
25
|
-
effect;
|
|
26
|
-
constructor(version, fx, effect) {
|
|
27
|
-
super();
|
|
28
|
-
this.version = version;
|
|
29
|
-
this.fx = fx;
|
|
30
|
-
this.effect = effect;
|
|
31
|
-
}
|
|
32
|
-
run(sink) {
|
|
33
|
-
return this.fx.run(sink);
|
|
34
|
-
}
|
|
35
|
-
toEffect() {
|
|
36
|
-
return this.effect;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @since 1.0.0
|
|
41
|
-
*/
|
|
42
|
-
export function transform(input, transformFx, transformGet) {
|
|
43
|
-
if (isVersionedTransform(input)) {
|
|
44
|
-
return new VersionedTransform(input.input, flow(input._transformFx, transformFx), flow(input._transformEffect, transformGet));
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return new VersionedTransform(input, transformFx, transformGet);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
|
-
export class VersionedTransform extends FxEffectBase {
|
|
54
|
-
input;
|
|
55
|
-
_transformFx;
|
|
56
|
-
_transformEffect;
|
|
57
|
-
_version = -1;
|
|
58
|
-
_currentValue = Option.none();
|
|
59
|
-
_fx;
|
|
60
|
-
constructor(input, _transformFx, _transformEffect) {
|
|
61
|
-
super();
|
|
62
|
-
this.input = input;
|
|
63
|
-
this._transformFx = _transformFx;
|
|
64
|
-
this._transformEffect = _transformEffect;
|
|
65
|
-
this._fx = _transformFx(this.input);
|
|
66
|
-
}
|
|
67
|
-
version = Effect.sync(() => this._version);
|
|
68
|
-
run(sink) {
|
|
69
|
-
return this._fx.run(sink);
|
|
70
|
-
}
|
|
71
|
-
toEffect() {
|
|
72
|
-
const transformed = this._transformEffect(this.input);
|
|
73
|
-
const update = (v) => Effect.tapErrorCause(Effect.tap(transformed, (value) => Effect.sync(() => {
|
|
74
|
-
this._currentValue = Option.some(Exit.succeed(value));
|
|
75
|
-
this._version = v;
|
|
76
|
-
})), (cause) => Effect.sync(() => {
|
|
77
|
-
this._currentValue = Option.some(Exit.failCause(cause));
|
|
78
|
-
this._version = v;
|
|
79
|
-
}));
|
|
80
|
-
return new MulticastEffect(Effect.flatMap(this.input.version, (version) => {
|
|
81
|
-
if (version === this._version && Option.isSome(this._currentValue)) {
|
|
82
|
-
return this._currentValue.value;
|
|
83
|
-
}
|
|
84
|
-
return update(version);
|
|
85
|
-
}));
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function isVersionedTransform(u) {
|
|
89
|
-
return u instanceof VersionedTransform;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Transform a Versioned's output value as both an Fx and Effect.
|
|
93
|
-
* @since 1.18.0
|
|
94
|
-
* @category combinators
|
|
95
|
-
*/
|
|
96
|
-
export const map = dual(2, function map(versioned, options) {
|
|
97
|
-
return transform(versioned, (fx) => core.map(fx, options.onFx), Effect.map(options.onEffect));
|
|
98
|
-
});
|
|
99
|
-
/**
|
|
100
|
-
* Transform a Versioned's output value as both an Fx and Effect using an Effect.
|
|
101
|
-
* @since 1.18.0
|
|
102
|
-
* @category combinators
|
|
103
|
-
*/
|
|
104
|
-
export const mapEffect = dual(2, function mapEffect(versioned, options) {
|
|
105
|
-
return transform(versioned, (fx) => core.mapEffect(fx, options.onFx), Effect.flatMap(options.onEffect));
|
|
106
|
-
});
|
|
107
|
-
/**
|
|
108
|
-
* @since 1.0.0
|
|
109
|
-
*/
|
|
110
|
-
export function tuple(versioneds) {
|
|
111
|
-
return make(Effect.map(Effect.all(versioneds.map((v) => v.version)), (versions) => versions.reduce(sum, 0)), core.tuple(versioneds), Effect.all(versioneds, { concurrency: "unbounded" }));
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* @since 1.0.0
|
|
115
|
-
*/
|
|
116
|
-
export function struct(versioneds) {
|
|
117
|
-
return make(Effect.map(Effect.all(Object.values(versioneds).map((v) => v.version)), (versions) => versions.reduce(sum, 0)), core.struct(versioneds), Effect.all(versioneds, { concurrency: "unbounded" }));
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* @since 1.0.0
|
|
121
|
-
*/
|
|
122
|
-
export const provide = dual(2, function provide(versioned, context) {
|
|
123
|
-
return make(Effect.provide(versioned.version, context), core.provide(versioned, context), Effect.provide(versioned, context));
|
|
124
|
-
});
|
|
125
|
-
/**
|
|
126
|
-
* @since 1.0.0
|
|
127
|
-
*/
|
|
128
|
-
export function of(value) {
|
|
129
|
-
return make(Effect.succeed(1), core.succeed(value), Effect.succeed(value));
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* @since 1.0.0
|
|
133
|
-
*/
|
|
134
|
-
export function hold(versioned) {
|
|
135
|
-
return make(versioned.version, coreShare.hold(versioned), versioned);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* @since 1.0.0
|
|
139
|
-
*/
|
|
140
|
-
export function multicast(versioned) {
|
|
141
|
-
return make(versioned.version, coreShare.multicast(versioned), versioned);
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* @since 1.0.0
|
|
145
|
-
*/
|
|
146
|
-
export function replay(versioned, bufferSize) {
|
|
147
|
-
return make(versioned.version, coreShare.replay(versioned, bufferSize), versioned);
|
|
148
|
-
}
|
|
149
|
-
//# sourceMappingURL=Versioned.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Versioned.js","sourceRoot":"","sources":["../../src/Versioned.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE5C,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAIvC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAA;AAwChD;;GAEG;AACH,MAAM,UAAU,IAAI,CAClB,OAAsC,EACtC,EAAkB,EAClB,MAAiC;IAEjC,OAAO,IAAI,aAAa,C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ACV,CAAA;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CACvB,SAAgD;IAEhD,OAAO,IAAI,CACT,SAAS,CAAC,OAAO,EACjB,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,EAC9B,SAAS,CACV,CAAA;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,MAAM,CACpB,SAAgD,EAChD,UAAkB;IAElB,OAAO,IAAI,CACT,SAAS,CAAC,OAAO,EACjB,SAAS,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,EACvC,SAAS,CACV,CAAA;AACH,CAAC"}
|
package/dist/esm/index.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fx<A, E, R> is a representation of an `Effect`-ful workflow that exists over
|
|
3
|
-
* the time dimension. It operates within a context `R`, can fail with an `E`,
|
|
4
|
-
* and succeed with an `A`.
|
|
5
|
-
*
|
|
6
|
-
* Any `Fx`, shorthand for "Effects", can emit 0 or more errors or events over an
|
|
7
|
-
* indefinite period of time. This is in contrast to `Effect` which can only
|
|
8
|
-
* produce exactly 1 error or event.
|
|
9
|
-
* @since 1.18.0
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* [Fx documentation](https://tylors.github.io/typed/fx/Fx.ts.html)
|
|
13
|
-
* @since 1.18.0
|
|
14
|
-
*/
|
|
15
|
-
export * from "./Fx.js";
|
|
16
|
-
/**
|
|
17
|
-
* [AsyncData documentation](https://tylors.github.io/typed/fx/AsyncData.ts.html)
|
|
18
|
-
* @since 1.18.0
|
|
19
|
-
*/
|
|
20
|
-
export * as AsyncData from "./AsyncData.js";
|
|
21
|
-
/**
|
|
22
|
-
* [Emitter documentation](https://tylors.github.io/typed/fx/Emitter.ts.html)
|
|
23
|
-
* @since 1.18.0
|
|
24
|
-
*/
|
|
25
|
-
export * as Emitter from "./Emitter.js";
|
|
26
|
-
/**
|
|
27
|
-
* [Form documentation](https://tylors.github.io/typed/fx/Form.ts.html)
|
|
28
|
-
* @since 1.18.0
|
|
29
|
-
*/
|
|
30
|
-
export * as Form from "./Form.js";
|
|
31
|
-
/**
|
|
32
|
-
* [FormEntry documentation](https://tylors.github.io/typed/fx/FormEntry.ts.html)
|
|
33
|
-
* @since 1.18.0
|
|
34
|
-
*/
|
|
35
|
-
export * as FormEntry from "./FormEntry.js";
|
|
36
|
-
/**
|
|
37
|
-
* [Idle documentation](https://tylors.github.io/typed/fx/Idle.ts.html)
|
|
38
|
-
* @since 1.18.0
|
|
39
|
-
*/
|
|
40
|
-
export * as Idle from "./Idle.js";
|
|
41
|
-
/**
|
|
42
|
-
* [Match documentation](https://tylors.github.io/typed/fx/Match.ts.html)
|
|
43
|
-
* @since 1.18.0
|
|
44
|
-
*/
|
|
45
|
-
export * as Match from "./Match.js";
|
|
46
|
-
/**
|
|
47
|
-
* [Pull documentation](https://tylors.github.io/typed/fx/Pull.ts.html)
|
|
48
|
-
* @since 1.18.0
|
|
49
|
-
*/
|
|
50
|
-
export * as Pull from "./Pull.js";
|
|
51
|
-
/**
|
|
52
|
-
* [Push documentation](https://tylors.github.io/typed/fx/Push.ts.html)
|
|
53
|
-
* @since 1.18.0
|
|
54
|
-
*/
|
|
55
|
-
export * as Push from "./Push.js";
|
|
56
|
-
/**
|
|
57
|
-
* [RefArray documentation](https://tylors.github.io/typed/fx/RefArray.ts.html)
|
|
58
|
-
* @since 1.18.0
|
|
59
|
-
*/
|
|
60
|
-
export * as RefArray from "./RefArray.js";
|
|
61
|
-
/**
|
|
62
|
-
* [RefChunk documentation](https://tylors.github.io/typed/fx/RefChunk.ts.html)
|
|
63
|
-
* @since 1.18.0
|
|
64
|
-
*/
|
|
65
|
-
export * as RefChunk from "./RefChunk.js";
|
|
66
|
-
/**
|
|
67
|
-
* [RefHashMap documentation](https://tylors.github.io/typed/fx/RefHashMap.ts.html)
|
|
68
|
-
* @since 1.18.0
|
|
69
|
-
*/
|
|
70
|
-
export * as RefHashMap from "./RefHashMap.js";
|
|
71
|
-
/**
|
|
72
|
-
* [RefHashSet documentation](https://tylors.github.io/typed/fx/RefHashSet.ts.html)
|
|
73
|
-
* @since 1.18.0
|
|
74
|
-
*/
|
|
75
|
-
export * as RefHashSet from "./RefHashSet.js";
|
|
76
|
-
/**
|
|
77
|
-
* [RefSubject documentation](https://tylors.github.io/typed/fx/RefSubject.ts.html)
|
|
78
|
-
* @since 1.18.0
|
|
79
|
-
*/
|
|
80
|
-
export * as RefSubject from "./RefSubject.js";
|
|
81
|
-
/**
|
|
82
|
-
* [Sink documentation](https://tylors.github.io/typed/fx/Sink.ts.html)
|
|
83
|
-
* @since 1.18.0
|
|
84
|
-
*/
|
|
85
|
-
export * as Sink from "./Sink.js";
|
|
86
|
-
/**
|
|
87
|
-
* [Stream documentation](https://tylors.github.io/typed/fx/Stream.ts.html)
|
|
88
|
-
* @since 1.18.0
|
|
89
|
-
*/
|
|
90
|
-
export * as Stream from "./Stream.js";
|
|
91
|
-
/**
|
|
92
|
-
* [Subject documentation](https://tylors.github.io/typed/fx/Subject.ts.html)
|
|
93
|
-
* @since 1.18.0
|
|
94
|
-
*/
|
|
95
|
-
export * as Subject from "./Subject.js";
|
|
96
|
-
/**
|
|
97
|
-
* [Typeclass documentation](https://tylors.github.io/typed/fx/Typeclass.ts.html)
|
|
98
|
-
* @since 1.18.0
|
|
99
|
-
*/
|
|
100
|
-
export * as Typeclass from "./Typeclass.js";
|
|
101
|
-
/**
|
|
102
|
-
* [TypeId documentation](https://tylors.github.io/typed/fx/TypeId.ts.html)
|
|
103
|
-
* @since 1.18.0
|
|
104
|
-
*/
|
|
105
|
-
export * from "./TypeId.js";
|
|
106
|
-
/**
|
|
107
|
-
* [Versioned documentation](https://tylors.github.io/typed/fx/Versioned.ts.html)
|
|
108
|
-
* @since 1.18.0
|
|
109
|
-
*/
|
|
110
|
-
export * as Versioned from "./Versioned.js";
|
|
111
|
-
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
DELETED
|
@@ -1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":3,"file":"UnionToTuple.js","sourceRoot":"","sources":["../../../src/internal/UnionToTuple.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Construct a constrained bounds
|
|
2
|
-
export const boundsFrom = (unsafeMin, unsafeMax) => {
|
|
3
|
-
const min = Math.max(0, unsafeMin);
|
|
4
|
-
const max = Math.max(min, unsafeMax);
|
|
5
|
-
return { min, max };
|
|
6
|
-
};
|
|
7
|
-
// Combine 2 bounds by narrowing min and max
|
|
8
|
-
export const mergeBounds = (b1, b2) => boundsFrom(b1.min + b2.min, Math.min(b1.max, b1.min + b2.max));
|
|
9
|
-
// Nil bounds excludes all slice indices
|
|
10
|
-
export const isNilBounds = (b) => b.min >= b.max;
|
|
11
|
-
// Infinite bounds includes all slice indices
|
|
12
|
-
export const isInfiniteBounds = (b) => b.min <= 0 && b.max === Infinity;
|
|
13
|
-
//# sourceMappingURL=bounds.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bounds.js","sourceRoot":"","sources":["../../../src/internal/bounds.ts"],"names":[],"mappings":"AAKA,iCAAiC;AACjC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,SAAiB,EAAE,SAAiB,EAAU,EAAE;IACzE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;IAClC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;IACpC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;AACrB,CAAC,CAAA;AAED,4CAA4C;AAC5C,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,EAAU,EAAU,EAAE,CAC5D,UAAU,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;AAEhE,wCAAwC;AACxC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAS,EAAW,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAA;AAEjE,6CAA6C;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAS,EAAW,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAA"}
|