effect 2.0.0-next.46 → 2.0.0-next.48
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/BigInt/dist/effect-BigInt.cjs.d.mts +2 -0
- package/BigInt/dist/effect-BigInt.cjs.d.mts.map +1 -0
- package/BigInt/dist/effect-BigInt.cjs.d.ts +2 -0
- package/BigInt/dist/effect-BigInt.cjs.d.ts.map +1 -0
- package/{Bigint/dist/effect-Bigint.cjs.dev.js → BigInt/dist/effect-BigInt.cjs.dev.js} +30 -30
- package/BigInt/dist/effect-BigInt.cjs.js +7 -0
- package/{Bigint/dist/effect-Bigint.cjs.mjs → BigInt/dist/effect-BigInt.cjs.mjs} +2 -2
- package/{Bigint/dist/effect-Bigint.cjs.prod.js → BigInt/dist/effect-BigInt.cjs.prod.js} +30 -30
- package/{Bigint/dist/effect-Bigint.esm.js → BigInt/dist/effect-BigInt.esm.js} +28 -28
- package/BigInt/package.json +4 -0
- package/Brand/dist/effect-Brand.cjs.dev.js +3 -3
- package/Brand/dist/effect-Brand.cjs.prod.js +3 -3
- package/Cache/dist/effect-Cache.cjs.dev.js +28 -28
- package/Cache/dist/effect-Cache.cjs.prod.js +28 -28
- package/Cause/dist/effect-Cause.cjs.dev.js +8 -8
- package/Cause/dist/effect-Cause.cjs.prod.js +8 -8
- package/Channel/dist/effect-Channel.cjs.dev.js +41 -41
- package/Channel/dist/effect-Channel.cjs.prod.js +41 -41
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +36 -38
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +36 -38
- package/Chunk/dist/effect-Chunk.cjs.dev.js +3 -3
- package/Chunk/dist/effect-Chunk.cjs.prod.js +3 -3
- package/Clock/dist/effect-Clock.cjs.dev.js +14 -14
- package/Clock/dist/effect-Clock.cjs.prod.js +14 -14
- package/Config/dist/effect-Config.cjs.dev.js +11 -11
- package/Config/dist/effect-Config.cjs.prod.js +11 -11
- package/ConfigError/dist/effect-ConfigError.cjs.dev.js +4 -4
- package/ConfigError/dist/effect-ConfigError.cjs.prod.js +4 -4
- package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +13 -13
- package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +13 -13
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +5 -5
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +5 -5
- package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +4 -4
- package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +4 -4
- package/Console/dist/effect-Console.cjs.dev.js +32 -32
- package/Console/dist/effect-Console.cjs.prod.js +32 -32
- package/Context/dist/effect-Context.cjs.dev.js +3 -3
- package/Context/dist/effect-Context.cjs.prod.js +3 -3
- package/Data/dist/effect-Data.cjs.dev.js +50 -46
- package/Data/dist/effect-Data.cjs.prod.js +50 -46
- package/Data/dist/effect-Data.esm.js +11 -5
- package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +14 -14
- package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +14 -14
- package/Deferred/dist/effect-Deferred.cjs.dev.js +8 -8
- package/Deferred/dist/effect-Deferred.cjs.prod.js +8 -8
- package/Differ/dist/effect-Differ.cjs.dev.js +5 -5
- package/Differ/dist/effect-Differ.cjs.prod.js +5 -5
- package/Duration/dist/effect-Duration.cjs.dev.js +4 -4
- package/Duration/dist/effect-Duration.cjs.prod.js +4 -4
- package/Duration/dist/effect-Duration.esm.js +2 -2
- package/Effect/dist/effect-Effect.cjs.dev.js +67 -136
- package/Effect/dist/effect-Effect.cjs.mjs +2 -11
- package/Effect/dist/effect-Effect.cjs.prod.js +67 -136
- package/Effect/dist/effect-Effect.esm.js +30 -90
- package/Effectable/dist/effect-Effectable.cjs.dev.js +1 -1
- package/Effectable/dist/effect-Effectable.cjs.prod.js +1 -1
- package/Either/dist/effect-Either.cjs.dev.js +17 -3
- package/Either/dist/effect-Either.cjs.mjs +3 -1
- package/Either/dist/effect-Either.cjs.prod.js +17 -3
- package/Either/dist/effect-Either.esm.js +13 -1
- package/Encoding/dist/effect-Encoding.cjs.dev.js +3 -3
- package/Encoding/dist/effect-Encoding.cjs.prod.js +3 -3
- package/Exit/dist/effect-Exit.cjs.dev.js +8 -8
- package/Exit/dist/effect-Exit.cjs.prod.js +8 -8
- package/Fiber/dist/effect-Fiber.cjs.dev.js +29 -29
- package/Fiber/dist/effect-Fiber.cjs.prod.js +29 -29
- package/FiberId/dist/effect-FiberId.cjs.dev.js +5 -5
- package/FiberId/dist/effect-FiberId.cjs.prod.js +5 -5
- package/FiberRef/dist/effect-FiberRef.cjs.dev.js +29 -29
- package/FiberRef/dist/effect-FiberRef.cjs.prod.js +29 -29
- package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +9 -9
- package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +9 -9
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +10 -10
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +10 -10
- package/GroupBy/dist/effect-GroupBy.cjs.dev.js +43 -43
- package/GroupBy/dist/effect-GroupBy.cjs.prod.js +43 -43
- package/HashMap/dist/effect-HashMap.cjs.dev.js +4 -4
- package/HashMap/dist/effect-HashMap.cjs.prod.js +4 -4
- package/HashSet/dist/effect-HashSet.cjs.dev.js +4 -4
- package/HashSet/dist/effect-HashSet.cjs.prod.js +4 -4
- package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +29 -29
- package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +29 -29
- package/Layer/dist/effect-Layer.cjs.dev.js +151 -52
- package/Layer/dist/effect-Layer.cjs.mjs +12 -0
- package/Layer/dist/effect-Layer.cjs.prod.js +151 -52
- package/Layer/dist/effect-Layer.esm.js +92 -2
- package/List/dist/effect-List.cjs.dev.js +3 -3
- package/List/dist/effect-List.cjs.prod.js +3 -3
- package/LogLevel/dist/effect-LogLevel.cjs.dev.js +8 -8
- package/LogLevel/dist/effect-LogLevel.cjs.prod.js +8 -8
- package/Logger/dist/effect-Logger.cjs.dev.js +33 -39
- package/Logger/dist/effect-Logger.cjs.prod.js +33 -39
- package/Logger/dist/effect-Logger.esm.js +0 -5
- package/Match/dist/effect-Match.cjs.d.mts +2 -0
- package/Match/dist/effect-Match.cjs.d.mts.map +1 -0
- package/Match/dist/effect-Match.cjs.d.ts +2 -0
- package/Match/dist/effect-Match.cjs.d.ts.map +1 -0
- package/Match/dist/effect-Match.cjs.dev.js +620 -0
- package/Match/dist/effect-Match.cjs.js +7 -0
- package/Match/dist/effect-Match.cjs.mjs +39 -0
- package/Match/dist/effect-Match.cjs.prod.js +620 -0
- package/Match/dist/effect-Match.esm.js +258 -0
- package/Match/package.json +4 -0
- package/Metric/dist/effect-Metric.cjs.dev.js +27 -27
- package/Metric/dist/effect-Metric.cjs.prod.js +27 -27
- package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +4 -4
- package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +4 -4
- package/MetricHook/dist/effect-MetricHook.cjs.dev.js +6 -6
- package/MetricHook/dist/effect-MetricHook.cjs.prod.js +6 -6
- package/MetricKey/dist/effect-MetricKey.cjs.dev.js +7 -7
- package/MetricKey/dist/effect-MetricKey.cjs.prod.js +7 -7
- package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +4 -4
- package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +4 -4
- package/MetricLabel/dist/effect-MetricLabel.cjs.dev.js +1 -1
- package/MetricLabel/dist/effect-MetricLabel.cjs.prod.js +1 -1
- package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +29 -29
- package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +29 -29
- package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +8 -8
- package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +8 -8
- package/MetricState/dist/effect-MetricState.cjs.dev.js +1 -1
- package/MetricState/dist/effect-MetricState.cjs.prod.js +1 -1
- package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +4 -4
- package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +4 -4
- package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +4 -4
- package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +4 -4
- package/MutableQueue/dist/effect-MutableQueue.cjs.dev.js +3 -3
- package/MutableQueue/dist/effect-MutableQueue.cjs.prod.js +3 -3
- package/Option/dist/effect-Option.cjs.dev.js +3 -3
- package/Option/dist/effect-Option.cjs.prod.js +3 -3
- package/Pool/dist/effect-Pool.cjs.dev.js +29 -29
- package/Pool/dist/effect-Pool.cjs.prod.js +29 -29
- package/Predicate/dist/effect-Predicate.cjs.dev.js +5 -5
- package/Predicate/dist/effect-Predicate.cjs.mjs +1 -1
- package/Predicate/dist/effect-Predicate.cjs.prod.js +5 -5
- package/Predicate/dist/effect-Predicate.esm.js +5 -5
- package/PubSub/dist/effect-PubSub.cjs.dev.js +28 -28
- package/PubSub/dist/effect-PubSub.cjs.prod.js +28 -28
- package/Queue/dist/effect-Queue.cjs.dev.js +28 -28
- package/Queue/dist/effect-Queue.cjs.prod.js +28 -28
- package/README.md +23 -0
- package/Random/dist/effect-Random.cjs.dev.js +14 -14
- package/Random/dist/effect-Random.cjs.prod.js +14 -14
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +3 -3
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +3 -3
- package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js +3 -3
- package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js +3 -3
- package/RedBlackTree/dist/effect-RedBlackTree.cjs.dev.js +3 -3
- package/RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js +3 -3
- package/Ref/dist/effect-Ref.cjs.dev.js +9 -9
- package/Ref/dist/effect-Ref.cjs.prod.js +9 -9
- package/Reloadable/dist/effect-Reloadable.cjs.dev.js +33 -33
- package/Reloadable/dist/effect-Reloadable.cjs.prod.js +33 -33
- package/Request/dist/effect-Request.cjs.dev.js +28 -28
- package/Request/dist/effect-Request.cjs.prod.js +28 -28
- package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +36 -38
- package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +36 -38
- package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +42 -44
- package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +42 -44
- package/Resource/dist/effect-Resource.cjs.dev.js +31 -31
- package/Resource/dist/effect-Resource.cjs.prod.js +31 -31
- package/Runtime/dist/effect-Runtime.cjs.dev.js +30 -30
- package/Runtime/dist/effect-Runtime.cjs.prod.js +30 -30
- package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +33 -34
- package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +33 -34
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +6 -6
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +6 -6
- package/STM/dist/effect-STM.cjs.dev.js +45 -45
- package/STM/dist/effect-STM.cjs.prod.js +45 -45
- package/Schedule/dist/effect-Schedule.cjs.dev.js +20 -20
- package/Schedule/dist/effect-Schedule.cjs.prod.js +20 -20
- package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +3 -3
- package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +3 -3
- package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +3 -3
- package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +3 -3
- package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +3 -3
- package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +3 -3
- package/Scheduler/dist/effect-Scheduler.cjs.dev.js +8 -8
- package/Scheduler/dist/effect-Scheduler.cjs.prod.js +8 -8
- package/Scope/dist/effect-Scope.cjs.dev.js +27 -27
- package/Scope/dist/effect-Scope.cjs.prod.js +27 -27
- package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +34 -36
- package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +34 -36
- package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +31 -31
- package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +31 -31
- package/Sink/dist/effect-Sink.cjs.dev.js +39 -39
- package/Sink/dist/effect-Sink.cjs.prod.js +39 -39
- package/SortedMap/dist/effect-SortedMap.cjs.dev.js +3 -3
- package/SortedMap/dist/effect-SortedMap.cjs.prod.js +3 -3
- package/SortedSet/dist/effect-SortedSet.cjs.dev.js +3 -3
- package/SortedSet/dist/effect-SortedSet.cjs.prod.js +3 -3
- package/Stream/dist/effect-Stream.cjs.dev.js +43 -43
- package/Stream/dist/effect-Stream.cjs.prod.js +43 -43
- package/Streamable/dist/effect-Streamable.cjs.dev.js +43 -43
- package/Streamable/dist/effect-Streamable.cjs.prod.js +43 -43
- package/String/dist/effect-String.cjs.dev.js +3 -3
- package/String/dist/effect-String.cjs.prod.js +3 -3
- package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +46 -46
- package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +46 -46
- package/Supervisor/dist/effect-Supervisor.cjs.dev.js +33 -34
- package/Supervisor/dist/effect-Supervisor.cjs.prod.js +33 -34
- package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +30 -30
- package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +30 -30
- package/TArray/dist/effect-TArray.cjs.dev.js +47 -47
- package/TArray/dist/effect-TArray.cjs.prod.js +47 -47
- package/TDeferred/dist/effect-TDeferred.cjs.dev.js +46 -46
- package/TDeferred/dist/effect-TDeferred.cjs.prod.js +46 -46
- package/TMap/dist/effect-TMap.cjs.dev.js +48 -48
- package/TMap/dist/effect-TMap.cjs.prod.js +48 -48
- package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +45 -45
- package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +45 -45
- package/TPubSub/dist/effect-TPubSub.cjs.dev.js +50 -50
- package/TPubSub/dist/effect-TPubSub.cjs.prod.js +50 -50
- package/TQueue/dist/effect-TQueue.cjs.dev.js +47 -47
- package/TQueue/dist/effect-TQueue.cjs.prod.js +47 -47
- package/TRandom/dist/effect-TRandom.cjs.dev.js +46 -46
- package/TRandom/dist/effect-TRandom.cjs.prod.js +46 -46
- package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +50 -50
- package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +50 -50
- package/TRef/dist/effect-TRef.cjs.dev.js +45 -45
- package/TRef/dist/effect-TRef.cjs.prod.js +45 -45
- package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +46 -46
- package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +46 -46
- package/TSet/dist/effect-TSet.cjs.dev.js +48 -48
- package/TSet/dist/effect-TSet.cjs.prod.js +48 -48
- package/Take/dist/effect-Take.cjs.dev.js +36 -38
- package/Take/dist/effect-Take.cjs.prod.js +36 -38
- package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +5 -5
- package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +5 -5
- package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +20 -20
- package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +20 -20
- package/TestClock/dist/effect-TestClock.cjs.dev.js +32 -32
- package/TestClock/dist/effect-TestClock.cjs.prod.js +32 -32
- package/TestConfig/dist/effect-TestConfig.cjs.dev.js +3 -3
- package/TestConfig/dist/effect-TestConfig.cjs.prod.js +3 -3
- package/TestContext/dist/effect-TestContext.cjs.dev.js +34 -36
- package/TestContext/dist/effect-TestContext.cjs.prod.js +34 -36
- package/TestLive/dist/effect-TestLive.cjs.dev.js +14 -14
- package/TestLive/dist/effect-TestLive.cjs.prod.js +14 -14
- package/TestServices/dist/effect-TestServices.cjs.dev.js +40 -42
- package/TestServices/dist/effect-TestServices.cjs.prod.js +40 -42
- package/TestSized/dist/effect-TestSized.cjs.dev.js +8 -8
- package/TestSized/dist/effect-TestSized.cjs.prod.js +8 -8
- package/Tracer/dist/effect-Tracer.cjs.dev.js +20 -18
- package/Tracer/dist/effect-Tracer.cjs.mjs +1 -0
- package/Tracer/dist/effect-Tracer.cjs.prod.js +20 -18
- package/Tracer/dist/effect-Tracer.esm.js +7 -6
- package/dist/{Context-da73ddfa.cjs.dev.js → Context-607e9b4c.cjs.dev.js} +2 -2
- package/dist/{Context-9fe5eb16.cjs.prod.js → Context-c91d8ca0.cjs.prod.js} +2 -2
- package/dist/{Either-d43f082c.cjs.prod.js → Either-a3f96c60.cjs.prod.js} +2 -2
- package/dist/{Either-fa0ef1d9.cjs.dev.js → Either-e7500e90.cjs.dev.js} +2 -2
- package/dist/{Option-463b42e6.cjs.dev.js → Option-01caa9d4.cjs.dev.js} +1 -1
- package/dist/{Option-935e5d7c.cjs.prod.js → Option-dd52e82a.cjs.prod.js} +1 -1
- package/dist/{Ref-acdee7ef.cjs.dev.js → Ref-548003d1.cjs.dev.js} +1 -1
- package/dist/{Ref-4014b526.cjs.prod.js → Ref-6608e3b6.cjs.prod.js} +1 -1
- package/dist/{cache-7eed9d33.cjs.dev.js → cache-7953c9ae.cjs.dev.js} +5 -5
- package/dist/{cache-5c7d77e4.cjs.prod.js → cache-d7096ab5.cjs.prod.js} +5 -5
- package/dist/{circular-c8b65bdb.cjs.dev.js → circular-171d6971.cjs.dev.js} +8 -9
- package/dist/{circular-c2dbce1a.cjs.dev.js → circular-8568ddf2.cjs.dev.js} +7 -7
- package/dist/{circular-1f481ffb.cjs.prod.js → circular-894f44de.cjs.prod.js} +7 -7
- package/dist/{circular-9e10a5a7.cjs.prod.js → circular-b6cc8a1d.cjs.prod.js} +8 -9
- package/dist/{config-5ba54da1.cjs.prod.js → config-615bcaef.cjs.prod.js} +3 -3
- package/dist/{config-3b7935a3.cjs.dev.js → config-ea74e7d0.cjs.dev.js} +3 -3
- package/dist/{configProvider-f34a82f1.cjs.dev.js → configProvider-089a1159.cjs.dev.js} +4 -4
- package/dist/{configProvider-b6b20998.cjs.prod.js → configProvider-3877a6ec.cjs.prod.js} +4 -4
- package/dist/{core-b7401357.cjs.dev.js → core-365f89c2.cjs.dev.js} +3 -3
- package/dist/{core-07202cc0.cjs.prod.js → core-3908bc43.cjs.prod.js} +3 -3
- package/dist/{core-c5747f88.cjs.dev.js → core-3d37486a.cjs.dev.js} +3 -3
- package/dist/{core-7411d1e1.cjs.prod.js → core-8ccae4e2.cjs.prod.js} +3 -3
- package/dist/{core-effect-9201ea63.cjs.prod.js → core-effect-37a0d753.cjs.prod.js} +8 -8
- package/dist/{core-effect-1c564d42.cjs.dev.js → core-effect-c529ccac.cjs.dev.js} +8 -8
- package/dist/{dataSource-b83bc277.cjs.prod.js → dataSource-0e407d86.cjs.prod.js} +2 -2
- package/dist/{dataSource-b5eda714.cjs.dev.js → dataSource-d125d7af.cjs.dev.js} +2 -2
- package/dist/declarations/src/{Bigint.d.ts → BigInt.d.ts} +27 -27
- package/dist/declarations/src/{Bigint.d.ts.map → BigInt.d.ts.map} +1 -1
- package/dist/declarations/src/Channel.d.ts +4 -2
- package/dist/declarations/src/Channel.d.ts.map +1 -1
- package/dist/declarations/src/Data.d.ts +1 -2
- package/dist/declarations/src/Data.d.ts.map +1 -1
- package/dist/declarations/src/Effect.d.ts +67 -102
- package/dist/declarations/src/Effect.d.ts.map +1 -1
- package/dist/declarations/src/Either.d.ts +16 -0
- package/dist/declarations/src/Either.d.ts.map +1 -1
- package/dist/declarations/src/FiberRef.d.ts +2 -2
- package/dist/declarations/src/FiberRef.d.ts.map +1 -1
- package/dist/declarations/src/Layer.d.ts +98 -3
- package/dist/declarations/src/Layer.d.ts.map +1 -1
- package/dist/declarations/src/Logger.d.ts +2 -7
- package/dist/declarations/src/Logger.d.ts.map +1 -1
- package/dist/declarations/src/Match.d.ts +420 -0
- package/dist/declarations/src/Match.d.ts.map +1 -0
- package/dist/declarations/src/Predicate.d.ts +4 -4
- package/dist/declarations/src/Queue.d.ts +5 -0
- package/dist/declarations/src/Queue.d.ts.map +1 -1
- package/dist/declarations/src/Stream.d.ts +4 -2
- package/dist/declarations/src/Stream.d.ts.map +1 -1
- package/dist/declarations/src/Tracer.d.ts +17 -10
- package/dist/declarations/src/Tracer.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +5 -1
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/{defaultServices-9d7ce86f.cjs.prod.js → defaultServices-1c3db777.cjs.prod.js} +15 -4
- package/dist/{defaultServices-755d5b46.cjs.dev.js → defaultServices-a933c201.cjs.dev.js} +15 -4
- package/dist/effect.cjs.dev.js +6 -3
- package/dist/effect.cjs.mjs +2 -1
- package/dist/effect.cjs.prod.js +6 -3
- package/dist/effect.esm.js +4 -2
- package/dist/{fiber-5156eff2.cjs.dev.js → fiber-13587a5a.cjs.dev.js} +3 -3
- package/dist/{fiber-9519d109.cjs.prod.js → fiber-2858bd1f.cjs.prod.js} +3 -3
- package/dist/{fiberRefs-98b71233.cjs.dev.js → fiberRefs-abe2a811.cjs.dev.js} +1 -1
- package/dist/{fiberRefs-558c17e6.cjs.prod.js → fiberRefs-ea1edd57.cjs.prod.js} +1 -1
- package/dist/{fiberRuntime-31ae011f.cjs.prod.js → fiberRuntime-9fafeaab.cjs.prod.js} +27 -23
- package/dist/{fiberRuntime-d3872282.cjs.dev.js → fiberRuntime-ebcb168f.cjs.dev.js} +27 -23
- package/dist/{groupBy-862cc2da.cjs.dev.js → groupBy-050e6b17.cjs.dev.js} +4 -4
- package/dist/{groupBy-724f64ef.cjs.prod.js → groupBy-93f35a1d.cjs.prod.js} +4 -4
- package/dist/{hook-8cefc909.cjs.dev.js → hook-2c94278c.cjs.dev.js} +1 -1
- package/dist/{hook-98ce30e4.cjs.prod.js → hook-9af5cf52.cjs.prod.js} +1 -1
- package/dist/{key-198b6670.cjs.dev.js → key-2d4efb00.cjs.dev.js} +2 -2
- package/dist/{key-eb8a12b2.cjs.prod.js → key-9b2f3322.cjs.prod.js} +2 -2
- package/dist/{layer-29574350.cjs.dev.js → layer-09807eda.cjs.dev.js} +15 -10
- package/dist/{layer-51ff4846.cjs.prod.js → layer-fc5b5ca7.cjs.prod.js} +15 -10
- package/dist/{patch-0220a642.cjs.dev.js → patch-2f545954.cjs.dev.js} +1 -1
- package/dist/{patch-7c559bb2.cjs.prod.js → patch-e72c6c2f.cjs.prod.js} +1 -1
- package/dist/{pathPatch-fab016f1.cjs.dev.js → pathPatch-9fa78980.cjs.dev.js} +1 -1
- package/dist/{pathPatch-b56a4da2.cjs.prod.js → pathPatch-f3064fa9.cjs.prod.js} +1 -1
- package/dist/{pool-3211287f.cjs.dev.js → pool-7c9cd8e9.cjs.dev.js} +5 -5
- package/dist/{pool-f77d7705.cjs.prod.js → pool-9370f703.cjs.prod.js} +5 -5
- package/dist/{query-c36decd5.cjs.dev.js → query-6cd164ab.cjs.dev.js} +3 -3
- package/dist/{query-a52b25f0.cjs.prod.js → query-8147932f.cjs.prod.js} +3 -3
- package/dist/{queue-7a223c44.cjs.dev.js → queue-06ce789d.cjs.dev.js} +23 -13
- package/dist/{queue-315ea45d.cjs.prod.js → queue-6afe5f19.cjs.prod.js} +23 -13
- package/dist/{registry-62ff192e.cjs.dev.js → registry-35e8eb48.cjs.dev.js} +2 -2
- package/dist/{registry-d5258dff.cjs.prod.js → registry-5c67df33.cjs.prod.js} +2 -2
- package/dist/{runtime-005f8a9b.cjs.prod.js → runtime-d41d839b.cjs.prod.js} +6 -6
- package/dist/{runtime-57c8ddf8.cjs.dev.js → runtime-fb1c1c19.cjs.dev.js} +6 -6
- package/dist/{schedule-e7a9f93f.cjs.dev.js → schedule-0e1db444.cjs.dev.js} +3 -3
- package/dist/{schedule-8cdf6bf1.cjs.prod.js → schedule-64057679.cjs.prod.js} +3 -3
- package/dist/{scopedRef-eb19c7a6.cjs.dev.js → scopedRef-2ea09a4f.cjs.dev.js} +6 -6
- package/dist/{scopedRef-789d7fef.cjs.prod.js → scopedRef-7a6d42f7.cjs.prod.js} +6 -6
- package/dist/{singleProducerAsyncInput-f9b258b1.cjs.prod.js → singleProducerAsyncInput-8b8ad112.cjs.prod.js} +1 -1
- package/dist/{singleProducerAsyncInput-9ff8389b.cjs.dev.js → singleProducerAsyncInput-97f74016.cjs.dev.js} +1 -1
- package/dist/{sink-572d8981.cjs.prod.js → sink-6d1a77bf.cjs.prod.js} +3 -3
- package/dist/{sink-8d3427e7.cjs.dev.js → sink-ebf2fbdb.cjs.dev.js} +3 -3
- package/dist/{stm-f250b596.cjs.prod.js → stm-4a6de085.cjs.prod.js} +3 -3
- package/dist/{stm-8aca0022.cjs.dev.js → stm-dbec85f1.cjs.dev.js} +3 -3
- package/dist/{stream-34d80d2c.cjs.dev.js → stream-478aa5a8.cjs.dev.js} +9 -6
- package/dist/{stream-ea4f4d44.cjs.prod.js → stream-f7345889.cjs.prod.js} +9 -6
- package/dist/{synchronizedRef-ed8aa6ac.cjs.prod.js → synchronizedRef-432b4455.cjs.prod.js} +1 -1
- package/dist/{synchronizedRef-a12fd967.cjs.dev.js → synchronizedRef-fa63e917.cjs.dev.js} +1 -1
- package/dist/{tArray-17f078f2.cjs.dev.js → tArray-0c9045e7.cjs.dev.js} +3 -3
- package/dist/{tArray-d184e22f.cjs.prod.js → tArray-b30ccc3e.cjs.prod.js} +3 -3
- package/dist/{tMap-e219f30e.cjs.prod.js → tMap-001c791c.cjs.prod.js} +4 -4
- package/dist/{tMap-1a5aa78b.cjs.dev.js → tMap-0625df1d.cjs.dev.js} +4 -4
- package/dist/{tQueue-47129ad0.cjs.prod.js → tQueue-6accdd70.cjs.prod.js} +3 -3
- package/dist/{tQueue-0a4fc773.cjs.dev.js → tQueue-cdbf9130.cjs.dev.js} +3 -3
- package/dist/{tRef-ab4c5713.cjs.prod.js → tRef-8b60d85b.cjs.prod.js} +1 -1
- package/dist/{tRef-b860ef05.cjs.dev.js → tRef-b5bae36d.cjs.dev.js} +1 -1
- package/internal/channel.esm.js +2 -2
- package/internal/core-effect.esm.js +1 -1
- package/internal/fiberRuntime.esm.js +27 -23
- package/internal/layer/circular.esm.js +5 -6
- package/internal/layer.esm.js +9 -5
- package/internal/logger.esm.js +3 -3
- package/internal/matcher.esm.js +314 -0
- package/internal/queue.esm.js +24 -14
- package/internal/stream.esm.js +7 -4
- package/internal/tracer.esm.js +14 -4
- package/package.json +21 -13
- package/src/{Bigint.ts → BigInt.ts} +26 -26
- package/src/Channel.ts +4 -2
- package/src/Data.ts +18 -16
- package/src/Duration.ts +2 -2
- package/src/Effect.ts +84 -151
- package/src/Either.ts +33 -0
- package/src/FiberRef.ts +2 -3
- package/src/Layer.ts +157 -3
- package/src/Logger.ts +2 -8
- package/src/Match.ts +800 -0
- package/src/Predicate.ts +4 -4
- package/src/Queue.ts +8 -0
- package/src/Stream.ts +4 -2
- package/src/Tracer.ts +18 -9
- package/src/index.ts +6 -1
- package/src/internal/channel.ts +5 -3
- package/src/internal/core-effect.ts +27 -22
- package/src/internal/core.ts +5 -7
- package/src/internal/fiberRuntime.ts +39 -13
- package/src/internal/layer/circular.ts +21 -6
- package/src/internal/layer.ts +20 -4
- package/src/internal/logger.ts +4 -4
- package/src/internal/matcher.ts +594 -0
- package/src/internal/queue.ts +26 -11
- package/src/internal/stream.ts +9 -7
- package/src/internal/tracer.ts +28 -5
- package/src/tsconfig.json +41 -0
- package/Bigint/dist/effect-Bigint.cjs.d.mts +0 -2
- package/Bigint/dist/effect-Bigint.cjs.d.mts.map +0 -1
- package/Bigint/dist/effect-Bigint.cjs.d.ts +0 -2
- package/Bigint/dist/effect-Bigint.cjs.d.ts.map +0 -1
- package/Bigint/dist/effect-Bigint.cjs.js +0 -7
- package/Bigint/package.json +0 -4
- /package/dist/{Effectable-c4c14a2b.cjs.prod.js → Effectable-6a8a05f1.cjs.prod.js} +0 -0
- /package/dist/{Effectable-7314aed8.cjs.dev.js → Effectable-71c10ab9.cjs.dev.js} +0 -0
- /package/dist/{FiberId-1d7ac632.cjs.prod.js → FiberId-54d8bd67.cjs.prod.js} +0 -0
- /package/dist/{FiberId-d88ddce6.cjs.dev.js → FiberId-6708cdca.cjs.dev.js} +0 -0
- /package/dist/{HashSet-ac02a3e1.cjs.prod.js → HashSet-86613304.cjs.prod.js} +0 -0
- /package/dist/{HashSet-5963ad6b.cjs.dev.js → HashSet-dd020cb0.cjs.dev.js} +0 -0
- /package/dist/{RuntimeFlagsPatch-866fa259.cjs.prod.js → RuntimeFlagsPatch-902b4680.cjs.prod.js} +0 -0
- /package/dist/{RuntimeFlagsPatch-69102b03.cjs.dev.js → RuntimeFlagsPatch-cf423492.cjs.dev.js} +0 -0
- /package/dist/{boundaries-f212e414.cjs.dev.js → boundaries-b5265184.cjs.dev.js} +0 -0
- /package/dist/{boundaries-9af538e3.cjs.prod.js → boundaries-bfd86b3e.cjs.prod.js} +0 -0
- /package/dist/{configError-b43723af.cjs.prod.js → configError-856c7153.cjs.prod.js} +0 -0
- /package/dist/{configError-d5efe9c0.cjs.dev.js → configError-a824b415.cjs.dev.js} +0 -0
- /package/dist/{configSecret-e2faa181.cjs.prod.js → configSecret-9b941a86.cjs.prod.js} +0 -0
- /package/dist/{configSecret-3e8ae336.cjs.dev.js → configSecret-e7bb51da.cjs.dev.js} +0 -0
- /package/dist/{keyType-0c5e6178.cjs.prod.js → keyType-4ec0b247.cjs.prod.js} +0 -0
- /package/dist/{keyType-7c164b82.cjs.dev.js → keyType-f30c9fa4.cjs.dev.js} +0 -0
- /package/dist/{label-655343b5.cjs.prod.js → label-a588e6cd.cjs.prod.js} +0 -0
- /package/dist/{label-011edbe7.cjs.dev.js → label-b0cebeae.cjs.dev.js} +0 -0
- /package/dist/{state-0bdf02b7.cjs.prod.js → state-40d5dc71.cjs.prod.js} +0 -0
- /package/dist/{state-931050c4.cjs.dev.js → state-620f7a22.cjs.dev.js} +0 -0
- /package/dist/{take-85daaf79.cjs.prod.js → take-15455ae3.cjs.prod.js} +0 -0
- /package/dist/{take-f9ef9e2e.cjs.dev.js → take-1c250e7a.cjs.dev.js} +0 -0
|
@@ -4,18 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var Context_dist_effectContext = require('../../Context/dist/effect-Context.cjs.prod.js');
|
|
6
6
|
var Function_dist_effectFunction = require('../../Function/dist/effect-Function.cjs.prod.js');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var circular = require('../../dist/circular-
|
|
11
|
-
var fiberRuntime = require('../../dist/fiberRuntime-
|
|
12
|
-
var layer = require('../../dist/layer-
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var schedule$1 = require('../../dist/schedule-8cdf6bf1.cjs.prod.js');
|
|
7
|
+
var core = require('../../dist/core-3908bc43.cjs.prod.js');
|
|
8
|
+
var coreEffect = require('../../dist/core-effect-37a0d753.cjs.prod.js');
|
|
9
|
+
var defaultServices = require('../../dist/defaultServices-1c3db777.cjs.prod.js');
|
|
10
|
+
var circular = require('../../dist/circular-894f44de.cjs.prod.js');
|
|
11
|
+
var fiberRuntime = require('../../dist/fiberRuntime-9fafeaab.cjs.prod.js');
|
|
12
|
+
var layer = require('../../dist/layer-fc5b5ca7.cjs.prod.js');
|
|
13
|
+
var query = require('../../dist/query-8147932f.cjs.prod.js');
|
|
14
|
+
var runtime$1 = require('../../dist/runtime-d41d839b.cjs.prod.js');
|
|
15
|
+
var schedule$1 = require('../../dist/schedule-64057679.cjs.prod.js');
|
|
17
16
|
var Scheduler_dist_effectScheduler = require('../../Scheduler/dist/effect-Scheduler.cjs.prod.js');
|
|
18
|
-
require('../../dist/Context-
|
|
17
|
+
require('../../dist/Context-c91d8ca0.cjs.prod.js');
|
|
19
18
|
require('../../Equal/dist/effect-Equal.cjs.prod.js');
|
|
20
19
|
require('../../Hash/dist/effect-Hash.cjs.prod.js');
|
|
21
20
|
require('../../GlobalValue/dist/effect-GlobalValue.cjs.prod.js');
|
|
@@ -23,69 +22,68 @@ require('../../Utils/dist/effect-Utils.cjs.prod.js');
|
|
|
23
22
|
require('../../Predicate/dist/effect-Predicate.cjs.prod.js');
|
|
24
23
|
require('../../Inspectable/dist/effect-Inspectable.cjs.prod.js');
|
|
25
24
|
require('../../Pipeable/dist/effect-Pipeable.cjs.prod.js');
|
|
26
|
-
require('../../dist/Effectable-
|
|
27
|
-
require('../../dist/Option-
|
|
28
|
-
require('../../
|
|
29
|
-
require('../../Option/dist/effect-Option.cjs.prod.js');
|
|
25
|
+
require('../../dist/Effectable-6a8a05f1.cjs.prod.js');
|
|
26
|
+
require('../../dist/Option-dd52e82a.cjs.prod.js');
|
|
27
|
+
require('../../Chunk/dist/effect-Chunk.cjs.prod.js');
|
|
30
28
|
require('../../Equivalence/dist/effect-Equivalence.cjs.prod.js');
|
|
31
|
-
require('../../dist/
|
|
29
|
+
require('../../Option/dist/effect-Option.cjs.prod.js');
|
|
30
|
+
require('../../dist/Either-a3f96c60.cjs.prod.js');
|
|
32
31
|
require('../../Number/dist/effect-Number.cjs.prod.js');
|
|
33
32
|
require('../../Order/dist/effect-Order.cjs.prod.js');
|
|
33
|
+
require('../../ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js');
|
|
34
34
|
require('../../Either/dist/effect-Either.cjs.prod.js');
|
|
35
|
-
require('../../dist/
|
|
36
|
-
require('../../dist/
|
|
35
|
+
require('../../dist/ReadonlyArray-f9ed7a05.cjs.prod.js');
|
|
36
|
+
require('../../ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js');
|
|
37
|
+
require('../../Differ/dist/effect-Differ.cjs.prod.js');
|
|
37
38
|
require('../../HashMap/dist/effect-HashMap.cjs.prod.js');
|
|
38
|
-
require('../../dist/HashSet-
|
|
39
|
+
require('../../dist/HashSet-86613304.cjs.prod.js');
|
|
39
40
|
require('../../dist/Stack-fc8f9fe5.cjs.prod.js');
|
|
40
41
|
require('../../HashSet/dist/effect-HashSet.cjs.prod.js');
|
|
41
|
-
require('../../dist/
|
|
42
|
-
require('../../Chunk/dist/effect-Chunk.cjs.prod.js');
|
|
43
|
-
require('../../ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js');
|
|
44
|
-
require('../../dist/ReadonlyArray-f9ed7a05.cjs.prod.js');
|
|
45
|
-
require('../../ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js');
|
|
46
|
-
require('../../ConfigError/dist/effect-ConfigError.cjs.prod.js');
|
|
47
|
-
require('../../dist/configError-b43723af.cjs.prod.js');
|
|
48
|
-
require('../../dist/configSecret-e2faa181.cjs.prod.js');
|
|
49
|
-
require('../../dist/pathPatch-b56a4da2.cjs.prod.js');
|
|
50
|
-
require('../../List/dist/effect-List.cjs.prod.js');
|
|
42
|
+
require('../../dist/FiberId-54d8bd67.cjs.prod.js');
|
|
51
43
|
require('../../MutableRef/dist/effect-MutableRef.cjs.prod.js');
|
|
52
|
-
require('../../
|
|
53
|
-
require('../../dist/
|
|
54
|
-
require('../../dist/RuntimeFlagsPatch-866fa259.cjs.prod.js');
|
|
44
|
+
require('../../List/dist/effect-List.cjs.prod.js');
|
|
45
|
+
require('../../dist/RuntimeFlagsPatch-902b4680.cjs.prod.js');
|
|
55
46
|
require('../../Clock/dist/effect-Clock.cjs.prod.js');
|
|
47
|
+
require('../../Duration/dist/effect-Duration.cjs.prod.js');
|
|
56
48
|
require('../../FiberRefs/dist/effect-FiberRefs.cjs.prod.js');
|
|
57
|
-
require('../../dist/fiberRefs-
|
|
58
|
-
require('../../dist/patch-
|
|
59
|
-
require('../../dist/label-
|
|
49
|
+
require('../../dist/fiberRefs-ea1edd57.cjs.prod.js');
|
|
50
|
+
require('../../dist/patch-e72c6c2f.cjs.prod.js');
|
|
51
|
+
require('../../dist/label-a588e6cd.cjs.prod.js');
|
|
60
52
|
require('../../LogLevel/dist/effect-LogLevel.cjs.prod.js');
|
|
61
53
|
require('../../LogSpan/dist/effect-LogSpan.cjs.prod.js');
|
|
62
|
-
require('../../dist/Ref-
|
|
54
|
+
require('../../dist/Ref-6608e3b6.cjs.prod.js');
|
|
63
55
|
require('../../Tracer/dist/effect-Tracer.cjs.prod.js');
|
|
56
|
+
require('../../dist/timeout-489f3f86.cjs.prod.js');
|
|
57
|
+
require('../../dist/configProvider-3877a6ec.cjs.prod.js');
|
|
58
|
+
require('../../dist/config-615bcaef.cjs.prod.js');
|
|
59
|
+
require('../../ConfigError/dist/effect-ConfigError.cjs.prod.js');
|
|
60
|
+
require('../../dist/configError-856c7153.cjs.prod.js');
|
|
61
|
+
require('../../dist/configSecret-9b941a86.cjs.prod.js');
|
|
62
|
+
require('../../dist/pathPatch-f3064fa9.cjs.prod.js');
|
|
64
63
|
require('../../Exit/dist/effect-Exit.cjs.prod.js');
|
|
65
64
|
require('../../dist/ExecutionStrategy-4808fe5d.cjs.prod.js');
|
|
66
|
-
require('../../dist/fiber-
|
|
65
|
+
require('../../dist/fiber-2858bd1f.cjs.prod.js');
|
|
67
66
|
require('../../FiberStatus/dist/effect-FiberStatus.cjs.prod.js');
|
|
68
67
|
require('../../MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js');
|
|
69
68
|
require('../../Boolean/dist/effect-Boolean.cjs.prod.js');
|
|
70
69
|
require('../../Deferred/dist/effect-Deferred.cjs.prod.js');
|
|
71
70
|
require('../../FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js');
|
|
72
|
-
require('../../dist/boundaries-
|
|
73
|
-
require('../../dist/key-
|
|
74
|
-
require('../../dist/keyType-
|
|
75
|
-
require('../../dist/registry-
|
|
76
|
-
require('../../dist/hook-
|
|
77
|
-
require('../../dist/state-
|
|
71
|
+
require('../../dist/boundaries-bfd86b3e.cjs.prod.js');
|
|
72
|
+
require('../../dist/key-9b2f3322.cjs.prod.js');
|
|
73
|
+
require('../../dist/keyType-4ec0b247.cjs.prod.js');
|
|
74
|
+
require('../../dist/registry-5c67df33.cjs.prod.js');
|
|
75
|
+
require('../../dist/hook-9af5cf52.cjs.prod.js');
|
|
76
|
+
require('../../dist/state-40d5dc71.cjs.prod.js');
|
|
78
77
|
require('../../dist/pair-6254cf85.cjs.prod.js');
|
|
79
78
|
require('../../SortedSet/dist/effect-SortedSet.cjs.prod.js');
|
|
80
79
|
require('../../RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js');
|
|
81
80
|
require('../../Cause/dist/effect-Cause.cjs.prod.js');
|
|
82
|
-
require('../../dist/synchronizedRef-
|
|
81
|
+
require('../../dist/synchronizedRef-432b4455.cjs.prod.js');
|
|
83
82
|
require('../../ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js');
|
|
84
83
|
require('../../ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js');
|
|
85
84
|
require('../../ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js');
|
|
86
85
|
require('../../Scope/dist/effect-Scope.cjs.prod.js');
|
|
87
|
-
require('../../
|
|
88
|
-
require('../../dist/cache-5c7d77e4.cjs.prod.js');
|
|
86
|
+
require('../../dist/cache-d7096ab5.cjs.prod.js');
|
|
89
87
|
require('../../MutableQueue/dist/effect-MutableQueue.cjs.prod.js');
|
|
90
88
|
require('../../MutableList/dist/effect-MutableList.cjs.prod.js');
|
|
91
89
|
require('../../Fiber/dist/effect-Fiber.cjs.prod.js');
|
|
@@ -1590,12 +1588,6 @@ const withConcurrency = core.withConcurrency;
|
|
|
1590
1588
|
// scheduler
|
|
1591
1589
|
// ---------------------------------------------------------------------------------------
|
|
1592
1590
|
|
|
1593
|
-
/**
|
|
1594
|
-
* @since 2.0.0
|
|
1595
|
-
* @category scheduler
|
|
1596
|
-
*/
|
|
1597
|
-
const setScheduler = scheduler => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(Scheduler_dist_effectScheduler.currentScheduler, scheduler));
|
|
1598
|
-
|
|
1599
1591
|
/**
|
|
1600
1592
|
* Sets the provided scheduler for usage in the wrapped effect
|
|
1601
1593
|
*
|
|
@@ -1641,12 +1633,6 @@ const clock = coreEffect.clock;
|
|
|
1641
1633
|
*/
|
|
1642
1634
|
const clockWith = coreEffect.clockWith;
|
|
1643
1635
|
|
|
1644
|
-
/**
|
|
1645
|
-
* @since 2.0.0
|
|
1646
|
-
* @category clock
|
|
1647
|
-
*/
|
|
1648
|
-
const setClock = clock => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScopedWith(defaultServices.currentServices, Context_dist_effectContext.add(defaultServices.clockTag, clock)));
|
|
1649
|
-
|
|
1650
1636
|
/**
|
|
1651
1637
|
* Sets the implementation of the clock service to the specified value and
|
|
1652
1638
|
* restores it to its original value when the scope is closed.
|
|
@@ -1779,14 +1765,6 @@ const config = defaultServices.config;
|
|
|
1779
1765
|
*/
|
|
1780
1766
|
const configProviderWith = defaultServices.configProviderWith;
|
|
1781
1767
|
|
|
1782
|
-
/**
|
|
1783
|
-
* Sets the current `ConfigProvider`.
|
|
1784
|
-
*
|
|
1785
|
-
* @since 2.0.0
|
|
1786
|
-
* @category config
|
|
1787
|
-
*/
|
|
1788
|
-
const setConfigProvider = circular$1.setConfigProvider;
|
|
1789
|
-
|
|
1790
1768
|
/**
|
|
1791
1769
|
* Executes the specified workflow with the specified configuration provider.
|
|
1792
1770
|
*
|
|
@@ -2567,12 +2545,6 @@ const logAnnotations = coreEffect.logAnnotations;
|
|
|
2567
2545
|
*/
|
|
2568
2546
|
const withUnhandledErrorLogLevel = core.withUnhandledErrorLogLevel;
|
|
2569
2547
|
|
|
2570
|
-
/**
|
|
2571
|
-
* @since 2.0.0
|
|
2572
|
-
* @category logging
|
|
2573
|
-
*/
|
|
2574
|
-
const setUnhandledErrorLogLevel = level => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(core.currentUnhandledErrorLogLevel, level));
|
|
2575
|
-
|
|
2576
2548
|
// -------------------------------------------------------------------------------------
|
|
2577
2549
|
// alternatives
|
|
2578
2550
|
// -------------------------------------------------------------------------------------
|
|
@@ -2890,6 +2862,14 @@ const zipRight = fiberRuntime.zipRightOptions;
|
|
|
2890
2862
|
*/
|
|
2891
2863
|
const zipWith = fiberRuntime.zipWithOptions;
|
|
2892
2864
|
|
|
2865
|
+
// -------------------------------------------------------------------------------------
|
|
2866
|
+
// applicatives
|
|
2867
|
+
// -------------------------------------------------------------------------------------
|
|
2868
|
+
/**
|
|
2869
|
+
* @category combining
|
|
2870
|
+
* @since 2.0.0
|
|
2871
|
+
*/
|
|
2872
|
+
const ap = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => zipWith(self, that, (f, a) => f(a)));
|
|
2893
2873
|
// -------------------------------------------------------------------------------------
|
|
2894
2874
|
// requests & batching
|
|
2895
2875
|
// -------------------------------------------------------------------------------------
|
|
@@ -2936,24 +2916,6 @@ const cacheRequestResult = query.cacheRequest;
|
|
|
2936
2916
|
*/
|
|
2937
2917
|
const withRequestBatching = core.withRequestBatching;
|
|
2938
2918
|
|
|
2939
|
-
/**
|
|
2940
|
-
* @since 2.0.0
|
|
2941
|
-
* @category requests & batching
|
|
2942
|
-
*/
|
|
2943
|
-
const setRequestBatching = requestBatching => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(core.currentRequestBatching, requestBatching));
|
|
2944
|
-
|
|
2945
|
-
/**
|
|
2946
|
-
* @since 2.0.0
|
|
2947
|
-
* @category requests & batching
|
|
2948
|
-
*/
|
|
2949
|
-
const setRequestCaching = requestCaching => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(query.currentCacheEnabled, requestCaching));
|
|
2950
|
-
|
|
2951
|
-
/**
|
|
2952
|
-
* @since 2.0.0
|
|
2953
|
-
* @category requests & batching
|
|
2954
|
-
*/
|
|
2955
|
-
const setRequestCache = cache => layer.scopedDiscard(core.isEffect(cache) ? core.flatMap$1(cache, x => fiberRuntime.fiberRefLocallyScoped(query.currentCache, x)) : fiberRuntime.fiberRefLocallyScoped(query.currentCache, cache));
|
|
2956
|
-
|
|
2957
2919
|
/**
|
|
2958
2920
|
* @since 2.0.0
|
|
2959
2921
|
* @category requests & batching
|
|
@@ -2970,14 +2932,6 @@ const withRequestCache = query.withRequestCache;
|
|
|
2970
2932
|
// tracing
|
|
2971
2933
|
// -------------------------------------------------------------------------------------
|
|
2972
2934
|
|
|
2973
|
-
/**
|
|
2974
|
-
* Create a Layer that sets the current Tracer
|
|
2975
|
-
*
|
|
2976
|
-
* @since 2.0.0
|
|
2977
|
-
* @category tracing
|
|
2978
|
-
*/
|
|
2979
|
-
const setTracer = circular$1.setTracer;
|
|
2980
|
-
|
|
2981
2935
|
/**
|
|
2982
2936
|
* @since 2.0.0
|
|
2983
2937
|
* @category tracing
|
|
@@ -3008,12 +2962,6 @@ const withTracerScoped = fiberRuntime.withTracerScoped;
|
|
|
3008
2962
|
*/
|
|
3009
2963
|
const withTracerTiming = core.withTracerTiming;
|
|
3010
2964
|
|
|
3011
|
-
/**
|
|
3012
|
-
* @since 2.0.0
|
|
3013
|
-
* @category tracing
|
|
3014
|
-
*/
|
|
3015
|
-
const setTracerTiming = enabled => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(core.currentTracerTimingEnabled, enabled));
|
|
3016
|
-
|
|
3017
2965
|
/**
|
|
3018
2966
|
* Adds an annotation to each span in this effect.
|
|
3019
2967
|
*
|
|
@@ -3071,22 +3019,16 @@ const linkSpans = coreEffect.linkSpans;
|
|
|
3071
3019
|
const makeSpan = coreEffect.makeSpan;
|
|
3072
3020
|
|
|
3073
3021
|
/**
|
|
3074
|
-
*
|
|
3075
|
-
*
|
|
3076
|
-
* @since 2.0.0
|
|
3077
|
-
* @category tracing
|
|
3078
|
-
*/
|
|
3079
|
-
const setParentSpan = circular$1.setParentSpan;
|
|
3080
|
-
|
|
3081
|
-
/**
|
|
3082
|
-
* Create and add a span to the current span stack.
|
|
3022
|
+
* Create a new span for tracing, and automatically close it when the Scope
|
|
3023
|
+
* finalizes.
|
|
3083
3024
|
*
|
|
3084
|
-
* The span is
|
|
3025
|
+
* The span is not added to the current span stack, so no child spans will be
|
|
3026
|
+
* created for it.
|
|
3085
3027
|
*
|
|
3086
3028
|
* @since 2.0.0
|
|
3087
3029
|
* @category tracing
|
|
3088
3030
|
*/
|
|
3089
|
-
const
|
|
3031
|
+
const makeSpanScoped = fiberRuntime.makeSpanScoped;
|
|
3090
3032
|
|
|
3091
3033
|
/**
|
|
3092
3034
|
* Create a new span for tracing, and automatically close it when the effect
|
|
@@ -3101,34 +3043,32 @@ const setSpan = circular$1.setSpan;
|
|
|
3101
3043
|
const useSpan = coreEffect.useSpan;
|
|
3102
3044
|
|
|
3103
3045
|
/**
|
|
3104
|
-
*
|
|
3105
|
-
* finalizes.
|
|
3106
|
-
*
|
|
3107
|
-
* The span is not added to the current span stack, so no child spans will be
|
|
3108
|
-
* created for it.
|
|
3046
|
+
* Wraps the effect with a new span for tracing.
|
|
3109
3047
|
*
|
|
3110
3048
|
* @since 2.0.0
|
|
3111
3049
|
* @category tracing
|
|
3112
3050
|
*/
|
|
3113
|
-
const
|
|
3051
|
+
const withSpan = coreEffect.withSpan;
|
|
3114
3052
|
|
|
3115
3053
|
/**
|
|
3116
3054
|
* Wraps the effect with a new span for tracing.
|
|
3117
3055
|
*
|
|
3056
|
+
* The span is ended when the Scope is finalized.
|
|
3057
|
+
*
|
|
3118
3058
|
* @since 2.0.0
|
|
3119
3059
|
* @category tracing
|
|
3120
3060
|
*/
|
|
3121
|
-
const
|
|
3061
|
+
const withSpanScoped = fiberRuntime.withSpanScoped;
|
|
3122
3062
|
|
|
3123
3063
|
/**
|
|
3124
3064
|
* Create and add a span to the current span stack.
|
|
3125
3065
|
*
|
|
3126
|
-
* The span is ended when the Scope is finalized.
|
|
3066
|
+
* The span is ended & removed from the stack when the Scope is finalized.
|
|
3127
3067
|
*
|
|
3128
3068
|
* @since 2.0.0
|
|
3129
3069
|
* @category tracing
|
|
3130
3070
|
*/
|
|
3131
|
-
const
|
|
3071
|
+
const setSpan = fiberRuntime.setSpan;
|
|
3132
3072
|
|
|
3133
3073
|
/**
|
|
3134
3074
|
* Adds the provided span to the current span stack.
|
|
@@ -3144,7 +3084,7 @@ const withParentSpan = coreEffect.withParentSpan;
|
|
|
3144
3084
|
* @since 2.0.0
|
|
3145
3085
|
* @category tracing
|
|
3146
3086
|
*/
|
|
3147
|
-
const
|
|
3087
|
+
const setParentSpan = fiberRuntime.setParentSpan;
|
|
3148
3088
|
|
|
3149
3089
|
// -------------------------------------------------------------------------------------
|
|
3150
3090
|
// optionality
|
|
@@ -3181,6 +3121,7 @@ exports.allowInterrupt = allowInterrupt;
|
|
|
3181
3121
|
exports.annotateCurrentSpan = annotateCurrentSpan;
|
|
3182
3122
|
exports.annotateLogs = annotateLogs;
|
|
3183
3123
|
exports.annotateSpans = annotateSpans;
|
|
3124
|
+
exports.ap = ap;
|
|
3184
3125
|
exports.as = as;
|
|
3185
3126
|
exports.asSome = asSome;
|
|
3186
3127
|
exports.asSomeError = asSomeError;
|
|
@@ -3306,6 +3247,7 @@ exports.logWarning = logWarning;
|
|
|
3306
3247
|
exports.loop = loop;
|
|
3307
3248
|
exports.makeSemaphore = makeSemaphore;
|
|
3308
3249
|
exports.makeSpan = makeSpan;
|
|
3250
|
+
exports.makeSpanScoped = makeSpanScoped;
|
|
3309
3251
|
exports.map = map;
|
|
3310
3252
|
exports.mapAccum = mapAccum;
|
|
3311
3253
|
exports.mapBoth = mapBoth;
|
|
@@ -3391,18 +3333,9 @@ exports.serviceFunctionEffect = serviceFunctionEffect;
|
|
|
3391
3333
|
exports.serviceFunctions = serviceFunctions;
|
|
3392
3334
|
exports.serviceMembers = serviceMembers;
|
|
3393
3335
|
exports.serviceOption = serviceOption;
|
|
3394
|
-
exports.setClock = setClock;
|
|
3395
|
-
exports.setConfigProvider = setConfigProvider;
|
|
3396
3336
|
exports.setFiberRefs = setFiberRefs;
|
|
3397
3337
|
exports.setParentSpan = setParentSpan;
|
|
3398
|
-
exports.setRequestBatching = setRequestBatching;
|
|
3399
|
-
exports.setRequestCache = setRequestCache;
|
|
3400
|
-
exports.setRequestCaching = setRequestCaching;
|
|
3401
|
-
exports.setScheduler = setScheduler;
|
|
3402
3338
|
exports.setSpan = setSpan;
|
|
3403
|
-
exports.setTracer = setTracer;
|
|
3404
|
-
exports.setTracerTiming = setTracerTiming;
|
|
3405
|
-
exports.setUnhandledErrorLogLevel = setUnhandledErrorLogLevel;
|
|
3406
3339
|
exports.sleep = sleep;
|
|
3407
3340
|
exports.spanAnnotations = spanAnnotations;
|
|
3408
3341
|
exports.spanLinks = spanLinks;
|
|
@@ -3449,7 +3382,6 @@ exports.unsandbox = unsandbox;
|
|
|
3449
3382
|
exports.updateFiberRefs = updateFiberRefs;
|
|
3450
3383
|
exports.updateService = updateService;
|
|
3451
3384
|
exports.useSpan = useSpan;
|
|
3452
|
-
exports.useSpanScoped = useSpanScoped;
|
|
3453
3385
|
exports.using = using;
|
|
3454
3386
|
exports.validate = validate;
|
|
3455
3387
|
exports.validateAll = validateAll;
|
|
@@ -3470,7 +3402,6 @@ exports.withLogSpan = withLogSpan;
|
|
|
3470
3402
|
exports.withMaxOpsBeforeYield = withMaxOpsBeforeYield;
|
|
3471
3403
|
exports.withMetric = withMetric;
|
|
3472
3404
|
exports.withParentSpan = withParentSpan;
|
|
3473
|
-
exports.withParentSpanScoped = withParentSpanScoped;
|
|
3474
3405
|
exports.withRequestBatching = withRequestBatching;
|
|
3475
3406
|
exports.withRequestCache = withRequestCache;
|
|
3476
3407
|
exports.withRequestCaching = withRequestCaching;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { identity } from '../../Function/dist/effect-Function.esm.js';
|
|
3
|
-
import {
|
|
4
|
-
import { EffectTypeId as EffectTypeId$1, isEffect as isEffect$1, async as async$1, asyncEither as asyncEither$1, fail as fail$1, failSync as failSync$1, failCause as failCause$1, failCauseSync as failCauseSync$1, die as die$1, dieMessage as dieMessage$1, dieSync as dieSync$1, never as never$1, succeed as succeed$1, suspend as suspend$1, sync as sync$1, unit as unit$1, yieldNow as yieldNow$1, catchAll as catchAll$1, catchAllCause as catchAllCause$1, catchIf as catchIf$1, catchSome as catchSome$1, checkInterruptible as checkInterruptible$1, interrupt as interrupt$1, interruptWith as interruptWith$1, interruptible as interruptible$1, interruptibleMask as interruptibleMask$1, onInterrupt as onInterrupt$1, uninterruptible as uninterruptible$1, uninterruptibleMask as uninterruptibleMask$1, as as as$1, asUnit as asUnit$1, flip as flip$1, map as map$1, mapBoth as mapBoth$1, mapError as mapError$1, acquireUseRelease as acquireUseRelease$1, onError as onError$1, onExit as onExit$1, fiberId as fiberId$1, fiberIdWith as fiberIdWith$1, transplant as transplant$1, withConcurrency as withConcurrency$1, withSchedulingPriority as withSchedulingPriority$1, withMaxOpsBeforeYield as withMaxOpsBeforeYield$1, context as context$1, contextWithEffect as contextWithEffect$1, mapInputContext as mapInputContext$1, either as either$1, exit as exit$1, intoDeferred as intoDeferred$1, if_ as if_$1, whenEffect as whenEffect$1, flatMap as flatMap$1, flatten as flatten$1, tap as tap$1, whileLoop as whileLoop$1, fiberRefLocally, fiberRefLocallyWith, matchCause as matchCause$1, matchCauseEffect as matchCauseEffect$1, matchEffect as matchEffect$1, withUnhandledErrorLogLevel as withUnhandledErrorLogLevel$1, currentUnhandledErrorLogLevel, orDie as orDie$1, orDieWith as orDieWith$1, orElse as orElse$1, runtimeFlags, updateRuntimeFlags, withRuntimeFlags, metricLabels as metricLabels$1, unified as unified$1, blocked as blocked$1, runRequestBlock as runRequestBlock$1, step as step$1, flatMapStep as flatMapStep$1, withRequestBatching as withRequestBatching$1, currentRequestBatching, withTracerTiming as withTracerTiming$1, currentTracerTimingEnabled } from '../../internal/core.esm.js';
|
|
1
|
+
import { getOption } from '../../Context/dist/effect-Context.esm.js';
|
|
2
|
+
import { identity, dual } from '../../Function/dist/effect-Function.esm.js';
|
|
3
|
+
import { EffectTypeId as EffectTypeId$1, isEffect as isEffect$1, async as async$1, asyncEither as asyncEither$1, fail as fail$1, failSync as failSync$1, failCause as failCause$1, failCauseSync as failCauseSync$1, die as die$1, dieMessage as dieMessage$1, dieSync as dieSync$1, never as never$1, succeed as succeed$1, suspend as suspend$1, sync as sync$1, unit as unit$1, yieldNow as yieldNow$1, catchAll as catchAll$1, catchAllCause as catchAllCause$1, catchIf as catchIf$1, catchSome as catchSome$1, checkInterruptible as checkInterruptible$1, interrupt as interrupt$1, interruptWith as interruptWith$1, interruptible as interruptible$1, interruptibleMask as interruptibleMask$1, onInterrupt as onInterrupt$1, uninterruptible as uninterruptible$1, uninterruptibleMask as uninterruptibleMask$1, as as as$1, asUnit as asUnit$1, flip as flip$1, map as map$1, mapBoth as mapBoth$1, mapError as mapError$1, acquireUseRelease as acquireUseRelease$1, onError as onError$1, onExit as onExit$1, fiberId as fiberId$1, fiberIdWith as fiberIdWith$1, transplant as transplant$1, withConcurrency as withConcurrency$1, withSchedulingPriority as withSchedulingPriority$1, withMaxOpsBeforeYield as withMaxOpsBeforeYield$1, context as context$1, contextWithEffect as contextWithEffect$1, mapInputContext as mapInputContext$1, either as either$1, exit as exit$1, intoDeferred as intoDeferred$1, if_ as if_$1, whenEffect as whenEffect$1, flatMap as flatMap$1, flatten as flatten$1, tap as tap$1, whileLoop as whileLoop$1, fiberRefLocally, fiberRefLocallyWith, matchCause as matchCause$1, matchCauseEffect as matchCauseEffect$1, matchEffect as matchEffect$1, withUnhandledErrorLogLevel as withUnhandledErrorLogLevel$1, orDie as orDie$1, orDieWith as orDieWith$1, orElse as orElse$1, runtimeFlags, updateRuntimeFlags, withRuntimeFlags, metricLabels as metricLabels$1, unified as unified$1, blocked as blocked$1, runRequestBlock as runRequestBlock$1, step as step$1, flatMapStep as flatMapStep$1, withRequestBatching as withRequestBatching$1, withTracerTiming as withTracerTiming$1 } from '../../internal/core.esm.js';
|
|
5
4
|
import { memoize, once as once$1, dropUntil as dropUntil$1, dropWhile as dropWhile$1, every as every$1, findFirst as findFirst$1, firstSuccessOf as firstSuccessOf$1, head as head$1, reduce as reduce$1, reduceRight as reduceRight$1, reduceWhile as reduceWhile$1, takeUntil as takeUntil$1, takeWhile as takeWhile$1, asyncOption as asyncOption$1, gen as gen$1, none as none$1, promise as promise$1, succeedNone as succeedNone$1, succeedSome as succeedSome$1, _catch as _catch$1, catchAllDefect as catchAllDefect$1, catchSomeCause as catchSomeCause$1, catchSomeDefect as catchSomeDefect$1, catchTag as catchTag$1, catchTags as catchTags$1, cause as cause$1, eventually as eventually$1, ignore as ignore$1, ignoreLogged as ignoreLogged$1, parallelErrors as parallelErrors$1, sandbox as sandbox$1, try_ as try_$1, tryMap as tryMap$1, tryMapPromise as tryMapPromise$1, tryPromise as tryPromise$1, unsandbox as unsandbox$1, allowInterrupt as allowInterrupt$1, asSome as asSome$1, asSomeError as asSomeError$1, flipWith as flipWith$1, mapAccum as mapAccum$1, mapErrorCause as mapErrorCause$1, merge as merge$1, negate as negate$1, descriptor as descriptor$1, descriptorWith as descriptorWith$1, diffFiberRefs as diffFiberRefs$1, clock as clock$1, clockWith as clockWith$1, delay as delay$1, sleep as sleep$1, timed as timed$1, timedWith as timedWith$1, contextWith as contextWith$1, provideService as provideService$1, provideServiceEffect as provideServiceEffect$1, serviceFunction as serviceFunction$1, serviceFunctionEffect as serviceFunctionEffect$1, serviceFunctions as serviceFunctions$1, serviceConstants as serviceConstants$1, serviceMembers as serviceMembers$1, updateService as updateService$1, Do as Do$1, bind as bind$1, bindTo as bindTo$1, bindValue, option as option$1, filterOrDie as filterOrDie$1, filterOrDieMessage as filterOrDieMessage$1, filterOrElse as filterOrElse$1, filterOrFail as filterOrFail$1, unless as unless$1, unlessEffect as unlessEffect$1, when as when$1, whenFiberRef as whenFiberRef$1, whenRef as whenRef$1, summarized as summarized$1, tapBoth as tapBoth$1, tapDefect as tapDefect$1, tapError as tapError$1, tapErrorTag as tapErrorTag$1, tapErrorCause as tapErrorCause$1, forever as forever$1, iterate as iterate$1, loop as loop$1, repeatN as repeatN$1, fiberRefs, inheritFiberRefs as inheritFiberRefs$1, patchFiberRefs as patchFiberRefs$1, setFiberRefs as setFiberRefs$1, updateFiberRefs as updateFiberRefs$1, isFailure as isFailure$1, isSuccess as isSuccess$1, match as match$1, log as log$1, logTrace as logTrace$1, logDebug as logDebug$1, logInfo as logInfo$1, logWarning as logWarning$1, logError as logError$1, logFatal as logFatal$1, withLogSpan as withLogSpan$1, annotateLogs as annotateLogs$1, logAnnotations as logAnnotations$1, orElseFail as orElseFail$1, orElseSucceed as orElseSucceed$1, random as random$1, tagMetrics as tagMetrics$1, labelMetrics as labelMetrics$1, labelMetricsSet as labelMetricsSet$1, withMetric as withMetric$1, tracer as tracer$1, annotateSpans as annotateSpans$1, annotateCurrentSpan as annotateCurrentSpan$1, currentSpan as currentSpan$1, currentParentSpan as currentParentSpan$1, spanAnnotations as spanAnnotations$1, spanLinks as spanLinks$1, linkSpans as linkSpans$1, makeSpan as makeSpan$1, useSpan as useSpan$1, withSpan as withSpan$1, withParentSpan as withParentSpan$1, fromNullable as fromNullable$1, optionFromOptional as optionFromOptional$1 } from '../../internal/core-effect.esm.js';
|
|
6
|
-
import {
|
|
5
|
+
import { withClock as withClock$1, config as config$1, configProviderWith as configProviderWith$1, withConfigProvider as withConfigProvider$1, randomWith as randomWith$1, tracerWith as tracerWith$1, withTracer as withTracer$1 } from '../../internal/defaultServices.esm.js';
|
|
7
6
|
import { cached as cached$1, cachedInvalidate, memoizeFunction, awaitAllChildren as awaitAllChildren$1, ensuringChild as ensuringChild$1, ensuringChildren as ensuringChildren$1, forkAll as forkAll$1, forkIn as forkIn$1, forkScoped as forkScoped$1, fromFiber as fromFiber$1, fromFiberEffect as fromFiberEffect$1, supervised as supervised$1, timeout as timeout$1, timeoutFail as timeoutFail$1, timeoutFailCause as timeoutFailCause$1, timeoutTo as timeoutTo$1, raceFirst as raceFirst$1, scheduleForked as scheduleForked$1, unsafeMakeSemaphore as unsafeMakeSemaphore$1, makeSemaphore as makeSemaphore$1 } from '../../internal/effect/circular.esm.js';
|
|
8
|
-
import { all as all$1, allWith as allWith$1, allSuccesses as allSuccesses$1, exists as exists$1, filter as filter$1, forEachOptions, mergeAll as mergeAll$1, partition as partition$1, reduceEffect as reduceEffect$1, replicate as replicate$1, replicateEffect as replicateEffect$1, validateAll as validateAll$1, validateFirst as validateFirst$1, disconnect as disconnect$1, acquireRelease as acquireRelease$1, acquireReleaseInterruptible as acquireReleaseInterruptible$1, addFinalizer as addFinalizer$1, ensuring as ensuring$1, parallelFinalizers as parallelFinalizers$1, finalizersMask as finalizersMask$1, sequentialFinalizers as sequentialFinalizers$1, scope as scope$1, scopeWith as scopeWith$1, scopedEffect, using as using$1, withEarlyRelease as withEarlyRelease$1, daemonChildren as daemonChildren$1, fork as fork$1, forkDaemon as forkDaemon$1, forkWithErrorHandler as forkWithErrorHandler$1,
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { fromRequest, cacheRequest, currentCacheEnabled, currentCache, withRequestCaching as withRequestCaching$1, withRequestCache as withRequestCache$1 } from '../../internal/query.esm.js';
|
|
7
|
+
import { all as all$1, allWith as allWith$1, allSuccesses as allSuccesses$1, exists as exists$1, filter as filter$1, forEachOptions, mergeAll as mergeAll$1, partition as partition$1, reduceEffect as reduceEffect$1, replicate as replicate$1, replicateEffect as replicateEffect$1, validateAll as validateAll$1, validateFirst as validateFirst$1, disconnect as disconnect$1, acquireRelease as acquireRelease$1, acquireReleaseInterruptible as acquireReleaseInterruptible$1, addFinalizer as addFinalizer$1, ensuring as ensuring$1, parallelFinalizers as parallelFinalizers$1, finalizersMask as finalizersMask$1, sequentialFinalizers as sequentialFinalizers$1, scope as scope$1, scopeWith as scopeWith$1, scopedEffect, using as using$1, withEarlyRelease as withEarlyRelease$1, daemonChildren as daemonChildren$1, fork as fork$1, forkDaemon as forkDaemon$1, forkWithErrorHandler as forkWithErrorHandler$1, withClockScoped as withClockScoped$1, withConfigProviderScoped as withConfigProviderScoped$1, raceAll as raceAll$1, race as race$1, raceWith as raceWith$1, fiberRefLocallyScoped, fiberRefLocallyScopedWith, withRuntimeFlagsScoped, tagMetricsScoped as tagMetricsScoped$1, labelMetricsScoped as labelMetricsScoped$1, labelMetricsScopedSet as labelMetricsScopedSet$1, validate as validate$1, validateWith as validateWith$1, zipOptions, zipLeftOptions, zipRightOptions, zipWithOptions, withTracerScoped as withTracerScoped$1, makeSpanScoped as makeSpanScoped$1, withSpanScoped as withSpanScoped$1, setSpan as setSpan$1, setParentSpan as setParentSpan$1 } from '../../internal/fiberRuntime.esm.js';
|
|
8
|
+
import { effect_provide } from '../../internal/layer.esm.js';
|
|
9
|
+
import { fromRequest, cacheRequest, withRequestCaching as withRequestCaching$1, withRequestCache as withRequestCache$1 } from '../../internal/query.esm.js';
|
|
12
10
|
import { asyncEffect as asyncEffect$1, runtime as runtime$1, unsafeForkEffect, unsafeRunEffect, unsafeRunPromiseEffect, unsafeRunPromiseExitEffect, unsafeRunSyncEffect, unsafeRunSyncExitEffect } from '../../internal/runtime.esm.js';
|
|
13
11
|
import { retry_Effect, retryN_Effect, retryOrElse_Effect, retryUntil_Effect, retryUntilEffect_Effect, retryWhile_Effect, retryWhileEffect_Effect, repeat_Effect, repeatOrElse_Effect, repeatUntil_Effect, repeatUntilEffect_Effect, repeatWhile_Effect, repeatWhileEffect_Effect, schedule_Effect, scheduleFrom_Effect } from '../../internal/schedule.esm.js';
|
|
14
|
-
import {
|
|
12
|
+
import { withScheduler as withScheduler$1 } from '../../Scheduler/dist/effect-Scheduler.esm.js';
|
|
15
13
|
|
|
16
14
|
/**
|
|
17
15
|
* @since 2.0.0
|
|
@@ -1512,12 +1510,6 @@ const withConcurrency = withConcurrency$1;
|
|
|
1512
1510
|
// scheduler
|
|
1513
1511
|
// ---------------------------------------------------------------------------------------
|
|
1514
1512
|
|
|
1515
|
-
/**
|
|
1516
|
-
* @since 2.0.0
|
|
1517
|
-
* @category scheduler
|
|
1518
|
-
*/
|
|
1519
|
-
const setScheduler = scheduler => scopedDiscard(fiberRefLocallyScoped(currentScheduler, scheduler));
|
|
1520
|
-
|
|
1521
1513
|
/**
|
|
1522
1514
|
* Sets the provided scheduler for usage in the wrapped effect
|
|
1523
1515
|
*
|
|
@@ -1563,12 +1555,6 @@ const clock = clock$1;
|
|
|
1563
1555
|
*/
|
|
1564
1556
|
const clockWith = clockWith$1;
|
|
1565
1557
|
|
|
1566
|
-
/**
|
|
1567
|
-
* @since 2.0.0
|
|
1568
|
-
* @category clock
|
|
1569
|
-
*/
|
|
1570
|
-
const setClock = clock => scopedDiscard(fiberRefLocallyScopedWith(currentServices, add(clockTag, clock)));
|
|
1571
|
-
|
|
1572
1558
|
/**
|
|
1573
1559
|
* Sets the implementation of the clock service to the specified value and
|
|
1574
1560
|
* restores it to its original value when the scope is closed.
|
|
@@ -1701,14 +1687,6 @@ const config = config$1;
|
|
|
1701
1687
|
*/
|
|
1702
1688
|
const configProviderWith = configProviderWith$1;
|
|
1703
1689
|
|
|
1704
|
-
/**
|
|
1705
|
-
* Sets the current `ConfigProvider`.
|
|
1706
|
-
*
|
|
1707
|
-
* @since 2.0.0
|
|
1708
|
-
* @category config
|
|
1709
|
-
*/
|
|
1710
|
-
const setConfigProvider = setConfigProvider$1;
|
|
1711
|
-
|
|
1712
1690
|
/**
|
|
1713
1691
|
* Executes the specified workflow with the specified configuration provider.
|
|
1714
1692
|
*
|
|
@@ -2489,12 +2467,6 @@ const logAnnotations = logAnnotations$1;
|
|
|
2489
2467
|
*/
|
|
2490
2468
|
const withUnhandledErrorLogLevel = withUnhandledErrorLogLevel$1;
|
|
2491
2469
|
|
|
2492
|
-
/**
|
|
2493
|
-
* @since 2.0.0
|
|
2494
|
-
* @category logging
|
|
2495
|
-
*/
|
|
2496
|
-
const setUnhandledErrorLogLevel = level => scopedDiscard(fiberRefLocallyScoped(currentUnhandledErrorLogLevel, level));
|
|
2497
|
-
|
|
2498
2470
|
// -------------------------------------------------------------------------------------
|
|
2499
2471
|
// alternatives
|
|
2500
2472
|
// -------------------------------------------------------------------------------------
|
|
@@ -2812,6 +2784,14 @@ const zipRight = zipRightOptions;
|
|
|
2812
2784
|
*/
|
|
2813
2785
|
const zipWith = zipWithOptions;
|
|
2814
2786
|
|
|
2787
|
+
// -------------------------------------------------------------------------------------
|
|
2788
|
+
// applicatives
|
|
2789
|
+
// -------------------------------------------------------------------------------------
|
|
2790
|
+
/**
|
|
2791
|
+
* @category combining
|
|
2792
|
+
* @since 2.0.0
|
|
2793
|
+
*/
|
|
2794
|
+
const ap = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, (f, a) => f(a)));
|
|
2815
2795
|
// -------------------------------------------------------------------------------------
|
|
2816
2796
|
// requests & batching
|
|
2817
2797
|
// -------------------------------------------------------------------------------------
|
|
@@ -2858,24 +2838,6 @@ const cacheRequestResult = cacheRequest;
|
|
|
2858
2838
|
*/
|
|
2859
2839
|
const withRequestBatching = withRequestBatching$1;
|
|
2860
2840
|
|
|
2861
|
-
/**
|
|
2862
|
-
* @since 2.0.0
|
|
2863
|
-
* @category requests & batching
|
|
2864
|
-
*/
|
|
2865
|
-
const setRequestBatching = requestBatching => scopedDiscard(fiberRefLocallyScoped(currentRequestBatching, requestBatching));
|
|
2866
|
-
|
|
2867
|
-
/**
|
|
2868
|
-
* @since 2.0.0
|
|
2869
|
-
* @category requests & batching
|
|
2870
|
-
*/
|
|
2871
|
-
const setRequestCaching = requestCaching => scopedDiscard(fiberRefLocallyScoped(currentCacheEnabled, requestCaching));
|
|
2872
|
-
|
|
2873
|
-
/**
|
|
2874
|
-
* @since 2.0.0
|
|
2875
|
-
* @category requests & batching
|
|
2876
|
-
*/
|
|
2877
|
-
const setRequestCache = cache => scopedDiscard(isEffect$1(cache) ? flatMap$1(cache, x => fiberRefLocallyScoped(currentCache, x)) : fiberRefLocallyScoped(currentCache, cache));
|
|
2878
|
-
|
|
2879
2841
|
/**
|
|
2880
2842
|
* @since 2.0.0
|
|
2881
2843
|
* @category requests & batching
|
|
@@ -2892,14 +2854,6 @@ const withRequestCache = withRequestCache$1;
|
|
|
2892
2854
|
// tracing
|
|
2893
2855
|
// -------------------------------------------------------------------------------------
|
|
2894
2856
|
|
|
2895
|
-
/**
|
|
2896
|
-
* Create a Layer that sets the current Tracer
|
|
2897
|
-
*
|
|
2898
|
-
* @since 2.0.0
|
|
2899
|
-
* @category tracing
|
|
2900
|
-
*/
|
|
2901
|
-
const setTracer = setTracer$1;
|
|
2902
|
-
|
|
2903
2857
|
/**
|
|
2904
2858
|
* @since 2.0.0
|
|
2905
2859
|
* @category tracing
|
|
@@ -2930,12 +2884,6 @@ const withTracerScoped = withTracerScoped$1;
|
|
|
2930
2884
|
*/
|
|
2931
2885
|
const withTracerTiming = withTracerTiming$1;
|
|
2932
2886
|
|
|
2933
|
-
/**
|
|
2934
|
-
* @since 2.0.0
|
|
2935
|
-
* @category tracing
|
|
2936
|
-
*/
|
|
2937
|
-
const setTracerTiming = enabled => scopedDiscard(fiberRefLocallyScoped(currentTracerTimingEnabled, enabled));
|
|
2938
|
-
|
|
2939
2887
|
/**
|
|
2940
2888
|
* Adds an annotation to each span in this effect.
|
|
2941
2889
|
*
|
|
@@ -2993,22 +2941,16 @@ const linkSpans = linkSpans$1;
|
|
|
2993
2941
|
const makeSpan = makeSpan$1;
|
|
2994
2942
|
|
|
2995
2943
|
/**
|
|
2996
|
-
*
|
|
2997
|
-
*
|
|
2998
|
-
* @since 2.0.0
|
|
2999
|
-
* @category tracing
|
|
3000
|
-
*/
|
|
3001
|
-
const setParentSpan = setParentSpan$1;
|
|
3002
|
-
|
|
3003
|
-
/**
|
|
3004
|
-
* Create and add a span to the current span stack.
|
|
2944
|
+
* Create a new span for tracing, and automatically close it when the Scope
|
|
2945
|
+
* finalizes.
|
|
3005
2946
|
*
|
|
3006
|
-
* The span is
|
|
2947
|
+
* The span is not added to the current span stack, so no child spans will be
|
|
2948
|
+
* created for it.
|
|
3007
2949
|
*
|
|
3008
2950
|
* @since 2.0.0
|
|
3009
2951
|
* @category tracing
|
|
3010
2952
|
*/
|
|
3011
|
-
const
|
|
2953
|
+
const makeSpanScoped = makeSpanScoped$1;
|
|
3012
2954
|
|
|
3013
2955
|
/**
|
|
3014
2956
|
* Create a new span for tracing, and automatically close it when the effect
|
|
@@ -3023,34 +2965,32 @@ const setSpan = setSpan$1;
|
|
|
3023
2965
|
const useSpan = useSpan$1;
|
|
3024
2966
|
|
|
3025
2967
|
/**
|
|
3026
|
-
*
|
|
3027
|
-
* finalizes.
|
|
3028
|
-
*
|
|
3029
|
-
* The span is not added to the current span stack, so no child spans will be
|
|
3030
|
-
* created for it.
|
|
2968
|
+
* Wraps the effect with a new span for tracing.
|
|
3031
2969
|
*
|
|
3032
2970
|
* @since 2.0.0
|
|
3033
2971
|
* @category tracing
|
|
3034
2972
|
*/
|
|
3035
|
-
const
|
|
2973
|
+
const withSpan = withSpan$1;
|
|
3036
2974
|
|
|
3037
2975
|
/**
|
|
3038
2976
|
* Wraps the effect with a new span for tracing.
|
|
3039
2977
|
*
|
|
2978
|
+
* The span is ended when the Scope is finalized.
|
|
2979
|
+
*
|
|
3040
2980
|
* @since 2.0.0
|
|
3041
2981
|
* @category tracing
|
|
3042
2982
|
*/
|
|
3043
|
-
const
|
|
2983
|
+
const withSpanScoped = withSpanScoped$1;
|
|
3044
2984
|
|
|
3045
2985
|
/**
|
|
3046
2986
|
* Create and add a span to the current span stack.
|
|
3047
2987
|
*
|
|
3048
|
-
* The span is ended when the Scope is finalized.
|
|
2988
|
+
* The span is ended & removed from the stack when the Scope is finalized.
|
|
3049
2989
|
*
|
|
3050
2990
|
* @since 2.0.0
|
|
3051
2991
|
* @category tracing
|
|
3052
2992
|
*/
|
|
3053
|
-
const
|
|
2993
|
+
const setSpan = setSpan$1;
|
|
3054
2994
|
|
|
3055
2995
|
/**
|
|
3056
2996
|
* Adds the provided span to the current span stack.
|
|
@@ -3066,7 +3006,7 @@ const withParentSpan = withParentSpan$1;
|
|
|
3066
3006
|
* @since 2.0.0
|
|
3067
3007
|
* @category tracing
|
|
3068
3008
|
*/
|
|
3069
|
-
const
|
|
3009
|
+
const setParentSpan = setParentSpan$1;
|
|
3070
3010
|
|
|
3071
3011
|
// -------------------------------------------------------------------------------------
|
|
3072
3012
|
// optionality
|
|
@@ -3090,4 +3030,4 @@ const fromNullable = fromNullable$1;
|
|
|
3090
3030
|
*/
|
|
3091
3031
|
const optionFromOptional = optionFromOptional$1;
|
|
3092
3032
|
|
|
3093
|
-
export { Do, EffectTypeId, acquireRelease, acquireReleaseInterruptible, acquireUseRelease, addFinalizer, all, allSuccesses, allWith, allowInterrupt, annotateCurrentSpan, annotateLogs, annotateSpans, as, asSome, asSomeError, asUnit, async, asyncEffect, asyncEither, asyncOption, awaitAllChildren, bind, bindTo, blocked, cacheRequestResult, cached, cachedFunction, cachedInvalidateWithTTL, cachedWithTTL, _catch as catch, catchAll, catchAllCause, catchAllDefect, catchIf, catchSome, catchSomeCause, catchSomeDefect, catchTag, catchTags, cause, checkInterruptible, clock, clockWith, config, configProviderWith, context, contextWith, contextWithEffect, currentParentSpan, currentSpan, daemonChildren, delay, descriptor, descriptorWith, die, dieMessage, dieSync, diffFiberRefs, disconnect, dropUntil, dropWhile, either, ensuring, ensuringChild, ensuringChildren, eventually, every, exists, exit, fail, failCause, failCauseSync, failSync, fiberId, fiberIdWith, filter, filterOrDie, filterOrDieMessage, filterOrElse, filterOrFail, finalizersMask, findFirst, firstSuccessOf, flatMap, flatMapStep, flatten, flip, flipWith, forEach, forever, fork, forkAll, forkDaemon, forkIn, forkScoped, forkWithErrorHandler, fromFiber, fromFiberEffect, fromNullable, gen, getFiberRefs, getRuntimeFlags, head, if_ as if, ignore, ignoreLogged, inheritFiberRefs, interrupt, interruptWith, interruptible, interruptibleMask, intoDeferred, isEffect, isFailure, isSuccess, iterate, labelMetrics, labelMetricsScoped, labelMetricsScopedSet, labelMetricsSet, let_ as let, linkSpans, locally, locallyScoped, locallyScopedWith, locallyWith, log, logAnnotations, logDebug, logError, logFatal, logInfo, logTrace, logWarning, loop, makeSemaphore, makeSpan, map, mapAccum, mapBoth, mapError, mapErrorCause, mapInputContext, match, matchCause, matchCauseEffect, matchEffect, merge, mergeAll, metricLabels, negate, never, none, onError, onExit, onInterrupt, once, option, optionFromOptional, orDie, orDieWith, orElse, orElseFail, orElseSucceed, parallelErrors, parallelFinalizers, partition, patchFiberRefs, patchRuntimeFlags, promise, provide, provideService, provideServiceEffect, race, raceAll, raceFirst, raceWith, random, randomWith, reduce, reduceEffect, reduceRight, reduceWhile, repeat, repeatN, repeatOrElse, repeatUntil, repeatUntilEffect, repeatWhile, repeatWhileEffect, replicate, replicateEffect, request, retry, retryN, retryOrElse, retryUntil, retryUntilEffect, retryWhile, retryWhileEffect, runCallback, runFork, runPromise, runPromiseExit, runRequestBlock, runSync, runSyncExit, runtime, sandbox, schedule, scheduleForked, scheduleFrom, scope, scopeWith, scoped, sequentialFinalizers, serviceConstants, serviceFunction, serviceFunctionEffect, serviceFunctions, serviceMembers, serviceOption,
|
|
3033
|
+
export { Do, EffectTypeId, acquireRelease, acquireReleaseInterruptible, acquireUseRelease, addFinalizer, all, allSuccesses, allWith, allowInterrupt, annotateCurrentSpan, annotateLogs, annotateSpans, ap, as, asSome, asSomeError, asUnit, async, asyncEffect, asyncEither, asyncOption, awaitAllChildren, bind, bindTo, blocked, cacheRequestResult, cached, cachedFunction, cachedInvalidateWithTTL, cachedWithTTL, _catch as catch, catchAll, catchAllCause, catchAllDefect, catchIf, catchSome, catchSomeCause, catchSomeDefect, catchTag, catchTags, cause, checkInterruptible, clock, clockWith, config, configProviderWith, context, contextWith, contextWithEffect, currentParentSpan, currentSpan, daemonChildren, delay, descriptor, descriptorWith, die, dieMessage, dieSync, diffFiberRefs, disconnect, dropUntil, dropWhile, either, ensuring, ensuringChild, ensuringChildren, eventually, every, exists, exit, fail, failCause, failCauseSync, failSync, fiberId, fiberIdWith, filter, filterOrDie, filterOrDieMessage, filterOrElse, filterOrFail, finalizersMask, findFirst, firstSuccessOf, flatMap, flatMapStep, flatten, flip, flipWith, forEach, forever, fork, forkAll, forkDaemon, forkIn, forkScoped, forkWithErrorHandler, fromFiber, fromFiberEffect, fromNullable, gen, getFiberRefs, getRuntimeFlags, head, if_ as if, ignore, ignoreLogged, inheritFiberRefs, interrupt, interruptWith, interruptible, interruptibleMask, intoDeferred, isEffect, isFailure, isSuccess, iterate, labelMetrics, labelMetricsScoped, labelMetricsScopedSet, labelMetricsSet, let_ as let, linkSpans, locally, locallyScoped, locallyScopedWith, locallyWith, log, logAnnotations, logDebug, logError, logFatal, logInfo, logTrace, logWarning, loop, makeSemaphore, makeSpan, makeSpanScoped, map, mapAccum, mapBoth, mapError, mapErrorCause, mapInputContext, match, matchCause, matchCauseEffect, matchEffect, merge, mergeAll, metricLabels, negate, never, none, onError, onExit, onInterrupt, once, option, optionFromOptional, orDie, orDieWith, orElse, orElseFail, orElseSucceed, parallelErrors, parallelFinalizers, partition, patchFiberRefs, patchRuntimeFlags, promise, provide, provideService, provideServiceEffect, race, raceAll, raceFirst, raceWith, random, randomWith, reduce, reduceEffect, reduceRight, reduceWhile, repeat, repeatN, repeatOrElse, repeatUntil, repeatUntilEffect, repeatWhile, repeatWhileEffect, replicate, replicateEffect, request, retry, retryN, retryOrElse, retryUntil, retryUntilEffect, retryWhile, retryWhileEffect, runCallback, runFork, runPromise, runPromiseExit, runRequestBlock, runSync, runSyncExit, runtime, sandbox, schedule, scheduleForked, scheduleFrom, scope, scopeWith, scoped, sequentialFinalizers, serviceConstants, serviceFunction, serviceFunctionEffect, serviceFunctions, serviceMembers, serviceOption, setFiberRefs, setParentSpan, setSpan, sleep, spanAnnotations, spanLinks, step, succeed, succeedNone, succeedSome, summarized, supervised, suspend, sync, tagMetrics, tagMetricsScoped, takeUntil, takeWhile, tap, tapBoth, tapDefect, tapError, tapErrorCause, tapErrorTag, timed, timedWith, timeout, timeoutFail, timeoutFailCause, timeoutTo, tracer, tracerWith, transplant, try_ as try, tryMap, tryMapPromise, tryPromise, unified, unifiedFn, uninterruptible, uninterruptibleMask, unit, unless, unlessEffect, unsafeMakeSemaphore, unsandbox, updateFiberRefs, updateService, useSpan, using, validate, validateAll, validateFirst, validateWith, when, whenEffect, whenFiberRef, whenRef, whileLoop, withClock, withClockScoped, withConcurrency, withConfigProvider, withConfigProviderScoped, withEarlyRelease, withLogSpan, withMaxOpsBeforeYield, withMetric, withParentSpan, withRequestBatching, withRequestCache, withRequestCaching, withRuntimeFlagsPatch, withRuntimeFlagsPatchScoped, withScheduler, withSchedulingPriority, withSpan, withSpanScoped, withTracer, withTracerScoped, withTracerTiming, withUnhandledErrorLogLevel, yieldNow, zip, zipLeft, zipRight, zipWith };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Effectable = require('../../dist/Effectable-
|
|
5
|
+
var Effectable = require('../../dist/Effectable-71c10ab9.cjs.dev.js');
|
|
6
6
|
require('../../Equal/dist/effect-Equal.cjs.dev.js');
|
|
7
7
|
require('../../Hash/dist/effect-Hash.cjs.dev.js');
|
|
8
8
|
require('../../Function/dist/effect-Function.cjs.dev.js');
|