@typed/fx 2.0.0-beta.1 → 2.0.0-beta.10
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/LICENSE +21 -0
- package/README.md +35 -21
- package/dist/Fx/Fx.d.ts +371 -19
- package/dist/Fx/Fx.d.ts.map +1 -1
- package/dist/Fx/Fx.js +37 -6
- package/dist/Fx/TypeId.d.ts +52 -6
- package/dist/Fx/TypeId.d.ts.map +1 -1
- package/dist/Fx/TypeId.js +41 -4
- package/dist/Fx/combinators/additive.d.ts +162 -11
- package/dist/Fx/combinators/additive.d.ts.map +1 -1
- package/dist/Fx/combinators/additive.js +162 -11
- package/dist/Fx/combinators/catch.d.ts +202 -29
- package/dist/Fx/combinators/catch.d.ts.map +1 -1
- package/dist/Fx/combinators/catch.js +193 -23
- package/dist/Fx/combinators/causes.d.ts +25 -2
- package/dist/Fx/combinators/causes.d.ts.map +1 -1
- package/dist/Fx/combinators/causes.js +25 -2
- package/dist/Fx/combinators/changesWithEffect.d.ts +21 -1
- package/dist/Fx/combinators/changesWithEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/changesWithEffect.js +21 -1
- package/dist/Fx/combinators/compact.d.ts +18 -1
- package/dist/Fx/combinators/compact.d.ts.map +1 -1
- package/dist/Fx/combinators/compact.js +18 -1
- package/dist/Fx/combinators/concatMap.d.ts +86 -0
- package/dist/Fx/combinators/concatMap.d.ts.map +1 -0
- package/dist/Fx/combinators/concatMap.js +86 -0
- package/dist/Fx/combinators/continueWith.d.ts +113 -5
- package/dist/Fx/combinators/continueWith.d.ts.map +1 -1
- package/dist/Fx/combinators/continueWith.js +113 -5
- package/dist/Fx/combinators/debounce.d.ts +34 -0
- package/dist/Fx/combinators/debounce.d.ts.map +1 -0
- package/dist/Fx/combinators/debounce.js +35 -0
- package/dist/Fx/combinators/delay.d.ts +36 -0
- package/dist/Fx/combinators/delay.d.ts.map +1 -0
- package/dist/Fx/combinators/delay.js +33 -0
- package/dist/Fx/combinators/dropUntil.d.ts +44 -2
- package/dist/Fx/combinators/dropUntil.d.ts.map +1 -1
- package/dist/Fx/combinators/dropUntil.js +44 -2
- package/dist/Fx/combinators/during.d.ts +38 -0
- package/dist/Fx/combinators/during.d.ts.map +1 -0
- package/dist/Fx/combinators/during.js +85 -0
- package/dist/Fx/combinators/ensuring.d.ts +34 -4
- package/dist/Fx/combinators/ensuring.d.ts.map +1 -1
- package/dist/Fx/combinators/ensuring.js +34 -4
- package/dist/Fx/combinators/exhaustLatestMap.d.ts +41 -5
- package/dist/Fx/combinators/exhaustLatestMap.d.ts.map +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.js +41 -5
- package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts +40 -4
- package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.js +40 -4
- package/dist/Fx/combinators/exhaustMap.d.ts +38 -1
- package/dist/Fx/combinators/exhaustMap.d.ts.map +1 -1
- package/dist/Fx/combinators/exhaustMap.js +38 -1
- package/dist/Fx/combinators/exhaustMapEffect.d.ts +33 -1
- package/dist/Fx/combinators/exhaustMapEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.js +33 -1
- package/dist/Fx/combinators/exit.d.ts +23 -2
- package/dist/Fx/combinators/exit.d.ts.map +1 -1
- package/dist/Fx/combinators/exit.js +23 -2
- package/dist/Fx/combinators/filter.d.ts +17 -1
- package/dist/Fx/combinators/filter.d.ts.map +1 -1
- package/dist/Fx/combinators/filter.js +17 -1
- package/dist/Fx/combinators/filterEffect.d.ts +22 -1
- package/dist/Fx/combinators/filterEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/filterEffect.js +22 -1
- package/dist/Fx/combinators/filterMap.d.ts +20 -1
- package/dist/Fx/combinators/filterMap.d.ts.map +1 -1
- package/dist/Fx/combinators/filterMap.js +20 -1
- package/dist/Fx/combinators/filterMapEffect.d.ts +21 -1
- package/dist/Fx/combinators/filterMapEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/filterMapEffect.js +21 -1
- package/dist/Fx/combinators/filterMapLoop.d.ts +20 -1
- package/dist/Fx/combinators/filterMapLoop.d.ts.map +1 -1
- package/dist/Fx/combinators/filterMapLoop.js +20 -1
- package/dist/Fx/combinators/filterMapLoopCause.d.ts +21 -1
- package/dist/Fx/combinators/filterMapLoopCause.d.ts.map +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.js +21 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts +21 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.js +21 -1
- package/dist/Fx/combinators/filterMapLoopEffect.d.ts +21 -1
- package/dist/Fx/combinators/filterMapLoopEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.js +21 -1
- package/dist/Fx/combinators/flatMap.d.ts +50 -5
- package/dist/Fx/combinators/flatMap.d.ts.map +1 -1
- package/dist/Fx/combinators/flatMap.js +36 -3
- package/dist/Fx/combinators/flatMapConcurrently.d.ts +51 -4
- package/dist/Fx/combinators/flatMapConcurrently.d.ts.map +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.js +48 -2
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts +48 -4
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.js +40 -2
- package/dist/Fx/combinators/flatMapEffect.d.ts +46 -4
- package/dist/Fx/combinators/flatMapEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/flatMapEffect.js +32 -2
- package/dist/Fx/combinators/flip.d.ts +34 -2
- package/dist/Fx/combinators/flip.d.ts.map +1 -1
- package/dist/Fx/combinators/flip.js +34 -2
- package/dist/Fx/combinators/gen.d.ts +29 -10
- package/dist/Fx/combinators/gen.d.ts.map +1 -1
- package/dist/Fx/combinators/gen.js +28 -4
- package/dist/Fx/combinators/genScoped.d.ts +33 -10
- package/dist/Fx/combinators/genScoped.d.ts.map +1 -1
- package/dist/Fx/combinators/genScoped.js +31 -3
- package/dist/Fx/combinators/grouped.d.ts +89 -0
- package/dist/Fx/combinators/grouped.d.ts.map +1 -0
- package/dist/Fx/combinators/grouped.js +146 -0
- package/dist/Fx/combinators/index.d.ts +35 -0
- package/dist/Fx/combinators/index.d.ts.map +1 -1
- package/dist/Fx/combinators/index.js +35 -0
- package/dist/Fx/combinators/keyed.d.ts +123 -9
- package/dist/Fx/combinators/keyed.d.ts.map +1 -1
- package/dist/Fx/combinators/keyed.js +69 -11
- package/dist/Fx/combinators/loop.d.ts +17 -1
- package/dist/Fx/combinators/loop.d.ts.map +1 -1
- package/dist/Fx/combinators/loop.js +17 -1
- package/dist/Fx/combinators/loopCause.d.ts +18 -1
- package/dist/Fx/combinators/loopCause.d.ts.map +1 -1
- package/dist/Fx/combinators/loopCause.js +18 -1
- package/dist/Fx/combinators/loopCauseEffect.d.ts +19 -1
- package/dist/Fx/combinators/loopCauseEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/loopCauseEffect.js +19 -1
- package/dist/Fx/combinators/loopEffect.d.ts +24 -1
- package/dist/Fx/combinators/loopEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/loopEffect.js +24 -1
- package/dist/Fx/combinators/map.d.ts +46 -1
- package/dist/Fx/combinators/map.d.ts.map +1 -1
- package/dist/Fx/combinators/map.js +43 -1
- package/dist/Fx/combinators/mapBoth.d.ts +20 -1
- package/dist/Fx/combinators/mapBoth.d.ts.map +1 -1
- package/dist/Fx/combinators/mapBoth.js +20 -1
- package/dist/Fx/combinators/mapEffect.d.ts +25 -1
- package/dist/Fx/combinators/mapEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/mapEffect.js +25 -1
- package/dist/Fx/combinators/mapError.d.ts +21 -5
- package/dist/Fx/combinators/mapError.d.ts.map +1 -1
- package/dist/Fx/combinators/mapError.js +21 -5
- package/dist/Fx/combinators/mergeAll.d.ts +35 -1
- package/dist/Fx/combinators/mergeAll.d.ts.map +1 -1
- package/dist/Fx/combinators/mergeAll.js +35 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts +36 -4
- package/dist/Fx/combinators/mergeOrdered.d.ts.map +1 -1
- package/dist/Fx/combinators/mergeOrdered.js +68 -14
- package/dist/Fx/combinators/onError.d.ts +34 -4
- package/dist/Fx/combinators/onError.d.ts.map +1 -1
- package/dist/Fx/combinators/onError.js +34 -4
- package/dist/Fx/combinators/onExit.d.ts +29 -3
- package/dist/Fx/combinators/onExit.d.ts.map +1 -1
- package/dist/Fx/combinators/onExit.js +29 -3
- package/dist/Fx/combinators/onInterrupt.d.ts +49 -4
- package/dist/Fx/combinators/onInterrupt.d.ts.map +1 -1
- package/dist/Fx/combinators/onInterrupt.js +49 -4
- package/dist/Fx/combinators/pairwise.d.ts +28 -0
- package/dist/Fx/combinators/pairwise.d.ts.map +1 -0
- package/dist/Fx/combinators/pairwise.js +31 -0
- package/dist/Fx/combinators/provide.d.ts +141 -20
- package/dist/Fx/combinators/provide.d.ts.map +1 -1
- package/dist/Fx/combinators/provide.js +137 -16
- package/dist/Fx/combinators/race.d.ts +92 -0
- package/dist/Fx/combinators/race.d.ts.map +1 -0
- package/dist/Fx/combinators/race.js +149 -0
- package/dist/Fx/combinators/repeat.d.ts +41 -0
- package/dist/Fx/combinators/repeat.d.ts.map +1 -0
- package/dist/Fx/combinators/repeat.js +57 -0
- package/dist/Fx/combinators/result.d.ts +23 -1
- package/dist/Fx/combinators/result.d.ts.map +1 -1
- package/dist/Fx/combinators/result.js +27 -13
- package/dist/Fx/combinators/retry.d.ts +53 -0
- package/dist/Fx/combinators/retry.d.ts.map +1 -0
- package/dist/Fx/combinators/retry.js +71 -0
- package/dist/Fx/combinators/sample.d.ts +31 -0
- package/dist/Fx/combinators/sample.d.ts.map +1 -0
- package/dist/Fx/combinators/sample.js +42 -0
- package/dist/Fx/combinators/scan.d.ts +41 -2
- package/dist/Fx/combinators/scan.d.ts.map +1 -1
- package/dist/Fx/combinators/scan.js +43 -4
- package/dist/Fx/combinators/since.d.ts +30 -0
- package/dist/Fx/combinators/since.d.ts.map +1 -0
- package/dist/Fx/combinators/since.js +39 -0
- package/dist/Fx/combinators/skip.d.ts +33 -2
- package/dist/Fx/combinators/skip.d.ts.map +1 -1
- package/dist/Fx/combinators/skip.js +33 -2
- package/dist/Fx/combinators/skipRepeats.d.ts +17 -1
- package/dist/Fx/combinators/skipRepeats.d.ts.map +1 -1
- package/dist/Fx/combinators/skipRepeats.js +17 -1
- package/dist/Fx/combinators/skipRepeatsWith.d.ts +18 -1
- package/dist/Fx/combinators/skipRepeatsWith.d.ts.map +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.js +18 -1
- package/dist/Fx/combinators/skipWhile.d.ts +72 -4
- package/dist/Fx/combinators/skipWhile.d.ts.map +1 -1
- package/dist/Fx/combinators/skipWhile.js +72 -4
- package/dist/Fx/combinators/slice.d.ts +85 -3
- package/dist/Fx/combinators/slice.d.ts.map +1 -1
- package/dist/Fx/combinators/slice.js +35 -2
- package/dist/Fx/combinators/switchMap.d.ts +39 -1
- package/dist/Fx/combinators/switchMap.d.ts.map +1 -1
- package/dist/Fx/combinators/switchMap.js +43 -5
- package/dist/Fx/combinators/switchMapEffect.d.ts +38 -1
- package/dist/Fx/combinators/switchMapEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/switchMapEffect.js +38 -1
- package/dist/Fx/combinators/take.d.ts +34 -2
- package/dist/Fx/combinators/take.d.ts.map +1 -1
- package/dist/Fx/combinators/take.js +34 -2
- package/dist/Fx/combinators/takeUntil.d.ts +49 -3
- package/dist/Fx/combinators/takeUntil.d.ts.map +1 -1
- package/dist/Fx/combinators/takeUntil.js +49 -3
- package/dist/Fx/combinators/takeWhile.d.ts +33 -2
- package/dist/Fx/combinators/takeWhile.d.ts.map +1 -1
- package/dist/Fx/combinators/takeWhile.js +33 -2
- package/dist/Fx/combinators/tapEffect.d.ts +17 -1
- package/dist/Fx/combinators/tapEffect.d.ts.map +1 -1
- package/dist/Fx/combinators/tapEffect.js +17 -1
- package/dist/Fx/combinators/throttle.d.ts +79 -0
- package/dist/Fx/combinators/throttle.d.ts.map +1 -0
- package/dist/Fx/combinators/throttle.js +99 -0
- package/dist/Fx/combinators/timeout.d.ts +76 -0
- package/dist/Fx/combinators/timeout.d.ts.map +1 -0
- package/dist/Fx/combinators/timeout.js +110 -0
- package/dist/Fx/combinators/tuple.d.ts +32 -2
- package/dist/Fx/combinators/tuple.d.ts.map +1 -1
- package/dist/Fx/combinators/tuple.js +36 -5
- package/dist/Fx/combinators/until.d.ts +27 -0
- package/dist/Fx/combinators/until.d.ts.map +1 -0
- package/dist/Fx/combinators/until.js +56 -0
- package/dist/Fx/combinators/unwrap.d.ts +31 -2
- package/dist/Fx/combinators/unwrap.d.ts.map +1 -1
- package/dist/Fx/combinators/unwrap.js +30 -1
- package/dist/Fx/combinators/unwrapScoped.d.ts +34 -1
- package/dist/Fx/combinators/unwrapScoped.d.ts.map +1 -1
- package/dist/Fx/combinators/unwrapScoped.js +34 -1
- package/dist/Fx/combinators/when.d.ts +37 -2
- package/dist/Fx/combinators/when.d.ts.map +1 -1
- package/dist/Fx/combinators/when.js +38 -3
- package/dist/Fx/combinators/withLatestFrom.d.ts +58 -0
- package/dist/Fx/combinators/withLatestFrom.d.ts.map +1 -0
- package/dist/Fx/combinators/withLatestFrom.js +68 -0
- package/dist/Fx/combinators/withSpan.d.ts +35 -1
- package/dist/Fx/combinators/withSpan.d.ts.map +1 -1
- package/dist/Fx/combinators/withSpan.js +34 -3
- package/dist/Fx/combinators/zip.d.ts +64 -4
- package/dist/Fx/combinators/zip.d.ts.map +1 -1
- package/dist/Fx/combinators/zip.js +64 -4
- package/dist/Fx/constructors/at.d.ts +21 -1
- package/dist/Fx/constructors/at.d.ts.map +1 -1
- package/dist/Fx/constructors/at.js +21 -1
- package/dist/Fx/constructors/die.d.ts +22 -1
- package/dist/Fx/constructors/die.d.ts.map +1 -1
- package/dist/Fx/constructors/die.js +22 -1
- package/dist/Fx/constructors/empty.d.ts +19 -1
- package/dist/Fx/constructors/empty.d.ts.map +1 -1
- package/dist/Fx/constructors/empty.js +19 -1
- package/dist/Fx/constructors/fail.d.ts +22 -1
- package/dist/Fx/constructors/fail.d.ts.map +1 -1
- package/dist/Fx/constructors/fail.js +22 -1
- package/dist/Fx/constructors/failCause.d.ts +23 -1
- package/dist/Fx/constructors/failCause.d.ts.map +1 -1
- package/dist/Fx/constructors/failCause.js +23 -1
- package/dist/Fx/constructors/fn.d.ts +116 -16
- package/dist/Fx/constructors/fn.d.ts.map +1 -1
- package/dist/Fx/constructors/fn.js +36 -0
- package/dist/Fx/constructors/fromEffect.d.ts +45 -3
- package/dist/Fx/constructors/fromEffect.d.ts.map +1 -1
- package/dist/Fx/constructors/fromEffect.js +45 -3
- package/dist/Fx/constructors/fromFailures.d.ts +25 -1
- package/dist/Fx/constructors/fromFailures.d.ts.map +1 -1
- package/dist/Fx/constructors/fromFailures.js +25 -1
- package/dist/Fx/constructors/fromIterable.d.ts +23 -1
- package/dist/Fx/constructors/fromIterable.d.ts.map +1 -1
- package/dist/Fx/constructors/fromIterable.js +23 -1
- package/dist/Fx/constructors/fromSchedule.d.ts +26 -1
- package/dist/Fx/constructors/fromSchedule.d.ts.map +1 -1
- package/dist/Fx/constructors/fromSchedule.js +28 -3
- package/dist/Fx/constructors/index.d.ts +2 -1
- package/dist/Fx/constructors/index.d.ts.map +1 -1
- package/dist/Fx/constructors/index.js +2 -1
- package/dist/Fx/constructors/interrupt.d.ts +22 -2
- package/dist/Fx/constructors/interrupt.d.ts.map +1 -1
- package/dist/Fx/constructors/interrupt.js +22 -2
- package/dist/Fx/constructors/make.d.ts +151 -4
- package/dist/Fx/constructors/make.d.ts.map +1 -1
- package/dist/Fx/constructors/make.js +60 -7
- package/dist/Fx/constructors/periodic.d.ts +30 -1
- package/dist/Fx/constructors/periodic.d.ts.map +1 -1
- package/dist/Fx/constructors/periodic.js +30 -1
- package/dist/Fx/constructors/succeed.d.ts +79 -7
- package/dist/Fx/constructors/succeed.d.ts.map +1 -1
- package/dist/Fx/constructors/succeed.js +79 -7
- package/dist/Fx/constructors/suspend.d.ts +28 -0
- package/dist/Fx/constructors/suspend.d.ts.map +1 -1
- package/dist/Fx/constructors/suspend.js +28 -0
- package/dist/Fx/constructors/sync.d.ts +32 -0
- package/dist/Fx/constructors/sync.d.ts.map +1 -0
- package/dist/Fx/constructors/sync.js +32 -0
- package/dist/Fx/internal/DeferredRef.d.ts +259 -7
- package/dist/Fx/internal/DeferredRef.d.ts.map +1 -1
- package/dist/Fx/internal/DeferredRef.js +260 -9
- package/dist/Fx/internal/UnionToTuple.d.ts +22 -0
- package/dist/Fx/internal/UnionToTuple.d.ts.map +1 -1
- package/dist/Fx/internal/diff.d.ts +586 -0
- package/dist/Fx/internal/diff.d.ts.map +1 -1
- package/dist/Fx/internal/diff.js +120 -9
- package/dist/Fx/internal/effectableEvaluateKey.d.ts +30 -0
- package/dist/Fx/internal/effectableEvaluateKey.d.ts.map +1 -0
- package/dist/Fx/internal/effectableEvaluateKey.js +29 -0
- package/dist/Fx/internal/effectableWithOverride.d.ts +55 -0
- package/dist/Fx/internal/effectableWithOverride.d.ts.map +1 -0
- package/dist/Fx/internal/effectableWithOverride.js +46 -0
- package/dist/Fx/internal/equivalence.d.ts +29 -0
- package/dist/Fx/internal/equivalence.d.ts.map +1 -1
- package/dist/Fx/internal/equivalence.js +29 -0
- package/dist/Fx/internal/multicast.d.ts +145 -2
- package/dist/Fx/internal/multicast.d.ts.map +1 -1
- package/dist/Fx/internal/multicast.js +146 -4
- package/dist/Fx/internal/ring-buffer.d.ts +149 -0
- package/dist/Fx/internal/ring-buffer.d.ts.map +1 -1
- package/dist/Fx/internal/ring-buffer.js +155 -0
- package/dist/Fx/internal/scope.d.ts +184 -0
- package/dist/Fx/internal/scope.d.ts.map +1 -1
- package/dist/Fx/internal/scope.js +150 -0
- package/dist/Fx/internal/yieldable.d.ts +117 -2
- package/dist/Fx/internal/yieldable.d.ts.map +1 -1
- package/dist/Fx/internal/yieldable.js +86 -3
- package/dist/Fx/run/collect.d.ts +93 -4
- package/dist/Fx/run/collect.d.ts.map +1 -1
- package/dist/Fx/run/collect.js +94 -5
- package/dist/Fx/run/first.d.ts +23 -1
- package/dist/Fx/run/first.d.ts.map +1 -1
- package/dist/Fx/run/first.js +23 -1
- package/dist/Fx/run/fork.d.ts +52 -2
- package/dist/Fx/run/fork.d.ts.map +1 -1
- package/dist/Fx/run/fork.js +52 -2
- package/dist/Fx/run/observe.d.ts +112 -4
- package/dist/Fx/run/observe.d.ts.map +1 -1
- package/dist/Fx/run/observe.js +137 -16
- package/dist/Fx/run/runPromise.d.ts +45 -2
- package/dist/Fx/run/runPromise.d.ts.map +1 -1
- package/dist/Fx/run/runPromise.js +45 -2
- package/dist/Fx/stream.d.ts +92 -0
- package/dist/Fx/stream.d.ts.map +1 -1
- package/dist/Fx/stream.js +60 -1
- package/dist/Push/Push.d.ts +1229 -104
- package/dist/Push/Push.d.ts.map +1 -1
- package/dist/Push/Push.js +1024 -95
- package/dist/RefArray.d.ts +2 -0
- package/dist/RefArray.d.ts.map +1 -0
- package/dist/RefArray.js +1 -0
- package/dist/RefBigDecimal.d.ts +2 -0
- package/dist/RefBigDecimal.d.ts.map +1 -0
- package/dist/RefBigDecimal.js +1 -0
- package/dist/RefBigInt.d.ts +2 -0
- package/dist/RefBigInt.d.ts.map +1 -0
- package/dist/RefBigInt.js +1 -0
- package/dist/RefBoolean.d.ts +2 -0
- package/dist/RefBoolean.d.ts.map +1 -0
- package/dist/RefBoolean.js +1 -0
- package/dist/RefCause.d.ts +2 -0
- package/dist/RefCause.d.ts.map +1 -0
- package/dist/RefCause.js +1 -0
- package/dist/RefChunk.d.ts +2 -0
- package/dist/RefChunk.d.ts.map +1 -0
- package/dist/RefChunk.js +1 -0
- package/dist/RefDateTime.d.ts +2 -0
- package/dist/RefDateTime.d.ts.map +1 -0
- package/dist/RefDateTime.js +1 -0
- package/dist/RefDuration.d.ts +2 -0
- package/dist/RefDuration.d.ts.map +1 -0
- package/dist/RefDuration.js +1 -0
- package/dist/RefGraph.d.ts +2 -0
- package/dist/RefGraph.d.ts.map +1 -0
- package/dist/RefGraph.js +1 -0
- package/dist/RefHashMap.d.ts +2 -0
- package/dist/RefHashMap.d.ts.map +1 -0
- package/dist/RefHashMap.js +1 -0
- package/dist/RefHashRing.d.ts +2 -0
- package/dist/RefHashRing.d.ts.map +1 -0
- package/dist/RefHashRing.js +1 -0
- package/dist/RefHashSet.d.ts +2 -0
- package/dist/RefHashSet.d.ts.map +1 -0
- package/dist/RefHashSet.js +1 -0
- package/dist/RefIterable.d.ts +2 -0
- package/dist/RefIterable.d.ts.map +1 -0
- package/dist/RefIterable.js +1 -0
- package/dist/RefOption.d.ts +2 -0
- package/dist/RefOption.d.ts.map +1 -0
- package/dist/RefOption.js +1 -0
- package/dist/RefRecord.d.ts +2 -0
- package/dist/RefRecord.d.ts.map +1 -0
- package/dist/RefRecord.js +1 -0
- package/dist/RefResult.d.ts +2 -0
- package/dist/RefResult.d.ts.map +1 -0
- package/dist/RefResult.js +1 -0
- package/dist/RefString.d.ts +2 -0
- package/dist/RefString.d.ts.map +1 -0
- package/dist/RefString.js +1 -0
- package/dist/RefStruct.d.ts +2 -0
- package/dist/RefStruct.d.ts.map +1 -0
- package/dist/RefStruct.js +1 -0
- package/dist/RefSubject/Hydration.d.ts +504 -0
- package/dist/RefSubject/Hydration.d.ts.map +1 -0
- package/dist/RefSubject/Hydration.js +300 -0
- package/dist/RefSubject/RefArray.d.ts +382 -35
- package/dist/RefSubject/RefArray.d.ts.map +1 -1
- package/dist/RefSubject/RefArray.js +374 -40
- package/dist/RefSubject/RefBigDecimal.d.ts +241 -21
- package/dist/RefSubject/RefBigDecimal.d.ts.map +1 -1
- package/dist/RefSubject/RefBigDecimal.js +229 -20
- package/dist/RefSubject/RefBigInt.d.ts +181 -16
- package/dist/RefSubject/RefBigInt.d.ts.map +1 -1
- package/dist/RefSubject/RefBigInt.js +169 -15
- package/dist/RefSubject/RefBoolean.d.ts +181 -16
- package/dist/RefSubject/RefBoolean.d.ts.map +1 -1
- package/dist/RefSubject/RefBoolean.js +169 -15
- package/dist/RefSubject/RefCause.d.ts +133 -12
- package/dist/RefSubject/RefCause.d.ts.map +1 -1
- package/dist/RefSubject/RefCause.js +121 -11
- package/dist/RefSubject/RefChunk.d.ts +481 -76
- package/dist/RefSubject/RefChunk.d.ts.map +1 -1
- package/dist/RefSubject/RefChunk.js +471 -75
- package/dist/RefSubject/RefDateTime.d.ts +133 -12
- package/dist/RefSubject/RefDateTime.d.ts.map +1 -1
- package/dist/RefSubject/RefDateTime.js +122 -12
- package/dist/RefSubject/RefDuration.d.ts +169 -15
- package/dist/RefSubject/RefDuration.d.ts.map +1 -1
- package/dist/RefSubject/RefDuration.js +157 -14
- package/dist/RefSubject/RefGraph.d.ts +349 -35
- package/dist/RefSubject/RefGraph.d.ts.map +1 -1
- package/dist/RefSubject/RefGraph.js +334 -32
- package/dist/RefSubject/RefHashMap.d.ts +323 -28
- package/dist/RefSubject/RefHashMap.d.ts.map +1 -1
- package/dist/RefSubject/RefHashMap.js +317 -29
- package/dist/RefSubject/RefHashRing.d.ts +159 -15
- package/dist/RefSubject/RefHashRing.d.ts.map +1 -1
- package/dist/RefSubject/RefHashRing.js +145 -12
- package/dist/RefSubject/RefHashSet.d.ts +251 -22
- package/dist/RefSubject/RefHashSet.d.ts.map +1 -1
- package/dist/RefSubject/RefHashSet.js +238 -20
- package/dist/RefSubject/RefIterable.d.ts +358 -32
- package/dist/RefSubject/RefIterable.d.ts.map +1 -1
- package/dist/RefSubject/RefIterable.js +350 -30
- package/dist/RefSubject/RefOption.d.ts +157 -14
- package/dist/RefSubject/RefOption.d.ts.map +1 -1
- package/dist/RefSubject/RefOption.js +145 -13
- package/dist/RefSubject/RefRecord.d.ts +402 -64
- package/dist/RefSubject/RefRecord.d.ts.map +1 -1
- package/dist/RefSubject/RefRecord.js +364 -39
- package/dist/RefSubject/RefResult.d.ts +167 -35
- package/dist/RefSubject/RefResult.d.ts.map +1 -1
- package/dist/RefSubject/RefResult.js +133 -12
- package/dist/RefSubject/RefString.d.ts +205 -18
- package/dist/RefSubject/RefString.d.ts.map +1 -1
- package/dist/RefSubject/RefString.js +193 -17
- package/dist/RefSubject/RefStruct.d.ts +169 -14
- package/dist/RefSubject/RefStruct.d.ts.map +1 -1
- package/dist/RefSubject/RefStruct.js +157 -13
- package/dist/RefSubject/RefSubject.d.ts +1197 -45
- package/dist/RefSubject/RefSubject.d.ts.map +1 -1
- package/dist/RefSubject/RefSubject.js +935 -88
- package/dist/RefSubject/RefTrie.d.ts +323 -37
- package/dist/RefSubject/RefTrie.d.ts.map +1 -1
- package/dist/RefSubject/RefTrie.js +311 -31
- package/dist/RefSubject/RefTuple.d.ts +127 -11
- package/dist/RefSubject/RefTuple.d.ts.map +1 -1
- package/dist/RefSubject/RefTuple.js +114 -9
- package/dist/RefSubject/index.d.ts +1 -0
- package/dist/RefSubject/index.d.ts.map +1 -1
- package/dist/RefSubject/index.js +1 -0
- package/dist/RefSubject.d.ts +2 -1
- package/dist/RefSubject.d.ts.map +1 -1
- package/dist/RefSubject.js +2 -1
- package/dist/RefTrie.d.ts +2 -0
- package/dist/RefTrie.d.ts.map +1 -0
- package/dist/RefTrie.js +1 -0
- package/dist/RefTuple.d.ts +2 -0
- package/dist/RefTuple.d.ts.map +1 -0
- package/dist/RefTuple.js +1 -0
- package/dist/Sink/Sink.d.ts +396 -23
- package/dist/Sink/Sink.d.ts.map +1 -1
- package/dist/Sink/Sink.js +55 -7
- package/dist/Sink/combinators.d.ts +740 -11
- package/dist/Sink/combinators.d.ts.map +1 -1
- package/dist/Sink/combinators.js +716 -14
- package/dist/Subject/Subject.d.ts +1022 -27
- package/dist/Subject/Subject.d.ts.map +1 -1
- package/dist/Subject/Subject.js +909 -43
- package/dist/Versioned/Versioned.d.ts +447 -27
- package/dist/Versioned/Versioned.d.ts.map +1 -1
- package/dist/Versioned/Versioned.js +282 -48
- package/dist/index.d.ts +22 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -3
- package/package.json +126 -16
- package/dist/Fx/constructors/fromYieldable.d.ts +0 -12
- package/dist/Fx/constructors/fromYieldable.d.ts.map +0 -1
- package/dist/Fx/constructors/fromYieldable.js +0 -12
- package/src/Fx/Fx.ts +0 -164
- package/src/Fx/TypeId.ts +0 -25
- package/src/Fx/combinators/additive.ts +0 -142
- package/src/Fx/combinators/catch.ts +0 -421
- package/src/Fx/combinators/causes.ts +0 -23
- package/src/Fx/combinators/changesWithEffect.ts +0 -66
- package/src/Fx/combinators/compact.ts +0 -15
- package/src/Fx/combinators/continueWith.ts +0 -78
- package/src/Fx/combinators/dropUntil.ts +0 -47
- package/src/Fx/combinators/ensuring.ts +0 -23
- package/src/Fx/combinators/exhaustLatestMap.ts +0 -74
- package/src/Fx/combinators/exhaustLatestMapEffect.ts +0 -25
- package/src/Fx/combinators/exhaustMap.ts +0 -36
- package/src/Fx/combinators/exhaustMapEffect.ts +0 -23
- package/src/Fx/combinators/exit.ts +0 -15
- package/src/Fx/combinators/filter.ts +0 -22
- package/src/Fx/combinators/filterEffect.ts +0 -31
- package/src/Fx/combinators/filterMap.ts +0 -23
- package/src/Fx/combinators/filterMapEffect.ts +0 -32
- package/src/Fx/combinators/filterMapLoop.ts +0 -35
- package/src/Fx/combinators/filterMapLoopCause.ts +0 -36
- package/src/Fx/combinators/filterMapLoopCauseEffect.ts +0 -46
- package/src/Fx/combinators/filterMapLoopEffect.ts +0 -36
- package/src/Fx/combinators/flatMap.ts +0 -51
- package/src/Fx/combinators/flatMapConcurrently.ts +0 -39
- package/src/Fx/combinators/flatMapConcurrentlyEffect.ts +0 -26
- package/src/Fx/combinators/flatMapEffect.ts +0 -42
- package/src/Fx/combinators/flip.ts +0 -14
- package/src/Fx/combinators/gen.ts +0 -24
- package/src/Fx/combinators/genScoped.ts +0 -24
- package/src/Fx/combinators/index.ts +0 -61
- package/src/Fx/combinators/keyed.ts +0 -369
- package/src/Fx/combinators/loop.ts +0 -27
- package/src/Fx/combinators/loopCause.ts +0 -34
- package/src/Fx/combinators/loopCauseEffect.ts +0 -36
- package/src/Fx/combinators/loopEffect.ts +0 -34
- package/src/Fx/combinators/map.ts +0 -22
- package/src/Fx/combinators/mapBoth.ts +0 -40
- package/src/Fx/combinators/mapEffect.ts +0 -32
- package/src/Fx/combinators/mapError.ts +0 -28
- package/src/Fx/combinators/mergeAll.ts +0 -22
- package/src/Fx/combinators/mergeOrdered.ts +0 -123
- package/src/Fx/combinators/onError.ts +0 -40
- package/src/Fx/combinators/onExit.ts +0 -82
- package/src/Fx/combinators/onInterrupt.ts +0 -87
- package/src/Fx/combinators/provide.ts +0 -124
- package/src/Fx/combinators/result.ts +0 -39
- package/src/Fx/combinators/scan.ts +0 -82
- package/src/Fx/combinators/skip.ts +0 -41
- package/src/Fx/combinators/skipRepeats.ts +0 -15
- package/src/Fx/combinators/skipRepeatsWith.ts +0 -40
- package/src/Fx/combinators/skipWhile.ts +0 -100
- package/src/Fx/combinators/slice.ts +0 -55
- package/src/Fx/combinators/switchMap.ts +0 -55
- package/src/Fx/combinators/switchMapEffect.ts +0 -25
- package/src/Fx/combinators/take.ts +0 -38
- package/src/Fx/combinators/takeUntil.ts +0 -88
- package/src/Fx/combinators/takeWhile.ts +0 -47
- package/src/Fx/combinators/tapEffect.ts +0 -39
- package/src/Fx/combinators/tuple.ts +0 -79
- package/src/Fx/combinators/unwrap.ts +0 -21
- package/src/Fx/combinators/unwrapScoped.ts +0 -26
- package/src/Fx/combinators/when.ts +0 -64
- package/src/Fx/combinators/withSpan.ts +0 -24
- package/src/Fx/combinators/zip.ts +0 -175
- package/src/Fx/constructors/at.ts +0 -23
- package/src/Fx/constructors/die.ts +0 -17
- package/src/Fx/constructors/empty.ts +0 -10
- package/src/Fx/constructors/fail.ts +0 -14
- package/src/Fx/constructors/failCause.ts +0 -14
- package/src/Fx/constructors/fn.ts +0 -245
- package/src/Fx/constructors/fromEffect.ts +0 -24
- package/src/Fx/constructors/fromFailures.ts +0 -19
- package/src/Fx/constructors/fromIterable.ts +0 -15
- package/src/Fx/constructors/fromSchedule.ts +0 -18
- package/src/Fx/constructors/fromYieldable.ts +0 -17
- package/src/Fx/constructors/index.ts +0 -15
- package/src/Fx/constructors/interrupt.ts +0 -13
- package/src/Fx/constructors/make.ts +0 -103
- package/src/Fx/constructors/periodic.ts +0 -15
- package/src/Fx/constructors/succeed.ts +0 -37
- package/src/Fx/constructors/suspend.ts +0 -6
- package/src/Fx/index.ts +0 -6
- package/src/Fx/internal/DeferredRef.ts +0 -87
- package/src/Fx/internal/UnionToTuple.ts +0 -12
- package/src/Fx/internal/diff.ts +0 -191
- package/src/Fx/internal/equivalence.ts +0 -12
- package/src/Fx/internal/multicast.ts +0 -51
- package/src/Fx/internal/ring-buffer.ts +0 -60
- package/src/Fx/internal/scope.ts +0 -58
- package/src/Fx/internal/yieldable.ts +0 -31
- package/src/Fx/run/collect.ts +0 -79
- package/src/Fx/run/first.ts +0 -20
- package/src/Fx/run/fork.ts +0 -40
- package/src/Fx/run/index.ts +0 -5
- package/src/Fx/run/observe.ts +0 -114
- package/src/Fx/run/runPromise.ts +0 -32
- package/src/Fx/stream.ts +0 -42
- package/src/Fx.additive-combinators.test.ts +0 -126
- package/src/Fx.catch-additive.test.ts +0 -206
- package/src/Fx.catch.test.ts +0 -60
- package/src/Fx.dropUntil.test.ts +0 -61
- package/src/Fx.fn.test.ts +0 -51
- package/src/Fx.lifecycle.test.ts +0 -79
- package/src/Fx.mapError-mapBoth.test.ts +0 -101
- package/src/Fx.provide-combinators.test.ts +0 -94
- package/src/Fx.result-changesWithEffect.test.ts +0 -112
- package/src/Fx.scan.test.ts +0 -73
- package/src/Fx.takeWhile-skipWhile.test.ts +0 -84
- package/src/Fx.test.ts +0 -71
- package/src/Fx.ts +0 -1
- package/src/Fx.zip-merge-additive.test.ts +0 -171
- package/src/Fx.zip.test.ts +0 -133
- package/src/Push/Push.ts +0 -1072
- package/src/Push/index.ts +0 -1
- package/src/Push.additive.test.ts +0 -256
- package/src/Push.test.ts +0 -26
- package/src/Push.ts +0 -1
- package/src/RefSubject/RefArray.ts +0 -512
- package/src/RefSubject/RefBigDecimal.test.ts +0 -56
- package/src/RefSubject/RefBigDecimal.ts +0 -295
- package/src/RefSubject/RefBigInt.test.ts +0 -56
- package/src/RefSubject/RefBigInt.ts +0 -189
- package/src/RefSubject/RefBoolean.test.ts +0 -57
- package/src/RefSubject/RefBoolean.ts +0 -185
- package/src/RefSubject/RefCause.test.ts +0 -53
- package/src/RefSubject/RefCause.ts +0 -146
- package/src/RefSubject/RefChunk.ts +0 -510
- package/src/RefSubject/RefDateTime.test.ts +0 -43
- package/src/RefSubject/RefDateTime.ts +0 -264
- package/src/RefSubject/RefDuration.test.ts +0 -49
- package/src/RefSubject/RefDuration.ts +0 -188
- package/src/RefSubject/RefGraph.ts +0 -650
- package/src/RefSubject/RefHashMap.ts +0 -465
- package/src/RefSubject/RefHashRing.ts +0 -262
- package/src/RefSubject/RefHashSet.ts +0 -308
- package/src/RefSubject/RefIterable.ts +0 -445
- package/src/RefSubject/RefOption.test.ts +0 -67
- package/src/RefSubject/RefOption.ts +0 -193
- package/src/RefSubject/RefRecord.ts +0 -612
- package/src/RefSubject/RefResult.test.ts +0 -63
- package/src/RefSubject/RefResult.ts +0 -209
- package/src/RefSubject/RefString.test.ts +0 -61
- package/src/RefSubject/RefString.ts +0 -256
- package/src/RefSubject/RefStruct.test.ts +0 -60
- package/src/RefSubject/RefStruct.ts +0 -253
- package/src/RefSubject/RefSubject.ts +0 -2646
- package/src/RefSubject/RefTrie.ts +0 -356
- package/src/RefSubject/RefTuple.test.ts +0 -60
- package/src/RefSubject/RefTuple.ts +0 -231
- package/src/RefSubject/index.ts +0 -21
- package/src/RefSubject.additive-parity.test.ts +0 -101
- package/src/RefSubject.test.ts +0 -65
- package/src/RefSubject.ts +0 -1
- package/src/Sink/Sink.ts +0 -159
- package/src/Sink/combinators.ts +0 -1115
- package/src/Sink/index.ts +0 -2
- package/src/Sink.combinators.test.ts +0 -88
- package/src/Sink.reduce-collect-head-last.test.ts +0 -107
- package/src/Sink.ts +0 -1
- package/src/Subject/Subject.ts +0 -441
- package/src/Subject/index.ts +0 -1
- package/src/Subject.test.ts +0 -47
- package/src/Subject.ts +0 -1
- package/src/Versioned/Versioned.ts +0 -597
- package/src/Versioned/index.ts +0 -1
- package/src/Versioned.filterMap.test.ts +0 -91
- package/src/Versioned.test.ts +0 -23
- package/src/Versioned.ts +0 -1
- package/src/index.ts +0 -7
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
* @since 1.0.0
|
|
8
8
|
*/
|
|
9
9
|
import * as Effect from "effect/Effect";
|
|
10
|
-
import * as
|
|
10
|
+
import * as Effectable from "effect/Effectable";
|
|
11
11
|
import { dual, flow, identity } from "effect/Function";
|
|
12
12
|
import * as Layer from "effect/Layer";
|
|
13
13
|
import { sum } from "effect/Number";
|
|
14
14
|
import * as Option from "effect/Option";
|
|
15
15
|
import { pipeArguments } from "effect/Pipeable";
|
|
16
|
-
import * as
|
|
16
|
+
import * as Context from "effect/Context";
|
|
17
17
|
import { filterMap as fxFilterMap } from "../Fx/combinators/filterMap.js";
|
|
18
18
|
import { filterMapEffect as fxFilterMapEffect } from "../Fx/combinators/filterMapEffect.js";
|
|
19
19
|
import { map as fxMap } from "../Fx/combinators/map.js";
|
|
20
20
|
import { mapEffect as fxMapEffect } from "../Fx/combinators/mapEffect.js";
|
|
21
|
-
import { provide as fxProvide,
|
|
21
|
+
import { provide as fxProvide, provideContext as fxprovideContext, } from "../Fx/combinators/provide.js";
|
|
22
22
|
import { struct as fxStruct, tuple as fxTuple } from "../Fx/combinators/tuple.js";
|
|
23
23
|
import { succeed as fxSucceed } from "../Fx/constructors/succeed.js";
|
|
24
24
|
import { MulticastEffect } from "../Fx/internal/multicast.js";
|
|
@@ -28,15 +28,41 @@ import * as Subject from "../Subject/Subject.js";
|
|
|
28
28
|
/**
|
|
29
29
|
* Creates a Versioned value from its components.
|
|
30
30
|
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* ## Why
|
|
33
|
+
*
|
|
34
|
+
* Builds one Versioned value from independently typed version, update, and current-value channels
|
|
35
|
+
* instead of forcing them into one error or environment type.
|
|
36
|
+
*
|
|
37
|
+
* ## Ownership and lifetime
|
|
38
|
+
*
|
|
39
|
+
* Construction is lazy with respect to the Fx channel. Current reads share in-flight work until
|
|
40
|
+
* interrupt is run; each component retains its declared errors and services.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* import { Effect } from "effect"
|
|
45
|
+
* import * as Fx from "@typed/fx/Fx"
|
|
46
|
+
* import * as Versioned from "@typed/fx/Versioned"
|
|
47
|
+
*
|
|
48
|
+
* const status = Versioned.make(
|
|
49
|
+
* Effect.succeed(1),
|
|
50
|
+
* Fx.succeed("ready"),
|
|
51
|
+
* Effect.succeed("ready")
|
|
52
|
+
* )
|
|
53
|
+
*
|
|
54
|
+
* const snapshot = Effect.all({ value: status, version: status.version })
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
31
57
|
* @param version - An effect that retrieves the current version number.
|
|
32
58
|
* @param fx - The stream of updates.
|
|
33
59
|
* @param effect - An effect that retrieves the current value.
|
|
34
60
|
* @returns A `Versioned` value.
|
|
35
61
|
* @since 1.0.0
|
|
36
|
-
* @category
|
|
62
|
+
* @category Constructors
|
|
37
63
|
*/
|
|
38
64
|
export function make(version, fx, effect) {
|
|
39
|
-
return new VersionedImpl(version, fx, effect
|
|
65
|
+
return new VersionedImpl(version, fx, effect);
|
|
40
66
|
}
|
|
41
67
|
class VersionedImpl extends YieldableFx {
|
|
42
68
|
version;
|
|
@@ -52,19 +78,32 @@ class VersionedImpl extends YieldableFx {
|
|
|
52
78
|
return this.fx.run(sink);
|
|
53
79
|
}
|
|
54
80
|
toEffect() {
|
|
55
|
-
return this.effect
|
|
81
|
+
return this.effect;
|
|
56
82
|
}
|
|
57
83
|
interrupt = Effect.suspend(() => this.effect.interrupt());
|
|
58
84
|
}
|
|
59
85
|
/**
|
|
60
86
|
* Transforms a Versioned value into another Versioned value.
|
|
61
87
|
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* ## Why
|
|
90
|
+
*
|
|
91
|
+
* Transforms the pushed and sampled channels together while retaining one version source, so both
|
|
92
|
+
* ways of consuming the value stay coherent.
|
|
93
|
+
*
|
|
94
|
+
* ## Ownership and lifetime
|
|
95
|
+
*
|
|
96
|
+
* transform does not take ownership of its inputs. Its observation and current-read channels
|
|
97
|
+
* retain upstream lifetime, typed failures, services, and interruption behavior.
|
|
98
|
+
* Sampled projections and in-flight reads are cached separately for each Effect Context object.
|
|
99
|
+
* Interrupting a transformed value affects the current Context's in-flight read.
|
|
100
|
+
*
|
|
62
101
|
* @param input - The source Versioned value.
|
|
63
102
|
* @param transformFx - A function to transform the update stream.
|
|
64
103
|
* @param transformGet - A function to transform the current value effect.
|
|
65
104
|
* @returns A new `Versioned` value.
|
|
66
105
|
* @since 1.0.0
|
|
67
|
-
* @category
|
|
106
|
+
* @category Channel transformations
|
|
68
107
|
*/
|
|
69
108
|
export function transform(input, transformFx, transformGet) {
|
|
70
109
|
if (isVersionedTransform(input)) {
|
|
@@ -81,6 +120,7 @@ export class VersionedTransform extends YieldableFx {
|
|
|
81
120
|
_version = -1;
|
|
82
121
|
_currentValue = Option.none();
|
|
83
122
|
_fx;
|
|
123
|
+
contexts = new WeakMap();
|
|
84
124
|
input;
|
|
85
125
|
_transformFx;
|
|
86
126
|
_transformEffect;
|
|
@@ -91,124 +131,274 @@ export class VersionedTransform extends YieldableFx {
|
|
|
91
131
|
this._transformEffect = _transformEffect;
|
|
92
132
|
this._fx = _transformFx(this.input);
|
|
93
133
|
}
|
|
94
|
-
version = Effect.sync(() => this.
|
|
134
|
+
version = Effect.contextWith((context) => Effect.sync(() => this.contexts.get(context)?.version ?? -1));
|
|
95
135
|
run(sink) {
|
|
96
136
|
return this._fx.run(sink);
|
|
97
137
|
}
|
|
98
138
|
toEffect() {
|
|
99
|
-
const transformed = this._transformEffect(this.input
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
this._version = v;
|
|
106
|
-
}));
|
|
107
|
-
const multicastEffect = new MulticastEffect(Effect.flatMap(this.input.version, (version) => {
|
|
108
|
-
if (version === this._version && Option.isSome(this._currentValue)) {
|
|
109
|
-
return this._currentValue.value;
|
|
139
|
+
const transformed = this._transformEffect(this.input);
|
|
140
|
+
return Effect.contextWith((context) => {
|
|
141
|
+
let state = this.contexts.get(context);
|
|
142
|
+
if (!state) {
|
|
143
|
+
state = { version: -1, currentValue: Option.none() };
|
|
144
|
+
this.contexts.set(context, state);
|
|
110
145
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
146
|
+
const current = state;
|
|
147
|
+
return (current.effect ??= new MulticastEffect(Effect.flatMap(this.input.version, (version) => {
|
|
148
|
+
if (version === current.version && Option.isSome(current.currentValue)) {
|
|
149
|
+
return current.currentValue.value;
|
|
150
|
+
}
|
|
151
|
+
return Effect.onExit(transformed, (exit) => Effect.sync(() => {
|
|
152
|
+
current.currentValue = Option.some(exit);
|
|
153
|
+
current.version = version;
|
|
154
|
+
this._currentValue = current.currentValue;
|
|
155
|
+
this._version = version;
|
|
156
|
+
}));
|
|
157
|
+
})));
|
|
158
|
+
});
|
|
114
159
|
}
|
|
115
|
-
interrupt = Effect.
|
|
116
|
-
if (!this._effect)
|
|
117
|
-
return Effect.void;
|
|
118
|
-
const me = this._effect;
|
|
119
|
-
return me.interrupt();
|
|
120
|
-
});
|
|
160
|
+
interrupt = Effect.contextWith((context) => this.contexts.get(context)?.effect?.interrupt() ?? Effect.void);
|
|
121
161
|
}
|
|
122
162
|
function isVersionedTransform(u) {
|
|
123
163
|
return u instanceof VersionedTransform;
|
|
124
164
|
}
|
|
125
165
|
/**
|
|
126
166
|
* Transform a Versioned's output value as both an Fx and Effect.
|
|
167
|
+
* @remarks
|
|
168
|
+
* ## Why
|
|
169
|
+
*
|
|
170
|
+
* Applies corresponding pure projections to pushed and sampled values while leaving the version
|
|
171
|
+
* token unchanged.
|
|
172
|
+
*
|
|
173
|
+
* ## Ownership and lifetime
|
|
174
|
+
*
|
|
175
|
+
* map does not take ownership of its inputs. Its observation and current-read channels retain
|
|
176
|
+
* upstream lifetime, typed failures, services, and interruption behavior.
|
|
177
|
+
*
|
|
178
|
+
* Pure callbacks preserve push order and cardinality. `onFx` applies to every pushed update;
|
|
179
|
+
* `onEffect` applies only when the current value is sampled.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```ts
|
|
183
|
+
* import { Effect } from "effect"
|
|
184
|
+
* import * as Versioned from "@typed/fx/Versioned"
|
|
185
|
+
*
|
|
186
|
+
* const length = Versioned.map(Versioned.of("typed"), {
|
|
187
|
+
* onFx: (value) => value.length,
|
|
188
|
+
* onEffect: (value) => value.length
|
|
189
|
+
* })
|
|
190
|
+
*
|
|
191
|
+
* const currentLength = Effect.runPromise(length)
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
127
194
|
* @since 1.18.0
|
|
128
|
-
* @category
|
|
195
|
+
* @category Channel transformations
|
|
129
196
|
*/
|
|
130
197
|
export const map = dual(2, function map(versioned, options) {
|
|
131
198
|
return transform(versioned, (fx) => fxMap(fx, options.onFx), Effect.map(options.onEffect));
|
|
132
199
|
});
|
|
133
200
|
/**
|
|
134
201
|
* Transform a Versioned's output value as both an Fx and Effect using an Effect.
|
|
202
|
+
* @remarks
|
|
203
|
+
* ## Why
|
|
204
|
+
*
|
|
205
|
+
* Allows pushed and sampled projections to require services or fail, and exposes those additions
|
|
206
|
+
* in the corresponding output channels.
|
|
207
|
+
*
|
|
208
|
+
* ## Ownership and lifetime
|
|
209
|
+
*
|
|
210
|
+
* No subscription starts during transformation. Callback effects run when their push or read
|
|
211
|
+
* channel is consumed and are interrupted with that consumer.
|
|
212
|
+
*
|
|
135
213
|
* @since 1.18.0
|
|
136
|
-
* @category
|
|
214
|
+
* @category Channel transformations
|
|
137
215
|
*/
|
|
138
216
|
export const mapEffect = dual(2, function mapEffect(versioned, options) {
|
|
139
217
|
return transform(versioned, (fx) => fxMapEffect(fx, options.onFx), Effect.flatMap(options.onEffect));
|
|
140
218
|
});
|
|
141
219
|
/**
|
|
142
220
|
* Filter-maps a Versioned's output as both an Fx and Effect; the Effect value becomes `Option` (Some when the predicate holds, None otherwise).
|
|
221
|
+
* @remarks
|
|
222
|
+
* ## Why
|
|
223
|
+
*
|
|
224
|
+
* Drops absent pushed values while preserving an Option for the current read, making the two
|
|
225
|
+
* absence semantics explicit.
|
|
226
|
+
*
|
|
227
|
+
* ## Ownership and lifetime
|
|
228
|
+
*
|
|
229
|
+
* filterMap does not take ownership of its inputs. Its observation and current-read channels
|
|
230
|
+
* retain upstream lifetime, typed failures, services, and interruption behavior.
|
|
231
|
+
*
|
|
143
232
|
* @since 1.18.0
|
|
144
|
-
* @category
|
|
233
|
+
* @category Optional channel transformations
|
|
145
234
|
*/
|
|
146
235
|
export const filterMap = dual(2, function filterMap(versioned, options) {
|
|
147
236
|
return transform(versioned, (fx) => fxFilterMap(fx, options.onFx), (effect) => Effect.map(effect, options.onEffect));
|
|
148
237
|
});
|
|
149
238
|
/**
|
|
150
239
|
* Filter-maps a Versioned's output as both an Fx and Effect using an Effect; the Effect value becomes `Option`.
|
|
240
|
+
* @remarks
|
|
241
|
+
* ## Why
|
|
242
|
+
*
|
|
243
|
+
* Adds Effectful filtering independently to the push and current-read channels while preserving
|
|
244
|
+
* their separate error and service types.
|
|
245
|
+
*
|
|
246
|
+
* ## Ownership and lifetime
|
|
247
|
+
*
|
|
248
|
+
* No subscription starts during transformation. Callback effects run when their push or read
|
|
249
|
+
* channel is consumed and are interrupted with that consumer.
|
|
250
|
+
*
|
|
151
251
|
* @since 1.18.0
|
|
152
|
-
* @category
|
|
252
|
+
* @category Optional channel transformations
|
|
153
253
|
*/
|
|
154
254
|
export const filterMapEffect = dual(2, function filterMapEffect(versioned, options) {
|
|
155
255
|
return transform(versioned, (fx) => fxFilterMapEffect(fx, options.onFx), (effect) => Effect.flatMap(effect, options.onEffect));
|
|
156
256
|
});
|
|
157
257
|
/**
|
|
158
258
|
* Combines multiple Versioned values into a single tuple.
|
|
259
|
+
* @remarks
|
|
260
|
+
* ## Why
|
|
261
|
+
*
|
|
262
|
+
* Combines several Versioned values positionally and uses their versions as one invalidation token
|
|
263
|
+
* for the assembled tuple.
|
|
264
|
+
*
|
|
265
|
+
* ## Ownership and lifetime
|
|
266
|
+
*
|
|
267
|
+
* tuple does not take ownership of its inputs. Its observation and current-read channels retain
|
|
268
|
+
* upstream lifetime, typed failures, services, and interruption behavior.
|
|
269
|
+
*
|
|
159
270
|
* @since 1.0.0
|
|
160
|
-
* @category
|
|
271
|
+
* @category State composition
|
|
161
272
|
*/
|
|
162
273
|
export function tuple(versioneds) {
|
|
163
|
-
return make(Effect.map(Effect.all(versioneds.map((v) => v.version)), (versions) => versions.reduce(sum, 0)), fxTuple(...versioneds), Effect.all(versioneds.map((v) => v
|
|
274
|
+
return make(Effect.map(Effect.all(versioneds.map((v) => v.version)), (versions) => versions.reduce(sum, 0)), fxTuple(...versioneds), Effect.all(versioneds.map((v) => v), { concurrency: "unbounded" }));
|
|
164
275
|
}
|
|
165
276
|
/**
|
|
166
277
|
* Combines multiple Versioned values into a single struct.
|
|
278
|
+
* @remarks
|
|
279
|
+
* ## Why
|
|
280
|
+
*
|
|
281
|
+
* Combines named Versioned values and preserves each field's pushed value, sampled value, errors,
|
|
282
|
+
* and services in the resulting structure.
|
|
283
|
+
*
|
|
284
|
+
* ## Ownership and lifetime
|
|
285
|
+
*
|
|
286
|
+
* struct does not take ownership of its inputs. Its observation and current-read channels retain
|
|
287
|
+
* upstream lifetime, typed failures, services, and interruption behavior.
|
|
288
|
+
*
|
|
167
289
|
* @since 1.0.0
|
|
168
|
-
* @category
|
|
290
|
+
* @category State composition
|
|
169
291
|
*/
|
|
170
292
|
export function struct(versioneds) {
|
|
171
|
-
return make(Effect.map(Effect.all(Object.values(versioneds).map((v) => v.version)), (versions) => versions.reduce(sum, 0)), fxStruct(versioneds), Effect.all(mapRecord(versioneds, (v) => v
|
|
293
|
+
return make(Effect.map(Effect.all(Object.values(versioneds).map((v) => v.version)), (versions) => versions.reduce(sum, 0)), fxStruct(versioneds), Effect.all(mapRecord(versioneds, (v) => v), { concurrency: "unbounded" }));
|
|
172
294
|
}
|
|
173
295
|
/**
|
|
174
296
|
* Provides context to a Versioned value.
|
|
297
|
+
* @remarks
|
|
298
|
+
* ## Why
|
|
299
|
+
*
|
|
300
|
+
* Supplies one Layer to all three Versioned channels so service elimination is consistent for
|
|
301
|
+
* version reads, pushed updates, and current reads.
|
|
302
|
+
*
|
|
303
|
+
* ## Ownership and lifetime
|
|
304
|
+
*
|
|
305
|
+
* provide does not take ownership of its inputs. Its observation and current-read channels retain
|
|
306
|
+
* upstream lifetime, typed failures, services, and interruption behavior.
|
|
307
|
+
*
|
|
175
308
|
* @since 1.0.0
|
|
176
|
-
* @category
|
|
309
|
+
* @category Services
|
|
177
310
|
*/
|
|
178
311
|
export const provide = (versioned, layer) => {
|
|
179
|
-
return make(Effect.provide(versioned.version, layer), fxProvide(versioned, layer), Effect.provide(versioned
|
|
312
|
+
return make(Effect.provide(versioned.version, layer), fxProvide(versioned, layer), Effect.provide(versioned, layer));
|
|
180
313
|
};
|
|
181
314
|
function mapRecord(record, f) {
|
|
182
315
|
return Object.fromEntries(Object.entries(record).map(([k, v]) => [k, f(v, k)]));
|
|
183
316
|
}
|
|
184
317
|
/**
|
|
185
318
|
* Creates a Versioned value from a constant.
|
|
319
|
+
* @remarks
|
|
320
|
+
* ## Why
|
|
321
|
+
*
|
|
322
|
+
* Creates constant versioned state for composition and testing without starting a fiber or
|
|
323
|
+
* requiring a Scope.
|
|
324
|
+
*
|
|
325
|
+
* ## Ownership and lifetime
|
|
326
|
+
*
|
|
327
|
+
* of does not take ownership of its inputs. Its observation and current-read channels retain
|
|
328
|
+
* upstream lifetime, typed failures, services, and interruption behavior.
|
|
329
|
+
*
|
|
186
330
|
* @since 1.0.0
|
|
187
|
-
* @category
|
|
331
|
+
* @category Constructors
|
|
188
332
|
*/
|
|
189
333
|
export function of(value) {
|
|
190
334
|
return make(Effect.succeed(1), fxSucceed(value), Effect.succeed(value));
|
|
191
335
|
}
|
|
192
336
|
/**
|
|
193
337
|
* Holds the latest value of a Versioned stream.
|
|
338
|
+
* @remarks
|
|
339
|
+
* ## Why
|
|
340
|
+
*
|
|
341
|
+
* Retains the latest pushed value for later subscribers while leaving current-value reads
|
|
342
|
+
* delegated to the original Versioned Effect.
|
|
343
|
+
*
|
|
344
|
+
* ## Ownership and lifetime
|
|
345
|
+
*
|
|
346
|
+
* The returned Fx requires Scope; its shared upstream subscription and retained buffer are
|
|
347
|
+
* finalized when that Scope closes. Current reads retain input errors and services.
|
|
348
|
+
*
|
|
349
|
+
* @example
|
|
350
|
+
* ```ts
|
|
351
|
+
* import { Effect } from "effect"
|
|
352
|
+
* import * as Versioned from "@typed/fx/Versioned"
|
|
353
|
+
*
|
|
354
|
+
* const program = Effect.scoped(Effect.gen(function* () {
|
|
355
|
+
* const shared = Versioned.hold(Versioned.of({ status: "ready" as const }))
|
|
356
|
+
* return yield* shared
|
|
357
|
+
* }))
|
|
358
|
+
* ```
|
|
359
|
+
*
|
|
194
360
|
* @since 1.0.0
|
|
195
|
-
* @category
|
|
361
|
+
* @category Shared observation
|
|
196
362
|
*/
|
|
197
363
|
export function hold(versioned) {
|
|
198
364
|
return make(versioned.version, Subject.hold(versioned), versioned);
|
|
199
365
|
}
|
|
200
366
|
/**
|
|
201
367
|
* Multicasts a Versioned stream.
|
|
368
|
+
* @remarks
|
|
369
|
+
* ## Why
|
|
370
|
+
*
|
|
371
|
+
* Shares one upstream push subscription among concurrent observers while retaining the original
|
|
372
|
+
* current-read and version effects. Unlike `hold` and `replay`, `multicast` retains zero values: a
|
|
373
|
+
* late observer receives only pushes that happen after it subscribes.
|
|
374
|
+
*
|
|
375
|
+
* ## Ownership and lifetime
|
|
376
|
+
*
|
|
377
|
+
* The returned Fx requires Scope; that Scope owns and finalizes the shared upstream subscription.
|
|
378
|
+
* There is no replay buffer or held latest value. Current reads bypass the multicast channel and
|
|
379
|
+
* retain the input's errors and services.
|
|
380
|
+
*
|
|
202
381
|
* @since 1.0.0
|
|
203
|
-
* @category
|
|
382
|
+
* @category Shared observation
|
|
204
383
|
*/
|
|
205
384
|
export function multicast(versioned) {
|
|
206
385
|
return make(versioned.version, Subject.multicast(versioned), versioned);
|
|
207
386
|
}
|
|
208
387
|
/**
|
|
209
388
|
* Replays the last `bufferSize` values of a Versioned stream.
|
|
389
|
+
* @remarks
|
|
390
|
+
* ## Why
|
|
391
|
+
*
|
|
392
|
+
* Shares an upstream push subscription and replays a bounded number of updates to late observers
|
|
393
|
+
* without changing current-value reads.
|
|
394
|
+
*
|
|
395
|
+
* ## Ownership and lifetime
|
|
396
|
+
*
|
|
397
|
+
* The returned Fx requires Scope; its shared upstream subscription and retained buffer are
|
|
398
|
+
* finalized when that Scope closes. Current reads retain input errors and services.
|
|
399
|
+
*
|
|
210
400
|
* @since 1.0.0
|
|
211
|
-
* @category
|
|
401
|
+
* @category Shared observation
|
|
212
402
|
*/
|
|
213
403
|
export function replay(versioned, bufferSize) {
|
|
214
404
|
return make(versioned.version, Subject.replay(versioned, bufferSize), versioned);
|
|
@@ -218,26 +408,70 @@ const VARIANCE = {
|
|
|
218
408
|
_E: identity,
|
|
219
409
|
_R: identity,
|
|
220
410
|
};
|
|
411
|
+
/**
|
|
412
|
+
* Creates a Context-backed Versioned service facade and Layer constructor.
|
|
413
|
+
*
|
|
414
|
+
* @remarks
|
|
415
|
+
* ## Why
|
|
416
|
+
*
|
|
417
|
+
* Creates an Effect service tag that exposes current reads, pushed updates, and versions through
|
|
418
|
+
* one Layer-provided state dependency.
|
|
419
|
+
*
|
|
420
|
+
* ## Ownership and lifetime
|
|
421
|
+
*
|
|
422
|
+
* Calling Service is pure. The generated make Layer captures required environments and owns the
|
|
423
|
+
* provided state for the Layer Scope.
|
|
424
|
+
*
|
|
425
|
+
* @example
|
|
426
|
+
* ```ts
|
|
427
|
+
* import { Effect } from "effect"
|
|
428
|
+
* import * as Fx from "@typed/fx/Fx"
|
|
429
|
+
* import * as Versioned from "@typed/fx/Versioned"
|
|
430
|
+
*
|
|
431
|
+
* class Status extends Versioned.Service<Status, never, string, never, string>()(
|
|
432
|
+
* "example/Status"
|
|
433
|
+
* ) {}
|
|
434
|
+
*
|
|
435
|
+
* const StatusLive = Status.make(
|
|
436
|
+
* Effect.succeed(1),
|
|
437
|
+
* Fx.succeed("ready"),
|
|
438
|
+
* Effect.succeed("ready")
|
|
439
|
+
* )
|
|
440
|
+
* ```
|
|
441
|
+
*
|
|
442
|
+
* @since 1.0.0
|
|
443
|
+
* @category Services
|
|
444
|
+
*/
|
|
221
445
|
export function Service() {
|
|
222
446
|
return (id) => {
|
|
223
|
-
const service =
|
|
447
|
+
const service = Context.Service(id);
|
|
224
448
|
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
225
449
|
return class VersionedService {
|
|
226
450
|
static id = id;
|
|
227
451
|
static service = service;
|
|
228
|
-
static
|
|
452
|
+
static {
|
|
453
|
+
// @effect-diagnostics-next-line floatingEffect:off
|
|
454
|
+
Object.assign(this, service);
|
|
455
|
+
Object.setPrototypeOf(this, Object.getPrototypeOf(service));
|
|
456
|
+
// @effect-diagnostics-next-line floatingEffect:off
|
|
457
|
+
Object.assign(this, Effectable.Prototype({
|
|
458
|
+
label: "Versioned.Service",
|
|
459
|
+
evaluate: () => Effect.flatten(service),
|
|
460
|
+
}));
|
|
461
|
+
}
|
|
462
|
+
static make = (version, fx, effect) => Layer.effect(service, Effect.context().pipe(Effect.map((context) => make(Effect.provide(version, context), fxprovideContext(fx, context), Effect.provide(effect, context)))));
|
|
229
463
|
static [FxTypeId] = VARIANCE;
|
|
230
464
|
static pipe = function () {
|
|
231
465
|
return pipeArguments(this, arguments);
|
|
232
466
|
};
|
|
233
|
-
static version = Effect.flatMap(service
|
|
234
|
-
static interrupt = Effect.flatMap(service
|
|
235
|
-
static run = (sink) => Effect.flatMap(service
|
|
467
|
+
static version = Effect.flatMap(service, (v) => v.version);
|
|
468
|
+
static interrupt = Effect.flatMap(service, (v) => v.interrupt);
|
|
469
|
+
static run = (sink) => Effect.flatMap(service, (v) => v.run(sink));
|
|
470
|
+
static override = Effect.flatMap(service, identity);
|
|
236
471
|
static [Symbol.iterator] = function* () {
|
|
237
472
|
const v = yield* service;
|
|
238
473
|
return yield* v;
|
|
239
474
|
};
|
|
240
|
-
static asEffect = () => Effect.flatMap(service.asEffect(), (v) => v.asEffect());
|
|
241
475
|
constructor() {
|
|
242
476
|
return VersionedService;
|
|
243
477
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
export * as Fx from "./Fx.js";
|
|
2
2
|
export * as Push from "./Push.js";
|
|
3
|
-
export * as RefArray from "./
|
|
4
|
-
export * as
|
|
5
|
-
export * as
|
|
3
|
+
export * as RefArray from "./RefArray.js";
|
|
4
|
+
export * as RefBigDecimal from "./RefBigDecimal.js";
|
|
5
|
+
export * as RefBigInt from "./RefBigInt.js";
|
|
6
|
+
export * as RefBoolean from "./RefBoolean.js";
|
|
7
|
+
export * as RefCause from "./RefCause.js";
|
|
8
|
+
export * as RefChunk from "./RefChunk.js";
|
|
9
|
+
export * as RefDateTime from "./RefDateTime.js";
|
|
10
|
+
export * as RefDuration from "./RefDuration.js";
|
|
11
|
+
export * as RefGraph from "./RefGraph.js";
|
|
12
|
+
export * as RefHashMap from "./RefHashMap.js";
|
|
13
|
+
export * as RefHashRing from "./RefHashRing.js";
|
|
14
|
+
export * as RefHashSet from "./RefHashSet.js";
|
|
15
|
+
export * as RefIterable from "./RefIterable.js";
|
|
16
|
+
export * as RefOption from "./RefOption.js";
|
|
17
|
+
export * as RefRecord from "./RefRecord.js";
|
|
18
|
+
export * as RefResult from "./RefResult.js";
|
|
19
|
+
export * as RefString from "./RefString.js";
|
|
20
|
+
export * as RefStruct from "./RefStruct.js";
|
|
21
|
+
export * as RefSubject from "./RefSubject.js";
|
|
22
|
+
export * as RefTrie from "./RefTrie.js";
|
|
23
|
+
export * as RefTuple from "./RefTuple.js";
|
|
24
|
+
export * as Sink from "./Sink.js";
|
|
6
25
|
export * as Subject from "./Subject.js";
|
|
7
26
|
export * as Versioned from "./Versioned.js";
|
|
8
27
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
export * as Fx from "./Fx.js";
|
|
2
2
|
export * as Push from "./Push.js";
|
|
3
|
-
export * as RefArray from "./
|
|
4
|
-
export * as
|
|
5
|
-
export * as
|
|
3
|
+
export * as RefArray from "./RefArray.js";
|
|
4
|
+
export * as RefBigDecimal from "./RefBigDecimal.js";
|
|
5
|
+
export * as RefBigInt from "./RefBigInt.js";
|
|
6
|
+
export * as RefBoolean from "./RefBoolean.js";
|
|
7
|
+
export * as RefCause from "./RefCause.js";
|
|
8
|
+
export * as RefChunk from "./RefChunk.js";
|
|
9
|
+
export * as RefDateTime from "./RefDateTime.js";
|
|
10
|
+
export * as RefDuration from "./RefDuration.js";
|
|
11
|
+
export * as RefGraph from "./RefGraph.js";
|
|
12
|
+
export * as RefHashMap from "./RefHashMap.js";
|
|
13
|
+
export * as RefHashRing from "./RefHashRing.js";
|
|
14
|
+
export * as RefHashSet from "./RefHashSet.js";
|
|
15
|
+
export * as RefIterable from "./RefIterable.js";
|
|
16
|
+
export * as RefOption from "./RefOption.js";
|
|
17
|
+
export * as RefRecord from "./RefRecord.js";
|
|
18
|
+
export * as RefResult from "./RefResult.js";
|
|
19
|
+
export * as RefString from "./RefString.js";
|
|
20
|
+
export * as RefStruct from "./RefStruct.js";
|
|
21
|
+
export * as RefSubject from "./RefSubject.js";
|
|
22
|
+
export * as RefTrie from "./RefTrie.js";
|
|
23
|
+
export * as RefTuple from "./RefTuple.js";
|
|
24
|
+
export * as Sink from "./Sink.js";
|
|
6
25
|
export * as Subject from "./Subject.js";
|
|
7
26
|
export * as Versioned from "./Versioned.js";
|