effect 2.0.0-next.50 → 2.0.0-next.51
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.d.mts +2 -0
- package/BigDecimal/dist/effect-BigDecimal.cjs.d.mts.map +1 -0
- package/BigDecimal/dist/effect-BigDecimal.cjs.d.ts +2 -0
- package/BigDecimal/dist/effect-BigDecimal.cjs.d.ts.map +1 -0
- package/BigDecimal/dist/effect-BigDecimal.cjs.dev.js +914 -0
- package/BigDecimal/dist/effect-BigDecimal.cjs.js +7 -0
- package/BigDecimal/dist/effect-BigDecimal.cjs.mjs +38 -0
- package/BigDecimal/dist/effect-BigDecimal.cjs.prod.js +914 -0
- package/BigDecimal/dist/effect-BigDecimal.esm.js +869 -0
- package/BigDecimal/package.json +4 -0
- package/Cache/dist/effect-Cache.cjs.dev.js +21 -21
- package/Cache/dist/effect-Cache.cjs.prod.js +21 -21
- package/Cause/dist/effect-Cause.cjs.dev.js +4 -4
- package/Cause/dist/effect-Cause.cjs.prod.js +4 -4
- package/Channel/dist/effect-Channel.cjs.dev.js +33 -33
- package/Channel/dist/effect-Channel.cjs.prod.js +33 -33
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +28 -28
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +28 -28
- package/Chunk/dist/effect-Chunk.cjs.dev.js +2 -7
- package/Chunk/dist/effect-Chunk.cjs.mjs +0 -1
- package/Chunk/dist/effect-Chunk.cjs.prod.js +2 -7
- package/Chunk/dist/effect-Chunk.esm.js +3 -7
- package/Clock/dist/effect-Clock.cjs.dev.js +10 -10
- package/Clock/dist/effect-Clock.cjs.prod.js +10 -10
- package/Config/dist/effect-Config.cjs.dev.js +7 -7
- package/Config/dist/effect-Config.cjs.prod.js +7 -7
- package/ConfigError/dist/effect-ConfigError.cjs.dev.js +1 -1
- package/ConfigError/dist/effect-ConfigError.cjs.prod.js +1 -1
- package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +9 -9
- package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +9 -9
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +2 -2
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +2 -2
- package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +1 -1
- package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +1 -1
- package/Console/dist/effect-Console.cjs.dev.js +25 -25
- package/Console/dist/effect-Console.cjs.prod.js +25 -25
- package/Data/dist/effect-Data.cjs.dev.js +148 -58
- package/Data/dist/effect-Data.cjs.prod.js +148 -58
- package/Data/dist/effect-Data.esm.js +121 -31
- package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +10 -10
- package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +10 -10
- package/Deferred/dist/effect-Deferred.cjs.dev.js +4 -4
- package/Deferred/dist/effect-Deferred.cjs.prod.js +4 -4
- package/Differ/dist/effect-Differ.cjs.dev.js +1 -1
- package/Differ/dist/effect-Differ.cjs.prod.js +1 -1
- package/Effect/dist/effect-Effect.cjs.dev.js +27 -27
- package/Effect/dist/effect-Effect.cjs.prod.js +27 -27
- package/Exit/dist/effect-Exit.cjs.dev.js +4 -4
- package/Exit/dist/effect-Exit.cjs.prod.js +4 -4
- package/Fiber/dist/effect-Fiber.cjs.dev.js +22 -22
- package/Fiber/dist/effect-Fiber.cjs.prod.js +22 -22
- package/FiberId/dist/effect-FiberId.cjs.dev.js +2 -2
- package/FiberId/dist/effect-FiberId.cjs.prod.js +2 -2
- package/FiberRef/dist/effect-FiberRef.cjs.dev.js +22 -22
- package/FiberRef/dist/effect-FiberRef.cjs.prod.js +22 -22
- package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +5 -5
- package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +5 -5
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +6 -6
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +6 -6
- package/GroupBy/dist/effect-GroupBy.cjs.dev.js +34 -34
- package/GroupBy/dist/effect-GroupBy.cjs.prod.js +34 -34
- package/HashMap/dist/effect-HashMap.cjs.dev.js +1 -1
- package/HashMap/dist/effect-HashMap.cjs.prod.js +1 -1
- package/HashSet/dist/effect-HashSet.cjs.dev.js +1 -1
- package/HashSet/dist/effect-HashSet.cjs.prod.js +1 -1
- package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +22 -22
- package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +22 -22
- package/Layer/dist/effect-Layer.cjs.dev.js +28 -28
- package/Layer/dist/effect-Layer.cjs.prod.js +28 -28
- package/List/dist/effect-List.cjs.dev.js +4 -7
- package/List/dist/effect-List.cjs.mjs +0 -1
- package/List/dist/effect-List.cjs.prod.js +4 -7
- package/List/dist/effect-List.esm.js +5 -7
- package/LogLevel/dist/effect-LogLevel.cjs.dev.js +4 -4
- package/LogLevel/dist/effect-LogLevel.cjs.prod.js +4 -4
- package/Logger/dist/effect-Logger.cjs.dev.js +26 -26
- package/Logger/dist/effect-Logger.cjs.prod.js +26 -26
- package/Match/dist/effect-Match.cjs.dev.js +1 -1
- package/Match/dist/effect-Match.cjs.prod.js +1 -1
- package/Match/dist/effect-Match.esm.js +1 -1
- package/Metric/dist/effect-Metric.cjs.dev.js +20 -20
- package/Metric/dist/effect-Metric.cjs.prod.js +20 -20
- package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +1 -1
- package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +1 -1
- package/MetricHook/dist/effect-MetricHook.cjs.dev.js +2 -2
- package/MetricHook/dist/effect-MetricHook.cjs.prod.js +2 -2
- package/MetricKey/dist/effect-MetricKey.cjs.dev.js +2 -2
- package/MetricKey/dist/effect-MetricKey.cjs.prod.js +2 -2
- package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +22 -22
- package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +22 -22
- package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +3 -3
- package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +3 -3
- package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +1 -1
- package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +1 -1
- package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +1 -1
- package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +1 -1
- package/Pool/dist/effect-Pool.cjs.dev.js +22 -22
- package/Pool/dist/effect-Pool.cjs.prod.js +22 -22
- package/PubSub/dist/effect-PubSub.cjs.dev.js +21 -21
- package/PubSub/dist/effect-PubSub.cjs.prod.js +21 -21
- package/Queue/dist/effect-Queue.cjs.dev.js +21 -21
- package/Queue/dist/effect-Queue.cjs.prod.js +21 -21
- package/Random/dist/effect-Random.cjs.dev.js +10 -10
- package/Random/dist/effect-Random.cjs.prod.js +10 -10
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +1 -4
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.mjs +0 -1
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +1 -4
- package/ReadonlyArray/dist/effect-ReadonlyArray.esm.js +2 -4
- package/Ref/dist/effect-Ref.cjs.dev.js +5 -5
- package/Ref/dist/effect-Ref.cjs.prod.js +5 -5
- package/Reloadable/dist/effect-Reloadable.cjs.dev.js +26 -26
- package/Reloadable/dist/effect-Reloadable.cjs.prod.js +26 -26
- package/Request/dist/effect-Request.cjs.dev.js +21 -21
- package/Request/dist/effect-Request.cjs.prod.js +21 -21
- package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +28 -28
- package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +28 -28
- package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +28 -28
- package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +28 -28
- package/Resource/dist/effect-Resource.cjs.dev.js +24 -24
- package/Resource/dist/effect-Resource.cjs.prod.js +24 -24
- package/Runtime/dist/effect-Runtime.cjs.dev.js +23 -23
- package/Runtime/dist/effect-Runtime.cjs.prod.js +23 -23
- package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +26 -26
- package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +26 -26
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +2 -2
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +2 -2
- package/STM/dist/effect-STM.cjs.dev.js +36 -36
- package/STM/dist/effect-STM.cjs.prod.js +36 -36
- package/Schedule/dist/effect-Schedule.cjs.dev.js +15 -15
- package/Schedule/dist/effect-Schedule.cjs.prod.js +15 -15
- package/Scheduler/dist/effect-Scheduler.cjs.dev.js +4 -4
- package/Scheduler/dist/effect-Scheduler.cjs.prod.js +4 -4
- package/Scope/dist/effect-Scope.cjs.dev.js +20 -20
- package/Scope/dist/effect-Scope.cjs.prod.js +20 -20
- package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +27 -27
- package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +27 -27
- package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +24 -24
- package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +24 -24
- package/Sink/dist/effect-Sink.cjs.dev.js +31 -31
- package/Sink/dist/effect-Sink.cjs.prod.js +31 -31
- package/Stream/dist/effect-Stream.cjs.dev.js +34 -34
- package/Stream/dist/effect-Stream.cjs.prod.js +34 -34
- package/Streamable/dist/effect-Streamable.cjs.dev.js +34 -34
- package/Streamable/dist/effect-Streamable.cjs.prod.js +34 -34
- package/Struct/dist/effect-Struct.cjs.dev.js +0 -1
- package/Struct/dist/effect-Struct.cjs.prod.js +0 -1
- package/Struct/dist/effect-Struct.esm.js +0 -1
- package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +33 -33
- package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +33 -33
- package/Supervisor/dist/effect-Supervisor.cjs.dev.js +26 -26
- package/Supervisor/dist/effect-Supervisor.cjs.prod.js +26 -26
- package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +23 -23
- package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +23 -23
- package/TArray/dist/effect-TArray.cjs.dev.js +38 -38
- package/TArray/dist/effect-TArray.cjs.prod.js +38 -38
- package/TDeferred/dist/effect-TDeferred.cjs.dev.js +37 -37
- package/TDeferred/dist/effect-TDeferred.cjs.prod.js +37 -37
- package/TMap/dist/effect-TMap.cjs.dev.js +39 -39
- package/TMap/dist/effect-TMap.cjs.prod.js +39 -39
- package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +36 -36
- package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +36 -36
- package/TPubSub/dist/effect-TPubSub.cjs.dev.js +38 -38
- package/TPubSub/dist/effect-TPubSub.cjs.prod.js +38 -38
- package/TQueue/dist/effect-TQueue.cjs.dev.js +38 -38
- package/TQueue/dist/effect-TQueue.cjs.prod.js +38 -38
- package/TRandom/dist/effect-TRandom.cjs.dev.js +38 -38
- package/TRandom/dist/effect-TRandom.cjs.prod.js +38 -38
- package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +36 -36
- package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +36 -36
- package/TRef/dist/effect-TRef.cjs.dev.js +36 -36
- package/TRef/dist/effect-TRef.cjs.prod.js +36 -36
- package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +37 -37
- package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +37 -37
- package/TSet/dist/effect-TSet.cjs.dev.js +39 -39
- package/TSet/dist/effect-TSet.cjs.prod.js +39 -39
- package/Take/dist/effect-Take.cjs.dev.js +28 -28
- package/Take/dist/effect-Take.cjs.prod.js +28 -28
- package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +1 -1
- package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +1 -1
- package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +15 -15
- package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +15 -15
- package/TestClock/dist/effect-TestClock.cjs.dev.js +25 -25
- package/TestClock/dist/effect-TestClock.cjs.prod.js +25 -25
- package/TestContext/dist/effect-TestContext.cjs.dev.js +27 -27
- package/TestContext/dist/effect-TestContext.cjs.prod.js +27 -27
- package/TestLive/dist/effect-TestLive.cjs.dev.js +10 -10
- package/TestLive/dist/effect-TestLive.cjs.prod.js +10 -10
- package/TestServices/dist/effect-TestServices.cjs.dev.js +27 -27
- package/TestServices/dist/effect-TestServices.cjs.prod.js +27 -27
- package/TestSized/dist/effect-TestSized.cjs.dev.js +4 -4
- package/TestSized/dist/effect-TestSized.cjs.prod.js +4 -4
- package/Tracer/dist/effect-Tracer.cjs.dev.js +10 -10
- package/Tracer/dist/effect-Tracer.cjs.prod.js +10 -10
- package/dist/{HashSet-251c8294.cjs.prod.js → HashSet-09ade044.cjs.prod.js} +1 -1
- package/dist/{HashSet-c12c037b.cjs.dev.js → HashSet-e9659fd4.cjs.dev.js} +1 -1
- package/dist/{Ref-00103de4.cjs.prod.js → Ref-50f14c13.cjs.prod.js} +1 -1
- package/dist/{Ref-f990026b.cjs.dev.js → Ref-d3a3826b.cjs.dev.js} +1 -1
- package/dist/{cache-d709d5cb.cjs.dev.js → cache-2a5d8381.cjs.dev.js} +4 -4
- package/dist/{cache-0b148e42.cjs.prod.js → cache-8f0c08cb.cjs.prod.js} +4 -4
- package/dist/{circular-6d2bb353.cjs.dev.js → circular-2effda94.cjs.dev.js} +4 -4
- package/dist/{circular-aa705e70.cjs.dev.js → circular-39e86dc8.cjs.dev.js} +7 -7
- package/dist/{circular-5b6f6504.cjs.prod.js → circular-4f03acf3.cjs.prod.js} +4 -4
- package/dist/{circular-952618e5.cjs.prod.js → circular-acb40239.cjs.prod.js} +7 -7
- package/dist/{config-f0bd27af.cjs.prod.js → config-00e6170c.cjs.prod.js} +3 -3
- package/dist/{config-8a7bf1ae.cjs.dev.js → config-beaa306c.cjs.dev.js} +3 -3
- package/dist/{configProvider-ae007b10.cjs.prod.js → configProvider-290d13e7.cjs.prod.js} +4 -4
- package/dist/{configProvider-3d85d4ef.cjs.dev.js → configProvider-aef50f41.cjs.dev.js} +4 -4
- package/dist/{core-d3f4e713.cjs.prod.js → core-279496f0.cjs.prod.js} +2 -2
- package/dist/{core-473934ce.cjs.prod.js → core-35439f06.cjs.prod.js} +2 -2
- package/dist/{core-dd1edd7a.cjs.dev.js → core-7445bfd4.cjs.dev.js} +2 -2
- package/dist/{core-b4bf44d3.cjs.dev.js → core-a0828fef.cjs.dev.js} +2 -2
- package/dist/{core-effect-f4b1aad8.cjs.dev.js → core-effect-02a7f1d7.cjs.dev.js} +6 -6
- package/dist/{core-effect-6666f2dc.cjs.prod.js → core-effect-460f968a.cjs.prod.js} +6 -6
- package/dist/{dataSource-d5d7f338.cjs.prod.js → dataSource-94fb44f9.cjs.prod.js} +2 -2
- package/dist/{dataSource-9f78e828.cjs.dev.js → dataSource-da4a602c.cjs.dev.js} +2 -2
- package/dist/declarations/src/BigDecimal.d.ts +622 -0
- package/dist/declarations/src/BigDecimal.d.ts.map +1 -0
- package/dist/declarations/src/Chunk.d.ts +14 -11
- package/dist/declarations/src/Chunk.d.ts.map +1 -1
- package/dist/declarations/src/Data.d.ts +192 -45
- package/dist/declarations/src/Data.d.ts.map +1 -1
- package/dist/declarations/src/List.d.ts +15 -10
- package/dist/declarations/src/List.d.ts.map +1 -1
- package/dist/declarations/src/Match.d.ts.map +1 -1
- package/dist/declarations/src/ReadonlyArray.d.ts +13 -8
- package/dist/declarations/src/ReadonlyArray.d.ts.map +1 -1
- package/dist/declarations/src/Struct.d.ts +3 -2
- package/dist/declarations/src/Struct.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +16 -0
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/{defaultServices-8ea5e664.cjs.prod.js → defaultServices-61911fd4.cjs.prod.js} +2 -2
- package/dist/{defaultServices-6a9a2d2b.cjs.dev.js → defaultServices-f3f93337.cjs.dev.js} +2 -2
- package/dist/effect.cjs.dev.js +3 -0
- package/dist/effect.cjs.mjs +1 -0
- package/dist/effect.cjs.prod.js +3 -0
- package/dist/effect.esm.js +2 -0
- package/dist/{fiber-3d944398.cjs.dev.js → fiber-cac583ce.cjs.dev.js} +3 -3
- package/dist/{fiber-cbd0613f.cjs.prod.js → fiber-f67dca7d.cjs.prod.js} +3 -3
- package/dist/{fiberRefs-99808a27.cjs.prod.js → fiberRefs-59b59378.cjs.prod.js} +1 -1
- package/dist/{fiberRefs-ccc37f30.cjs.dev.js → fiberRefs-6bd9745e.cjs.dev.js} +1 -1
- package/dist/{fiberRuntime-f1e80ca7.cjs.prod.js → fiberRuntime-26f406c3.cjs.prod.js} +27 -23
- package/dist/{fiberRuntime-0c1e7478.cjs.dev.js → fiberRuntime-976a3e6f.cjs.dev.js} +27 -23
- package/dist/{groupBy-8ae74e3b.cjs.dev.js → groupBy-7fc93bc9.cjs.dev.js} +4 -4
- package/dist/{groupBy-30f6e9ba.cjs.prod.js → groupBy-8977b420.cjs.prod.js} +4 -4
- package/dist/{layer-bfb9802a.cjs.prod.js → layer-abbc91aa.cjs.prod.js} +8 -8
- package/dist/{layer-c284cf0d.cjs.dev.js → layer-c197624f.cjs.dev.js} +8 -8
- package/dist/{patch-cda9b6c8.cjs.dev.js → patch-2d425849.cjs.dev.js} +1 -1
- package/dist/{patch-256bc574.cjs.prod.js → patch-b7689042.cjs.prod.js} +1 -1
- package/dist/{pathPatch-31ce8101.cjs.dev.js → pathPatch-18fa425e.cjs.dev.js} +1 -1
- package/dist/{pathPatch-40b92af6.cjs.prod.js → pathPatch-b6020485.cjs.prod.js} +1 -1
- package/dist/{pool-f6ca2038.cjs.dev.js → pool-810c2214.cjs.dev.js} +5 -5
- package/dist/{pool-122f0fad.cjs.prod.js → pool-868dfa39.cjs.prod.js} +5 -5
- package/dist/{query-5cc0ddf8.cjs.prod.js → query-927b504e.cjs.prod.js} +5 -5
- package/dist/{query-7bffa3c3.cjs.dev.js → query-c6684e39.cjs.dev.js} +5 -5
- package/dist/{queue-e326fd89.cjs.prod.js → queue-062806c7.cjs.prod.js} +2 -2
- package/dist/{queue-4166cfdb.cjs.dev.js → queue-a0fc274d.cjs.dev.js} +2 -2
- package/dist/{registry-081e18a3.cjs.prod.js → registry-9268ec7c.cjs.prod.js} +1 -1
- package/dist/{registry-377855a9.cjs.dev.js → registry-e5ad2d74.cjs.dev.js} +1 -1
- package/dist/{runtime-d4514ab5.cjs.dev.js → runtime-340bd70b.cjs.dev.js} +5 -5
- package/dist/{runtime-4078f059.cjs.prod.js → runtime-ce0ad0ed.cjs.prod.js} +5 -5
- package/dist/{schedule-f036b254.cjs.prod.js → schedule-04b40c50.cjs.prod.js} +3 -3
- package/dist/{schedule-31e38871.cjs.dev.js → schedule-74c6207a.cjs.dev.js} +3 -3
- package/dist/{scopedRef-5ecf6468.cjs.dev.js → scopedRef-4f0dd122.cjs.dev.js} +6 -6
- package/dist/{scopedRef-8ce21228.cjs.prod.js → scopedRef-d429ec83.cjs.prod.js} +6 -6
- package/dist/{singleProducerAsyncInput-8879d87c.cjs.prod.js → singleProducerAsyncInput-06a9076a.cjs.prod.js} +1 -1
- package/dist/{singleProducerAsyncInput-ece7387b.cjs.dev.js → singleProducerAsyncInput-72c05452.cjs.dev.js} +1 -1
- package/dist/{sink-1794329b.cjs.dev.js → sink-301d2bb4.cjs.dev.js} +3 -3
- package/dist/{sink-9208df8d.cjs.prod.js → sink-46df55d3.cjs.prod.js} +3 -3
- package/dist/{stm-b080be31.cjs.dev.js → stm-0b50e3c1.cjs.dev.js} +3 -3
- package/dist/{stm-6ad7b384.cjs.prod.js → stm-c0489b43.cjs.prod.js} +3 -3
- package/dist/{stream-e19805ca.cjs.prod.js → stream-0c3160ef.cjs.prod.js} +4 -4
- package/dist/{stream-09aeeac3.cjs.dev.js → stream-44cdd7cb.cjs.dev.js} +4 -4
- package/dist/{synchronizedRef-cc04ecbd.cjs.prod.js → synchronizedRef-2f71b820.cjs.prod.js} +1 -1
- package/dist/{synchronizedRef-8fa16866.cjs.dev.js → synchronizedRef-78797507.cjs.dev.js} +1 -1
- package/dist/{tArray-5e42c290.cjs.prod.js → tArray-006f45b0.cjs.prod.js} +3 -3
- package/dist/{tArray-7d470ed7.cjs.dev.js → tArray-556355cd.cjs.dev.js} +3 -3
- package/dist/{tMap-f0df0ea0.cjs.dev.js → tMap-52d00ffb.cjs.dev.js} +4 -4
- package/dist/{tMap-a2cfde88.cjs.prod.js → tMap-9680b82b.cjs.prod.js} +4 -4
- package/dist/{tQueue-b80e940e.cjs.prod.js → tQueue-51cf109e.cjs.prod.js} +3 -3
- package/dist/{tQueue-085f70b5.cjs.dev.js → tQueue-ca56a2a8.cjs.dev.js} +3 -3
- package/dist/{tRef-42a212cb.cjs.prod.js → tRef-4a2a9689.cjs.prod.js} +1 -1
- package/dist/{tRef-2e495254.cjs.dev.js → tRef-b98e2e2a.cjs.dev.js} +1 -1
- package/internal/HashMap/node.esm.js +1 -1
- package/internal/fiberRuntime.esm.js +9 -8
- package/internal/query.esm.js +2 -2
- package/internal/supervisor/patch.esm.js +3 -3
- package/internal/supervisor.esm.js +5 -1
- package/package.json +10 -5
- package/src/BigDecimal.ts +977 -0
- package/src/Chunk.ts +17 -13
- package/src/Data.ts +219 -92
- package/src/List.ts +17 -11
- package/src/Match.ts +2 -2
- package/src/ReadonlyArray.ts +18 -9
- package/src/Struct.ts +3 -2
- package/src/index.ts +17 -0
- package/src/internal/HashMap/node.ts +1 -1
- package/src/internal/fiberRuntime.ts +56 -45
- package/src/internal/query.ts +12 -8
- package/src/internal/supervisor/patch.ts +2 -2
- package/src/internal/supervisor.ts +5 -0
- package/src/tsconfig.json +0 -1
- /package/dist/{FiberId-0f0b7779.cjs.prod.js → FiberId-88cc0067.cjs.prod.js} +0 -0
- /package/dist/{FiberId-6595cf4c.cjs.dev.js → FiberId-f329d0e3.cjs.dev.js} +0 -0
- /package/dist/{RuntimeFlagsPatch-7d62915d.cjs.dev.js → RuntimeFlagsPatch-063c5864.cjs.dev.js} +0 -0
- /package/dist/{RuntimeFlagsPatch-3890e860.cjs.prod.js → RuntimeFlagsPatch-233ac7d7.cjs.prod.js} +0 -0
- /package/dist/{boundaries-ebe66d32.cjs.prod.js → boundaries-0e5ddf7b.cjs.prod.js} +0 -0
- /package/dist/{boundaries-8dfe50cb.cjs.dev.js → boundaries-ce70e4e4.cjs.dev.js} +0 -0
- /package/dist/{configError-9021016b.cjs.prod.js → configError-72f57cd6.cjs.prod.js} +0 -0
- /package/dist/{configError-0c09b93c.cjs.dev.js → configError-834bedc1.cjs.dev.js} +0 -0
- /package/dist/{configSecret-0bdfadd8.cjs.prod.js → configSecret-80d3e36b.cjs.prod.js} +0 -0
- /package/dist/{configSecret-938818ad.cjs.dev.js → configSecret-abf643d8.cjs.dev.js} +0 -0
- /package/dist/{hook-ad5af092.cjs.dev.js → hook-13f4db1e.cjs.dev.js} +0 -0
- /package/dist/{hook-cab99f9e.cjs.prod.js → hook-8a020c3f.cjs.prod.js} +0 -0
- /package/dist/{key-9c7368c8.cjs.prod.js → key-2cf383a2.cjs.prod.js} +0 -0
- /package/dist/{key-e3189bbd.cjs.dev.js → key-4b5f6a7d.cjs.dev.js} +0 -0
- /package/dist/{take-114476e5.cjs.prod.js → take-07165139.cjs.prod.js} +0 -0
- /package/dist/{take-d4fa1beb.cjs.dev.js → take-689a29d5.cjs.dev.js} +0 -0
|
@@ -6,7 +6,7 @@ var Effect_dist_effectEffect = require('../../Effect/dist/effect-Effect.cjs.prod
|
|
|
6
6
|
var Effectable_dist_effectEffectable = require('../../Effectable/dist/effect-Effectable.cjs.prod.js');
|
|
7
7
|
var Effectable = require('../../dist/Effectable-6a8a05f1.cjs.prod.js');
|
|
8
8
|
require('../../Function/dist/effect-Function.cjs.prod.js');
|
|
9
|
-
require('../../dist/core-
|
|
9
|
+
require('../../dist/core-35439f06.cjs.prod.js');
|
|
10
10
|
require('../../Chunk/dist/effect-Chunk.cjs.prod.js');
|
|
11
11
|
require('../../Equal/dist/effect-Equal.cjs.prod.js');
|
|
12
12
|
require('../../Hash/dist/effect-Hash.cjs.prod.js');
|
|
@@ -28,66 +28,66 @@ require('../../Context/dist/effect-Context.cjs.prod.js');
|
|
|
28
28
|
require('../../dist/Context-c91d8ca0.cjs.prod.js');
|
|
29
29
|
require('../../Differ/dist/effect-Differ.cjs.prod.js');
|
|
30
30
|
require('../../HashMap/dist/effect-HashMap.cjs.prod.js');
|
|
31
|
-
require('../../dist/HashSet-
|
|
31
|
+
require('../../dist/HashSet-09ade044.cjs.prod.js');
|
|
32
32
|
require('../../dist/Stack-fc8f9fe5.cjs.prod.js');
|
|
33
33
|
require('../../HashSet/dist/effect-HashSet.cjs.prod.js');
|
|
34
|
-
require('../../dist/FiberId-
|
|
34
|
+
require('../../dist/FiberId-88cc0067.cjs.prod.js');
|
|
35
35
|
require('../../MutableRef/dist/effect-MutableRef.cjs.prod.js');
|
|
36
36
|
require('../../List/dist/effect-List.cjs.prod.js');
|
|
37
|
-
require('../../dist/RuntimeFlagsPatch-
|
|
38
|
-
require('../../dist/core-effect-
|
|
37
|
+
require('../../dist/RuntimeFlagsPatch-233ac7d7.cjs.prod.js');
|
|
38
|
+
require('../../dist/core-effect-460f968a.cjs.prod.js');
|
|
39
39
|
require('../../Clock/dist/effect-Clock.cjs.prod.js');
|
|
40
|
-
require('../../dist/defaultServices-
|
|
40
|
+
require('../../dist/defaultServices-61911fd4.cjs.prod.js');
|
|
41
41
|
require('../../Duration/dist/effect-Duration.cjs.prod.js');
|
|
42
42
|
require('../../dist/timeout-489f3f86.cjs.prod.js');
|
|
43
|
-
require('../../dist/configProvider-
|
|
44
|
-
require('../../dist/config-
|
|
43
|
+
require('../../dist/configProvider-290d13e7.cjs.prod.js');
|
|
44
|
+
require('../../dist/config-00e6170c.cjs.prod.js');
|
|
45
45
|
require('../../ConfigError/dist/effect-ConfigError.cjs.prod.js');
|
|
46
|
-
require('../../dist/configError-
|
|
47
|
-
require('../../dist/configSecret-
|
|
48
|
-
require('../../dist/pathPatch-
|
|
46
|
+
require('../../dist/configError-72f57cd6.cjs.prod.js');
|
|
47
|
+
require('../../dist/configSecret-80d3e36b.cjs.prod.js');
|
|
48
|
+
require('../../dist/pathPatch-b6020485.cjs.prod.js');
|
|
49
49
|
require('../../Number/dist/effect-Number.cjs.prod.js');
|
|
50
50
|
require('../../FiberRefs/dist/effect-FiberRefs.cjs.prod.js');
|
|
51
|
-
require('../../dist/fiberRefs-
|
|
52
|
-
require('../../dist/patch-
|
|
51
|
+
require('../../dist/fiberRefs-59b59378.cjs.prod.js');
|
|
52
|
+
require('../../dist/patch-b7689042.cjs.prod.js');
|
|
53
53
|
require('../../dist/label-a588e6cd.cjs.prod.js');
|
|
54
54
|
require('../../LogLevel/dist/effect-LogLevel.cjs.prod.js');
|
|
55
55
|
require('../../LogSpan/dist/effect-LogSpan.cjs.prod.js');
|
|
56
|
-
require('../../dist/Ref-
|
|
56
|
+
require('../../dist/Ref-50f14c13.cjs.prod.js');
|
|
57
57
|
require('../../Tracer/dist/effect-Tracer.cjs.prod.js');
|
|
58
|
-
require('../../dist/circular-
|
|
58
|
+
require('../../dist/circular-acb40239.cjs.prod.js');
|
|
59
59
|
require('../../Exit/dist/effect-Exit.cjs.prod.js');
|
|
60
60
|
require('../../dist/ExecutionStrategy-4808fe5d.cjs.prod.js');
|
|
61
|
-
require('../../dist/fiber-
|
|
61
|
+
require('../../dist/fiber-f67dca7d.cjs.prod.js');
|
|
62
62
|
require('../../FiberStatus/dist/effect-FiberStatus.cjs.prod.js');
|
|
63
|
-
require('../../dist/fiberRuntime-
|
|
63
|
+
require('../../dist/fiberRuntime-26f406c3.cjs.prod.js');
|
|
64
64
|
require('../../Boolean/dist/effect-Boolean.cjs.prod.js');
|
|
65
65
|
require('../../Deferred/dist/effect-Deferred.cjs.prod.js');
|
|
66
66
|
require('../../FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js');
|
|
67
|
-
require('../../dist/boundaries-
|
|
68
|
-
require('../../dist/key-
|
|
67
|
+
require('../../dist/boundaries-0e5ddf7b.cjs.prod.js');
|
|
68
|
+
require('../../dist/key-2cf383a2.cjs.prod.js');
|
|
69
69
|
require('../../dist/keyType-2ae6a00e.cjs.prod.js');
|
|
70
|
-
require('../../dist/registry-
|
|
71
|
-
require('../../dist/hook-
|
|
70
|
+
require('../../dist/registry-9268ec7c.cjs.prod.js');
|
|
71
|
+
require('../../dist/hook-8a020c3f.cjs.prod.js');
|
|
72
72
|
require('../../dist/state-40d5dc71.cjs.prod.js');
|
|
73
73
|
require('../../dist/pair-6254cf85.cjs.prod.js');
|
|
74
74
|
require('../../MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js');
|
|
75
75
|
require('../../SortedSet/dist/effect-SortedSet.cjs.prod.js');
|
|
76
76
|
require('../../RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js');
|
|
77
77
|
require('../../Scheduler/dist/effect-Scheduler.cjs.prod.js');
|
|
78
|
-
require('../../dist/schedule-
|
|
78
|
+
require('../../dist/schedule-04b40c50.cjs.prod.js');
|
|
79
79
|
require('../../Random/dist/effect-Random.cjs.prod.js');
|
|
80
80
|
require('../../ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js');
|
|
81
81
|
require('../../ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js');
|
|
82
82
|
require('../../ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js');
|
|
83
|
-
require('../../dist/layer-
|
|
83
|
+
require('../../dist/layer-abbc91aa.cjs.prod.js');
|
|
84
84
|
require('../../Cause/dist/effect-Cause.cjs.prod.js');
|
|
85
|
-
require('../../dist/runtime-
|
|
85
|
+
require('../../dist/runtime-ce0ad0ed.cjs.prod.js');
|
|
86
86
|
require('../../Fiber/dist/effect-Fiber.cjs.prod.js');
|
|
87
|
-
require('../../dist/synchronizedRef-
|
|
87
|
+
require('../../dist/synchronizedRef-2f71b820.cjs.prod.js');
|
|
88
88
|
require('../../Scope/dist/effect-Scope.cjs.prod.js');
|
|
89
|
-
require('../../dist/query-
|
|
90
|
-
require('../../dist/cache-
|
|
89
|
+
require('../../dist/query-927b504e.cjs.prod.js');
|
|
90
|
+
require('../../dist/cache-8f0c08cb.cjs.prod.js');
|
|
91
91
|
require('../../MutableQueue/dist/effect-MutableQueue.cjs.prod.js');
|
|
92
92
|
require('../../MutableList/dist/effect-MutableList.cjs.prod.js');
|
|
93
93
|
|
|
@@ -114,6 +114,20 @@ require('../../MutableList/dist/effect-MutableList.cjs.prod.js');
|
|
|
114
114
|
*/
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
|
+
* @example
|
|
118
|
+
* import * as Data from "effect/Data"
|
|
119
|
+
* import * as Equal from "effect/Equal"
|
|
120
|
+
*
|
|
121
|
+
* const alice = Data.struct({ name: "Alice", age: 30 })
|
|
122
|
+
*
|
|
123
|
+
* const bob = Data.struct({ name: "Bob", age: 40 })
|
|
124
|
+
*
|
|
125
|
+
* assert.deepStrictEqual(Equal.equals(alice, alice), true)
|
|
126
|
+
* assert.deepStrictEqual(Equal.equals(alice, Data.struct({ name: "Alice", age: 30 })), true)
|
|
127
|
+
*
|
|
128
|
+
* assert.deepStrictEqual(Equal.equals(alice, { name: "Alice", age: 30 }), false)
|
|
129
|
+
* assert.deepStrictEqual(Equal.equals(alice, bob), false)
|
|
130
|
+
*
|
|
117
131
|
* @category constructors
|
|
118
132
|
* @since 2.0.0
|
|
119
133
|
*/
|
|
@@ -126,12 +140,46 @@ const struct = Effectable.struct;
|
|
|
126
140
|
const unsafeStruct = as => Object.setPrototypeOf(as, Effectable.StructProto);
|
|
127
141
|
|
|
128
142
|
/**
|
|
143
|
+
* @example
|
|
144
|
+
* import * as Data from "effect/Data"
|
|
145
|
+
* import * as Equal from "effect/Equal"
|
|
146
|
+
*
|
|
147
|
+
* const alice = Data.tuple("Alice", 30)
|
|
148
|
+
*
|
|
149
|
+
* const bob = Data.tuple("Bob", 40)
|
|
150
|
+
*
|
|
151
|
+
* assert.deepStrictEqual(Equal.equals(alice, alice), true)
|
|
152
|
+
* assert.deepStrictEqual(Equal.equals(alice, Data.tuple("Alice", 30)), true)
|
|
153
|
+
*
|
|
154
|
+
* assert.deepStrictEqual(Equal.equals(alice, ["Alice", 30]), false)
|
|
155
|
+
* assert.deepStrictEqual(Equal.equals(alice, bob), false)
|
|
156
|
+
*
|
|
129
157
|
* @category constructors
|
|
130
158
|
* @since 2.0.0
|
|
131
159
|
*/
|
|
132
160
|
const tuple = (...as) => unsafeArray(as);
|
|
133
161
|
|
|
134
162
|
/**
|
|
163
|
+
* @example
|
|
164
|
+
* import * as Data from "effect/Data"
|
|
165
|
+
* import * as Equal from "effect/Equal"
|
|
166
|
+
*
|
|
167
|
+
* const alice = Data.struct({ name: "Alice", age: 30 })
|
|
168
|
+
* const bob = Data.struct({ name: "Bob", age: 40 })
|
|
169
|
+
*
|
|
170
|
+
* const persons = Data.array([alice, bob])
|
|
171
|
+
*
|
|
172
|
+
* assert.deepStrictEqual(
|
|
173
|
+
* Equal.equals(
|
|
174
|
+
* persons,
|
|
175
|
+
* Data.array([
|
|
176
|
+
* Data.struct({ name: "Alice", age: 30 }),
|
|
177
|
+
* Data.struct({ name: "Bob", age: 40 })
|
|
178
|
+
* ])
|
|
179
|
+
* ),
|
|
180
|
+
* true
|
|
181
|
+
* )
|
|
182
|
+
*
|
|
135
183
|
* @category constructors
|
|
136
184
|
* @since 2.0.0
|
|
137
185
|
*/
|
|
@@ -147,6 +195,20 @@ const _case = () => args => args === undefined ? Object.create(Effectable.Struct
|
|
|
147
195
|
/**
|
|
148
196
|
* Provides a tagged constructor for the specified `Case`.
|
|
149
197
|
*
|
|
198
|
+
* @example
|
|
199
|
+
* import * as Data from "effect/Data"
|
|
200
|
+
*
|
|
201
|
+
* interface Person extends Data.Case {
|
|
202
|
+
* readonly _tag: "Person" // the tag
|
|
203
|
+
* readonly name: string
|
|
204
|
+
* }
|
|
205
|
+
*
|
|
206
|
+
* const Person = Data.tagged<Person>("Person")
|
|
207
|
+
*
|
|
208
|
+
* const mike = Person({ name: "Mike" })
|
|
209
|
+
*
|
|
210
|
+
* assert.deepEqual(mike, { _tag: "Person", name: "Mike" })
|
|
211
|
+
*
|
|
150
212
|
* @since 2.0.0
|
|
151
213
|
* @category constructors
|
|
152
214
|
*/
|
|
@@ -156,9 +218,49 @@ const tagged = tag => args => {
|
|
|
156
218
|
return value;
|
|
157
219
|
};
|
|
158
220
|
|
|
221
|
+
/**
|
|
222
|
+
* Provides a constructor for a Case Class.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* import * as Data from "effect/Data"
|
|
226
|
+
* import * as Equal from "effect/Equal"
|
|
227
|
+
*
|
|
228
|
+
* class Person extends Data.Class<{ readonly name: string }> {}
|
|
229
|
+
*
|
|
230
|
+
* // Creating instances of Person
|
|
231
|
+
* const mike1 = new Person({ name: "Mike" })
|
|
232
|
+
* const mike2 = new Person({ name: "Mike" })
|
|
233
|
+
* const john = new Person({ name: "John" })
|
|
234
|
+
*
|
|
235
|
+
* // Checking equality
|
|
236
|
+
* assert.deepStrictEqual(Equal.equals(mike1, mike2), true)
|
|
237
|
+
* assert.deepStrictEqual(Equal.equals(mike1, john), false)
|
|
238
|
+
*
|
|
239
|
+
* @since 2.0.0
|
|
240
|
+
* @category constructors
|
|
241
|
+
*/
|
|
242
|
+
const Class = Effectable.Structural;
|
|
243
|
+
|
|
159
244
|
/**
|
|
160
245
|
* Provides a Tagged constructor for a Case Class.
|
|
161
246
|
*
|
|
247
|
+
* @example
|
|
248
|
+
* import * as Data from "effect/Data"
|
|
249
|
+
* import * as Equal from "effect/Equal"
|
|
250
|
+
*
|
|
251
|
+
* class Person extends Data.TaggedClass("Person")<{ readonly name: string }> {}
|
|
252
|
+
*
|
|
253
|
+
* // Creating instances of Person
|
|
254
|
+
* const mike1 = new Person({ name: "Mike" })
|
|
255
|
+
* const mike2 = new Person({ name: "Mike" })
|
|
256
|
+
* const john = new Person({ name: "John" })
|
|
257
|
+
*
|
|
258
|
+
* // Checking equality
|
|
259
|
+
* assert.deepStrictEqual(Equal.equals(mike1, mike2), true)
|
|
260
|
+
* assert.deepStrictEqual(Equal.equals(mike1, john), false)
|
|
261
|
+
*
|
|
262
|
+
* assert.deepStrictEqual(mike1._tag, "Person")
|
|
263
|
+
*
|
|
162
264
|
* @since 2.0.0
|
|
163
265
|
* @category constructors
|
|
164
266
|
*/
|
|
@@ -169,14 +271,6 @@ const TaggedClass = tag => {
|
|
|
169
271
|
return Base;
|
|
170
272
|
};
|
|
171
273
|
|
|
172
|
-
/**
|
|
173
|
-
* Provides a constructor for a Case Class.
|
|
174
|
-
*
|
|
175
|
-
* @since 2.0.0
|
|
176
|
-
* @category constructors
|
|
177
|
-
*/
|
|
178
|
-
const Class = Effectable.Structural;
|
|
179
|
-
|
|
180
274
|
/**
|
|
181
275
|
* @since 2.0.0
|
|
182
276
|
* @category constructors
|
|
@@ -190,8 +284,8 @@ const Structural = Effectable.Structural;
|
|
|
190
284
|
* import * as Data from "effect/Data"
|
|
191
285
|
*
|
|
192
286
|
* type HttpError = Data.TaggedEnum<{
|
|
193
|
-
* BadRequest: { status: 400, message: string }
|
|
194
|
-
* NotFound: { status: 404, message: string }
|
|
287
|
+
* BadRequest: { readonly status: 400, readonly message: string }
|
|
288
|
+
* NotFound: { readonly status: 404, readonly message: string }
|
|
195
289
|
* }>
|
|
196
290
|
*
|
|
197
291
|
* // Equivalent to:
|
|
@@ -225,52 +319,48 @@ const Structural = Effectable.Structural;
|
|
|
225
319
|
* @example
|
|
226
320
|
* import * as Data from "effect/Data"
|
|
227
321
|
*
|
|
228
|
-
* const
|
|
229
|
-
* | Data.Data<{ _tag: "BadRequest"; status: 400; message: string }>
|
|
230
|
-
* | Data.Data<{ _tag: "NotFound"; status: 404; message: string }>
|
|
322
|
+
* const { BadRequest, NotFound } = Data.taggedEnum<
|
|
323
|
+
* | Data.Data<{ readonly _tag: "BadRequest"; readonly status: 400; readonly message: string }>
|
|
324
|
+
* | Data.Data<{ readonly _tag: "NotFound"; readonly status: 404; readonly message: string }>
|
|
231
325
|
* >()
|
|
232
326
|
*
|
|
233
|
-
* const notFound =
|
|
327
|
+
* const notFound = NotFound({ status: 404, message: "Not Found" })
|
|
234
328
|
*
|
|
235
329
|
* @example
|
|
236
330
|
* import * as Data from "effect/Data"
|
|
237
331
|
*
|
|
238
332
|
* type MyResult<E, A> = Data.TaggedEnum<{
|
|
239
|
-
* Failure: { error: E }
|
|
240
|
-
* Success: { value: A }
|
|
333
|
+
* Failure: { readonly error: E }
|
|
334
|
+
* Success: { readonly value: A }
|
|
241
335
|
* }>
|
|
242
336
|
* interface MyResultDefinition extends Data.TaggedEnum.WithGenerics<2> {
|
|
243
337
|
* readonly taggedEnum: MyResult<this["A"], this["B"]>
|
|
244
338
|
* }
|
|
245
|
-
* const
|
|
339
|
+
* const { Failure, Success } = Data.taggedEnum<MyResultDefinition>()
|
|
246
340
|
*
|
|
247
|
-
* const success =
|
|
341
|
+
* const success = Success({ value: 1 })
|
|
248
342
|
*
|
|
249
343
|
* @category constructors
|
|
250
344
|
* @since 2.0.0
|
|
251
345
|
*/
|
|
252
|
-
const taggedEnum = () =>
|
|
346
|
+
const taggedEnum = () => new Proxy({}, {
|
|
347
|
+
get(_target, tag, _receiver) {
|
|
348
|
+
return tagged(tag);
|
|
349
|
+
}
|
|
350
|
+
});
|
|
253
351
|
|
|
254
352
|
/**
|
|
255
353
|
* @since 2.0.0
|
|
256
354
|
* @category models
|
|
257
355
|
*/
|
|
258
356
|
|
|
259
|
-
const YieldableErrorMessage = /*#__PURE__*/Symbol.for("effect/Data/YieldableError/message");
|
|
260
357
|
const YieldableErrorProto = {
|
|
261
358
|
...Effectable_dist_effectEffectable.StructuralCommitPrototype,
|
|
262
|
-
__proto__: globalThis.Error.prototype,
|
|
263
359
|
commit() {
|
|
264
360
|
return Effect_dist_effectEffect.fail(this);
|
|
265
361
|
},
|
|
266
362
|
toString() {
|
|
267
363
|
return `${this.name}: ${this.message}`;
|
|
268
|
-
},
|
|
269
|
-
get message() {
|
|
270
|
-
return this[YieldableErrorMessage] ?? JSON.stringify(this);
|
|
271
|
-
},
|
|
272
|
-
set message(value) {
|
|
273
|
-
this[YieldableErrorMessage] = value;
|
|
274
364
|
}
|
|
275
365
|
};
|
|
276
366
|
|
|
@@ -281,13 +371,13 @@ const YieldableErrorProto = {
|
|
|
281
371
|
* @category constructors
|
|
282
372
|
*/
|
|
283
373
|
const Error = /*#__PURE__*/function () {
|
|
284
|
-
|
|
285
|
-
|
|
374
|
+
class Base extends globalThis.Error {
|
|
375
|
+
constructor(args) {
|
|
376
|
+
super();
|
|
286
377
|
Object.assign(this, args);
|
|
287
378
|
}
|
|
288
|
-
globalThis.Error.captureStackTrace(this, this.constructor);
|
|
289
379
|
}
|
|
290
|
-
Base.prototype
|
|
380
|
+
Object.assign(Base.prototype, YieldableErrorProto);
|
|
291
381
|
return Base;
|
|
292
382
|
}();
|
|
293
383
|
|
|
@@ -25,6 +25,20 @@ import { struct as struct$1, StructProto, ArrayProto, Structural as Structural$1
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
+
* @example
|
|
29
|
+
* import * as Data from "effect/Data"
|
|
30
|
+
* import * as Equal from "effect/Equal"
|
|
31
|
+
*
|
|
32
|
+
* const alice = Data.struct({ name: "Alice", age: 30 })
|
|
33
|
+
*
|
|
34
|
+
* const bob = Data.struct({ name: "Bob", age: 40 })
|
|
35
|
+
*
|
|
36
|
+
* assert.deepStrictEqual(Equal.equals(alice, alice), true)
|
|
37
|
+
* assert.deepStrictEqual(Equal.equals(alice, Data.struct({ name: "Alice", age: 30 })), true)
|
|
38
|
+
*
|
|
39
|
+
* assert.deepStrictEqual(Equal.equals(alice, { name: "Alice", age: 30 }), false)
|
|
40
|
+
* assert.deepStrictEqual(Equal.equals(alice, bob), false)
|
|
41
|
+
*
|
|
28
42
|
* @category constructors
|
|
29
43
|
* @since 2.0.0
|
|
30
44
|
*/
|
|
@@ -37,12 +51,46 @@ const struct = struct$1;
|
|
|
37
51
|
const unsafeStruct = as => Object.setPrototypeOf(as, StructProto);
|
|
38
52
|
|
|
39
53
|
/**
|
|
54
|
+
* @example
|
|
55
|
+
* import * as Data from "effect/Data"
|
|
56
|
+
* import * as Equal from "effect/Equal"
|
|
57
|
+
*
|
|
58
|
+
* const alice = Data.tuple("Alice", 30)
|
|
59
|
+
*
|
|
60
|
+
* const bob = Data.tuple("Bob", 40)
|
|
61
|
+
*
|
|
62
|
+
* assert.deepStrictEqual(Equal.equals(alice, alice), true)
|
|
63
|
+
* assert.deepStrictEqual(Equal.equals(alice, Data.tuple("Alice", 30)), true)
|
|
64
|
+
*
|
|
65
|
+
* assert.deepStrictEqual(Equal.equals(alice, ["Alice", 30]), false)
|
|
66
|
+
* assert.deepStrictEqual(Equal.equals(alice, bob), false)
|
|
67
|
+
*
|
|
40
68
|
* @category constructors
|
|
41
69
|
* @since 2.0.0
|
|
42
70
|
*/
|
|
43
71
|
const tuple = (...as) => unsafeArray(as);
|
|
44
72
|
|
|
45
73
|
/**
|
|
74
|
+
* @example
|
|
75
|
+
* import * as Data from "effect/Data"
|
|
76
|
+
* import * as Equal from "effect/Equal"
|
|
77
|
+
*
|
|
78
|
+
* const alice = Data.struct({ name: "Alice", age: 30 })
|
|
79
|
+
* const bob = Data.struct({ name: "Bob", age: 40 })
|
|
80
|
+
*
|
|
81
|
+
* const persons = Data.array([alice, bob])
|
|
82
|
+
*
|
|
83
|
+
* assert.deepStrictEqual(
|
|
84
|
+
* Equal.equals(
|
|
85
|
+
* persons,
|
|
86
|
+
* Data.array([
|
|
87
|
+
* Data.struct({ name: "Alice", age: 30 }),
|
|
88
|
+
* Data.struct({ name: "Bob", age: 40 })
|
|
89
|
+
* ])
|
|
90
|
+
* ),
|
|
91
|
+
* true
|
|
92
|
+
* )
|
|
93
|
+
*
|
|
46
94
|
* @category constructors
|
|
47
95
|
* @since 2.0.0
|
|
48
96
|
*/
|
|
@@ -58,6 +106,20 @@ const _case = () => args => args === undefined ? Object.create(StructProto) : st
|
|
|
58
106
|
/**
|
|
59
107
|
* Provides a tagged constructor for the specified `Case`.
|
|
60
108
|
*
|
|
109
|
+
* @example
|
|
110
|
+
* import * as Data from "effect/Data"
|
|
111
|
+
*
|
|
112
|
+
* interface Person extends Data.Case {
|
|
113
|
+
* readonly _tag: "Person" // the tag
|
|
114
|
+
* readonly name: string
|
|
115
|
+
* }
|
|
116
|
+
*
|
|
117
|
+
* const Person = Data.tagged<Person>("Person")
|
|
118
|
+
*
|
|
119
|
+
* const mike = Person({ name: "Mike" })
|
|
120
|
+
*
|
|
121
|
+
* assert.deepEqual(mike, { _tag: "Person", name: "Mike" })
|
|
122
|
+
*
|
|
61
123
|
* @since 2.0.0
|
|
62
124
|
* @category constructors
|
|
63
125
|
*/
|
|
@@ -67,9 +129,49 @@ const tagged = tag => args => {
|
|
|
67
129
|
return value;
|
|
68
130
|
};
|
|
69
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Provides a constructor for a Case Class.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* import * as Data from "effect/Data"
|
|
137
|
+
* import * as Equal from "effect/Equal"
|
|
138
|
+
*
|
|
139
|
+
* class Person extends Data.Class<{ readonly name: string }> {}
|
|
140
|
+
*
|
|
141
|
+
* // Creating instances of Person
|
|
142
|
+
* const mike1 = new Person({ name: "Mike" })
|
|
143
|
+
* const mike2 = new Person({ name: "Mike" })
|
|
144
|
+
* const john = new Person({ name: "John" })
|
|
145
|
+
*
|
|
146
|
+
* // Checking equality
|
|
147
|
+
* assert.deepStrictEqual(Equal.equals(mike1, mike2), true)
|
|
148
|
+
* assert.deepStrictEqual(Equal.equals(mike1, john), false)
|
|
149
|
+
*
|
|
150
|
+
* @since 2.0.0
|
|
151
|
+
* @category constructors
|
|
152
|
+
*/
|
|
153
|
+
const Class = Structural$1;
|
|
154
|
+
|
|
70
155
|
/**
|
|
71
156
|
* Provides a Tagged constructor for a Case Class.
|
|
72
157
|
*
|
|
158
|
+
* @example
|
|
159
|
+
* import * as Data from "effect/Data"
|
|
160
|
+
* import * as Equal from "effect/Equal"
|
|
161
|
+
*
|
|
162
|
+
* class Person extends Data.TaggedClass("Person")<{ readonly name: string }> {}
|
|
163
|
+
*
|
|
164
|
+
* // Creating instances of Person
|
|
165
|
+
* const mike1 = new Person({ name: "Mike" })
|
|
166
|
+
* const mike2 = new Person({ name: "Mike" })
|
|
167
|
+
* const john = new Person({ name: "John" })
|
|
168
|
+
*
|
|
169
|
+
* // Checking equality
|
|
170
|
+
* assert.deepStrictEqual(Equal.equals(mike1, mike2), true)
|
|
171
|
+
* assert.deepStrictEqual(Equal.equals(mike1, john), false)
|
|
172
|
+
*
|
|
173
|
+
* assert.deepStrictEqual(mike1._tag, "Person")
|
|
174
|
+
*
|
|
73
175
|
* @since 2.0.0
|
|
74
176
|
* @category constructors
|
|
75
177
|
*/
|
|
@@ -80,14 +182,6 @@ const TaggedClass = tag => {
|
|
|
80
182
|
return Base;
|
|
81
183
|
};
|
|
82
184
|
|
|
83
|
-
/**
|
|
84
|
-
* Provides a constructor for a Case Class.
|
|
85
|
-
*
|
|
86
|
-
* @since 2.0.0
|
|
87
|
-
* @category constructors
|
|
88
|
-
*/
|
|
89
|
-
const Class = Structural$1;
|
|
90
|
-
|
|
91
185
|
/**
|
|
92
186
|
* @since 2.0.0
|
|
93
187
|
* @category constructors
|
|
@@ -101,8 +195,8 @@ const Structural = Structural$1;
|
|
|
101
195
|
* import * as Data from "effect/Data"
|
|
102
196
|
*
|
|
103
197
|
* type HttpError = Data.TaggedEnum<{
|
|
104
|
-
* BadRequest: { status: 400, message: string }
|
|
105
|
-
* NotFound: { status: 404, message: string }
|
|
198
|
+
* BadRequest: { readonly status: 400, readonly message: string }
|
|
199
|
+
* NotFound: { readonly status: 404, readonly message: string }
|
|
106
200
|
* }>
|
|
107
201
|
*
|
|
108
202
|
* // Equivalent to:
|
|
@@ -136,52 +230,48 @@ const Structural = Structural$1;
|
|
|
136
230
|
* @example
|
|
137
231
|
* import * as Data from "effect/Data"
|
|
138
232
|
*
|
|
139
|
-
* const
|
|
140
|
-
* | Data.Data<{ _tag: "BadRequest"; status: 400; message: string }>
|
|
141
|
-
* | Data.Data<{ _tag: "NotFound"; status: 404; message: string }>
|
|
233
|
+
* const { BadRequest, NotFound } = Data.taggedEnum<
|
|
234
|
+
* | Data.Data<{ readonly _tag: "BadRequest"; readonly status: 400; readonly message: string }>
|
|
235
|
+
* | Data.Data<{ readonly _tag: "NotFound"; readonly status: 404; readonly message: string }>
|
|
142
236
|
* >()
|
|
143
237
|
*
|
|
144
|
-
* const notFound =
|
|
238
|
+
* const notFound = NotFound({ status: 404, message: "Not Found" })
|
|
145
239
|
*
|
|
146
240
|
* @example
|
|
147
241
|
* import * as Data from "effect/Data"
|
|
148
242
|
*
|
|
149
243
|
* type MyResult<E, A> = Data.TaggedEnum<{
|
|
150
|
-
* Failure: { error: E }
|
|
151
|
-
* Success: { value: A }
|
|
244
|
+
* Failure: { readonly error: E }
|
|
245
|
+
* Success: { readonly value: A }
|
|
152
246
|
* }>
|
|
153
247
|
* interface MyResultDefinition extends Data.TaggedEnum.WithGenerics<2> {
|
|
154
248
|
* readonly taggedEnum: MyResult<this["A"], this["B"]>
|
|
155
249
|
* }
|
|
156
|
-
* const
|
|
250
|
+
* const { Failure, Success } = Data.taggedEnum<MyResultDefinition>()
|
|
157
251
|
*
|
|
158
|
-
* const success =
|
|
252
|
+
* const success = Success({ value: 1 })
|
|
159
253
|
*
|
|
160
254
|
* @category constructors
|
|
161
255
|
* @since 2.0.0
|
|
162
256
|
*/
|
|
163
|
-
const taggedEnum = () =>
|
|
257
|
+
const taggedEnum = () => new Proxy({}, {
|
|
258
|
+
get(_target, tag, _receiver) {
|
|
259
|
+
return tagged(tag);
|
|
260
|
+
}
|
|
261
|
+
});
|
|
164
262
|
|
|
165
263
|
/**
|
|
166
264
|
* @since 2.0.0
|
|
167
265
|
* @category models
|
|
168
266
|
*/
|
|
169
267
|
|
|
170
|
-
const YieldableErrorMessage = /*#__PURE__*/Symbol.for("effect/Data/YieldableError/message");
|
|
171
268
|
const YieldableErrorProto = {
|
|
172
269
|
...StructuralCommitPrototype,
|
|
173
|
-
__proto__: globalThis.Error.prototype,
|
|
174
270
|
commit() {
|
|
175
271
|
return fail(this);
|
|
176
272
|
},
|
|
177
273
|
toString() {
|
|
178
274
|
return `${this.name}: ${this.message}`;
|
|
179
|
-
},
|
|
180
|
-
get message() {
|
|
181
|
-
return this[YieldableErrorMessage] ?? JSON.stringify(this);
|
|
182
|
-
},
|
|
183
|
-
set message(value) {
|
|
184
|
-
this[YieldableErrorMessage] = value;
|
|
185
275
|
}
|
|
186
276
|
};
|
|
187
277
|
|
|
@@ -192,13 +282,13 @@ const YieldableErrorProto = {
|
|
|
192
282
|
* @category constructors
|
|
193
283
|
*/
|
|
194
284
|
const Error = /*#__PURE__*/function () {
|
|
195
|
-
|
|
196
|
-
|
|
285
|
+
class Base extends globalThis.Error {
|
|
286
|
+
constructor(args) {
|
|
287
|
+
super();
|
|
197
288
|
Object.assign(this, args);
|
|
198
289
|
}
|
|
199
|
-
globalThis.Error.captureStackTrace(this, this.constructor);
|
|
200
290
|
}
|
|
201
|
-
Base.prototype
|
|
291
|
+
Object.assign(Base.prototype, YieldableErrorProto);
|
|
202
292
|
return Base;
|
|
203
293
|
}();
|
|
204
294
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var defaultServices = require('../../dist/defaultServices-
|
|
5
|
+
var defaultServices = require('../../dist/defaultServices-f3f93337.cjs.dev.js');
|
|
6
6
|
require('../../Context/dist/effect-Context.cjs.dev.js');
|
|
7
7
|
require('../../dist/Context-607e9b4c.cjs.dev.js');
|
|
8
8
|
require('../../Equal/dist/effect-Equal.cjs.dev.js');
|
|
@@ -21,27 +21,27 @@ require('../../Equivalence/dist/effect-Equivalence.cjs.dev.js');
|
|
|
21
21
|
require('../../dist/Either-e7500e90.cjs.dev.js');
|
|
22
22
|
require('../../Order/dist/effect-Order.cjs.dev.js');
|
|
23
23
|
require('../../Either/dist/effect-Either.cjs.dev.js');
|
|
24
|
-
require('../../dist/core-
|
|
24
|
+
require('../../dist/core-a0828fef.cjs.dev.js');
|
|
25
25
|
require('../../Chunk/dist/effect-Chunk.cjs.dev.js');
|
|
26
26
|
require('../../ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js');
|
|
27
27
|
require('../../dist/ReadonlyArray-9a1474f6.cjs.dev.js');
|
|
28
28
|
require('../../ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js');
|
|
29
29
|
require('../../Differ/dist/effect-Differ.cjs.dev.js');
|
|
30
30
|
require('../../HashMap/dist/effect-HashMap.cjs.dev.js');
|
|
31
|
-
require('../../dist/HashSet-
|
|
31
|
+
require('../../dist/HashSet-e9659fd4.cjs.dev.js');
|
|
32
32
|
require('../../dist/Stack-ada2d201.cjs.dev.js');
|
|
33
33
|
require('../../HashSet/dist/effect-HashSet.cjs.dev.js');
|
|
34
|
-
require('../../dist/FiberId-
|
|
34
|
+
require('../../dist/FiberId-f329d0e3.cjs.dev.js');
|
|
35
35
|
require('../../MutableRef/dist/effect-MutableRef.cjs.dev.js');
|
|
36
36
|
require('../../List/dist/effect-List.cjs.dev.js');
|
|
37
|
-
require('../../dist/RuntimeFlagsPatch-
|
|
37
|
+
require('../../dist/RuntimeFlagsPatch-063c5864.cjs.dev.js');
|
|
38
38
|
require('../../dist/timeout-d380d3f8.cjs.dev.js');
|
|
39
|
-
require('../../dist/configProvider-
|
|
40
|
-
require('../../dist/config-
|
|
39
|
+
require('../../dist/configProvider-aef50f41.cjs.dev.js');
|
|
40
|
+
require('../../dist/config-beaa306c.cjs.dev.js');
|
|
41
41
|
require('../../ConfigError/dist/effect-ConfigError.cjs.dev.js');
|
|
42
|
-
require('../../dist/configError-
|
|
43
|
-
require('../../dist/configSecret-
|
|
44
|
-
require('../../dist/pathPatch-
|
|
42
|
+
require('../../dist/configError-834bedc1.cjs.dev.js');
|
|
43
|
+
require('../../dist/configSecret-abf643d8.cjs.dev.js');
|
|
44
|
+
require('../../dist/pathPatch-18fa425e.cjs.dev.js');
|
|
45
45
|
require('../../Number/dist/effect-Number.cjs.dev.js');
|
|
46
46
|
|
|
47
47
|
/**
|