effect 2.0.0-next.52 → 2.0.0-next.53
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/BigDecimal/dist/effect-BigDecimal.cjs.dev.js +6 -6
- package/BigDecimal/dist/effect-BigDecimal.cjs.prod.js +6 -6
- package/BigDecimal/dist/effect-BigDecimal.esm.js +2 -1
- package/BigInt/dist/effect-BigInt.cjs.dev.js +4 -4
- package/BigInt/dist/effect-BigInt.cjs.prod.js +4 -4
- package/Brand/dist/effect-Brand.cjs.dev.js +5 -5
- package/Brand/dist/effect-Brand.cjs.prod.js +5 -5
- package/Cache/dist/effect-Cache.cjs.dev.js +31 -30
- package/Cache/dist/effect-Cache.cjs.prod.js +31 -30
- package/Cause/dist/effect-Cause.cjs.dev.js +10 -10
- package/Cause/dist/effect-Cause.cjs.prod.js +10 -10
- package/Channel/dist/effect-Channel.cjs.dev.js +49 -48
- package/Channel/dist/effect-Channel.cjs.prod.js +49 -48
- package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.dev.js +2 -1
- package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.prod.js +2 -1
- package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.dev.js +2 -1
- package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.prod.js +2 -1
- package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.dev.js +2 -1
- package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.prod.js +2 -1
- package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.dev.js +2 -1
- package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.prod.js +2 -1
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +38 -37
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +38 -37
- package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.dev.js +2 -1
- package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.prod.js +2 -1
- package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.dev.js +2 -1
- package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.prod.js +2 -1
- package/Chunk/dist/effect-Chunk.cjs.dev.js +6 -6
- package/Chunk/dist/effect-Chunk.cjs.prod.js +6 -6
- package/Chunk/dist/effect-Chunk.esm.js +3 -3
- package/Clock/dist/effect-Clock.cjs.dev.js +16 -16
- package/Clock/dist/effect-Clock.cjs.prod.js +16 -16
- package/Config/dist/effect-Config.cjs.dev.js +13 -13
- package/Config/dist/effect-Config.cjs.prod.js +13 -13
- package/ConfigError/dist/effect-ConfigError.cjs.dev.js +6 -6
- package/ConfigError/dist/effect-ConfigError.cjs.prod.js +6 -6
- package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +15 -15
- package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +15 -15
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +7 -7
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +7 -7
- package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +6 -6
- package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +6 -6
- package/Console/dist/effect-Console.cjs.dev.js +35 -34
- package/Console/dist/effect-Console.cjs.prod.js +35 -34
- package/Context/dist/effect-Context.cjs.dev.js +5 -5
- package/Context/dist/effect-Context.cjs.prod.js +5 -5
- package/Data/dist/effect-Data.cjs.dev.js +36 -36
- package/Data/dist/effect-Data.cjs.prod.js +36 -36
- package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +16 -16
- package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +16 -16
- package/Deferred/dist/effect-Deferred.cjs.dev.js +10 -10
- package/Deferred/dist/effect-Deferred.cjs.prod.js +10 -10
- package/Differ/dist/effect-Differ.cjs.dev.js +7 -7
- package/Differ/dist/effect-Differ.cjs.prod.js +7 -7
- package/Duration/dist/effect-Duration.cjs.dev.js +5 -5
- package/Duration/dist/effect-Duration.cjs.prod.js +5 -5
- package/Duration/dist/effect-Duration.esm.js +2 -2
- package/Effect/dist/effect-Effect.cjs.dev.js +37 -36
- package/Effect/dist/effect-Effect.cjs.prod.js +37 -36
- package/Effectable/dist/effect-Effectable.cjs.dev.js +3 -3
- package/Effectable/dist/effect-Effectable.cjs.prod.js +3 -3
- package/Either/dist/effect-Either.cjs.dev.js +4 -4
- package/Either/dist/effect-Either.cjs.prod.js +4 -4
- package/Encoding/dist/effect-Encoding.cjs.dev.js +6 -6
- package/Encoding/dist/effect-Encoding.cjs.prod.js +6 -6
- package/Equal/dist/effect-Equal.cjs.dev.js +3 -3
- package/Equal/dist/effect-Equal.cjs.prod.js +3 -3
- package/Equal/dist/effect-Equal.esm.js +2 -1
- package/Exit/dist/effect-Exit.cjs.dev.js +10 -10
- package/Exit/dist/effect-Exit.cjs.prod.js +10 -10
- package/Fiber/dist/effect-Fiber.cjs.dev.js +32 -31
- package/Fiber/dist/effect-Fiber.cjs.prod.js +32 -31
- package/FiberId/dist/effect-FiberId.cjs.dev.js +7 -7
- package/FiberId/dist/effect-FiberId.cjs.prod.js +7 -7
- package/FiberRef/dist/effect-FiberRef.cjs.dev.js +32 -31
- package/FiberRef/dist/effect-FiberRef.cjs.prod.js +32 -31
- package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +11 -11
- package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +11 -11
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +12 -12
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +12 -12
- package/FiberStatus/dist/effect-FiberStatus.cjs.dev.js +3 -3
- package/FiberStatus/dist/effect-FiberStatus.cjs.prod.js +3 -3
- package/GlobalValue/dist/effect-GlobalValue.cjs.dev.js +3 -18
- package/GlobalValue/dist/effect-GlobalValue.cjs.prod.js +3 -18
- package/GlobalValue/dist/effect-GlobalValue.esm.js +3 -1
- package/GroupBy/dist/effect-GroupBy.cjs.dev.js +50 -49
- package/GroupBy/dist/effect-GroupBy.cjs.prod.js +50 -49
- package/Hash/dist/effect-Hash.cjs.dev.js +3 -3
- package/Hash/dist/effect-Hash.cjs.prod.js +3 -3
- package/Hash/dist/effect-Hash.esm.js +2 -1
- package/HashMap/dist/effect-HashMap.cjs.dev.js +6 -6
- package/HashMap/dist/effect-HashMap.cjs.prod.js +6 -6
- package/HashSet/dist/effect-HashSet.cjs.dev.js +6 -6
- package/HashSet/dist/effect-HashSet.cjs.prod.js +6 -6
- package/Inspectable/dist/effect-Inspectable.cjs.dev.js +4 -1
- package/Inspectable/dist/effect-Inspectable.cjs.prod.js +4 -1
- package/Inspectable/dist/effect-Inspectable.esm.js +3 -1
- package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +31 -30
- package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +31 -30
- package/LICENSE +21 -0
- package/Layer/dist/effect-Layer.cjs.dev.js +38 -37
- package/Layer/dist/effect-Layer.cjs.prod.js +38 -37
- package/List/dist/effect-List.cjs.dev.js +8 -7
- package/List/dist/effect-List.cjs.prod.js +8 -7
- package/List/dist/effect-List.esm.js +5 -4
- package/LogLevel/dist/effect-LogLevel.cjs.dev.js +10 -10
- package/LogLevel/dist/effect-LogLevel.cjs.prod.js +10 -10
- package/Logger/dist/effect-Logger.cjs.dev.js +35 -34
- package/Logger/dist/effect-Logger.cjs.prod.js +35 -34
- package/Match/dist/effect-Match.cjs.dev.js +4 -4
- package/Match/dist/effect-Match.cjs.prod.js +4 -4
- package/Metric/dist/effect-Metric.cjs.dev.js +29 -28
- package/Metric/dist/effect-Metric.cjs.prod.js +29 -28
- package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +6 -6
- package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +6 -6
- package/MetricHook/dist/effect-MetricHook.cjs.dev.js +8 -8
- package/MetricHook/dist/effect-MetricHook.cjs.prod.js +8 -8
- package/MetricKey/dist/effect-MetricKey.cjs.dev.js +9 -9
- package/MetricKey/dist/effect-MetricKey.cjs.prod.js +9 -9
- package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +6 -6
- package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +6 -6
- package/MetricLabel/dist/effect-MetricLabel.cjs.dev.js +3 -3
- package/MetricLabel/dist/effect-MetricLabel.cjs.prod.js +3 -3
- package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +32 -31
- package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +32 -31
- package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +10 -10
- package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +10 -10
- package/MetricState/dist/effect-MetricState.cjs.dev.js +3 -3
- package/MetricState/dist/effect-MetricState.cjs.prod.js +3 -3
- package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +6 -6
- package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +6 -6
- package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +6 -6
- package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +6 -6
- package/MutableList/dist/effect-MutableList.cjs.dev.js +1 -0
- package/MutableList/dist/effect-MutableList.cjs.prod.js +1 -0
- package/MutableQueue/dist/effect-MutableQueue.cjs.dev.js +5 -5
- package/MutableQueue/dist/effect-MutableQueue.cjs.prod.js +5 -5
- package/MutableRef/dist/effect-MutableRef.cjs.dev.js +2 -2
- package/MutableRef/dist/effect-MutableRef.cjs.prod.js +2 -2
- package/Number/dist/effect-Number.cjs.dev.js +3 -3
- package/Number/dist/effect-Number.cjs.prod.js +3 -3
- package/Option/dist/effect-Option.cjs.dev.js +5 -5
- package/Option/dist/effect-Option.cjs.prod.js +5 -5
- package/Pool/dist/effect-Pool.cjs.dev.js +32 -31
- package/Pool/dist/effect-Pool.cjs.prod.js +32 -31
- package/Predicate/dist/effect-Predicate.cjs.dev.js +15 -3
- package/Predicate/dist/effect-Predicate.cjs.mjs +1 -0
- package/Predicate/dist/effect-Predicate.cjs.prod.js +15 -3
- package/Predicate/dist/effect-Predicate.esm.js +15 -4
- package/PubSub/dist/effect-PubSub.cjs.dev.js +31 -30
- package/PubSub/dist/effect-PubSub.cjs.prod.js +31 -30
- package/Queue/dist/effect-Queue.cjs.dev.js +31 -30
- package/Queue/dist/effect-Queue.cjs.prod.js +31 -30
- package/Random/dist/effect-Random.cjs.dev.js +16 -16
- package/Random/dist/effect-Random.cjs.prod.js +16 -16
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +5 -5
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +5 -5
- package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js +5 -5
- package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js +5 -5
- package/RedBlackTree/dist/effect-RedBlackTree.cjs.dev.js +5 -5
- package/RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js +5 -5
- package/Ref/dist/effect-Ref.cjs.dev.js +11 -11
- package/Ref/dist/effect-Ref.cjs.prod.js +11 -11
- package/Reloadable/dist/effect-Reloadable.cjs.dev.js +36 -35
- package/Reloadable/dist/effect-Reloadable.cjs.prod.js +36 -35
- package/Request/dist/effect-Request.cjs.dev.js +31 -30
- package/Request/dist/effect-Request.cjs.prod.js +31 -30
- package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +38 -37
- package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +38 -37
- package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +52 -39
- package/RequestResolver/dist/effect-RequestResolver.cjs.mjs +2 -1
- package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +52 -39
- package/RequestResolver/dist/effect-RequestResolver.esm.js +14 -3
- package/Resource/dist/effect-Resource.cjs.dev.js +34 -33
- package/Resource/dist/effect-Resource.cjs.prod.js +34 -33
- package/Runtime/dist/effect-Runtime.cjs.dev.js +33 -32
- package/Runtime/dist/effect-Runtime.cjs.prod.js +33 -32
- package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +36 -35
- package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +36 -35
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +8 -8
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +8 -8
- package/STM/dist/effect-STM.cjs.dev.js +52 -51
- package/STM/dist/effect-STM.cjs.prod.js +52 -51
- package/Schedule/dist/effect-Schedule.cjs.dev.js +22 -22
- package/Schedule/dist/effect-Schedule.cjs.prod.js +22 -22
- package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +5 -5
- package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +5 -5
- package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +5 -5
- package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +5 -5
- package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +5 -5
- package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +5 -5
- package/Scheduler/dist/effect-Scheduler.cjs.dev.js +10 -10
- package/Scheduler/dist/effect-Scheduler.cjs.prod.js +10 -10
- package/Scope/dist/effect-Scope.cjs.dev.js +30 -29
- package/Scope/dist/effect-Scope.cjs.prod.js +30 -29
- package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +37 -37
- package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +37 -37
- package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +34 -33
- package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +34 -33
- package/Sink/dist/effect-Sink.cjs.dev.js +47 -46
- package/Sink/dist/effect-Sink.cjs.prod.js +47 -46
- package/SortedMap/dist/effect-SortedMap.cjs.dev.js +5 -5
- package/SortedMap/dist/effect-SortedMap.cjs.prod.js +5 -5
- package/SortedMap/dist/effect-SortedMap.esm.js +2 -2
- package/SortedSet/dist/effect-SortedSet.cjs.dev.js +5 -5
- package/SortedSet/dist/effect-SortedSet.cjs.prod.js +5 -5
- package/SortedSet/dist/effect-SortedSet.esm.js +2 -2
- package/Stream/dist/effect-Stream.cjs.dev.js +69 -49
- package/Stream/dist/effect-Stream.cjs.mjs +2 -0
- package/Stream/dist/effect-Stream.cjs.prod.js +69 -49
- package/Stream/dist/effect-Stream.esm.js +19 -2
- package/Streamable/dist/effect-Streamable.cjs.dev.js +50 -49
- package/Streamable/dist/effect-Streamable.cjs.prod.js +50 -49
- package/String/dist/effect-String.cjs.dev.js +4 -4
- package/String/dist/effect-String.cjs.prod.js +4 -4
- package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +49 -48
- package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +49 -48
- package/Supervisor/dist/effect-Supervisor.cjs.dev.js +36 -35
- package/Supervisor/dist/effect-Supervisor.cjs.prod.js +36 -35
- package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +33 -32
- package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +33 -32
- package/TArray/dist/effect-TArray.cjs.dev.js +54 -53
- package/TArray/dist/effect-TArray.cjs.prod.js +54 -53
- package/TDeferred/dist/effect-TDeferred.cjs.dev.js +53 -52
- package/TDeferred/dist/effect-TDeferred.cjs.prod.js +53 -52
- package/TMap/dist/effect-TMap.cjs.dev.js +55 -54
- package/TMap/dist/effect-TMap.cjs.prod.js +55 -54
- package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +52 -51
- package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +52 -51
- package/TPubSub/dist/effect-TPubSub.cjs.dev.js +54 -53
- package/TPubSub/dist/effect-TPubSub.cjs.prod.js +54 -53
- package/TQueue/dist/effect-TQueue.cjs.dev.js +54 -53
- package/TQueue/dist/effect-TQueue.cjs.prod.js +54 -53
- package/TRandom/dist/effect-TRandom.cjs.dev.js +53 -52
- package/TRandom/dist/effect-TRandom.cjs.prod.js +53 -52
- package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +52 -51
- package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +52 -51
- package/TRef/dist/effect-TRef.cjs.dev.js +52 -51
- package/TRef/dist/effect-TRef.cjs.prod.js +52 -51
- package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +53 -52
- package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +53 -52
- package/TSet/dist/effect-TSet.cjs.dev.js +55 -54
- package/TSet/dist/effect-TSet.cjs.prod.js +55 -54
- package/Take/dist/effect-Take.cjs.dev.js +38 -37
- package/Take/dist/effect-Take.cjs.prod.js +38 -37
- package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +8 -10
- package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +8 -10
- package/TestAnnotation/dist/effect-TestAnnotation.esm.js +2 -3
- package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.dev.js +2 -3
- package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.prod.js +2 -3
- package/TestAnnotationMap/dist/effect-TestAnnotationMap.esm.js +2 -3
- package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +23 -25
- package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +23 -25
- package/TestAnnotations/dist/effect-TestAnnotations.esm.js +2 -3
- package/TestClock/dist/effect-TestClock.cjs.dev.js +35 -34
- package/TestClock/dist/effect-TestClock.cjs.prod.js +35 -34
- package/TestConfig/dist/effect-TestConfig.cjs.dev.js +5 -5
- package/TestConfig/dist/effect-TestConfig.cjs.prod.js +5 -5
- package/TestContext/dist/effect-TestContext.cjs.dev.js +37 -36
- package/TestContext/dist/effect-TestContext.cjs.prod.js +37 -36
- package/TestLive/dist/effect-TestLive.cjs.dev.js +16 -16
- package/TestLive/dist/effect-TestLive.cjs.prod.js +16 -16
- package/TestServices/dist/effect-TestServices.cjs.dev.js +37 -36
- package/TestServices/dist/effect-TestServices.cjs.prod.js +37 -36
- package/TestSized/dist/effect-TestSized.cjs.dev.js +10 -10
- package/TestSized/dist/effect-TestSized.cjs.prod.js +10 -10
- package/Tracer/dist/effect-Tracer.cjs.dev.js +16 -16
- package/Tracer/dist/effect-Tracer.cjs.prod.js +16 -16
- package/dist/{Context-607e9b4c.cjs.dev.js → Context-036c4ad6.cjs.dev.js} +6 -5
- package/dist/{Context-c91d8ca0.cjs.prod.js → Context-fee14876.cjs.prod.js} +6 -5
- package/dist/{Effectable-6a8a05f1.cjs.prod.js → Effectable-c85356be.cjs.prod.js} +3 -1
- package/dist/{Effectable-71c10ab9.cjs.dev.js → Effectable-ed77aaf6.cjs.dev.js} +3 -1
- package/dist/{Either-e7500e90.cjs.dev.js → Either-97ac081f.cjs.dev.js} +4 -3
- package/dist/{Either-a3f96c60.cjs.prod.js → Either-bf376fff.cjs.prod.js} +4 -3
- package/dist/{FiberId-88cc0067.cjs.prod.js → FiberId-796388a1.cjs.prod.js} +3 -4
- package/dist/{FiberId-f329d0e3.cjs.dev.js → FiberId-fe3586bc.cjs.dev.js} +3 -4
- package/dist/GlobalValue-344581cf.cjs.prod.js +25 -0
- package/dist/GlobalValue-871500cb.cjs.dev.js +25 -0
- package/dist/{HashSet-09ade044.cjs.prod.js → HashSet-39a1799a.cjs.prod.js} +4 -4
- package/dist/{HashSet-e9659fd4.cjs.dev.js → HashSet-5a5d7603.cjs.dev.js} +4 -4
- package/dist/{Option-01caa9d4.cjs.dev.js → Option-0d3f5ddc.cjs.dev.js} +3 -2
- package/dist/{Option-dd52e82a.cjs.prod.js → Option-3fe68dcf.cjs.prod.js} +3 -2
- package/dist/{Ref-d3a3826b.cjs.dev.js → Ref-891bdaff.cjs.dev.js} +1 -1
- package/dist/{Ref-50f14c13.cjs.prod.js → Ref-c9491538.cjs.prod.js} +1 -1
- package/dist/{boundaries-ce70e4e4.cjs.dev.js → boundaries-0a4ac5a1.cjs.dev.js} +2 -3
- package/dist/{boundaries-0e5ddf7b.cjs.prod.js → boundaries-73e251d3.cjs.prod.js} +2 -3
- package/dist/{cache-2a5d8381.cjs.dev.js → cache-43514e60.cjs.dev.js} +7 -6
- package/dist/{cache-8f0c08cb.cjs.prod.js → cache-acead124.cjs.prod.js} +7 -6
- package/dist/{childExecutorDecision-b5842db5.cjs.prod.js → childExecutorDecision-3293bb05.cjs.prod.js} +2 -1
- package/dist/{childExecutorDecision-2eed6e25.cjs.dev.js → childExecutorDecision-54722bbb.cjs.dev.js} +2 -1
- package/dist/{circular-4f03acf3.cjs.prod.js → circular-373616ea.cjs.prod.js} +4 -4
- package/dist/{circular-2effda94.cjs.dev.js → circular-58cf4c81.cjs.dev.js} +4 -4
- package/dist/{circular-acb40239.cjs.prod.js → circular-970b753f.cjs.prod.js} +8 -8
- package/dist/{circular-39e86dc8.cjs.dev.js → circular-cf851085.cjs.dev.js} +8 -8
- package/dist/{config-beaa306c.cjs.dev.js → config-314f1860.cjs.dev.js} +5 -4
- package/dist/{config-00e6170c.cjs.prod.js → config-5cd5d919.cjs.prod.js} +5 -4
- package/dist/{configError-834bedc1.cjs.dev.js → configError-acc57114.cjs.dev.js} +2 -1
- package/dist/{configError-72f57cd6.cjs.prod.js → configError-b699bbc8.cjs.prod.js} +2 -1
- package/dist/{configProvider-290d13e7.cjs.prod.js → configProvider-20bd7c45.cjs.prod.js} +4 -4
- package/dist/{configProvider-aef50f41.cjs.dev.js → configProvider-db30779f.cjs.dev.js} +4 -4
- package/dist/{configSecret-80d3e36b.cjs.prod.js → configSecret-bb56a002.cjs.prod.js} +2 -3
- package/dist/{configSecret-abf643d8.cjs.dev.js → configSecret-bd8a1267.cjs.dev.js} +2 -3
- package/dist/{core-279496f0.cjs.prod.js → core-093a4458.cjs.prod.js} +8 -11
- package/dist/{core-35439f06.cjs.prod.js → core-26e932c3.cjs.prod.js} +24 -39
- package/dist/{core-7445bfd4.cjs.dev.js → core-40eb64fd.cjs.dev.js} +8 -11
- package/dist/{core-a0828fef.cjs.dev.js → core-908ae0ff.cjs.dev.js} +24 -39
- package/dist/{core-effect-460f968a.cjs.prod.js → core-effect-90338498.cjs.prod.js} +9 -9
- package/dist/{core-effect-02a7f1d7.cjs.dev.js → core-effect-a83699c2.cjs.dev.js} +9 -9
- package/dist/{dataSource-da4a602c.cjs.dev.js → dataSource-0355fe3b.cjs.dev.js} +31 -5
- package/dist/{dataSource-94fb44f9.cjs.prod.js → dataSource-6269c095.cjs.prod.js} +31 -5
- package/dist/declarations/src/BigDecimal.d.ts.map +1 -1
- package/dist/declarations/src/Chunk.d.ts.map +1 -1
- package/dist/declarations/src/Duration.d.ts.map +1 -1
- package/dist/declarations/src/Effect.d.ts +1 -0
- package/dist/declarations/src/Effect.d.ts.map +1 -1
- package/dist/declarations/src/Equal.d.ts.map +1 -1
- package/dist/declarations/src/GlobalValue.d.ts.map +1 -1
- package/dist/declarations/src/Hash.d.ts.map +1 -1
- package/dist/declarations/src/Inspectable.d.ts.map +1 -1
- package/dist/declarations/src/List.d.ts +2 -2
- package/dist/declarations/src/List.d.ts.map +1 -1
- package/dist/declarations/src/Predicate.d.ts +17 -0
- package/dist/declarations/src/Predicate.d.ts.map +1 -1
- package/dist/declarations/src/RequestResolver.d.ts +18 -2
- package/dist/declarations/src/RequestResolver.d.ts.map +1 -1
- package/dist/declarations/src/SortedMap.d.ts.map +1 -1
- package/dist/declarations/src/SortedSet.d.ts.map +1 -1
- package/dist/declarations/src/Stream.d.ts +15 -0
- package/dist/declarations/src/Stream.d.ts.map +1 -1
- package/dist/declarations/src/TestAnnotation.d.ts.map +1 -1
- package/dist/declarations/src/TestAnnotationMap.d.ts.map +1 -1
- package/dist/declarations/src/TestAnnotations.d.ts.map +1 -1
- package/dist/{defaultServices-61911fd4.cjs.prod.js → defaultServices-3f72f0d6.cjs.prod.js} +6 -5
- package/dist/{defaultServices-f3f93337.cjs.dev.js → defaultServices-d02bba35.cjs.dev.js} +6 -5
- package/dist/{fiber-f67dca7d.cjs.prod.js → fiber-52ffd4d9.cjs.prod.js} +6 -5
- package/dist/{fiber-cac583ce.cjs.dev.js → fiber-98ad468a.cjs.dev.js} +6 -5
- package/dist/{fiberRefs-6bd9745e.cjs.dev.js → fiberRefs-a89aceb0.cjs.dev.js} +1 -1
- package/dist/{fiberRefs-59b59378.cjs.prod.js → fiberRefs-fdf6d432.cjs.prod.js} +1 -1
- package/dist/{fiberRuntime-976a3e6f.cjs.dev.js → fiberRuntime-1d260336.cjs.dev.js} +28 -29
- package/dist/{fiberRuntime-26f406c3.cjs.prod.js → fiberRuntime-79c9da2a.cjs.prod.js} +28 -29
- package/dist/{groupBy-7fc93bc9.cjs.dev.js → groupBy-026dfa76.cjs.dev.js} +6 -5
- package/dist/{groupBy-8977b420.cjs.prod.js → groupBy-7ba748d0.cjs.prod.js} +6 -5
- package/dist/{hook-13f4db1e.cjs.dev.js → hook-4a05a62b.cjs.dev.js} +1 -1
- package/dist/{hook-8a020c3f.cjs.prod.js → hook-8cb43707.cjs.prod.js} +1 -1
- package/dist/{key-2cf383a2.cjs.prod.js → key-78bcadf6.cjs.prod.js} +4 -3
- package/dist/{key-4b5f6a7d.cjs.dev.js → key-ef346a50.cjs.dev.js} +4 -3
- package/dist/{keyType-36962f62.cjs.dev.js → keyType-08477e45.cjs.dev.js} +7 -18
- package/dist/{keyType-2ae6a00e.cjs.prod.js → keyType-d5b19a16.cjs.prod.js} +7 -18
- package/dist/{label-a588e6cd.cjs.prod.js → label-5fc84f90.cjs.prod.js} +2 -3
- package/dist/{label-b0cebeae.cjs.dev.js → label-b8010065.cjs.dev.js} +2 -3
- package/dist/{layer-c197624f.cjs.dev.js → layer-4689c0e4.cjs.dev.js} +11 -12
- package/dist/{layer-abbc91aa.cjs.prod.js → layer-50892276.cjs.prod.js} +11 -12
- package/dist/{mergeDecision-be41e797.cjs.dev.js → mergeDecision-09945b33.cjs.dev.js} +2 -1
- package/dist/{mergeDecision-07c6b5c9.cjs.prod.js → mergeDecision-f0313041.cjs.prod.js} +2 -1
- package/dist/{mergeState-8153ce39.cjs.dev.js → mergeState-1e12f9c8.cjs.dev.js} +2 -3
- package/dist/{mergeState-75990fa2.cjs.prod.js → mergeState-be337f1d.cjs.prod.js} +2 -3
- package/dist/{mergeStrategy-81ea5b80.cjs.dev.js → mergeStrategy-773913bc.cjs.dev.js} +2 -1
- package/dist/{mergeStrategy-3dd6e55f.cjs.prod.js → mergeStrategy-b3ff69de.cjs.prod.js} +2 -1
- package/dist/{patch-b7689042.cjs.prod.js → patch-1dd9bcaf.cjs.prod.js} +1 -1
- package/dist/{patch-2d425849.cjs.dev.js → patch-75c9c3b7.cjs.dev.js} +1 -1
- package/dist/{pathPatch-18fa425e.cjs.dev.js → pathPatch-552d6f51.cjs.dev.js} +1 -1
- package/dist/{pathPatch-b6020485.cjs.prod.js → pathPatch-7a1c5858.cjs.prod.js} +1 -1
- package/dist/{pool-810c2214.cjs.dev.js → pool-47c496db.cjs.dev.js} +7 -6
- package/dist/{pool-868dfa39.cjs.prod.js → pool-efd82406.cjs.prod.js} +7 -6
- package/dist/{query-927b504e.cjs.prod.js → query-0d958b01.cjs.prod.js} +4 -4
- package/dist/{query-c6684e39.cjs.dev.js → query-c332a171.cjs.dev.js} +4 -4
- package/dist/{queue-a0fc274d.cjs.dev.js → queue-7960c85e.cjs.dev.js} +5 -4
- package/dist/{queue-062806c7.cjs.prod.js → queue-d90b5d13.cjs.prod.js} +5 -4
- package/dist/{registry-9268ec7c.cjs.prod.js → registry-d7841ef0.cjs.prod.js} +2 -2
- package/dist/{registry-e5ad2d74.cjs.dev.js → registry-e3bbc631.cjs.dev.js} +2 -2
- package/dist/{runtime-340bd70b.cjs.dev.js → runtime-aed87fb4.cjs.dev.js} +8 -8
- package/dist/{runtime-ce0ad0ed.cjs.prod.js → runtime-cfb89e00.cjs.prod.js} +8 -8
- package/dist/{schedule-74c6207a.cjs.dev.js → schedule-19d92d87.cjs.dev.js} +3 -3
- package/dist/{schedule-04b40c50.cjs.prod.js → schedule-f4dc6913.cjs.prod.js} +3 -3
- package/dist/{scopedRef-4f0dd122.cjs.dev.js → scopedRef-7ca29150.cjs.dev.js} +6 -6
- package/dist/{scopedRef-d429ec83.cjs.prod.js → scopedRef-bc19c091.cjs.prod.js} +6 -6
- package/dist/{singleProducerAsyncInput-72c05452.cjs.dev.js → singleProducerAsyncInput-bc0cbb44.cjs.dev.js} +1 -1
- package/dist/{singleProducerAsyncInput-06a9076a.cjs.prod.js → singleProducerAsyncInput-f2c61f5a.cjs.prod.js} +1 -1
- package/dist/{sink-301d2bb4.cjs.dev.js → sink-4b05b297.cjs.dev.js} +13 -12
- package/dist/{sink-46df55d3.cjs.prod.js → sink-dc8bd92a.cjs.prod.js} +13 -12
- package/dist/{state-40d5dc71.cjs.prod.js → state-96db6911.cjs.prod.js} +7 -18
- package/dist/{state-620f7a22.cjs.dev.js → state-c39eeee2.cjs.dev.js} +7 -18
- package/dist/{stm-c0489b43.cjs.prod.js → stm-0c8ec1e9.cjs.prod.js} +3 -3
- package/dist/{stm-0b50e3c1.cjs.dev.js → stm-5fe40084.cjs.dev.js} +3 -3
- package/dist/{stream-44cdd7cb.cjs.dev.js → stream-127fa2f5.cjs.dev.js} +26 -7
- package/dist/{stream-0c3160ef.cjs.prod.js → stream-230b00be.cjs.prod.js} +26 -7
- package/dist/{synchronizedRef-2f71b820.cjs.prod.js → synchronizedRef-4e480ff3.cjs.prod.js} +1 -1
- package/dist/{synchronizedRef-78797507.cjs.dev.js → synchronizedRef-bc0be41f.cjs.dev.js} +1 -1
- package/dist/{tArray-006f45b0.cjs.prod.js → tArray-9e0a3d9f.cjs.prod.js} +3 -3
- package/dist/{tArray-556355cd.cjs.dev.js → tArray-bceb72f4.cjs.dev.js} +3 -3
- package/dist/{tMap-52d00ffb.cjs.dev.js → tMap-020a5ea4.cjs.dev.js} +4 -4
- package/dist/{tMap-9680b82b.cjs.prod.js → tMap-111ba646.cjs.prod.js} +4 -4
- package/dist/{tQueue-ca56a2a8.cjs.dev.js → tQueue-721bc394.cjs.dev.js} +6 -9
- package/dist/{tQueue-51cf109e.cjs.prod.js → tQueue-780b6596.cjs.prod.js} +6 -9
- package/dist/{tRef-b98e2e2a.cjs.dev.js → tRef-35b07161.cjs.dev.js} +1 -1
- package/dist/{tRef-4a2a9689.cjs.prod.js → tRef-93c769f2.cjs.prod.js} +1 -1
- package/dist/{upstreamPullRequest-c89f818d.cjs.prod.js → upstreamPullRequest-4eb9ab38.cjs.prod.js} +2 -1
- package/dist/{upstreamPullRequest-7a694281.cjs.dev.js → upstreamPullRequest-fc0d09a3.cjs.dev.js} +2 -1
- package/dist/{upstreamPullStrategy-f9f1ab57.cjs.dev.js → upstreamPullStrategy-69f33916.cjs.dev.js} +2 -1
- package/dist/{upstreamPullStrategy-63cc8967.cjs.prod.js → upstreamPullStrategy-bf9f0ad1.cjs.prod.js} +2 -1
- package/internal/Context.esm.js +3 -2
- package/internal/Effectable.esm.js +3 -1
- package/internal/Either.esm.js +2 -1
- package/internal/Encoding/Common.esm.js +3 -1
- package/internal/HashMap/node.esm.js +2 -1
- package/internal/HashMap.esm.js +2 -2
- package/internal/HashSet.esm.js +2 -2
- package/internal/Option.esm.js +2 -1
- package/internal/RedBlackTree.esm.js +2 -2
- package/internal/blockedRequests.esm.js +2 -3
- package/internal/cache.esm.js +2 -1
- package/internal/cause.esm.js +9 -16
- package/internal/channel/childExecutorDecision.esm.js +2 -1
- package/internal/channel/mergeDecision.esm.js +2 -1
- package/internal/channel/mergeState.esm.js +2 -3
- package/internal/channel/mergeStrategy.esm.js +2 -1
- package/internal/channel/upstreamPullRequest.esm.js +2 -1
- package/internal/channel/upstreamPullStrategy.esm.js +2 -1
- package/internal/channel.esm.js +2 -1
- package/internal/clock.esm.js +3 -2
- package/internal/config.esm.js +2 -1
- package/internal/configError.esm.js +2 -1
- package/internal/configSecret.esm.js +2 -3
- package/internal/core-effect.esm.js +3 -3
- package/internal/core-stream.esm.js +2 -1
- package/internal/core.esm.js +9 -13
- package/internal/dataSource.esm.js +30 -5
- package/internal/effect/circular.esm.js +2 -2
- package/internal/fiber.esm.js +2 -1
- package/internal/fiberId.esm.js +2 -3
- package/internal/fiberRuntime.esm.js +12 -10
- package/internal/fiberStatus.esm.js +2 -1
- package/internal/groupBy.esm.js +2 -1
- package/internal/layer.esm.js +3 -4
- package/internal/metric/boundaries.esm.js +2 -3
- package/internal/metric/key.esm.js +2 -1
- package/internal/metric/keyType.esm.js +7 -18
- package/internal/metric/label.esm.js +2 -3
- package/internal/metric/state.esm.js +7 -18
- package/internal/pool.esm.js +2 -1
- package/internal/queue.esm.js +3 -2
- package/internal/request.esm.js +2 -1
- package/internal/runtime.esm.js +4 -4
- package/internal/sink.esm.js +2 -1
- package/internal/stm/core.esm.js +4 -2
- package/internal/stm/stm/stmState.esm.js +2 -3
- package/internal/stm/stm/tExit.esm.js +2 -3
- package/internal/stm/tQueue.esm.js +3 -6
- package/internal/stream.esm.js +21 -4
- package/internal/supervisor.esm.js +2 -3
- package/internal/version.esm.js +3 -0
- package/package.json +11 -9
- package/src/BigDecimal.ts +2 -1
- package/src/Chunk.ts +5 -3
- package/src/Duration.ts +2 -2
- package/src/Effect.ts +1 -0
- package/src/Equal.ts +2 -1
- package/src/GlobalValue.ts +3 -1
- package/src/Hash.ts +2 -1
- package/src/Inspectable.ts +3 -1
- package/src/List.ts +8 -7
- package/src/Predicate.ts +21 -4
- package/src/RequestResolver.ts +25 -3
- package/src/SortedMap.ts +2 -2
- package/src/SortedSet.ts +2 -2
- package/src/Stream.ts +17 -0
- package/src/TestAnnotation.ts +2 -3
- package/src/TestAnnotationMap.ts +2 -3
- package/src/TestAnnotations.ts +2 -3
- package/src/internal/Context.ts +3 -2
- package/src/internal/Effectable.ts +3 -1
- package/src/internal/Either.ts +2 -2
- package/src/internal/Encoding/Common.ts +2 -2
- package/src/internal/HashMap/node.ts +2 -1
- package/src/internal/HashMap.ts +2 -2
- package/src/internal/HashSet.ts +2 -2
- package/src/internal/Option.ts +2 -2
- package/src/internal/RedBlackTree.ts +2 -2
- package/src/internal/blockedRequests.ts +2 -3
- package/src/internal/cache.ts +2 -1
- package/src/internal/cause.ts +15 -23
- package/src/internal/channel/channelState.ts +2 -2
- package/src/internal/channel/childExecutorDecision.ts +2 -1
- package/src/internal/channel/mergeDecision.ts +2 -2
- package/src/internal/channel/mergeState.ts +3 -3
- package/src/internal/channel/mergeStrategy.ts +2 -2
- package/src/internal/channel/upstreamPullRequest.ts +2 -1
- package/src/internal/channel/upstreamPullStrategy.ts +2 -1
- package/src/internal/channel.ts +2 -2
- package/src/internal/clock.ts +5 -5
- package/src/internal/config.ts +2 -3
- package/src/internal/configError.ts +2 -2
- package/src/internal/configSecret.ts +2 -3
- package/src/internal/core-effect.ts +3 -3
- package/src/internal/core-stream.ts +2 -1
- package/src/internal/core.ts +8 -16
- package/src/internal/dataSource.ts +47 -3
- package/src/internal/effect/circular.ts +1 -1
- package/src/internal/fiber.ts +2 -2
- package/src/internal/fiberId.ts +2 -3
- package/src/internal/fiberRuntime.ts +15 -8
- package/src/internal/fiberStatus.ts +2 -2
- package/src/internal/groupBy.ts +2 -2
- package/src/internal/layer.ts +2 -3
- package/src/internal/metric/boundaries.ts +3 -3
- package/src/internal/metric/key.ts +2 -1
- package/src/internal/metric/keyType.ts +13 -18
- package/src/internal/metric/label.ts +2 -3
- package/src/internal/metric/state.ts +12 -18
- package/src/internal/pool.ts +2 -2
- package/src/internal/queue.ts +3 -4
- package/src/internal/request.ts +2 -2
- package/src/internal/runtime.ts +2 -3
- package/src/internal/sink.ts +2 -2
- package/src/internal/stm/core.ts +4 -3
- package/src/internal/stm/stm/stmState.ts +2 -3
- package/src/internal/stm/stm/tExit.ts +2 -3
- package/src/internal/stm/tQueue.ts +3 -7
- package/src/internal/stream.ts +26 -6
- package/src/internal/supervisor.ts +3 -3
- package/src/internal/version.ts +1 -0
- /package/dist/{RuntimeFlagsPatch-233ac7d7.cjs.prod.js → RuntimeFlagsPatch-2bc2f1c5.cjs.prod.js} +0 -0
- /package/dist/{RuntimeFlagsPatch-063c5864.cjs.dev.js → RuntimeFlagsPatch-5a4ff83e.cjs.dev.js} +0 -0
- /package/dist/{take-07165139.cjs.prod.js → take-23720f78.cjs.prod.js} +0 -0
- /package/dist/{take-689a29d5.cjs.dev.js → take-472621b6.cjs.dev.js} +0 -0
|
@@ -5,6 +5,7 @@ import { match } from '../Either/dist/effect-Either.esm.js';
|
|
|
5
5
|
import { dual, identity, constVoid } from '../Function/dist/effect-Function.esm.js';
|
|
6
6
|
import { none } from '../Option/dist/effect-Option.esm.js';
|
|
7
7
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
8
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
8
9
|
import { Continue } from './channel/childExecutorDecision.esm.js';
|
|
9
10
|
import { ContinuationKImpl } from './channel/continuation.esm.js';
|
|
10
11
|
import { PullAfterNext } from './channel/upstreamPullStrategy.esm.js';
|
|
@@ -68,7 +69,7 @@ const proto = {
|
|
|
68
69
|
/** @internal */
|
|
69
70
|
|
|
70
71
|
/** @internal */
|
|
71
|
-
const isChannel = u =>
|
|
72
|
+
const isChannel = u => hasProperty(u, ChannelTypeId) || isEffect(u);
|
|
72
73
|
|
|
73
74
|
/** @internal */
|
|
74
75
|
const acquireReleaseOut = /*#__PURE__*/dual(2, (self, release) => {
|
package/internal/core.esm.js
CHANGED
|
@@ -21,12 +21,15 @@ import { empty as empty$3 } from '../List/dist/effect-List.esm.js';
|
|
|
21
21
|
import { make as make$1, get, set } from '../MutableRef/dist/effect-MutableRef.esm.js';
|
|
22
22
|
import { getOrElse, getOrThrow, some, none as none$1, match, isSome } from '../Option/dist/effect-Option.esm.js';
|
|
23
23
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
24
|
+
import { hasProperty, isObject } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
24
25
|
import { reduce as reduce$1, fromIterable as fromIterable$1 } from '../ReadonlyArray/dist/effect-ReadonlyArray.esm.js';
|
|
25
26
|
import { enable, disable } from '../RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js';
|
|
27
|
+
import { effectVariance } from './Effectable.esm.js';
|
|
26
28
|
|
|
27
29
|
// -----------------------------------------------------------------------------
|
|
28
30
|
// Effect
|
|
29
31
|
// -----------------------------------------------------------------------------
|
|
32
|
+
|
|
30
33
|
/** @internal */
|
|
31
34
|
const EffectErrorSymbolKey = "effect/EffectError";
|
|
32
35
|
|
|
@@ -38,7 +41,7 @@ const EffectErrorTypeId = /*#__PURE__*/Symbol.for(EffectErrorSymbolKey);
|
|
|
38
41
|
/** @internal */
|
|
39
42
|
|
|
40
43
|
/** @internal */
|
|
41
|
-
const isEffectError = u =>
|
|
44
|
+
const isEffectError = u => hasProperty(u, EffectErrorTypeId);
|
|
42
45
|
|
|
43
46
|
/** @internal */
|
|
44
47
|
const makeEffectError = cause => ({
|
|
@@ -196,13 +199,6 @@ class EffectPrimitiveSuccess {
|
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
201
|
|
|
199
|
-
/** @internal */
|
|
200
|
-
const effectVariance = {
|
|
201
|
-
_R: _ => _,
|
|
202
|
-
_E: _ => _,
|
|
203
|
-
_A: _ => _
|
|
204
|
-
};
|
|
205
|
-
|
|
206
202
|
/** @internal */
|
|
207
203
|
|
|
208
204
|
/** @internal */
|
|
@@ -236,7 +232,7 @@ const effectVariance = {
|
|
|
236
232
|
/** @internal */
|
|
237
233
|
|
|
238
234
|
/** @internal */
|
|
239
|
-
const isEffect = u =>
|
|
235
|
+
const isEffect = u => hasProperty(u, EffectTypeId);
|
|
240
236
|
|
|
241
237
|
/* @internal */
|
|
242
238
|
const withFiberRuntime = withRuntime => {
|
|
@@ -368,7 +364,7 @@ const originalSymbol = /*#__PURE__*/Symbol.for("effect/OriginalAnnotation");
|
|
|
368
364
|
|
|
369
365
|
/* @internal */
|
|
370
366
|
const originalInstance = obj => {
|
|
371
|
-
if (
|
|
367
|
+
if (hasProperty(obj, originalSymbol)) {
|
|
372
368
|
// @ts-expect-error
|
|
373
369
|
return obj[originalSymbol];
|
|
374
370
|
}
|
|
@@ -398,7 +394,7 @@ const capture = (obj, span) => {
|
|
|
398
394
|
};
|
|
399
395
|
|
|
400
396
|
/* @internal */
|
|
401
|
-
const die = defect =>
|
|
397
|
+
const die = defect => isObject(defect) && !(spanSymbol in defect) ? withFiberRuntime(fiber => failCause(die$1(capture(defect, currentSpanFromFiber(fiber))))) : failCause(die$1(defect));
|
|
402
398
|
|
|
403
399
|
/* @internal */
|
|
404
400
|
const dieMessage = message => failCauseSync(() => die$1(RuntimeException(message)));
|
|
@@ -419,7 +415,7 @@ const exit = self => matchCause(self, {
|
|
|
419
415
|
});
|
|
420
416
|
|
|
421
417
|
/* @internal */
|
|
422
|
-
const fail = error =>
|
|
418
|
+
const fail = error => isObject(error) && !(spanSymbol in error) ? withFiberRuntime(fiber => failCause(fail$1(capture(error, currentSpanFromFiber(fiber))))) : failCause(fail$1(error));
|
|
423
419
|
|
|
424
420
|
/* @internal */
|
|
425
421
|
const failSync = evaluate => flatMap(sync(evaluate), fail);
|
|
@@ -1016,7 +1012,7 @@ class RequestResolverImpl {
|
|
|
1016
1012
|
}
|
|
1017
1013
|
|
|
1018
1014
|
/** @internal */
|
|
1019
|
-
const isRequestResolver = u =>
|
|
1015
|
+
const isRequestResolver = u => hasProperty(u, RequestResolverTypeId);
|
|
1020
1016
|
|
|
1021
1017
|
// end
|
|
1022
1018
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IllegalArgumentException } from '../Cause/dist/effect-Cause.esm.js';
|
|
2
2
|
import { make as make$1, map, empty, appendAll, chunksOf, unsafeFromArray } from '../Chunk/dist/effect-Chunk.esm.js';
|
|
3
|
-
import { forEach, flatMap, exit, never as never$1, race as race$1 } from '../Effect/dist/effect-Effect.esm.js';
|
|
3
|
+
import { forEach, flatMap, exit, matchCauseEffect, never as never$1, race as race$1 } from '../Effect/dist/effect-Effect.esm.js';
|
|
4
4
|
import { dual, pipe } from '../Function/dist/effect-Function.esm.js';
|
|
5
|
-
import { RequestResolverImpl, forEachSequentialDiscard, unit, acquireUseRelease, die, mapInputContext as mapInputContext$1, forEachSequential, exitSucceed } from './core.esm.js';
|
|
5
|
+
import { RequestResolverImpl, forEachSequentialDiscard, unit, acquireUseRelease, die, mapInputContext as mapInputContext$1, forEachSequential, exitSucceed, exitFail } from './core.esm.js';
|
|
6
6
|
import { invokeWithInterrupt, zipWithOptions } from './fiberRuntime.esm.js';
|
|
7
7
|
import { complete } from './request.esm.js';
|
|
8
8
|
import { reduce, partitionMap } from '../ReadonlyArray/dist/effect-ReadonlyArray.esm.js';
|
|
@@ -44,10 +44,35 @@ const fromFunctionBatched = f => makeBatched(as => forEach(f(as), (res, i) => co
|
|
|
44
44
|
})).identified("FromFunctionBatched", f);
|
|
45
45
|
|
|
46
46
|
/** @internal */
|
|
47
|
-
const
|
|
47
|
+
const fromEffect = f => makeBatched(requests => forEach(requests, a => flatMap(exit(f(a)), e => complete(a, e)), {
|
|
48
48
|
concurrency: "unbounded",
|
|
49
49
|
discard: true
|
|
50
|
-
})).identified("
|
|
50
|
+
})).identified("FromEffect", f);
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
const fromEffectTagged = () => fns => makeBatched(requests => {
|
|
54
|
+
const grouped = {};
|
|
55
|
+
const tags = [];
|
|
56
|
+
for (let i = 0, len = requests.length; i < len; i++) {
|
|
57
|
+
if (tags.includes(requests[i]._tag)) {
|
|
58
|
+
grouped[requests[i]._tag].push(requests[i]);
|
|
59
|
+
} else {
|
|
60
|
+
grouped[requests[i]._tag] = [requests[i]];
|
|
61
|
+
tags.push(requests[i]._tag);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return forEach(tags, tag => matchCauseEffect(fns[tag](grouped[tag]), {
|
|
65
|
+
onFailure: cause => forEach(grouped[tag], req => complete(req, exitFail(cause)), {
|
|
66
|
+
discard: true
|
|
67
|
+
}),
|
|
68
|
+
onSuccess: res => forEach(grouped[tag], (req, i) => complete(req, exitSucceed(res[i])), {
|
|
69
|
+
discard: true
|
|
70
|
+
})
|
|
71
|
+
}), {
|
|
72
|
+
concurrency: "unbounded",
|
|
73
|
+
discard: true
|
|
74
|
+
});
|
|
75
|
+
}).identified("FromEffectTagged", fns);
|
|
51
76
|
|
|
52
77
|
/** @internal */
|
|
53
78
|
const never = /*#__PURE__*/make(() => never$1).identified("Never");
|
|
@@ -58,4 +83,4 @@ const provideContext = /*#__PURE__*/dual(2, (self, context) => mapInputContext(s
|
|
|
58
83
|
/** @internal */
|
|
59
84
|
const race = /*#__PURE__*/dual(2, (self, that) => new RequestResolverImpl(requests => race$1(self.runAll(requests), that.runAll(requests))).identified("Race", self, that));
|
|
60
85
|
|
|
61
|
-
export { around, batchN, eitherWith, fromFunction, fromFunctionBatched,
|
|
86
|
+
export { around, batchN, eitherWith, fromEffect, fromEffectTagged, fromFunction, fromFunctionBatched, make, makeBatched, makeWithEntry, mapInputContext, never, provideContext, race };
|
|
@@ -18,7 +18,7 @@ import { track } from '../supervisor.esm.js';
|
|
|
18
18
|
import { get, set as set$1, empty } from '../../MutableHashMap/dist/effect-MutableHashMap.esm.js';
|
|
19
19
|
import { isNone, some, none, flatMap as flatMap$1, map as map$1 } from '../../Option/dist/effect-Option.esm.js';
|
|
20
20
|
import { pipeArguments } from '../../Pipeable/dist/effect-Pipeable.esm.js';
|
|
21
|
-
import { isIterable } from '../../Predicate/dist/effect-Predicate.esm.js';
|
|
21
|
+
import { isIterable, hasProperty } from '../../Predicate/dist/effect-Predicate.esm.js';
|
|
22
22
|
import { currentScheduler } from '../../Scheduler/dist/effect-Scheduler.esm.js';
|
|
23
23
|
|
|
24
24
|
/** @internal */
|
|
@@ -137,7 +137,7 @@ class Key {
|
|
|
137
137
|
this.eq = eq;
|
|
138
138
|
}
|
|
139
139
|
[symbol](that) {
|
|
140
|
-
if (
|
|
140
|
+
if (hasProperty(that, memoKeySymbol)) {
|
|
141
141
|
if (this.eq) {
|
|
142
142
|
return this.eq(this.a, that.a);
|
|
143
143
|
} else {
|
package/internal/fiber.esm.js
CHANGED
|
@@ -12,6 +12,7 @@ import { Order as Order$1 } from '../Number/dist/effect-Number.esm.js';
|
|
|
12
12
|
import { some, none as none$1, fromNullable } from '../Option/dist/effect-Option.esm.js';
|
|
13
13
|
import { mapInput, tuple } from '../Order/dist/effect-Order.esm.js';
|
|
14
14
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
15
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
15
16
|
|
|
16
17
|
/** @internal */
|
|
17
18
|
const FiberSymbolKey = "effect/Fiber";
|
|
@@ -43,7 +44,7 @@ const RuntimeFiberTypeId = /*#__PURE__*/Symbol.for(RuntimeFiberSymbolKey);
|
|
|
43
44
|
const Order = /*#__PURE__*/pipe( /*#__PURE__*/tuple(Order$1, Order$1), /*#__PURE__*/mapInput(fiber => [fiber.id().startTimeMillis, fiber.id().id]));
|
|
44
45
|
|
|
45
46
|
/** @internal */
|
|
46
|
-
const isFiber = u =>
|
|
47
|
+
const isFiber = u => hasProperty(u, FiberTypeId);
|
|
47
48
|
|
|
48
49
|
/** @internal */
|
|
49
50
|
const isRuntimeFiber = self => RuntimeFiberTypeId in self;
|
package/internal/fiberId.esm.js
CHANGED
|
@@ -6,6 +6,7 @@ import { every, reduce, union, make as make$1, empty, size } from '../HashSet/di
|
|
|
6
6
|
import { toString, NodeInspectSymbol, toJSON } from '../Inspectable/dist/effect-Inspectable.esm.js';
|
|
7
7
|
import { get, set, make as make$2 } from '../MutableRef/dist/effect-MutableRef.esm.js';
|
|
8
8
|
import { none as none$1, some } from '../Option/dist/effect-Option.esm.js';
|
|
9
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
9
10
|
|
|
10
11
|
/** @internal */
|
|
11
12
|
const FiberIdSymbolKey = "effect/FiberId";
|
|
@@ -126,9 +127,7 @@ const composite = (left, right) => {
|
|
|
126
127
|
};
|
|
127
128
|
|
|
128
129
|
/** @internal */
|
|
129
|
-
const isFiberId = self =>
|
|
130
|
-
return typeof self === "object" && self != null && FiberIdTypeId in self;
|
|
131
|
-
};
|
|
130
|
+
const isFiberId = self => hasProperty(self, FiberIdTypeId);
|
|
132
131
|
|
|
133
132
|
/** @internal */
|
|
134
133
|
const isNone = self => {
|
|
@@ -2,6 +2,7 @@ import { not } from '../Boolean/dist/effect-Boolean.esm.js';
|
|
|
2
2
|
import { fromIterable as fromIterable$1, isNonEmpty, headNonEmpty, tailNonEmpty, unsafeFromArray, prepend } from '../Chunk/dist/effect-Chunk.esm.js';
|
|
3
3
|
import { getOption, get as get$1, add, Tag, merge, make as make$2, unsafeGet } from '../Context/dist/effect-Context.esm.js';
|
|
4
4
|
import { await as _await$1 } from '../Deferred/dist/effect-Deferred.esm.js';
|
|
5
|
+
import { EffectTypeId } from '../Effectable/dist/effect-Effectable.esm.js';
|
|
5
6
|
import { parallel, sequential, parallelN } from '../ExecutionStrategy/dist/effect-ExecutionStrategy.esm.js';
|
|
6
7
|
import { threadName, combine, none as none$2, unsafeMake as unsafeMake$1 } from '../FiberId/dist/effect-FiberId.esm.js';
|
|
7
8
|
import { getOrDefault } from '../FiberRefs/dist/effect-FiberRefs.esm.js';
|
|
@@ -17,7 +18,7 @@ import { clockTag } from './clock.esm.js';
|
|
|
17
18
|
import { currentRequestMap } from './completedRequestMap.esm.js';
|
|
18
19
|
import { matchSimple, match as match$1 } from './concurrency.esm.js';
|
|
19
20
|
import { configProviderTag } from './configProvider.esm.js';
|
|
20
|
-
import { fiberRefUnsafeMake, currentContext, fiberRefUnsafeMakeHashSet, uninterruptible, tap, isEffect, withFiberRuntime, fiberRefLocally, currentForkScopeOverride, map as map$2, exit, exitIsSuccess, onError, failCause, partitionMap, either, flatMap as flatMap$1, unit, succeed, fail, dieSync, uninterruptibleMask, interruptible, forEachSequential, zipRight, asUnit, onInterrupt, zipLeft, interruptFiber, deferredMake, exitMatchEffect, flatten, deferredFailCause, deferredSucceed, contextWithEffect, scopeFork, currentMetricLabels, acquireUseRelease, scopeClose, exitZipWith, flip, fiberIdWith, updateRuntimeFlags, runtimeFlags, ScopeTypeId, releaseMapMake, CloseableScopeTypeId, releaseMapAdd, scopeAddFinalizerExit, as, mapInputContext, onExit, fiberRefUnsafeMakePatch, fiberRefGet, fiberRefSet, fiberRefGetWith, sync, fiberRefUpdate, fiberRefDelete, fiberRefUnsafeMakeContext, fiberRefUnsafeMakeRuntimeFlags, forEachSequentialDiscard, exitSucceed, matchCauseEffect, suspend, currentInterruptedCause, deferredUnsafeMake, deferredAwait, async, currentSchedulingPriority, whileLoop, currentUnhandledErrorLogLevel, currentLogLevel, currentLogSpan, currentLogAnnotations, exitFailCause, exitUnit, blocked, catchAllCause, runRequestBlock, RevertFlags, yieldNow as yieldNow$1, isEffectError, withRuntimeFlags, matchEffect, if_, zipWith, currentRequestBatching, transplant, step, deferredUnsafeDone, deferredFail, exitCollectAll, exitIsFailure, exitInterrupt, exitAsUnit, interruptAsFiber, flatMapStep } from './core.esm.js';
|
|
21
|
+
import { fiberRefUnsafeMake, currentContext, fiberRefUnsafeMakeHashSet, uninterruptible, tap, isEffect, withFiberRuntime, fiberRefLocally, currentForkScopeOverride, map as map$2, exit, exitIsSuccess, onError, failCause, partitionMap, either, flatMap as flatMap$1, unit, succeed, fail, dieSync, uninterruptibleMask, interruptible, forEachSequential, zipRight, asUnit, onInterrupt, zipLeft, interruptFiber, deferredMake, exitMatchEffect, flatten, deferredFailCause, deferredSucceed, contextWithEffect, scopeFork, currentMetricLabels, acquireUseRelease, scopeClose, exitZipWith, flip, fiberIdWith, updateRuntimeFlags, runtimeFlags, ScopeTypeId, releaseMapMake, CloseableScopeTypeId, releaseMapAdd, scopeAddFinalizerExit, as, mapInputContext, onExit, fiberRefUnsafeMakePatch, fiberRefGet, fiberRefSet, fiberRefGetWith, sync, fiberRefUpdate, fiberRefDelete, fiberRefUnsafeMakeContext, fiberRefUnsafeMakeRuntimeFlags, forEachSequentialDiscard, exitSucceed, matchCauseEffect, suspend, currentInterruptedCause, deferredUnsafeMake, deferredAwait, async, currentSchedulingPriority, whileLoop, currentUnhandledErrorLogLevel, currentLogLevel, currentLogSpan, currentLogAnnotations, exitFailCause, exitUnit, blocked, catchAllCause, runRequestBlock, RevertFlags, yieldNow as yieldNow$1, dieMessage, isEffectError, withRuntimeFlags, matchEffect, if_, zipWith, currentRequestBatching, transplant, step, deferredUnsafeDone, deferredFail, exitCollectAll, exitIsFailure, exitInterrupt, exitAsUnit, interruptAsFiber, flatMapStep } from './core.esm.js';
|
|
21
22
|
import { makeSpan, currentTimeNanosTracing, provideService, mapErrorCause } from './core-effect.esm.js';
|
|
22
23
|
import { currentServices } from './defaultServices.esm.js';
|
|
23
24
|
import { consoleTag } from './defaultServices/console.esm.js';
|
|
@@ -45,6 +46,7 @@ import { fromIterable, filterMap, reduce, flatten as flatten$1, reduceRight, com
|
|
|
45
46
|
import { make as make$1, modify, update, get as get$2 } from '../Ref/dist/effect-Ref.esm.js';
|
|
46
47
|
import { empty, exclude } from '../RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js';
|
|
47
48
|
import { currentScheduler } from '../Scheduler/dist/effect-Scheduler.esm.js';
|
|
49
|
+
import { moduleVersion } from './version.esm.js';
|
|
48
50
|
|
|
49
51
|
/** @internal */
|
|
50
52
|
const fiberStarted = /*#__PURE__*/counter("effect_fiber_started");
|
|
@@ -1103,20 +1105,20 @@ class FiberRuntime {
|
|
|
1103
1105
|
}
|
|
1104
1106
|
}
|
|
1105
1107
|
try {
|
|
1106
|
-
if (!("_op" in cur)) {
|
|
1108
|
+
if (!("_op" in cur) || !(cur._op in this)) {
|
|
1107
1109
|
console.log(cur);
|
|
1108
|
-
}
|
|
1109
|
-
if (!(cur._op in this)) {
|
|
1110
|
-
if (typeof cur === "function") {
|
|
1111
|
-
console.log(cur());
|
|
1112
|
-
}
|
|
1113
1110
|
// @ts-expect-error
|
|
1114
1111
|
absurd(cur);
|
|
1115
1112
|
}
|
|
1113
|
+
|
|
1116
1114
|
// @ts-expect-error
|
|
1117
|
-
cur = this._tracer.context(
|
|
1118
|
-
|
|
1119
|
-
|
|
1115
|
+
cur = this._tracer.context(() => {
|
|
1116
|
+
if (moduleVersion !== cur[EffectTypeId]._V) {
|
|
1117
|
+
return dieMessage(`Cannot execute an Effect versioned ${cur[EffectTypeId]._V} with a Runtime of version ${moduleVersion}`);
|
|
1118
|
+
}
|
|
1119
|
+
// @ts-expect-error
|
|
1120
|
+
return this[cur._op](cur);
|
|
1121
|
+
}, this);
|
|
1120
1122
|
} catch (e) {
|
|
1121
1123
|
if (isEffect(e)) {
|
|
1122
1124
|
if (e._op === OP_YIELD || e._op === OP_ASYNC) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { symbol as symbol$1, equals } from '../Equal/dist/effect-Equal.esm.js';
|
|
2
2
|
import { pipe } from '../Function/dist/effect-Function.esm.js';
|
|
3
3
|
import { symbol, combine, hash } from '../Hash/dist/effect-Hash.esm.js';
|
|
4
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
4
5
|
|
|
5
6
|
const FiberStatusSymbolKey = "effect/FiberStatus";
|
|
6
7
|
|
|
@@ -75,7 +76,7 @@ const running = runtimeFlags => new Running(runtimeFlags);
|
|
|
75
76
|
const suspended = (runtimeFlags, blockingOn) => new Suspended(runtimeFlags, blockingOn);
|
|
76
77
|
|
|
77
78
|
/** @internal */
|
|
78
|
-
const isFiberStatus = u =>
|
|
79
|
+
const isFiberStatus = u => hasProperty(u, FiberStatusTypeId);
|
|
79
80
|
|
|
80
81
|
/** @internal */
|
|
81
82
|
const isDone = self => self._tag === OP_DONE;
|
package/internal/groupBy.esm.js
CHANGED
|
@@ -6,6 +6,7 @@ import { succeed as succeed$2, map as map$4 } from '../Exit/dist/effect-Exit.esm
|
|
|
6
6
|
import { dual, pipe } from '../Function/dist/effect-Function.esm.js';
|
|
7
7
|
import { match, fromNullable, map as map$3, some, none } from '../Option/dist/effect-Option.esm.js';
|
|
8
8
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
9
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
9
10
|
import { shutdown, bounded, offer, DequeueTypeId, capacity, size, awaitShutdown, isShutdown, isFull, isEmpty, take, takeAll, takeUpTo, takeBetween, takeN, poll, unbounded } from '../Queue/dist/effect-Queue.esm.js';
|
|
10
11
|
import { make as make$2, update, get } from '../Ref/dist/effect-Ref.esm.js';
|
|
11
12
|
import { drain } from './channel.esm.js';
|
|
@@ -29,7 +30,7 @@ const groupByVariance = {
|
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
/** @internal */
|
|
32
|
-
const isGroupBy = u =>
|
|
33
|
+
const isGroupBy = u => hasProperty(u, GroupByTypeId);
|
|
33
34
|
|
|
34
35
|
/** @internal */
|
|
35
36
|
const evaluate = /*#__PURE__*/dual(args => isGroupBy(args[0]), (self, f, options) => flatMap(self.grouped, ([key, queue]) => f(key, flattenTake(fromQueue(queue, {
|
package/internal/layer.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { die as die$1, fail as fail$1, failureOrCause } from '../Cause/dist/effect-Cause.esm.js';
|
|
2
2
|
import { sleep, currentTimeMillis } from '../Clock/dist/effect-Clock.esm.js';
|
|
3
|
-
import { empty, get, make, merge as merge$1, unsafeGet, Tag, isContext
|
|
3
|
+
import { empty, get, isTag, make, merge as merge$1, unsafeGet, Tag, isContext } from '../Context/dist/effect-Context.esm.js';
|
|
4
4
|
import { millis } from '../Duration/dist/effect-Duration.esm.js';
|
|
5
5
|
import { diff as diff$1 } from '../FiberRefsPatch/dist/effect-FiberRefsPatch.esm.js';
|
|
6
6
|
import { dual, pipe } from '../Function/dist/effect-Function.esm.js';
|
|
@@ -14,6 +14,7 @@ import { make as make$1, set, modify, update, get as get$1 } from './ref.esm.js'
|
|
|
14
14
|
import { runtime, defaultRuntime } from './runtime.esm.js';
|
|
15
15
|
import { modifyEffect } from './synchronizedRef.esm.js';
|
|
16
16
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
17
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
17
18
|
import { isDone } from '../ScheduleDecision/dist/effect-ScheduleDecision.esm.js';
|
|
18
19
|
import { start } from '../ScheduleIntervals/dist/effect-ScheduleIntervals.esm.js';
|
|
19
20
|
import { Scope } from '../Scope/dist/effect-Scope.esm.js';
|
|
@@ -66,9 +67,7 @@ const proto = {
|
|
|
66
67
|
/** @internal */
|
|
67
68
|
|
|
68
69
|
/** @internal */
|
|
69
|
-
const isLayer = u =>
|
|
70
|
-
return typeof u === "object" && u != null && LayerTypeId in u;
|
|
71
|
-
};
|
|
70
|
+
const isLayer = u => hasProperty(u, LayerTypeId);
|
|
72
71
|
|
|
73
72
|
/** @internal */
|
|
74
73
|
const isFresh = self => {
|
|
@@ -3,6 +3,7 @@ import { symbol as symbol$1, equals } from '../../Equal/dist/effect-Equal.esm.js
|
|
|
3
3
|
import { pipe } from '../../Function/dist/effect-Function.esm.js';
|
|
4
4
|
import { symbol, combine, hash } from '../../Hash/dist/effect-Hash.esm.js';
|
|
5
5
|
import { pipeArguments } from '../../Pipeable/dist/effect-Pipeable.esm.js';
|
|
6
|
+
import { hasProperty } from '../../Predicate/dist/effect-Predicate.esm.js';
|
|
6
7
|
import { makeBy } from '../../ReadonlyArray/dist/effect-ReadonlyArray.esm.js';
|
|
7
8
|
|
|
8
9
|
/** @internal */
|
|
@@ -29,9 +30,7 @@ class MetricBoundariesImpl {
|
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
/** @internal */
|
|
32
|
-
const isMetricBoundaries = u =>
|
|
33
|
-
return typeof u === "object" && u != null && MetricBoundariesTypeId in u;
|
|
34
|
-
};
|
|
33
|
+
const isMetricBoundaries = u => hasProperty(u, MetricBoundariesTypeId);
|
|
35
34
|
|
|
36
35
|
/** @internal */
|
|
37
36
|
const fromChunk = chunk => {
|
|
@@ -6,6 +6,7 @@ import { counter as counter$1, frequency as frequency$1, gauge as gauge$1, histo
|
|
|
6
6
|
import { make as make$1 } from './label.esm.js';
|
|
7
7
|
import { fromNullable } from '../../Option/dist/effect-Option.esm.js';
|
|
8
8
|
import { pipeArguments } from '../../Pipeable/dist/effect-Pipeable.esm.js';
|
|
9
|
+
import { hasProperty } from '../../Predicate/dist/effect-Predicate.esm.js';
|
|
9
10
|
|
|
10
11
|
/** @internal */
|
|
11
12
|
const MetricKeySymbolKey = "effect/MetricKey";
|
|
@@ -39,7 +40,7 @@ class MetricKeyImpl {
|
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
/** @internal */
|
|
42
|
-
const isMetricKey = u =>
|
|
43
|
+
const isMetricKey = u => hasProperty(u, MetricKeyTypeId);
|
|
43
44
|
|
|
44
45
|
/** @internal */
|
|
45
46
|
const counter = (name, options) => new MetricKeyImpl(name, counter$1(options), fromNullable(options?.description));
|
|
@@ -3,6 +3,7 @@ import { symbol as symbol$1, equals } from '../../Equal/dist/effect-Equal.esm.js
|
|
|
3
3
|
import { pipe } from '../../Function/dist/effect-Function.esm.js';
|
|
4
4
|
import { symbol, hash, combine } from '../../Hash/dist/effect-Hash.esm.js';
|
|
5
5
|
import { pipeArguments } from '../../Pipeable/dist/effect-Pipeable.esm.js';
|
|
6
|
+
import { hasProperty } from '../../Predicate/dist/effect-Predicate.esm.js';
|
|
6
7
|
|
|
7
8
|
/** @internal */
|
|
8
9
|
const MetricKeyTypeSymbolKey = "effect/MetricKeyType";
|
|
@@ -178,48 +179,36 @@ const summary = options => {
|
|
|
178
179
|
* @since 2.0.0
|
|
179
180
|
* @category refinements
|
|
180
181
|
*/
|
|
181
|
-
const isMetricKeyType = u =>
|
|
182
|
-
return typeof u === "object" && u != null && MetricKeyTypeTypeId in u;
|
|
183
|
-
};
|
|
182
|
+
const isMetricKeyType = u => hasProperty(u, MetricKeyTypeTypeId);
|
|
184
183
|
|
|
185
184
|
/**
|
|
186
185
|
* @since 2.0.0
|
|
187
186
|
* @category refinements
|
|
188
187
|
*/
|
|
189
|
-
const isCounterKey = u =>
|
|
190
|
-
return typeof u === "object" && u != null && CounterKeyTypeTypeId in u;
|
|
191
|
-
};
|
|
188
|
+
const isCounterKey = u => hasProperty(u, CounterKeyTypeTypeId);
|
|
192
189
|
|
|
193
190
|
/**
|
|
194
191
|
* @since 2.0.0
|
|
195
192
|
* @category refinements
|
|
196
193
|
*/
|
|
197
|
-
const isFrequencyKey = u =>
|
|
198
|
-
return typeof u === "object" && u != null && FrequencyKeyTypeTypeId in u;
|
|
199
|
-
};
|
|
194
|
+
const isFrequencyKey = u => hasProperty(u, FrequencyKeyTypeTypeId);
|
|
200
195
|
|
|
201
196
|
/**
|
|
202
197
|
* @since 2.0.0
|
|
203
198
|
* @category refinements
|
|
204
199
|
*/
|
|
205
|
-
const isGaugeKey = u =>
|
|
206
|
-
return typeof u === "object" && u != null && GaugeKeyTypeTypeId in u;
|
|
207
|
-
};
|
|
200
|
+
const isGaugeKey = u => hasProperty(u, GaugeKeyTypeTypeId);
|
|
208
201
|
|
|
209
202
|
/**
|
|
210
203
|
* @since 2.0.0
|
|
211
204
|
* @category refinements
|
|
212
205
|
*/
|
|
213
|
-
const isHistogramKey = u =>
|
|
214
|
-
return typeof u === "object" && u != null && HistogramKeyTypeTypeId in u;
|
|
215
|
-
};
|
|
206
|
+
const isHistogramKey = u => hasProperty(u, HistogramKeyTypeTypeId);
|
|
216
207
|
|
|
217
208
|
/**
|
|
218
209
|
* @since 2.0.0
|
|
219
210
|
* @category refinements
|
|
220
211
|
*/
|
|
221
|
-
const isSummaryKey = u =>
|
|
222
|
-
return typeof u === "object" && u != null && SummaryKeyTypeTypeId in u;
|
|
223
|
-
};
|
|
212
|
+
const isSummaryKey = u => hasProperty(u, SummaryKeyTypeTypeId);
|
|
224
213
|
|
|
225
214
|
export { CounterKeyTypeTypeId, FrequencyKeyTypeTypeId, GaugeKeyTypeTypeId, HistogramKeyType, HistogramKeyTypeTypeId, MetricKeyTypeTypeId, SummaryKeyTypeTypeId, counter, frequency, gauge, histogram, isCounterKey, isFrequencyKey, isGaugeKey, isHistogramKey, isMetricKeyType, isSummaryKey, summary };
|
|
@@ -2,6 +2,7 @@ import { symbol as symbol$1 } from '../../Equal/dist/effect-Equal.esm.js';
|
|
|
2
2
|
import { pipe } from '../../Function/dist/effect-Function.esm.js';
|
|
3
3
|
import { symbol, combine, hash } from '../../Hash/dist/effect-Hash.esm.js';
|
|
4
4
|
import { pipeArguments } from '../../Pipeable/dist/effect-Pipeable.esm.js';
|
|
5
|
+
import { hasProperty } from '../../Predicate/dist/effect-Predicate.esm.js';
|
|
5
6
|
|
|
6
7
|
/** @internal */
|
|
7
8
|
const MetricLabelSymbolKey = "effect/MetricLabel";
|
|
@@ -33,8 +34,6 @@ const make = (key, value) => {
|
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
/** @internal */
|
|
36
|
-
const isMetricLabel = u =>
|
|
37
|
-
return typeof u === "object" && u != null && MetricLabelTypeId in u;
|
|
38
|
-
};
|
|
37
|
+
const isMetricLabel = u => hasProperty(u, MetricLabelTypeId);
|
|
39
38
|
|
|
40
39
|
export { MetricLabelTypeId, isMetricLabel, make };
|
|
@@ -2,6 +2,7 @@ import { symbol as symbol$1, equals } from '../../Equal/dist/effect-Equal.esm.js
|
|
|
2
2
|
import { pipe } from '../../Function/dist/effect-Function.esm.js';
|
|
3
3
|
import { symbol, combine, hash } from '../../Hash/dist/effect-Hash.esm.js';
|
|
4
4
|
import { pipeArguments } from '../../Pipeable/dist/effect-Pipeable.esm.js';
|
|
5
|
+
import { hasProperty } from '../../Predicate/dist/effect-Predicate.esm.js';
|
|
5
6
|
|
|
6
7
|
/** @internal */
|
|
7
8
|
const MetricStateSymbolKey = "effect/MetricState";
|
|
@@ -161,45 +162,33 @@ const histogram = options => new HistogramState(options.buckets, options.count,
|
|
|
161
162
|
const summary = options => new SummaryState(options.error, options.quantiles, options.count, options.min, options.max, options.sum);
|
|
162
163
|
|
|
163
164
|
/** @internal */
|
|
164
|
-
const isMetricState = u =>
|
|
165
|
-
return typeof u === "object" && u != null && MetricStateTypeId in u;
|
|
166
|
-
};
|
|
165
|
+
const isMetricState = u => hasProperty(u, MetricStateTypeId);
|
|
167
166
|
|
|
168
167
|
/** @internal */
|
|
169
|
-
const isCounterState = u =>
|
|
170
|
-
return typeof u === "object" && u != null && CounterStateTypeId in u;
|
|
171
|
-
};
|
|
168
|
+
const isCounterState = u => hasProperty(u, CounterStateTypeId);
|
|
172
169
|
|
|
173
170
|
/**
|
|
174
171
|
* @since 2.0.0
|
|
175
172
|
* @category refinements
|
|
176
173
|
*/
|
|
177
|
-
const isFrequencyState = u =>
|
|
178
|
-
return typeof u === "object" && u != null && FrequencyStateTypeId in u;
|
|
179
|
-
};
|
|
174
|
+
const isFrequencyState = u => hasProperty(u, FrequencyStateTypeId);
|
|
180
175
|
|
|
181
176
|
/**
|
|
182
177
|
* @since 2.0.0
|
|
183
178
|
* @category refinements
|
|
184
179
|
*/
|
|
185
|
-
const isGaugeState = u =>
|
|
186
|
-
return typeof u === "object" && u != null && GaugeStateTypeId in u;
|
|
187
|
-
};
|
|
180
|
+
const isGaugeState = u => hasProperty(u, GaugeStateTypeId);
|
|
188
181
|
|
|
189
182
|
/**
|
|
190
183
|
* @since 2.0.0
|
|
191
184
|
* @category refinements
|
|
192
185
|
*/
|
|
193
|
-
const isHistogramState = u =>
|
|
194
|
-
return typeof u === "object" && u != null && HistogramStateTypeId in u;
|
|
195
|
-
};
|
|
186
|
+
const isHistogramState = u => hasProperty(u, HistogramStateTypeId);
|
|
196
187
|
|
|
197
188
|
/**
|
|
198
189
|
* @since 2.0.0
|
|
199
190
|
* @category refinements
|
|
200
191
|
*/
|
|
201
|
-
const isSummaryState = u =>
|
|
202
|
-
return typeof u === "object" && u != null && SummaryStateTypeId in u;
|
|
203
|
-
};
|
|
192
|
+
const isSummaryState = u => hasProperty(u, SummaryStateTypeId);
|
|
204
193
|
|
|
205
194
|
export { CounterStateTypeId, FrequencyStateTypeId, GaugeStateTypeId, HistogramState, HistogramStateTypeId, MetricStateTypeId, SummaryState, SummaryStateTypeId, counter, frequency, gauge, histogram, isCounterState, isFrequencyState, isGaugeState, isHistogramState, isMetricState, isSummaryState, summary };
|
package/internal/pool.esm.js
CHANGED
|
@@ -10,6 +10,7 @@ import { forkDaemon, addFinalizer, all, disconnect, withEarlyRelease, acquireRel
|
|
|
10
10
|
import { bounded, offer, take, awaitShutdown, shutdown as shutdown$1 } from './queue.esm.js';
|
|
11
11
|
import { make as make$1, set, get as get$1, update, modify } from './ref.esm.js';
|
|
12
12
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
13
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
13
14
|
|
|
14
15
|
/** @internal */
|
|
15
16
|
const PoolSymbolKey = "effect/Pool";
|
|
@@ -244,7 +245,7 @@ const makeWith = options => uninterruptibleMask(restore => pipe(all([context(),
|
|
|
244
245
|
})));
|
|
245
246
|
|
|
246
247
|
/** @internal */
|
|
247
|
-
const isPool = u =>
|
|
248
|
+
const isPool = u => hasProperty(u, PoolTypeId);
|
|
248
249
|
|
|
249
250
|
/** @internal */
|
|
250
251
|
const make = options => makeWith({
|
package/internal/queue.esm.js
CHANGED
|
@@ -6,6 +6,7 @@ import { bounded as bounded$1, unbounded as unbounded$1, length, isEmpty as isEm
|
|
|
6
6
|
import { make as make$1, get, set } from '../MutableRef/dist/effect-MutableRef.esm.js';
|
|
7
7
|
import { none, some } from '../Option/dist/effect-Option.esm.js';
|
|
8
8
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
9
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
9
10
|
import { fromIterable, empty, splitAt } from '../ReadonlyArray/dist/effect-ReadonlyArray.esm.js';
|
|
10
11
|
|
|
11
12
|
/** @internal */
|
|
@@ -232,10 +233,10 @@ const takeRemainderLoop = (self, min, max, acc) => {
|
|
|
232
233
|
const isQueue = u => isEnqueue(u) && isDequeue(u);
|
|
233
234
|
|
|
234
235
|
/** @internal */
|
|
235
|
-
const isEnqueue = u =>
|
|
236
|
+
const isEnqueue = u => hasProperty(u, EnqueueTypeId);
|
|
236
237
|
|
|
237
238
|
/** @internal */
|
|
238
|
-
const isDequeue = u =>
|
|
239
|
+
const isDequeue = u => hasProperty(u, DequeueTypeId);
|
|
239
240
|
|
|
240
241
|
/** @internal */
|
|
241
242
|
const bounded = requestedCapacity => pipe(sync(() => bounded$1(requestedCapacity)), flatMap(queue => make(backingQueueFromMutableQueue(queue), backPressureStrategy())));
|
package/internal/request.esm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { dual } from '../Function/dist/effect-Function.esm.js';
|
|
2
2
|
import { currentRequestMap } from './completedRequestMap.esm.js';
|
|
3
3
|
import { fiberRefGetWith, sync, deferredUnsafeDone, matchEffect, exitFail, exitSucceed } from './core.esm.js';
|
|
4
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
4
5
|
import { struct } from './Data.esm.js';
|
|
5
6
|
|
|
6
7
|
/** @internal */
|
|
@@ -16,7 +17,7 @@ const requestVariance = {
|
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
/** @internal */
|
|
19
|
-
const isRequest = u =>
|
|
20
|
+
const isRequest = u => hasProperty(u, RequestTypeId);
|
|
20
21
|
|
|
21
22
|
/** @internal */
|
|
22
23
|
const of = () => args =>
|
package/internal/runtime.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { unsafeMake, none as none$2 } from '../FiberId/dist/effect-FiberId.esm.j
|
|
|
5
5
|
import { updatedAs, forkAs, empty as empty$1 } from '../FiberRefs/dist/effect-FiberRefs.esm.js';
|
|
6
6
|
import { pipe } from '../Function/dist/effect-Function.esm.js';
|
|
7
7
|
import { toString, NodeInspectSymbol } from '../Inspectable/dist/effect-Inspectable.esm.js';
|
|
8
|
-
import { prettyErrors, NoSuchElementException } from './cause.esm.js';
|
|
8
|
+
import { prettyErrors, pretty, NoSuchElementException } from './cause.esm.js';
|
|
9
9
|
import { currentContext, withFiberRuntime, flatMap, deferredMake, uninterruptibleMask, zipRight, catchAllCause, intoDeferred, deferredFailCause, deferredAwait, exitFail, exitSucceed, succeed } from './core.esm.js';
|
|
10
10
|
import { FiberRuntime, fork } from './fiberRuntime.esm.js';
|
|
11
11
|
import { globalScope } from './fiberScope.esm.js';
|
|
@@ -14,7 +14,7 @@ import { make as make$1, RuntimeMetrics, CooperativeYielding, Interruption } fro
|
|
|
14
14
|
import { none } from './supervisor.esm.js';
|
|
15
15
|
import { none as none$1 } from '../Option/dist/effect-Option.esm.js';
|
|
16
16
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
17
|
-
import { isTagged } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
17
|
+
import { isTagged, hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
18
18
|
import { currentScheduler, SyncScheduler } from '../Scheduler/dist/effect-Scheduler.esm.js';
|
|
19
19
|
|
|
20
20
|
/** @internal */
|
|
@@ -123,7 +123,7 @@ const fiberFailure = cause => {
|
|
|
123
123
|
const head = prettyErrors$1[0];
|
|
124
124
|
error.name = head.message.split(":")[0];
|
|
125
125
|
error.message = head.message.substring(error.name.length + 2);
|
|
126
|
-
error.stack =
|
|
126
|
+
error.stack = pretty(cause);
|
|
127
127
|
}
|
|
128
128
|
error[FiberFailureId] = FiberFailureId;
|
|
129
129
|
error[FiberFailureCauseId] = cause;
|
|
@@ -143,7 +143,7 @@ const fiberFailure = cause => {
|
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
/** @internal */
|
|
146
|
-
const isFiberFailure = u =>
|
|
146
|
+
const isFiberFailure = u => hasProperty(u, FiberFailureId);
|
|
147
147
|
const fastPath = effect => {
|
|
148
148
|
const op = effect;
|
|
149
149
|
switch (op._op) {
|
package/internal/sink.esm.js
CHANGED
|
@@ -10,6 +10,7 @@ import { empty as empty$1, has, unsafeGet, set } from '../HashMap/dist/effect-Ha
|
|
|
10
10
|
import { empty as empty$2, has as has$1, add } from '../HashSet/dist/effect-HashSet.esm.js';
|
|
11
11
|
import { some as some$1, none, match, isNone, orElse as orElse$2 } from '../Option/dist/effect-Option.esm.js';
|
|
12
12
|
import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
|
|
13
|
+
import { hasProperty } from '../Predicate/dist/effect-Predicate.esm.js';
|
|
13
14
|
import { bounded } from '../PubSub/dist/effect-PubSub.esm.js';
|
|
14
15
|
import { shutdown, offerAll } from '../Queue/dist/effect-Queue.esm.js';
|
|
15
16
|
import { span } from '../ReadonlyArray/dist/effect-ReadonlyArray.esm.js';
|
|
@@ -42,7 +43,7 @@ class SinkImpl {
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
/** @internal */
|
|
45
|
-
const isSink = u =>
|
|
46
|
+
const isSink = u => hasProperty(u, SinkTypeId);
|
|
46
47
|
|
|
47
48
|
/** @internal */
|
|
48
49
|
const suspend = evaluate => new SinkImpl(suspend$1(() => toChannel(evaluate())));
|