effect 2.0.0-next.47 → 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-c01fd1d8.cjs.dev.js → core-3d37486a.cjs.dev.js} +3 -3
- package/dist/{core-84e608f0.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/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-70c6dc0d.cjs.dev.js → groupBy-050e6b17.cjs.dev.js} +4 -4
- package/dist/{groupBy-5fb5d639.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-59df8b4d.cjs.dev.js → pool-7c9cd8e9.cjs.dev.js} +5 -5
- package/dist/{pool-042cc42b.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-e4c59627.cjs.dev.js → queue-06ce789d.cjs.dev.js} +2 -2
- package/dist/{queue-425b92f6.cjs.prod.js → queue-6afe5f19.cjs.prod.js} +2 -2
- 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-b2fcb569.cjs.prod.js → sink-6d1a77bf.cjs.prod.js} +3 -3
- package/dist/{sink-17e02d40.cjs.dev.js → sink-ebf2fbdb.cjs.dev.js} +3 -3
- package/dist/{stm-9dd6be88.cjs.prod.js → stm-4a6de085.cjs.prod.js} +3 -3
- package/dist/{stm-5264610b.cjs.dev.js → stm-dbec85f1.cjs.dev.js} +3 -3
- package/dist/{stream-5e2ed3a9.cjs.dev.js → stream-478aa5a8.cjs.dev.js} +9 -6
- package/dist/{stream-c9c522f2.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-77a2ae3c.cjs.dev.js → tArray-0c9045e7.cjs.dev.js} +3 -3
- package/dist/{tArray-cac66af4.cjs.prod.js → tArray-b30ccc3e.cjs.prod.js} +3 -3
- package/dist/{tMap-5ac8ec9c.cjs.prod.js → tMap-001c791c.cjs.prod.js} +4 -4
- package/dist/{tMap-73bbf062.cjs.dev.js → tMap-0625df1d.cjs.dev.js} +4 -4
- package/dist/{tQueue-dded9b2d.cjs.prod.js → tQueue-6accdd70.cjs.prod.js} +3 -3
- package/dist/{tQueue-2b1cd0c4.cjs.dev.js → tQueue-cdbf9130.cjs.dev.js} +3 -3
- package/dist/{tRef-73c3549e.cjs.prod.js → tRef-8b60d85b.cjs.prod.js} +1 -1
- package/dist/{tRef-90f0872b.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/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/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/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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-BigInt.cjs.d.mts","sourceRoot":"","sources":["../../dist/declarations/src/BigInt.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-BigInt.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/BigInt.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -11,10 +11,10 @@ require('../../Equal/dist/effect-Equal.cjs.dev.js');
|
|
|
11
11
|
require('../../Hash/dist/effect-Hash.cjs.dev.js');
|
|
12
12
|
require('../../GlobalValue/dist/effect-GlobalValue.cjs.dev.js');
|
|
13
13
|
require('../../Utils/dist/effect-Utils.cjs.dev.js');
|
|
14
|
-
require('../../dist/Either-
|
|
14
|
+
require('../../dist/Either-e7500e90.cjs.dev.js');
|
|
15
15
|
require('../../Inspectable/dist/effect-Inspectable.cjs.dev.js');
|
|
16
|
-
require('../../dist/Option-
|
|
17
|
-
require('../../dist/Effectable-
|
|
16
|
+
require('../../dist/Option-01caa9d4.cjs.dev.js');
|
|
17
|
+
require('../../dist/Effectable-71c10ab9.cjs.dev.js');
|
|
18
18
|
require('../../Pipeable/dist/effect-Pipeable.cjs.dev.js');
|
|
19
19
|
require('../../Number/dist/effect-Number.cjs.dev.js');
|
|
20
20
|
|
|
@@ -32,15 +32,15 @@ require('../../Number/dist/effect-Number.cjs.dev.js');
|
|
|
32
32
|
* @param input - The value to test.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
|
-
* import {
|
|
35
|
+
* import { isBigInt } from "effect/BigInt"
|
|
36
36
|
*
|
|
37
|
-
* assert.deepStrictEqual(
|
|
38
|
-
* assert.deepStrictEqual(
|
|
37
|
+
* assert.deepStrictEqual(isBigInt(1n), true)
|
|
38
|
+
* assert.deepStrictEqual(isBigInt(1), false)
|
|
39
39
|
*
|
|
40
40
|
* @category guards
|
|
41
41
|
* @since 2.0.0
|
|
42
42
|
*/
|
|
43
|
-
const
|
|
43
|
+
const isBigInt = Predicate_dist_effectPredicate.isBigInt;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Provides an addition operation on `bigint`s.
|
|
@@ -49,7 +49,7 @@ const isBigint = Predicate_dist_effectPredicate.isBigint;
|
|
|
49
49
|
* @param that - The second operand.
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* import { sum } from 'effect/
|
|
52
|
+
* import { sum } from 'effect/BigInt'
|
|
53
53
|
*
|
|
54
54
|
* assert.deepStrictEqual(sum(2n, 3n), 5n)
|
|
55
55
|
*
|
|
@@ -65,7 +65,7 @@ const sum = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => se
|
|
|
65
65
|
* @param that - The second operand.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* import { multiply } from 'effect/
|
|
68
|
+
* import { multiply } from 'effect/BigInt'
|
|
69
69
|
*
|
|
70
70
|
* assert.deepStrictEqual(multiply(2n, 3n), 6n)
|
|
71
71
|
*
|
|
@@ -81,7 +81,7 @@ const multiply = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that)
|
|
|
81
81
|
* @param that - The second operand.
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
|
-
* import { subtract } from 'effect/
|
|
84
|
+
* import { subtract } from 'effect/BigInt'
|
|
85
85
|
*
|
|
86
86
|
* assert.deepStrictEqual(subtract(2n, 3n), -1n)
|
|
87
87
|
*
|
|
@@ -100,7 +100,7 @@ const subtract = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that)
|
|
|
100
100
|
* @param that - The divisor operand.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
|
-
* import { divide } from 'effect/
|
|
103
|
+
* import { divide } from 'effect/BigInt'
|
|
104
104
|
*
|
|
105
105
|
* assert.deepStrictEqual(divide(6n, 3n), 2n)
|
|
106
106
|
* assert.deepStrictEqual(divide(6n, 4n), 1n)
|
|
@@ -117,7 +117,7 @@ const divide = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) =>
|
|
|
117
117
|
* @param n - A `bigint` to be incremented.
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
|
-
* import { increment } from 'effect/
|
|
120
|
+
* import { increment } from 'effect/BigInt'
|
|
121
121
|
*
|
|
122
122
|
* assert.deepStrictEqual(increment(2n), 3n)
|
|
123
123
|
*
|
|
@@ -132,7 +132,7 @@ const increment = n => n + 1n;
|
|
|
132
132
|
* @param n - A `bigint` to be decremented.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
|
-
* import { decrement } from 'effect/
|
|
135
|
+
* import { decrement } from 'effect/BigInt'
|
|
136
136
|
*
|
|
137
137
|
* assert.deepStrictEqual(decrement(3n), 2n)
|
|
138
138
|
*
|
|
@@ -160,7 +160,7 @@ const Order = Order_dist_effectOrder.bigint;
|
|
|
160
160
|
* @param that - The second argument.
|
|
161
161
|
*
|
|
162
162
|
* @example
|
|
163
|
-
* import { lessThan } from 'effect/
|
|
163
|
+
* import { lessThan } from 'effect/BigInt'
|
|
164
164
|
*
|
|
165
165
|
* assert.deepStrictEqual(lessThan(2n, 3n), true)
|
|
166
166
|
* assert.deepStrictEqual(lessThan(3n, 3n), false)
|
|
@@ -178,7 +178,7 @@ const lessThan = /*#__PURE__*/Order_dist_effectOrder.lessThan(Order);
|
|
|
178
178
|
* @param that - The second `bigint` to compare with.
|
|
179
179
|
*
|
|
180
180
|
* @example
|
|
181
|
-
* import { lessThanOrEqualTo } from 'effect/
|
|
181
|
+
* import { lessThanOrEqualTo } from 'effect/BigInt'
|
|
182
182
|
*
|
|
183
183
|
* assert.deepStrictEqual(lessThanOrEqualTo(2n, 3n), true)
|
|
184
184
|
* assert.deepStrictEqual(lessThanOrEqualTo(3n, 3n), true)
|
|
@@ -196,7 +196,7 @@ const lessThanOrEqualTo = /*#__PURE__*/Order_dist_effectOrder.lessThanOrEqualTo(
|
|
|
196
196
|
* @param that - The second argument.
|
|
197
197
|
*
|
|
198
198
|
* @example
|
|
199
|
-
* import { greaterThan } from 'effect/
|
|
199
|
+
* import { greaterThan } from 'effect/BigInt'
|
|
200
200
|
*
|
|
201
201
|
* assert.deepStrictEqual(greaterThan(2n, 3n), false)
|
|
202
202
|
* assert.deepStrictEqual(greaterThan(3n, 3n), false)
|
|
@@ -214,7 +214,7 @@ const greaterThan = /*#__PURE__*/Order_dist_effectOrder.greaterThan(Order);
|
|
|
214
214
|
* @param that - The second `bigint` to compare with.
|
|
215
215
|
*
|
|
216
216
|
* @example
|
|
217
|
-
* import { greaterThanOrEqualTo } from 'effect/
|
|
217
|
+
* import { greaterThanOrEqualTo } from 'effect/BigInt'
|
|
218
218
|
*
|
|
219
219
|
* assert.deepStrictEqual(greaterThanOrEqualTo(2n, 3n), false)
|
|
220
220
|
* assert.deepStrictEqual(greaterThanOrEqualTo(3n, 3n), true)
|
|
@@ -233,7 +233,7 @@ const greaterThanOrEqualTo = /*#__PURE__*/Order_dist_effectOrder.greaterThanOrEq
|
|
|
233
233
|
* @param maximum - The `maximum` value to check.
|
|
234
234
|
*
|
|
235
235
|
* @example
|
|
236
|
-
* import { between } from 'effect/
|
|
236
|
+
* import { between } from 'effect/BigInt'
|
|
237
237
|
*
|
|
238
238
|
* assert.deepStrictEqual(between(0n, 5n)(3n), true)
|
|
239
239
|
* assert.deepStrictEqual(between(0n, 5n)(-1n), false)
|
|
@@ -256,7 +256,7 @@ const between = /*#__PURE__*/Order_dist_effectOrder.between(Order);
|
|
|
256
256
|
* @param maximum - The upper end of the range.
|
|
257
257
|
*
|
|
258
258
|
* @example
|
|
259
|
-
* import { clamp } from 'effect/
|
|
259
|
+
* import { clamp } from 'effect/BigInt'
|
|
260
260
|
*
|
|
261
261
|
* assert.deepStrictEqual(clamp(0n, 5n)(3n), 3n)
|
|
262
262
|
* assert.deepStrictEqual(clamp(0n, 5n)(-1n), 0n)
|
|
@@ -273,7 +273,7 @@ const clamp = /*#__PURE__*/Order_dist_effectOrder.clamp(Order);
|
|
|
273
273
|
* @param that - The second `bigint`.
|
|
274
274
|
*
|
|
275
275
|
* @example
|
|
276
|
-
* import { min } from 'effect/
|
|
276
|
+
* import { min } from 'effect/BigInt'
|
|
277
277
|
*
|
|
278
278
|
* assert.deepStrictEqual(min(2n, 3n), 2n)
|
|
279
279
|
*
|
|
@@ -288,7 +288,7 @@ const min = /*#__PURE__*/Order_dist_effectOrder.min(Order);
|
|
|
288
288
|
* @param that - The second `bigint`.
|
|
289
289
|
*
|
|
290
290
|
* @example
|
|
291
|
-
* import { max } from 'effect/
|
|
291
|
+
* import { max } from 'effect/BigInt'
|
|
292
292
|
*
|
|
293
293
|
* assert.deepStrictEqual(max(2n, 3n), 3n)
|
|
294
294
|
*
|
|
@@ -302,7 +302,7 @@ const max = /*#__PURE__*/Order_dist_effectOrder.max(Order);
|
|
|
302
302
|
* @param n - The `bigint` to determine the sign of.
|
|
303
303
|
*
|
|
304
304
|
* @example
|
|
305
|
-
* import { sign } from 'effect/
|
|
305
|
+
* import { sign } from 'effect/BigInt'
|
|
306
306
|
*
|
|
307
307
|
* assert.deepStrictEqual(sign(-5n), -1)
|
|
308
308
|
* assert.deepStrictEqual(sign(0n), 0)
|
|
@@ -319,7 +319,7 @@ const sign = n => Order(n, 0n);
|
|
|
319
319
|
* @param n - The `bigint` to determine the absolute value of.
|
|
320
320
|
*
|
|
321
321
|
* @example
|
|
322
|
-
* import { abs } from 'effect/
|
|
322
|
+
* import { abs } from 'effect/BigInt'
|
|
323
323
|
*
|
|
324
324
|
* assert.deepStrictEqual(abs(-5n), 5n)
|
|
325
325
|
* assert.deepStrictEqual(abs(0n), 0n)
|
|
@@ -337,7 +337,7 @@ const abs = n => n < 0n ? -n : n;
|
|
|
337
337
|
* @param b - The second `bigint`.
|
|
338
338
|
*
|
|
339
339
|
* @example
|
|
340
|
-
* import { gcd } from 'effect/
|
|
340
|
+
* import { gcd } from 'effect/BigInt'
|
|
341
341
|
*
|
|
342
342
|
* assert.deepStrictEqual(gcd(2n, 3n), 1n)
|
|
343
343
|
* assert.deepStrictEqual(gcd(2n, 4n), 2n)
|
|
@@ -362,7 +362,7 @@ const gcd = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => {
|
|
|
362
362
|
* @param b - The second `bigint`.
|
|
363
363
|
*
|
|
364
364
|
* @example
|
|
365
|
-
* import { lcm } from 'effect/
|
|
365
|
+
* import { lcm } from 'effect/BigInt'
|
|
366
366
|
*
|
|
367
367
|
* assert.deepStrictEqual(lcm(2n, 3n), 6n)
|
|
368
368
|
* assert.deepStrictEqual(lcm(2n, 4n), 4n)
|
|
@@ -379,7 +379,7 @@ const lcm = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => se
|
|
|
379
379
|
* @param n - The `bigint` to determine the square root of.
|
|
380
380
|
*
|
|
381
381
|
* @example
|
|
382
|
-
* import { unsafeSqrt } from 'effect/
|
|
382
|
+
* import { unsafeSqrt } from 'effect/BigInt'
|
|
383
383
|
*
|
|
384
384
|
* assert.deepStrictEqual(unsafeSqrt(4n), 2n)
|
|
385
385
|
* assert.deepStrictEqual(unsafeSqrt(9n), 3n)
|
|
@@ -408,7 +408,7 @@ const unsafeSqrt = n => {
|
|
|
408
408
|
* @param n - The `bigint` to determine the square root of.
|
|
409
409
|
*
|
|
410
410
|
* @example
|
|
411
|
-
* import { sqrt } from 'effect/
|
|
411
|
+
* import { sqrt } from 'effect/BigInt'
|
|
412
412
|
* import * as Option from 'effect/Option'
|
|
413
413
|
*
|
|
414
414
|
* assert.deepStrictEqual(sqrt(4n), Option.some(2n))
|
|
@@ -427,7 +427,7 @@ const sqrt = n => greaterThanOrEqualTo(n, 0n) ? Option_dist_effectOption.some(un
|
|
|
427
427
|
* @param collection - The collection of `bigint`s to sum.
|
|
428
428
|
*
|
|
429
429
|
* @example
|
|
430
|
-
* import { sumAll } from 'effect/
|
|
430
|
+
* import { sumAll } from 'effect/BigInt'
|
|
431
431
|
*
|
|
432
432
|
* assert.deepStrictEqual(sumAll([2n, 3n, 4n]), 9n)
|
|
433
433
|
*
|
|
@@ -448,7 +448,7 @@ const sumAll = collection => {
|
|
|
448
448
|
* @param collection - The collection of `bigint`s to multiply.
|
|
449
449
|
*
|
|
450
450
|
* @example
|
|
451
|
-
* import { multiplyAll } from 'effect/
|
|
451
|
+
* import { multiplyAll } from 'effect/BigInt'
|
|
452
452
|
*
|
|
453
453
|
* assert.deepStrictEqual(multiplyAll([2n, 3n, 4n]), 24n)
|
|
454
454
|
*
|
|
@@ -477,7 +477,7 @@ exports.gcd = gcd;
|
|
|
477
477
|
exports.greaterThan = greaterThan;
|
|
478
478
|
exports.greaterThanOrEqualTo = greaterThanOrEqualTo;
|
|
479
479
|
exports.increment = increment;
|
|
480
|
-
exports.
|
|
480
|
+
exports.isBigInt = isBigInt;
|
|
481
481
|
exports.lcm = lcm;
|
|
482
482
|
exports.lessThan = lessThan;
|
|
483
483
|
exports.lessThanOrEqualTo = lessThanOrEqualTo;
|
|
@@ -10,7 +10,7 @@ export {
|
|
|
10
10
|
greaterThan,
|
|
11
11
|
greaterThanOrEqualTo,
|
|
12
12
|
increment,
|
|
13
|
-
|
|
13
|
+
isBigInt,
|
|
14
14
|
lcm,
|
|
15
15
|
lessThan,
|
|
16
16
|
lessThanOrEqualTo,
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
sum,
|
|
25
25
|
sumAll,
|
|
26
26
|
unsafeSqrt
|
|
27
|
-
} from "./effect-
|
|
27
|
+
} from "./effect-BigInt.cjs.js";
|
|
@@ -11,10 +11,10 @@ require('../../Equal/dist/effect-Equal.cjs.prod.js');
|
|
|
11
11
|
require('../../Hash/dist/effect-Hash.cjs.prod.js');
|
|
12
12
|
require('../../GlobalValue/dist/effect-GlobalValue.cjs.prod.js');
|
|
13
13
|
require('../../Utils/dist/effect-Utils.cjs.prod.js');
|
|
14
|
-
require('../../dist/Either-
|
|
14
|
+
require('../../dist/Either-a3f96c60.cjs.prod.js');
|
|
15
15
|
require('../../Inspectable/dist/effect-Inspectable.cjs.prod.js');
|
|
16
|
-
require('../../dist/Option-
|
|
17
|
-
require('../../dist/Effectable-
|
|
16
|
+
require('../../dist/Option-dd52e82a.cjs.prod.js');
|
|
17
|
+
require('../../dist/Effectable-6a8a05f1.cjs.prod.js');
|
|
18
18
|
require('../../Pipeable/dist/effect-Pipeable.cjs.prod.js');
|
|
19
19
|
require('../../Number/dist/effect-Number.cjs.prod.js');
|
|
20
20
|
|
|
@@ -32,15 +32,15 @@ require('../../Number/dist/effect-Number.cjs.prod.js');
|
|
|
32
32
|
* @param input - The value to test.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
|
-
* import {
|
|
35
|
+
* import { isBigInt } from "effect/BigInt"
|
|
36
36
|
*
|
|
37
|
-
* assert.deepStrictEqual(
|
|
38
|
-
* assert.deepStrictEqual(
|
|
37
|
+
* assert.deepStrictEqual(isBigInt(1n), true)
|
|
38
|
+
* assert.deepStrictEqual(isBigInt(1), false)
|
|
39
39
|
*
|
|
40
40
|
* @category guards
|
|
41
41
|
* @since 2.0.0
|
|
42
42
|
*/
|
|
43
|
-
const
|
|
43
|
+
const isBigInt = Predicate_dist_effectPredicate.isBigInt;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Provides an addition operation on `bigint`s.
|
|
@@ -49,7 +49,7 @@ const isBigint = Predicate_dist_effectPredicate.isBigint;
|
|
|
49
49
|
* @param that - The second operand.
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* import { sum } from 'effect/
|
|
52
|
+
* import { sum } from 'effect/BigInt'
|
|
53
53
|
*
|
|
54
54
|
* assert.deepStrictEqual(sum(2n, 3n), 5n)
|
|
55
55
|
*
|
|
@@ -65,7 +65,7 @@ const sum = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => se
|
|
|
65
65
|
* @param that - The second operand.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* import { multiply } from 'effect/
|
|
68
|
+
* import { multiply } from 'effect/BigInt'
|
|
69
69
|
*
|
|
70
70
|
* assert.deepStrictEqual(multiply(2n, 3n), 6n)
|
|
71
71
|
*
|
|
@@ -81,7 +81,7 @@ const multiply = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that)
|
|
|
81
81
|
* @param that - The second operand.
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
|
-
* import { subtract } from 'effect/
|
|
84
|
+
* import { subtract } from 'effect/BigInt'
|
|
85
85
|
*
|
|
86
86
|
* assert.deepStrictEqual(subtract(2n, 3n), -1n)
|
|
87
87
|
*
|
|
@@ -100,7 +100,7 @@ const subtract = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that)
|
|
|
100
100
|
* @param that - The divisor operand.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
|
-
* import { divide } from 'effect/
|
|
103
|
+
* import { divide } from 'effect/BigInt'
|
|
104
104
|
*
|
|
105
105
|
* assert.deepStrictEqual(divide(6n, 3n), 2n)
|
|
106
106
|
* assert.deepStrictEqual(divide(6n, 4n), 1n)
|
|
@@ -117,7 +117,7 @@ const divide = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) =>
|
|
|
117
117
|
* @param n - A `bigint` to be incremented.
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
|
-
* import { increment } from 'effect/
|
|
120
|
+
* import { increment } from 'effect/BigInt'
|
|
121
121
|
*
|
|
122
122
|
* assert.deepStrictEqual(increment(2n), 3n)
|
|
123
123
|
*
|
|
@@ -132,7 +132,7 @@ const increment = n => n + 1n;
|
|
|
132
132
|
* @param n - A `bigint` to be decremented.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
|
-
* import { decrement } from 'effect/
|
|
135
|
+
* import { decrement } from 'effect/BigInt'
|
|
136
136
|
*
|
|
137
137
|
* assert.deepStrictEqual(decrement(3n), 2n)
|
|
138
138
|
*
|
|
@@ -160,7 +160,7 @@ const Order = Order_dist_effectOrder.bigint;
|
|
|
160
160
|
* @param that - The second argument.
|
|
161
161
|
*
|
|
162
162
|
* @example
|
|
163
|
-
* import { lessThan } from 'effect/
|
|
163
|
+
* import { lessThan } from 'effect/BigInt'
|
|
164
164
|
*
|
|
165
165
|
* assert.deepStrictEqual(lessThan(2n, 3n), true)
|
|
166
166
|
* assert.deepStrictEqual(lessThan(3n, 3n), false)
|
|
@@ -178,7 +178,7 @@ const lessThan = /*#__PURE__*/Order_dist_effectOrder.lessThan(Order);
|
|
|
178
178
|
* @param that - The second `bigint` to compare with.
|
|
179
179
|
*
|
|
180
180
|
* @example
|
|
181
|
-
* import { lessThanOrEqualTo } from 'effect/
|
|
181
|
+
* import { lessThanOrEqualTo } from 'effect/BigInt'
|
|
182
182
|
*
|
|
183
183
|
* assert.deepStrictEqual(lessThanOrEqualTo(2n, 3n), true)
|
|
184
184
|
* assert.deepStrictEqual(lessThanOrEqualTo(3n, 3n), true)
|
|
@@ -196,7 +196,7 @@ const lessThanOrEqualTo = /*#__PURE__*/Order_dist_effectOrder.lessThanOrEqualTo(
|
|
|
196
196
|
* @param that - The second argument.
|
|
197
197
|
*
|
|
198
198
|
* @example
|
|
199
|
-
* import { greaterThan } from 'effect/
|
|
199
|
+
* import { greaterThan } from 'effect/BigInt'
|
|
200
200
|
*
|
|
201
201
|
* assert.deepStrictEqual(greaterThan(2n, 3n), false)
|
|
202
202
|
* assert.deepStrictEqual(greaterThan(3n, 3n), false)
|
|
@@ -214,7 +214,7 @@ const greaterThan = /*#__PURE__*/Order_dist_effectOrder.greaterThan(Order);
|
|
|
214
214
|
* @param that - The second `bigint` to compare with.
|
|
215
215
|
*
|
|
216
216
|
* @example
|
|
217
|
-
* import { greaterThanOrEqualTo } from 'effect/
|
|
217
|
+
* import { greaterThanOrEqualTo } from 'effect/BigInt'
|
|
218
218
|
*
|
|
219
219
|
* assert.deepStrictEqual(greaterThanOrEqualTo(2n, 3n), false)
|
|
220
220
|
* assert.deepStrictEqual(greaterThanOrEqualTo(3n, 3n), true)
|
|
@@ -233,7 +233,7 @@ const greaterThanOrEqualTo = /*#__PURE__*/Order_dist_effectOrder.greaterThanOrEq
|
|
|
233
233
|
* @param maximum - The `maximum` value to check.
|
|
234
234
|
*
|
|
235
235
|
* @example
|
|
236
|
-
* import { between } from 'effect/
|
|
236
|
+
* import { between } from 'effect/BigInt'
|
|
237
237
|
*
|
|
238
238
|
* assert.deepStrictEqual(between(0n, 5n)(3n), true)
|
|
239
239
|
* assert.deepStrictEqual(between(0n, 5n)(-1n), false)
|
|
@@ -256,7 +256,7 @@ const between = /*#__PURE__*/Order_dist_effectOrder.between(Order);
|
|
|
256
256
|
* @param maximum - The upper end of the range.
|
|
257
257
|
*
|
|
258
258
|
* @example
|
|
259
|
-
* import { clamp } from 'effect/
|
|
259
|
+
* import { clamp } from 'effect/BigInt'
|
|
260
260
|
*
|
|
261
261
|
* assert.deepStrictEqual(clamp(0n, 5n)(3n), 3n)
|
|
262
262
|
* assert.deepStrictEqual(clamp(0n, 5n)(-1n), 0n)
|
|
@@ -273,7 +273,7 @@ const clamp = /*#__PURE__*/Order_dist_effectOrder.clamp(Order);
|
|
|
273
273
|
* @param that - The second `bigint`.
|
|
274
274
|
*
|
|
275
275
|
* @example
|
|
276
|
-
* import { min } from 'effect/
|
|
276
|
+
* import { min } from 'effect/BigInt'
|
|
277
277
|
*
|
|
278
278
|
* assert.deepStrictEqual(min(2n, 3n), 2n)
|
|
279
279
|
*
|
|
@@ -288,7 +288,7 @@ const min = /*#__PURE__*/Order_dist_effectOrder.min(Order);
|
|
|
288
288
|
* @param that - The second `bigint`.
|
|
289
289
|
*
|
|
290
290
|
* @example
|
|
291
|
-
* import { max } from 'effect/
|
|
291
|
+
* import { max } from 'effect/BigInt'
|
|
292
292
|
*
|
|
293
293
|
* assert.deepStrictEqual(max(2n, 3n), 3n)
|
|
294
294
|
*
|
|
@@ -302,7 +302,7 @@ const max = /*#__PURE__*/Order_dist_effectOrder.max(Order);
|
|
|
302
302
|
* @param n - The `bigint` to determine the sign of.
|
|
303
303
|
*
|
|
304
304
|
* @example
|
|
305
|
-
* import { sign } from 'effect/
|
|
305
|
+
* import { sign } from 'effect/BigInt'
|
|
306
306
|
*
|
|
307
307
|
* assert.deepStrictEqual(sign(-5n), -1)
|
|
308
308
|
* assert.deepStrictEqual(sign(0n), 0)
|
|
@@ -319,7 +319,7 @@ const sign = n => Order(n, 0n);
|
|
|
319
319
|
* @param n - The `bigint` to determine the absolute value of.
|
|
320
320
|
*
|
|
321
321
|
* @example
|
|
322
|
-
* import { abs } from 'effect/
|
|
322
|
+
* import { abs } from 'effect/BigInt'
|
|
323
323
|
*
|
|
324
324
|
* assert.deepStrictEqual(abs(-5n), 5n)
|
|
325
325
|
* assert.deepStrictEqual(abs(0n), 0n)
|
|
@@ -337,7 +337,7 @@ const abs = n => n < 0n ? -n : n;
|
|
|
337
337
|
* @param b - The second `bigint`.
|
|
338
338
|
*
|
|
339
339
|
* @example
|
|
340
|
-
* import { gcd } from 'effect/
|
|
340
|
+
* import { gcd } from 'effect/BigInt'
|
|
341
341
|
*
|
|
342
342
|
* assert.deepStrictEqual(gcd(2n, 3n), 1n)
|
|
343
343
|
* assert.deepStrictEqual(gcd(2n, 4n), 2n)
|
|
@@ -362,7 +362,7 @@ const gcd = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => {
|
|
|
362
362
|
* @param b - The second `bigint`.
|
|
363
363
|
*
|
|
364
364
|
* @example
|
|
365
|
-
* import { lcm } from 'effect/
|
|
365
|
+
* import { lcm } from 'effect/BigInt'
|
|
366
366
|
*
|
|
367
367
|
* assert.deepStrictEqual(lcm(2n, 3n), 6n)
|
|
368
368
|
* assert.deepStrictEqual(lcm(2n, 4n), 4n)
|
|
@@ -379,7 +379,7 @@ const lcm = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => se
|
|
|
379
379
|
* @param n - The `bigint` to determine the square root of.
|
|
380
380
|
*
|
|
381
381
|
* @example
|
|
382
|
-
* import { unsafeSqrt } from 'effect/
|
|
382
|
+
* import { unsafeSqrt } from 'effect/BigInt'
|
|
383
383
|
*
|
|
384
384
|
* assert.deepStrictEqual(unsafeSqrt(4n), 2n)
|
|
385
385
|
* assert.deepStrictEqual(unsafeSqrt(9n), 3n)
|
|
@@ -408,7 +408,7 @@ const unsafeSqrt = n => {
|
|
|
408
408
|
* @param n - The `bigint` to determine the square root of.
|
|
409
409
|
*
|
|
410
410
|
* @example
|
|
411
|
-
* import { sqrt } from 'effect/
|
|
411
|
+
* import { sqrt } from 'effect/BigInt'
|
|
412
412
|
* import * as Option from 'effect/Option'
|
|
413
413
|
*
|
|
414
414
|
* assert.deepStrictEqual(sqrt(4n), Option.some(2n))
|
|
@@ -427,7 +427,7 @@ const sqrt = n => greaterThanOrEqualTo(n, 0n) ? Option_dist_effectOption.some(un
|
|
|
427
427
|
* @param collection - The collection of `bigint`s to sum.
|
|
428
428
|
*
|
|
429
429
|
* @example
|
|
430
|
-
* import { sumAll } from 'effect/
|
|
430
|
+
* import { sumAll } from 'effect/BigInt'
|
|
431
431
|
*
|
|
432
432
|
* assert.deepStrictEqual(sumAll([2n, 3n, 4n]), 9n)
|
|
433
433
|
*
|
|
@@ -448,7 +448,7 @@ const sumAll = collection => {
|
|
|
448
448
|
* @param collection - The collection of `bigint`s to multiply.
|
|
449
449
|
*
|
|
450
450
|
* @example
|
|
451
|
-
* import { multiplyAll } from 'effect/
|
|
451
|
+
* import { multiplyAll } from 'effect/BigInt'
|
|
452
452
|
*
|
|
453
453
|
* assert.deepStrictEqual(multiplyAll([2n, 3n, 4n]), 24n)
|
|
454
454
|
*
|
|
@@ -477,7 +477,7 @@ exports.gcd = gcd;
|
|
|
477
477
|
exports.greaterThan = greaterThan;
|
|
478
478
|
exports.greaterThanOrEqualTo = greaterThanOrEqualTo;
|
|
479
479
|
exports.increment = increment;
|
|
480
|
-
exports.
|
|
480
|
+
exports.isBigInt = isBigInt;
|
|
481
481
|
exports.lcm = lcm;
|
|
482
482
|
exports.lessThan = lessThan;
|
|
483
483
|
exports.lessThanOrEqualTo = lessThanOrEqualTo;
|