effect 4.0.0-beta.67 → 4.0.0-beta.68
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/dist/Array.d.ts +41 -42
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +23 -23
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +265 -265
- package/dist/BigDecimal.js +128 -128
- package/dist/BigInt.d.ts +175 -177
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +81 -79
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +127 -125
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +55 -53
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +10 -4
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +3 -2
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +36 -36
- package/dist/Cache.js +17 -17
- package/dist/Cause.d.ts +17 -18
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +12 -12
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +234 -241
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +97 -101
- package/dist/Channel.js.map +1 -1
- package/dist/Chunk.d.ts +33 -56
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +17 -26
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +1 -1
- package/dist/Clock.js +1 -1
- package/dist/Combiner.d.ts +9 -1
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +8 -0
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +78 -68
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +53 -49
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +33 -32
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +19 -18
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +19 -19
- package/dist/Console.js +19 -19
- package/dist/Context.d.ts +70 -108
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +30 -44
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +3 -5
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +3 -5
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +208 -0
- package/dist/Crypto.d.ts.map +1 -0
- package/dist/Crypto.js +157 -0
- package/dist/Crypto.js.map +1 -0
- package/dist/Data.d.ts +6 -1
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +29 -31
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +19 -19
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +8 -9
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +6 -6
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -2
- package/dist/Duration.d.ts +30 -27
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +15 -12
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +394 -652
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +157 -247
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +2 -2
- package/dist/Effectable.js +2 -2
- package/dist/Encoding.d.ts +9 -9
- package/dist/Encoding.js +9 -9
- package/dist/Equal.d.ts +4 -3
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +4 -3
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +4 -5
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +2 -2
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +14 -14
- package/dist/ErrorReporter.js +9 -9
- package/dist/ExecutionPlan.d.ts +18 -9
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +6 -4
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +0 -1
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +1 -2
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +1 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +5 -5
- package/dist/FiberHandle.js +3 -3
- package/dist/FiberMap.d.ts +10 -10
- package/dist/FiberMap.js +4 -4
- package/dist/FiberSet.d.ts +4 -4
- package/dist/FiberSet.js +2 -2
- package/dist/FileSystem.d.ts +10 -12
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +3 -3
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +54 -54
- package/dist/Filter.js +28 -28
- package/dist/Formatter.d.ts +4 -2
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +3 -69
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +64 -65
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +41 -41
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +157 -175
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +72 -80
- package/dist/Graph.js.map +1 -1
- package/dist/Hash.d.ts +4 -6
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +2 -2
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +121 -157
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +47 -59
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +34 -34
- package/dist/HashRing.js +16 -16
- package/dist/HashSet.d.ts +51 -55
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +19 -20
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +6 -4
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +6 -4
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +37 -83
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +21 -39
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +8 -6
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +5 -3
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +13 -11
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +13 -11
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +16 -0
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +10 -0
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +4 -16
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +2 -14
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +94 -135
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +44 -61
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +15 -16
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +6 -6
- package/dist/LogLevel.d.ts +13 -13
- package/dist/LogLevel.js +4 -4
- package/dist/Logger.d.ts +10 -11
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +10 -11
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +5 -4
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +4 -3
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +2 -4
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +1 -2
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +48 -50
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +22 -22
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +30 -30
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +15 -14
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +0 -2
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +23 -24
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +17 -19
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +0 -1
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +12 -2
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +8 -2
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +5 -12
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +3 -8
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +145 -141
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +65 -61
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +5 -5
- package/dist/Optic.js +5 -5
- package/dist/Option.d.ts +105 -109
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +50 -52
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +6 -6
- package/dist/Order.js +6 -6
- package/dist/Ordering.d.ts +15 -19
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +6 -6
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +3 -3
- package/dist/PartitionedSemaphore.js +2 -2
- package/dist/Path.d.ts +4 -4
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +2 -1
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +10 -7
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +6 -4
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +3 -3
- package/dist/PlatformError.js +2 -2
- package/dist/Predicate.d.ts +2 -4
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +3 -3
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +2 -1
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +2 -1
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +25 -51
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +17 -35
- package/dist/PubSub.js.map +1 -1
- package/dist/Queue.d.ts +45 -60
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +27 -33
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +27 -38
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +17 -54
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +11 -11
- package/dist/RcMap.js +3 -3
- package/dist/RcRef.d.ts +0 -1
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +9 -8
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +7 -5
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +7 -5
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +5 -3
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +2 -3
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +2 -2
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +3 -1
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +2 -0
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +7 -17
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +5 -12
- package/dist/Ref.js.map +1 -1
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +2 -1
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +1 -0
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +2 -3
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +1 -1
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +124 -142
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +51 -63
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +2 -7
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +1 -3
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +69 -72
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +31 -33
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +2 -2
- package/dist/Scheduler.js +2 -2
- package/dist/Schema.d.ts +491 -321
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +220 -172
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +98 -77
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +89 -68
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +23 -23
- package/dist/SchemaGetter.js +20 -20
- package/dist/SchemaIssue.d.ts +18 -16
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +16 -14
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +39 -40
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +48 -51
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +89 -77
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +47 -37
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +36 -5
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +33 -5
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +1 -1
- package/dist/SchemaUtils.js +1 -1
- package/dist/Scope.d.ts +12 -29
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +6 -11
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +37 -37
- package/dist/ScopedCache.js +17 -17
- package/dist/Semaphore.d.ts +4 -16
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +2 -14
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +36 -39
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +18 -18
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +6 -6
- package/dist/Stdio.js +4 -4
- package/dist/Stream.d.ts +671 -808
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +289 -363
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +3 -2
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +3 -2
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +20 -18
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +10 -8
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +2 -2
- package/dist/SubscriptionRef.js +2 -2
- package/dist/Symbol.d.ts +3 -3
- package/dist/Symbol.js +3 -3
- package/dist/SynchronizedRef.d.ts +1 -1
- package/dist/SynchronizedRef.js +1 -1
- package/dist/Take.d.ts +2 -2
- package/dist/Take.js +1 -1
- package/dist/Terminal.d.ts +5 -5
- package/dist/Terminal.js +2 -2
- package/dist/Tracer.d.ts +9 -9
- package/dist/Tracer.js +2 -2
- package/dist/Trie.d.ts +70 -106
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +29 -43
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +34 -32
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +16 -14
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +27 -18
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +15 -10
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +11 -11
- package/dist/TxDeferred.js +5 -5
- package/dist/TxHashMap.d.ts +60 -61
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +23 -23
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +28 -32
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +13 -16
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +30 -30
- package/dist/TxPriorityQueue.js +18 -18
- package/dist/TxPubSub.d.ts +18 -18
- package/dist/TxPubSub.js +14 -14
- package/dist/TxQueue.d.ts +26 -29
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +17 -17
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +21 -21
- package/dist/TxReentrantLock.js +15 -15
- package/dist/TxRef.d.ts +24 -24
- package/dist/TxRef.js +11 -11
- package/dist/TxSemaphore.d.ts +13 -74
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +9 -52
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +24 -24
- package/dist/TxSubscriptionRef.js +11 -11
- package/dist/Types.d.ts +1 -4
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +14 -0
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +8 -0
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +8 -8
- package/dist/Unify.js +1 -1
- package/dist/Utils.d.ts +1 -2
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +1917 -411
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1917 -411
- package/dist/index.js.map +1 -1
- package/dist/testing/FastCheck.d.ts +3 -3
- package/dist/testing/FastCheck.js +3 -3
- package/dist/testing/TestClock.d.ts +2 -3
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +1 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +8 -9
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +5 -5
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +2 -0
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +2 -0
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.d.ts +34 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +34 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +10 -19
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +0 -9
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +0 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +3 -0
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +2 -0
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +3 -1
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +1 -1
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +2 -6
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +2 -2
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +8 -10
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +4 -4
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +20 -20
- package/dist/unstable/ai/ResponseIdTracker.d.ts +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +3 -3
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tool.d.ts +14 -12
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +10 -9
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +79 -5
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +79 -5
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts +5 -6
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +2 -3
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +3 -3
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +4 -4
- package/dist/unstable/cli/Param.d.ts +31 -1
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +37 -38
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +1 -1
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +6 -14
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +2 -2
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/index.d.ts +182 -0
- package/dist/unstable/cli/index.d.ts.map +1 -1
- package/dist/unstable/cli/index.js +205 -6
- package/dist/unstable/cli/index.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +0 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
- package/dist/unstable/cluster/ClusterCron.js +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -8
- package/dist/unstable/cluster/ClusterSchema.js +8 -8
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +2 -2
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +2 -2
- package/dist/unstable/cluster/Entity.d.ts +0 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +10 -14
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +8 -14
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +3 -2
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +2 -2
- package/dist/unstable/cluster/EntityResource.d.ts +2 -2
- package/dist/unstable/cluster/EntityResource.js +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +1 -1
- package/dist/unstable/cluster/Envelope.js +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +11 -11
- package/dist/unstable/cluster/HttpRunner.js +11 -11
- package/dist/unstable/cluster/K8sHttpClient.d.ts +5 -5
- package/dist/unstable/cluster/K8sHttpClient.js +5 -5
- package/dist/unstable/cluster/MachineId.d.ts +1 -1
- package/dist/unstable/cluster/MachineId.js +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +1 -2
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +1 -1
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +1 -1
- package/dist/unstable/cluster/Runner.js +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +2 -2
- package/dist/unstable/cluster/RunnerHealth.js +2 -2
- package/dist/unstable/cluster/RunnerServer.d.ts +4 -4
- package/dist/unstable/cluster/RunnerServer.js +4 -4
- package/dist/unstable/cluster/Runners.d.ts +3 -3
- package/dist/unstable/cluster/Runners.js +3 -3
- package/dist/unstable/cluster/ShardId.d.ts +7 -5
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +6 -4
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +2 -2
- package/dist/unstable/cluster/ShardingConfig.js +2 -2
- package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
- package/dist/unstable/cluster/SingleRunner.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +10 -9
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +4 -3
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +2 -2
- package/dist/unstable/cluster/SocketRunner.js +2 -2
- package/dist/unstable/cluster/SqlMessageStorage.d.ts +3 -3
- package/dist/unstable/cluster/SqlMessageStorage.js +3 -3
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts +3 -3
- package/dist/unstable/cluster/SqlRunnerStorage.js +3 -3
- package/dist/unstable/cluster/TestRunner.d.ts +1 -1
- package/dist/unstable/cluster/TestRunner.js +1 -1
- package/dist/unstable/cluster/index.d.ts +790 -0
- package/dist/unstable/cluster/index.d.ts.map +1 -1
- package/dist/unstable/cluster/index.js +790 -0
- package/dist/unstable/cluster/index.js.map +1 -1
- package/dist/unstable/devtools/index.d.ts +58 -0
- package/dist/unstable/devtools/index.d.ts.map +1 -1
- package/dist/unstable/devtools/index.js +58 -0
- package/dist/unstable/devtools/index.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +16 -16
- package/dist/unstable/encoding/Sse.js +11 -11
- package/dist/unstable/encoding/index.d.ts +49 -0
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +49 -0
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +2 -2
- package/dist/unstable/eventlog/Event.js +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +2 -2
- package/dist/unstable/eventlog/EventGroup.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +6 -7
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +4 -4
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +2 -2
- package/dist/unstable/eventlog/EventLogRemote.js +2 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts +2 -2
- package/dist/unstable/eventlog/EventLogServer.js +2 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +2 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +2 -2
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +1 -1
- package/dist/unstable/eventlog/index.d.ts +240 -0
- package/dist/unstable/eventlog/index.d.ts.map +1 -1
- package/dist/unstable/eventlog/index.js +240 -0
- package/dist/unstable/eventlog/index.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +6 -6
- package/dist/unstable/http/Cookies.js +4 -4
- package/dist/unstable/http/Etag.d.ts +2 -2
- package/dist/unstable/http/Etag.js +2 -2
- package/dist/unstable/http/Headers.d.ts +2 -2
- package/dist/unstable/http/Headers.js +1 -1
- package/dist/unstable/http/HttpClient.d.ts +5 -6
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +5 -4
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +1 -1
- package/dist/unstable/http/HttpClientError.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +4 -4
- package/dist/unstable/http/HttpClientRequest.js +4 -4
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -6
- package/dist/unstable/http/HttpClientResponse.js +6 -6
- package/dist/unstable/http/HttpEffect.d.ts +5 -5
- package/dist/unstable/http/HttpEffect.js +5 -5
- package/dist/unstable/http/HttpIncomingMessage.d.ts +7 -6
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +7 -6
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +4 -2
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +4 -1
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -0
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +23 -25
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +23 -22
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +4 -1
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +4 -1
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +15 -15
- package/dist/unstable/http/HttpServerRequest.js +15 -15
- package/dist/unstable/http/HttpServerRespondable.d.ts +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +5 -4
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +5 -4
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +2 -4
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +2 -4
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +20 -19
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +19 -17
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +0 -1
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +17 -17
- package/dist/unstable/http/Url.js +8 -8
- package/dist/unstable/http/UrlParams.d.ts +14 -12
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +12 -10
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +452 -0
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +452 -0
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +0 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts +0 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +4 -2
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +3 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +19 -8
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +11 -8
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +0 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +0 -2
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +0 -2
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/index.d.ts +310 -25
- package/dist/unstable/httpapi/index.d.ts.map +1 -1
- package/dist/unstable/httpapi/index.js +310 -25
- package/dist/unstable/httpapi/index.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +3 -3
- package/dist/unstable/observability/Otlp.js +3 -3
- package/dist/unstable/observability/OtlpExporter.d.ts +1 -1
- package/dist/unstable/observability/OtlpExporter.js +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +3 -2
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +2 -2
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +5 -4
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +2 -2
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +9 -9
- package/dist/unstable/observability/OtlpResource.js +2 -2
- package/dist/unstable/observability/OtlpSerialization.d.ts +3 -3
- package/dist/unstable/observability/OtlpSerialization.js +3 -3
- package/dist/unstable/observability/OtlpTracer.d.ts +5 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +2 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +7 -7
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/observability/index.d.ts +158 -2
- package/dist/unstable/observability/index.d.ts.map +1 -1
- package/dist/unstable/observability/index.js +158 -2
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +4 -4
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +11 -11
- package/dist/unstable/persistence/Persistable.js +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +2 -2
- package/dist/unstable/persistence/PersistedCache.js +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +6 -6
- package/dist/unstable/persistence/PersistedQueue.js +3 -3
- package/dist/unstable/persistence/Persistence.d.ts +2 -1
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +2 -1
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +19 -15
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +14 -10
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +3 -3
- package/dist/unstable/persistence/Redis.js +3 -3
- package/dist/unstable/persistence/index.d.ts +147 -0
- package/dist/unstable/persistence/index.d.ts.map +1 -1
- package/dist/unstable/persistence/index.js +147 -0
- package/dist/unstable/persistence/index.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +41 -41
- package/dist/unstable/process/ChildProcess.js +11 -11
- package/dist/unstable/process/ChildProcessSpawner.d.ts +10 -10
- package/dist/unstable/process/ChildProcessSpawner.js +5 -5
- package/dist/unstable/reactivity/AsyncResult.d.ts +8 -6
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +3 -3
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +25 -20
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +12 -12
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +2 -2
- package/dist/unstable/reactivity/AtomHttpApi.js +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +2 -2
- package/dist/unstable/reactivity/AtomRef.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +16 -16
- package/dist/unstable/reactivity/AtomRegistry.js +7 -7
- package/dist/unstable/reactivity/AtomRpc.d.ts +2 -2
- package/dist/unstable/reactivity/AtomRpc.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +2 -3
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +2 -3
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/reactivity/index.d.ts +167 -0
- package/dist/unstable/reactivity/index.d.ts.map +1 -1
- package/dist/unstable/reactivity/index.js +167 -0
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +0 -1
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +0 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
- package/dist/unstable/rpc/RpcClientError.js +2 -2
- package/dist/unstable/rpc/RpcMiddleware.d.ts +2 -2
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +0 -1
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/Utils.d.ts +2 -0
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.js +2 -0
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/rpc/index.d.ts +272 -0
- package/dist/unstable/rpc/index.d.ts.map +1 -1
- package/dist/unstable/rpc/index.js +272 -0
- package/dist/unstable/rpc/index.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +63 -8
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +44 -5
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -4
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js +1 -1
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/schema/index.d.ts +37 -0
- package/dist/unstable/schema/index.d.ts.map +1 -1
- package/dist/unstable/schema/index.js +37 -0
- package/dist/unstable/schema/index.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +5 -4
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +4 -3
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/index.d.ts +44 -0
- package/dist/unstable/socket/index.d.ts.map +1 -1
- package/dist/unstable/socket/index.js +44 -0
- package/dist/unstable/socket/index.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts +5 -5
- package/dist/unstable/sql/Migrator.js +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +4 -0
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +2 -0
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +3 -3
- package/dist/unstable/sql/SqlError.d.ts +18 -0
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +17 -0
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +0 -1
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/SqlModel.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +5 -5
- package/dist/unstable/sql/SqlSchema.js +5 -5
- package/dist/unstable/sql/SqlStream.d.ts +1 -0
- package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
- package/dist/unstable/sql/SqlStream.js +1 -0
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +27 -24
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +9 -6
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.d.ts +178 -0
- package/dist/unstable/sql/index.d.ts.map +1 -1
- package/dist/unstable/sql/index.js +178 -0
- package/dist/unstable/sql/index.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +7 -7
- package/dist/unstable/workers/Transferable.js +4 -4
- package/dist/unstable/workers/Worker.d.ts +1 -0
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +1 -0
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +8 -8
- package/dist/unstable/workers/WorkerError.js +7 -7
- package/dist/unstable/workers/index.d.ts +80 -0
- package/dist/unstable/workers/index.d.ts.map +1 -1
- package/dist/unstable/workers/index.js +80 -0
- package/dist/unstable/workers/index.js.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +7 -7
- package/dist/unstable/workflow/Activity.js +2 -2
- package/dist/unstable/workflow/DurableClock.d.ts +2 -2
- package/dist/unstable/workflow/DurableClock.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +22 -20
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +8 -7
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +7 -5
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +5 -3
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +12 -10
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +3 -3
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +4 -4
- package/dist/unstable/workflow/WorkflowEngine.js +4 -4
- package/dist/unstable/workflow/WorkflowProxy.d.ts +10 -12
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js +8 -12
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts +3 -2
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js +2 -2
- package/dist/unstable/workflow/index.d.ts +160 -0
- package/dist/unstable/workflow/index.d.ts.map +1 -1
- package/dist/unstable/workflow/index.js +160 -0
- package/dist/unstable/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +41 -42
- package/src/BigDecimal.ts +265 -265
- package/src/BigInt.ts +175 -177
- package/src/Boolean.ts +127 -125
- package/src/Brand.ts +10 -4
- package/src/Cache.ts +42 -42
- package/src/Cause.ts +17 -18
- package/src/Channel.ts +250 -256
- package/src/Chunk.ts +33 -56
- package/src/Clock.ts +1 -1
- package/src/Combiner.ts +9 -1
- package/src/Config.ts +78 -68
- package/src/ConfigProvider.ts +33 -32
- package/src/Console.ts +23 -23
- package/src/Context.ts +70 -108
- package/src/Cron.ts +3 -5
- package/src/Crypto.ts +327 -0
- package/src/Data.ts +6 -1
- package/src/DateTime.ts +29 -31
- package/src/Deferred.ts +8 -9
- package/src/Differ.ts +2 -2
- package/src/Duration.ts +30 -27
- package/src/Effect.ts +402 -660
- package/src/Effectable.ts +2 -2
- package/src/Encoding.ts +9 -9
- package/src/Equal.ts +4 -3
- package/src/Equivalence.ts +4 -5
- package/src/ErrorReporter.ts +14 -14
- package/src/ExecutionPlan.ts +18 -9
- package/src/Exit.ts +0 -1
- package/src/Fiber.ts +1 -2
- package/src/FiberHandle.ts +5 -5
- package/src/FiberMap.ts +10 -10
- package/src/FiberSet.ts +4 -4
- package/src/FileSystem.ts +10 -12
- package/src/Filter.ts +54 -54
- package/src/Formatter.ts +4 -70
- package/src/Function.ts +64 -65
- package/src/Graph.ts +157 -175
- package/src/Hash.ts +4 -6
- package/src/HashMap.ts +121 -157
- package/src/HashRing.ts +34 -34
- package/src/HashSet.ts +51 -55
- package/src/Inspectable.ts +8 -7
- package/src/Iterable.ts +37 -83
- package/src/JsonPatch.ts +9 -7
- package/src/JsonPointer.ts +13 -11
- package/src/JsonSchema.ts +16 -0
- package/src/Latch.ts +4 -16
- package/src/Layer.ts +94 -135
- package/src/LayerMap.ts +15 -16
- package/src/LogLevel.ts +13 -13
- package/src/Logger.ts +16 -17
- package/src/ManagedRuntime.ts +5 -4
- package/src/Match.ts +2 -4
- package/src/Metric.ts +56 -58
- package/src/MutableHashMap.ts +42 -44
- package/src/MutableHashSet.ts +0 -2
- package/src/MutableList.ts +23 -26
- package/src/MutableRef.ts +0 -1
- package/src/Newtype.ts +12 -2
- package/src/NonEmptyIterable.ts +5 -12
- package/src/Number.ts +145 -141
- package/src/Optic.ts +5 -5
- package/src/Option.ts +105 -109
- package/src/Order.ts +6 -6
- package/src/Ordering.ts +15 -19
- package/src/PartitionedSemaphore.ts +3 -3
- package/src/Path.ts +4 -4
- package/src/Pipeable.ts +10 -7
- package/src/PlatformError.ts +3 -3
- package/src/Predicate.ts +3 -5
- package/src/PrimaryKey.ts +2 -1
- package/src/PubSub.ts +25 -51
- package/src/Queue.ts +45 -60
- package/src/Random.ts +31 -74
- package/src/RcMap.ts +11 -11
- package/src/RcRef.ts +0 -1
- package/src/Record.ts +9 -8
- package/src/Redactable.ts +7 -5
- package/src/Redacted.ts +2 -3
- package/src/Reducer.ts +3 -1
- package/src/Ref.ts +15 -33
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +2 -1
- package/src/RequestResolver.ts +2 -3
- package/src/Resource.ts +1 -1
- package/src/Result.ts +124 -142
- package/src/Runtime.ts +2 -7
- package/src/Schedule.ts +74 -77
- package/src/Scheduler.ts +2 -2
- package/src/Schema.ts +491 -321
- package/src/SchemaAST.ts +98 -77
- package/src/SchemaGetter.ts +23 -23
- package/src/SchemaIssue.ts +18 -16
- package/src/SchemaParser.ts +46 -49
- package/src/SchemaRepresentation.ts +89 -77
- package/src/SchemaTransformation.ts +36 -5
- package/src/SchemaUtils.ts +1 -1
- package/src/Scope.ts +12 -29
- package/src/ScopedCache.ts +43 -43
- package/src/Semaphore.ts +4 -16
- package/src/Sink.ts +36 -39
- package/src/Stdio.ts +6 -6
- package/src/Stream.ts +789 -828
- package/src/String.ts +3 -2
- package/src/Struct.ts +20 -18
- package/src/SubscriptionRef.ts +2 -2
- package/src/Symbol.ts +3 -3
- package/src/SynchronizedRef.ts +1 -1
- package/src/Take.ts +2 -2
- package/src/Terminal.ts +5 -5
- package/src/Tracer.ts +9 -9
- package/src/Trie.ts +70 -106
- package/src/Tuple.ts +34 -32
- package/src/TxChunk.ts +27 -18
- package/src/TxDeferred.ts +11 -11
- package/src/TxHashMap.ts +62 -63
- package/src/TxHashSet.ts +38 -42
- package/src/TxPriorityQueue.ts +31 -31
- package/src/TxPubSub.ts +18 -18
- package/src/TxQueue.ts +26 -29
- package/src/TxReentrantLock.ts +21 -21
- package/src/TxRef.ts +24 -24
- package/src/TxSemaphore.ts +13 -74
- package/src/TxSubscriptionRef.ts +24 -24
- package/src/Types.ts +1 -4
- package/src/UndefinedOr.ts +14 -0
- package/src/Unify.ts +8 -8
- package/src/Utils.ts +1 -2
- package/src/index.ts +1915 -408
- package/src/testing/FastCheck.ts +3 -3
- package/src/testing/TestClock.ts +2 -3
- package/src/testing/TestConsole.ts +8 -9
- package/src/testing/TestSchema.ts +2 -0
- package/src/testing/index.ts +34 -0
- package/src/unstable/ai/AiError.ts +10 -19
- package/src/unstable/ai/Chat.ts +0 -1
- package/src/unstable/ai/McpSchema.ts +3 -0
- package/src/unstable/ai/McpServer.ts +3 -1
- package/src/unstable/ai/Model.ts +2 -6
- package/src/unstable/ai/Prompt.ts +8 -10
- package/src/unstable/ai/Response.ts +20 -20
- package/src/unstable/ai/ResponseIdTracker.ts +1 -1
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +14 -12
- package/src/unstable/ai/index.ts +79 -5
- package/src/unstable/cli/CliOutput.ts +5 -6
- package/src/unstable/cli/Command.ts +3 -3
- package/src/unstable/cli/HelpDoc.ts +4 -4
- package/src/unstable/cli/Param.ts +69 -72
- package/src/unstable/cli/Primitive.ts +1 -1
- package/src/unstable/cli/Prompt.ts +6 -14
- package/src/unstable/cli/index.ts +205 -6
- package/src/unstable/cli/internal/parser.ts +0 -1
- package/src/unstable/cluster/ClusterCron.ts +1 -1
- package/src/unstable/cluster/ClusterSchema.ts +8 -8
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +2 -2
- package/src/unstable/cluster/Entity.ts +0 -1
- package/src/unstable/cluster/EntityProxy.ts +10 -14
- package/src/unstable/cluster/EntityProxyServer.ts +3 -2
- package/src/unstable/cluster/EntityResource.ts +2 -2
- package/src/unstable/cluster/Envelope.ts +1 -1
- package/src/unstable/cluster/HttpRunner.ts +11 -11
- package/src/unstable/cluster/K8sHttpClient.ts +5 -5
- package/src/unstable/cluster/MachineId.ts +1 -1
- package/src/unstable/cluster/MessageStorage.ts +1 -2
- package/src/unstable/cluster/Runner.ts +1 -1
- package/src/unstable/cluster/RunnerHealth.ts +2 -2
- package/src/unstable/cluster/RunnerServer.ts +4 -4
- package/src/unstable/cluster/Runners.ts +3 -3
- package/src/unstable/cluster/ShardId.ts +7 -5
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/ShardingConfig.ts +2 -2
- package/src/unstable/cluster/SingleRunner.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +10 -9
- package/src/unstable/cluster/SocketRunner.ts +2 -2
- package/src/unstable/cluster/SqlMessageStorage.ts +3 -3
- package/src/unstable/cluster/SqlRunnerStorage.ts +3 -3
- package/src/unstable/cluster/TestRunner.ts +1 -1
- package/src/unstable/cluster/index.ts +790 -0
- package/src/unstable/devtools/index.ts +58 -0
- package/src/unstable/encoding/Sse.ts +16 -16
- package/src/unstable/encoding/index.ts +49 -0
- package/src/unstable/eventlog/Event.ts +2 -2
- package/src/unstable/eventlog/EventGroup.ts +2 -2
- package/src/unstable/eventlog/EventLog.ts +6 -7
- package/src/unstable/eventlog/EventLogRemote.ts +2 -2
- package/src/unstable/eventlog/EventLogServer.ts +2 -2
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +2 -2
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +1 -1
- package/src/unstable/eventlog/EventLogSessionAuth.ts +1 -1
- package/src/unstable/eventlog/index.ts +240 -0
- package/src/unstable/http/Cookies.ts +6 -6
- package/src/unstable/http/Etag.ts +2 -2
- package/src/unstable/http/Headers.ts +2 -2
- package/src/unstable/http/HttpClient.ts +5 -6
- package/src/unstable/http/HttpClientError.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +4 -4
- package/src/unstable/http/HttpClientResponse.ts +6 -6
- package/src/unstable/http/HttpEffect.ts +5 -5
- package/src/unstable/http/HttpIncomingMessage.ts +7 -6
- package/src/unstable/http/HttpMethod.ts +4 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -0
- package/src/unstable/http/HttpRouter.ts +23 -25
- package/src/unstable/http/HttpServerError.ts +4 -1
- package/src/unstable/http/HttpServerRequest.ts +15 -15
- package/src/unstable/http/HttpServerRespondable.ts +1 -1
- package/src/unstable/http/HttpServerResponse.ts +5 -4
- package/src/unstable/http/HttpStaticServer.ts +2 -4
- package/src/unstable/http/Multipart.ts +20 -19
- package/src/unstable/http/Template.ts +0 -1
- package/src/unstable/http/Url.ts +17 -17
- package/src/unstable/http/UrlParams.ts +14 -12
- package/src/unstable/http/index.ts +452 -0
- package/src/unstable/httpapi/HttpApiBuilder.ts +0 -1
- package/src/unstable/httpapi/HttpApiClient.ts +0 -1
- package/src/unstable/httpapi/HttpApiMiddleware.ts +4 -2
- package/src/unstable/httpapi/HttpApiScalar.ts +2 -2
- package/src/unstable/httpapi/HttpApiSchema.ts +19 -8
- package/src/unstable/httpapi/HttpApiSecurity.ts +0 -1
- package/src/unstable/httpapi/HttpApiSwagger.ts +0 -2
- package/src/unstable/httpapi/index.ts +310 -25
- package/src/unstable/observability/Otlp.ts +3 -3
- package/src/unstable/observability/OtlpExporter.ts +1 -1
- package/src/unstable/observability/OtlpLogger.ts +3 -2
- package/src/unstable/observability/OtlpMetrics.ts +5 -4
- package/src/unstable/observability/OtlpResource.ts +9 -9
- package/src/unstable/observability/OtlpSerialization.ts +3 -3
- package/src/unstable/observability/OtlpTracer.ts +5 -2
- package/src/unstable/observability/PrometheusMetrics.ts +7 -7
- package/src/unstable/observability/index.ts +158 -2
- package/src/unstable/persistence/KeyValueStore.ts +4 -4
- package/src/unstable/persistence/Persistable.ts +11 -11
- package/src/unstable/persistence/PersistedCache.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +6 -6
- package/src/unstable/persistence/Persistence.ts +2 -1
- package/src/unstable/persistence/RateLimiter.ts +19 -15
- package/src/unstable/persistence/Redis.ts +3 -3
- package/src/unstable/persistence/index.ts +147 -0
- package/src/unstable/process/ChildProcess.ts +42 -42
- package/src/unstable/process/ChildProcessSpawner.ts +10 -10
- package/src/unstable/reactivity/AsyncResult.ts +8 -6
- package/src/unstable/reactivity/Atom.ts +25 -20
- package/src/unstable/reactivity/AtomHttpApi.ts +2 -2
- package/src/unstable/reactivity/AtomRef.ts +2 -2
- package/src/unstable/reactivity/AtomRegistry.ts +17 -17
- package/src/unstable/reactivity/AtomRpc.ts +2 -2
- package/src/unstable/reactivity/Reactivity.ts +2 -3
- package/src/unstable/reactivity/index.ts +167 -0
- package/src/unstable/rpc/Rpc.ts +0 -1
- package/src/unstable/rpc/RpcClient.ts +0 -1
- package/src/unstable/rpc/RpcClientError.ts +2 -2
- package/src/unstable/rpc/RpcMiddleware.ts +2 -2
- package/src/unstable/rpc/RpcWorker.ts +0 -1
- package/src/unstable/rpc/Utils.ts +2 -0
- package/src/unstable/rpc/index.ts +272 -0
- package/src/unstable/schema/Model.ts +98 -10
- package/src/unstable/schema/VariantSchema.ts +1 -4
- package/src/unstable/schema/index.ts +37 -0
- package/src/unstable/socket/Socket.ts +5 -4
- package/src/unstable/socket/index.ts +44 -0
- package/src/unstable/sql/Migrator.ts +5 -5
- package/src/unstable/sql/SqlClient.ts +4 -0
- package/src/unstable/sql/SqlConnection.ts +3 -3
- package/src/unstable/sql/SqlError.ts +18 -0
- package/src/unstable/sql/SqlModel.ts +0 -1
- package/src/unstable/sql/SqlSchema.ts +5 -5
- package/src/unstable/sql/SqlStream.ts +1 -0
- package/src/unstable/sql/Statement.ts +27 -24
- package/src/unstable/sql/index.ts +178 -0
- package/src/unstable/workers/Transferable.ts +7 -7
- package/src/unstable/workers/Worker.ts +1 -0
- package/src/unstable/workers/WorkerError.ts +8 -8
- package/src/unstable/workers/index.ts +80 -0
- package/src/unstable/workflow/Activity.ts +7 -7
- package/src/unstable/workflow/DurableClock.ts +2 -2
- package/src/unstable/workflow/DurableDeferred.ts +22 -20
- package/src/unstable/workflow/DurableQueue.ts +7 -5
- package/src/unstable/workflow/Workflow.ts +12 -10
- package/src/unstable/workflow/WorkflowEngine.ts +4 -4
- package/src/unstable/workflow/WorkflowProxy.ts +10 -12
- package/src/unstable/workflow/WorkflowProxyServer.ts +3 -2
- package/src/unstable/workflow/index.ts +160 -0
package/dist/Effect.js
CHANGED
|
@@ -15,7 +15,7 @@ import { internalCall } from "./Utils.js";
|
|
|
15
15
|
* Runtime identifier used to recognize `Effect` values.
|
|
16
16
|
*
|
|
17
17
|
* @category Type identifiers
|
|
18
|
-
* @since
|
|
18
|
+
* @since 4.0.0
|
|
19
19
|
*/
|
|
20
20
|
export const TypeId = core.EffectTypeId;
|
|
21
21
|
/**
|
|
@@ -30,7 +30,7 @@ export const TypeId = core.EffectTypeId;
|
|
|
30
30
|
* console.log(Effect.isEffect("hello")) // false
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
|
-
* @category
|
|
33
|
+
* @category guards
|
|
34
34
|
* @since 2.0.0
|
|
35
35
|
*/
|
|
36
36
|
export const isEffect = core.isEffect;
|
|
@@ -190,7 +190,7 @@ export const all = internal.all;
|
|
|
190
190
|
* ```
|
|
191
191
|
*
|
|
192
192
|
* @category Collecting
|
|
193
|
-
* @since
|
|
193
|
+
* @since 2.0.0
|
|
194
194
|
*/
|
|
195
195
|
export const partition = internal.partition;
|
|
196
196
|
/**
|
|
@@ -227,7 +227,7 @@ export const partition = internal.partition;
|
|
|
227
227
|
* ```
|
|
228
228
|
*
|
|
229
229
|
* @category Error Accumulation
|
|
230
|
-
* @since
|
|
230
|
+
* @since 2.0.0
|
|
231
231
|
*/
|
|
232
232
|
export const validate = internal.validate;
|
|
233
233
|
/**
|
|
@@ -287,8 +287,7 @@ export const findFirstFilter = internal.findFirstFilter;
|
|
|
287
287
|
* **Example** (Applying Effects to Iterable Elements)
|
|
288
288
|
*
|
|
289
289
|
* ```ts
|
|
290
|
-
* import { Effect } from "effect"
|
|
291
|
-
* import { Console } from "effect"
|
|
290
|
+
* import { Console, Effect } from "effect"
|
|
292
291
|
*
|
|
293
292
|
* const result = Effect.forEach(
|
|
294
293
|
* [1, 2, 3, 4, 5],
|
|
@@ -309,8 +308,7 @@ export const findFirstFilter = internal.findFirstFilter;
|
|
|
309
308
|
* **Example** (Using discard to Ignore Results)
|
|
310
309
|
*
|
|
311
310
|
* ```ts
|
|
312
|
-
* import { Effect } from "effect"
|
|
313
|
-
* import { Console } from "effect"
|
|
311
|
+
* import { Console, Effect } from "effect"
|
|
314
312
|
*
|
|
315
313
|
* // Apply effects but discard the results
|
|
316
314
|
* const result = Effect.forEach(
|
|
@@ -382,7 +380,7 @@ export const whileLoop = internal.whileLoop;
|
|
|
382
380
|
* This defect is not a standard error but indicates a flaw in the logic that
|
|
383
381
|
* was expected to be error-free. You can think of it similar to an unexpected
|
|
384
382
|
* crash in the program, which can be further managed or logged using tools like
|
|
385
|
-
* {@link
|
|
383
|
+
* {@link catchDefect}.
|
|
386
384
|
*
|
|
387
385
|
* **Interruptions**
|
|
388
386
|
*
|
|
@@ -646,7 +644,7 @@ export const suspend = internal.suspend;
|
|
|
646
644
|
* This defect is not a standard error but indicates a flaw in the logic that
|
|
647
645
|
* was expected to be error-free. You can think of it similar to an unexpected
|
|
648
646
|
* crash in the program, which can be further managed or logged using tools like
|
|
649
|
-
* {@link
|
|
647
|
+
* {@link catchDefect}.
|
|
650
648
|
*
|
|
651
649
|
* @see {@link try_ | try} for a version that can handle failures.
|
|
652
650
|
*
|
|
@@ -698,12 +696,6 @@ undefined_ as undefined };
|
|
|
698
696
|
* Use `Effect.callback` when integrating APIs that complete through callbacks
|
|
699
697
|
* instead of returning a `Promise`.
|
|
700
698
|
*
|
|
701
|
-
* **Previously Known As**
|
|
702
|
-
*
|
|
703
|
-
* This API replaces the following from Effect 3.x:
|
|
704
|
-
*
|
|
705
|
-
* - `Effect.async`
|
|
706
|
-
*
|
|
707
699
|
* **Example** (Usage)
|
|
708
700
|
*
|
|
709
701
|
* ```ts
|
|
@@ -722,7 +714,7 @@ undefined_ as undefined };
|
|
|
722
714
|
* ```
|
|
723
715
|
*
|
|
724
716
|
* @category Creating Effects
|
|
725
|
-
* @since
|
|
717
|
+
* @since 4.0.0
|
|
726
718
|
*/
|
|
727
719
|
export const callback = internal.callback;
|
|
728
720
|
/**
|
|
@@ -755,8 +747,7 @@ export const never = internal.never;
|
|
|
755
747
|
* **Example** (Usage)
|
|
756
748
|
*
|
|
757
749
|
* ```ts
|
|
758
|
-
* import { Effect } from "effect"
|
|
759
|
-
* import { pipe } from "effect/Function"
|
|
750
|
+
* import { Effect, pipe } from "effect"
|
|
760
751
|
*
|
|
761
752
|
* const program = pipe(
|
|
762
753
|
* Effect.Do,
|
|
@@ -767,7 +758,7 @@ export const never = internal.never;
|
|
|
767
758
|
* ```
|
|
768
759
|
*
|
|
769
760
|
* @category Do notation
|
|
770
|
-
* @since
|
|
761
|
+
* @since 2.0.0
|
|
771
762
|
*/
|
|
772
763
|
export const Do = internal.Do;
|
|
773
764
|
/**
|
|
@@ -775,7 +766,7 @@ export const Do = internal.Do;
|
|
|
775
766
|
* record used in do notation pipelines.
|
|
776
767
|
*
|
|
777
768
|
* @category Do notation
|
|
778
|
-
* @since
|
|
769
|
+
* @since 2.0.0
|
|
779
770
|
*/
|
|
780
771
|
export const bindTo = internal.bindTo;
|
|
781
772
|
const let_ = internal.let;
|
|
@@ -784,14 +775,14 @@ export {
|
|
|
784
775
|
* Adds a computed plain value to the do notation record.
|
|
785
776
|
*
|
|
786
777
|
* @category Do notation
|
|
787
|
-
* @since
|
|
778
|
+
* @since 2.0.0
|
|
788
779
|
*/
|
|
789
780
|
let_ as let };
|
|
790
781
|
/**
|
|
791
782
|
* Adds an `Effect` value to the do notation record under a given name.
|
|
792
783
|
*
|
|
793
784
|
* @category Do notation
|
|
794
|
-
* @since
|
|
785
|
+
* @since 2.0.0
|
|
795
786
|
*/
|
|
796
787
|
export const bind = internal.bind;
|
|
797
788
|
/**
|
|
@@ -853,7 +844,7 @@ export const gen = internal.gen;
|
|
|
853
844
|
*
|
|
854
845
|
* Use this function to explicitly signal an error in an `Effect`. The error
|
|
855
846
|
* will keep propagating unless it is handled. You can handle the error with
|
|
856
|
-
* functions like {@link
|
|
847
|
+
* functions like {@link catchTag} or {@link catchTags}.
|
|
857
848
|
*
|
|
858
849
|
* @see {@link succeed} to create an effect that represents a successful value.
|
|
859
850
|
*
|
|
@@ -961,8 +952,7 @@ export const failCauseSync = internal.failCauseSync;
|
|
|
961
952
|
* The error channel of the resulting effect is of type `never`, indicating that
|
|
962
953
|
* it cannot recover from this failure.
|
|
963
954
|
*
|
|
964
|
-
* @see {@link
|
|
965
|
-
* @see {@link dieMessage} for a variant that throws a `RuntimeException` with a message.
|
|
955
|
+
* @see {@link die} for a variant that dies with an already computed defect.
|
|
966
956
|
*
|
|
967
957
|
* **Example** (Terminating on Division by Zero with a Specified Error)
|
|
968
958
|
*
|
|
@@ -1093,7 +1083,7 @@ export const yieldNow = internal.yieldNow;
|
|
|
1093
1083
|
* ```
|
|
1094
1084
|
*
|
|
1095
1085
|
* @category Creating Effects
|
|
1096
|
-
* @since
|
|
1086
|
+
* @since 4.0.0
|
|
1097
1087
|
*/
|
|
1098
1088
|
export const yieldNowWith = internal.yieldNowWith;
|
|
1099
1089
|
/**
|
|
@@ -1113,7 +1103,7 @@ export const yieldNowWith = internal.yieldNowWith;
|
|
|
1113
1103
|
* ```
|
|
1114
1104
|
*
|
|
1115
1105
|
* @category Creating Effects
|
|
1116
|
-
* @since
|
|
1106
|
+
* @since 4.0.0
|
|
1117
1107
|
*/
|
|
1118
1108
|
export const withFiber = core.withFiber;
|
|
1119
1109
|
// -----------------------------------------------------------------------------
|
|
@@ -1138,7 +1128,7 @@ export const withFiber = core.withFiber;
|
|
|
1138
1128
|
* // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Something went wrong' } }
|
|
1139
1129
|
* ```
|
|
1140
1130
|
*
|
|
1141
|
-
* @category
|
|
1131
|
+
* @category converting
|
|
1142
1132
|
* @since 4.0.0
|
|
1143
1133
|
*/
|
|
1144
1134
|
export const fromResult = internal.fromResult;
|
|
@@ -1164,7 +1154,7 @@ export const fromResult = internal.fromResult;
|
|
|
1164
1154
|
* // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: { _id: 'NoSuchElementError' } } }
|
|
1165
1155
|
* ```
|
|
1166
1156
|
*
|
|
1167
|
-
* @category
|
|
1157
|
+
* @category converting
|
|
1168
1158
|
* @since 4.0.0
|
|
1169
1159
|
*/
|
|
1170
1160
|
export const fromOption = internal.fromOption;
|
|
@@ -1190,7 +1180,7 @@ export const fromOption = internal.fromOption;
|
|
|
1190
1180
|
* // Output: hello
|
|
1191
1181
|
* ```
|
|
1192
1182
|
*
|
|
1193
|
-
* @category
|
|
1183
|
+
* @category converting
|
|
1194
1184
|
* @since 4.0.0
|
|
1195
1185
|
*/
|
|
1196
1186
|
export const fromNullishOr = internal.fromNullishOr;
|
|
@@ -1258,7 +1248,7 @@ export const fromNullishOr = internal.fromNullishOr;
|
|
|
1258
1248
|
*
|
|
1259
1249
|
* @see {@link tap} for a version that ignores the result of the effect.
|
|
1260
1250
|
*
|
|
1261
|
-
* @category
|
|
1251
|
+
* @category sequencing
|
|
1262
1252
|
* @since 2.0.0
|
|
1263
1253
|
*/
|
|
1264
1254
|
export const flatMap = internal.flatMap;
|
|
@@ -1279,7 +1269,7 @@ export const flatMap = internal.flatMap;
|
|
|
1279
1269
|
* })
|
|
1280
1270
|
* ```
|
|
1281
1271
|
*
|
|
1282
|
-
* @category
|
|
1272
|
+
* @category sequencing
|
|
1283
1273
|
* @since 2.0.0
|
|
1284
1274
|
*/
|
|
1285
1275
|
export const flatten = internal.flatten;
|
|
@@ -1312,12 +1302,6 @@ export const flatten = internal.flatten;
|
|
|
1312
1302
|
* Failures or requirements from either effect are preserved in the returned
|
|
1313
1303
|
* effect.
|
|
1314
1304
|
*
|
|
1315
|
-
* **Previously Known As**
|
|
1316
|
-
*
|
|
1317
|
-
* This API replaces the following from Effect 3.x:
|
|
1318
|
-
*
|
|
1319
|
-
* - `Effect.zipRight`
|
|
1320
|
-
*
|
|
1321
1305
|
* **Example** (Applying a Discount Based on Fetched Amount)
|
|
1322
1306
|
*
|
|
1323
1307
|
* ```ts
|
|
@@ -1358,7 +1342,7 @@ export const flatten = internal.flatten;
|
|
|
1358
1342
|
* // Output: 190
|
|
1359
1343
|
* ```
|
|
1360
1344
|
*
|
|
1361
|
-
* @category
|
|
1345
|
+
* @category sequencing
|
|
1362
1346
|
* @since 2.0.0
|
|
1363
1347
|
*/
|
|
1364
1348
|
export const andThen = internal.andThen;
|
|
@@ -1379,17 +1363,10 @@ export const andThen = internal.andThen;
|
|
|
1379
1363
|
* next part of the chain. Note that if the side effect fails, the entire chain
|
|
1380
1364
|
* will fail too.
|
|
1381
1365
|
*
|
|
1382
|
-
* **Previously Known As**
|
|
1383
|
-
*
|
|
1384
|
-
* This API replaces the following from Effect 3.x:
|
|
1385
|
-
*
|
|
1386
|
-
* - `Effect.zipLeft`
|
|
1387
|
-
*
|
|
1388
1366
|
* **Example** (Logging a step in a pipeline)
|
|
1389
1367
|
*
|
|
1390
1368
|
* ```ts
|
|
1391
|
-
* import { Data, Effect, pipe } from "effect"
|
|
1392
|
-
* import { Console } from "effect"
|
|
1369
|
+
* import { Console, Data, Effect, pipe } from "effect"
|
|
1393
1370
|
*
|
|
1394
1371
|
* class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {}
|
|
1395
1372
|
*
|
|
@@ -1419,7 +1396,7 @@ export const andThen = internal.andThen;
|
|
|
1419
1396
|
* // 95
|
|
1420
1397
|
* ```
|
|
1421
1398
|
*
|
|
1422
|
-
* @category
|
|
1399
|
+
* @category sequencing
|
|
1423
1400
|
* @since 2.0.0
|
|
1424
1401
|
*/
|
|
1425
1402
|
export const tap = internal.tap;
|
|
@@ -1446,12 +1423,6 @@ export const tap = internal.tap;
|
|
|
1446
1423
|
* The resulting effect cannot fail directly because all recoverable failures
|
|
1447
1424
|
* are represented inside the `Result` type.
|
|
1448
1425
|
*
|
|
1449
|
-
* **Previously Known As**
|
|
1450
|
-
*
|
|
1451
|
-
* This API replaces the following from Effect 3.x:
|
|
1452
|
-
*
|
|
1453
|
-
* - `Effect.either`
|
|
1454
|
-
*
|
|
1455
1426
|
* **Example** (Usage)
|
|
1456
1427
|
*
|
|
1457
1428
|
* ```ts
|
|
@@ -1592,7 +1563,7 @@ export const exit = internal.exit;
|
|
|
1592
1563
|
* @see {@link mapBoth} for a version that operates on both channels.
|
|
1593
1564
|
* @see {@link flatMap} or {@link andThen} for a version that can return a new effect.
|
|
1594
1565
|
*
|
|
1595
|
-
* @category
|
|
1566
|
+
* @category mapping
|
|
1596
1567
|
* @since 2.0.0
|
|
1597
1568
|
*/
|
|
1598
1569
|
export const map = internal.map;
|
|
@@ -1614,7 +1585,7 @@ export const map = internal.map;
|
|
|
1614
1585
|
* // Output: "new value"
|
|
1615
1586
|
* ```
|
|
1616
1587
|
*
|
|
1617
|
-
* @category
|
|
1588
|
+
* @category mapping
|
|
1618
1589
|
* @since 2.0.0
|
|
1619
1590
|
*/
|
|
1620
1591
|
export const as = internal.as;
|
|
@@ -1634,7 +1605,7 @@ export const as = internal.as;
|
|
|
1634
1605
|
* // { _id: 'Option', _tag: 'Some', value: 42 }
|
|
1635
1606
|
* ```
|
|
1636
1607
|
*
|
|
1637
|
-
* @category
|
|
1608
|
+
* @category mapping
|
|
1638
1609
|
* @since 2.0.0
|
|
1639
1610
|
*/
|
|
1640
1611
|
export const asSome = internal.asSome;
|
|
@@ -1655,7 +1626,7 @@ export const asSome = internal.asSome;
|
|
|
1655
1626
|
* // undefined (void)
|
|
1656
1627
|
* ```
|
|
1657
1628
|
*
|
|
1658
|
-
* @category
|
|
1629
|
+
* @category mapping
|
|
1659
1630
|
* @since 2.0.0
|
|
1660
1631
|
*/
|
|
1661
1632
|
export const asVoid = internal.asVoid;
|
|
@@ -1682,7 +1653,7 @@ export const asVoid = internal.asVoid;
|
|
|
1682
1653
|
* const flipped = Effect.flip(program)
|
|
1683
1654
|
* ```
|
|
1684
1655
|
*
|
|
1685
|
-
* @category
|
|
1656
|
+
* @category mapping
|
|
1686
1657
|
* @since 2.0.0
|
|
1687
1658
|
*/
|
|
1688
1659
|
export const flip = internal.flip;
|
|
@@ -1754,7 +1725,7 @@ export const flip = internal.flip;
|
|
|
1754
1725
|
* // [ 1, 'hello' ]
|
|
1755
1726
|
* ```
|
|
1756
1727
|
*
|
|
1757
|
-
* @category
|
|
1728
|
+
* @category zipping
|
|
1758
1729
|
* @since 2.0.0
|
|
1759
1730
|
*/
|
|
1760
1731
|
export const zip = internal.zip;
|
|
@@ -1801,7 +1772,7 @@ export const zip = internal.zip;
|
|
|
1801
1772
|
* // 6
|
|
1802
1773
|
* ```
|
|
1803
1774
|
*
|
|
1804
|
-
* @category
|
|
1775
|
+
* @category zipping
|
|
1805
1776
|
* @since 2.0.0
|
|
1806
1777
|
*/
|
|
1807
1778
|
export const zipWith = internal.zipWith;
|
|
@@ -1825,13 +1796,7 @@ export {
|
|
|
1825
1796
|
*
|
|
1826
1797
|
* @see {@link catchCause} for a version that can recover from both recoverable and unrecoverable errors.
|
|
1827
1798
|
*
|
|
1828
|
-
*
|
|
1829
|
-
*
|
|
1830
|
-
* This API replaces the following from Effect 3.x:
|
|
1831
|
-
*
|
|
1832
|
-
* - `Effect.catchAll`
|
|
1833
|
-
*
|
|
1834
|
-
* @category Error Handling
|
|
1799
|
+
* @category error handling
|
|
1835
1800
|
* @since 4.0.0
|
|
1836
1801
|
*/
|
|
1837
1802
|
catch_ as catch };
|
|
@@ -1873,7 +1838,7 @@ catch_ as catch };
|
|
|
1873
1838
|
* )
|
|
1874
1839
|
* ```
|
|
1875
1840
|
*
|
|
1876
|
-
* @category
|
|
1841
|
+
* @category error handling
|
|
1877
1842
|
* @since 2.0.0
|
|
1878
1843
|
*/
|
|
1879
1844
|
export const catchTag = internal.catchTag;
|
|
@@ -1917,7 +1882,7 @@ export const catchTag = internal.catchTag;
|
|
|
1917
1882
|
* })
|
|
1918
1883
|
* ```
|
|
1919
1884
|
*
|
|
1920
|
-
* @category
|
|
1885
|
+
* @category error handling
|
|
1921
1886
|
* @since 2.0.0
|
|
1922
1887
|
*/
|
|
1923
1888
|
export const catchTags = internal.catchTags;
|
|
@@ -1954,7 +1919,7 @@ export const catchTags = internal.catchTags;
|
|
|
1954
1919
|
* )
|
|
1955
1920
|
* ```
|
|
1956
1921
|
*
|
|
1957
|
-
* @category
|
|
1922
|
+
* @category error handling
|
|
1958
1923
|
* @since 4.0.0
|
|
1959
1924
|
*/
|
|
1960
1925
|
export const catchReason = internal.catchReason;
|
|
@@ -1990,7 +1955,7 @@ export const catchReason = internal.catchReason;
|
|
|
1990
1955
|
* )
|
|
1991
1956
|
* ```
|
|
1992
1957
|
*
|
|
1993
|
-
* @category
|
|
1958
|
+
* @category error handling
|
|
1994
1959
|
* @since 4.0.0
|
|
1995
1960
|
*/
|
|
1996
1961
|
export const catchReasons = internal.catchReasons;
|
|
@@ -2022,7 +1987,7 @@ export const catchReasons = internal.catchReasons;
|
|
|
2022
1987
|
* const unwrapped = program.pipe(Effect.unwrapReason("AiError"))
|
|
2023
1988
|
* ```
|
|
2024
1989
|
*
|
|
2025
|
-
* @category
|
|
1990
|
+
* @category error handling
|
|
2026
1991
|
* @since 4.0.0
|
|
2027
1992
|
*/
|
|
2028
1993
|
export const unwrapReason = internal.unwrapReason;
|
|
@@ -2043,12 +2008,6 @@ export const unwrapReason = internal.unwrapReason;
|
|
|
2043
2008
|
* they often indicate serious issues. However, in some cases, such as
|
|
2044
2009
|
* dynamically loaded plugins, controlled recovery might be needed.
|
|
2045
2010
|
*
|
|
2046
|
-
* **Previously Known As**
|
|
2047
|
-
*
|
|
2048
|
-
* This API replaces the following from Effect 3.x:
|
|
2049
|
-
*
|
|
2050
|
-
* - `Effect.catchAllCause`
|
|
2051
|
-
*
|
|
2052
2011
|
* **Example** (Usage)
|
|
2053
2012
|
*
|
|
2054
2013
|
* ```ts
|
|
@@ -2068,7 +2027,7 @@ export const unwrapReason = internal.unwrapReason;
|
|
|
2068
2027
|
* })
|
|
2069
2028
|
* ```
|
|
2070
2029
|
*
|
|
2071
|
-
* @category
|
|
2030
|
+
* @category error handling
|
|
2072
2031
|
* @since 4.0.0
|
|
2073
2032
|
*/
|
|
2074
2033
|
export const catchCause = internal.catchCause;
|
|
@@ -2091,12 +2050,6 @@ export const catchCause = internal.catchCause;
|
|
|
2091
2050
|
* they often indicate serious issues. In some cases, such as dynamically loaded
|
|
2092
2051
|
* plugins, controlled recovery may be needed.
|
|
2093
2052
|
*
|
|
2094
|
-
* **Previously Known As**
|
|
2095
|
-
*
|
|
2096
|
-
* This API replaces the following from Effect 3.x:
|
|
2097
|
-
*
|
|
2098
|
-
* - `Effect.catchAllDefect`
|
|
2099
|
-
*
|
|
2100
2053
|
* **Example** (Usage)
|
|
2101
2054
|
*
|
|
2102
2055
|
* ```ts
|
|
@@ -2115,7 +2068,7 @@ export const catchCause = internal.catchCause;
|
|
|
2115
2068
|
* })
|
|
2116
2069
|
* ```
|
|
2117
2070
|
*
|
|
2118
|
-
* @category
|
|
2071
|
+
* @category error handling
|
|
2119
2072
|
* @since 4.0.0
|
|
2120
2073
|
*/
|
|
2121
2074
|
export const catchDefect = internal.catchDefect;
|
|
@@ -2129,13 +2082,6 @@ export const catchDefect = internal.catchDefect;
|
|
|
2129
2082
|
* matching. Non-matching errors re-fail with the original cause. Defects and
|
|
2130
2083
|
* interrupts are not caught.
|
|
2131
2084
|
*
|
|
2132
|
-
* **Previously Known As**
|
|
2133
|
-
*
|
|
2134
|
-
* This API replaces the following:
|
|
2135
|
-
*
|
|
2136
|
-
* - `Effect.catchSome` (Effect 3.x)
|
|
2137
|
-
* - `Effect.catchIf`
|
|
2138
|
-
*
|
|
2139
2085
|
* **Example** (Usage)
|
|
2140
2086
|
*
|
|
2141
2087
|
* ```ts
|
|
@@ -2162,14 +2108,14 @@ export const catchDefect = internal.catchDefect;
|
|
|
2162
2108
|
* )
|
|
2163
2109
|
* ```
|
|
2164
2110
|
*
|
|
2165
|
-
* @category
|
|
2111
|
+
* @category error handling
|
|
2166
2112
|
* @since 2.0.0
|
|
2167
2113
|
*/
|
|
2168
2114
|
export const catchIf = internal.catchIf;
|
|
2169
2115
|
/**
|
|
2170
2116
|
* Recovers from specific errors using a `Filter`.
|
|
2171
2117
|
*
|
|
2172
|
-
* @category
|
|
2118
|
+
* @category error handling
|
|
2173
2119
|
* @since 4.0.0
|
|
2174
2120
|
*/
|
|
2175
2121
|
export const catchFilter = internal.catchFilter;
|
|
@@ -2191,14 +2137,8 @@ export const catchFilter = internal.catchFilter;
|
|
|
2191
2137
|
* Effect.runPromise(none).then(console.log) // { _id: 'Option', _tag: 'None' }
|
|
2192
2138
|
* ```
|
|
2193
2139
|
*
|
|
2194
|
-
*
|
|
2195
|
-
*
|
|
2196
|
-
* This API replaces the following from Effect 3.x:
|
|
2197
|
-
*
|
|
2198
|
-
* - `Effect.optionFromOptional`
|
|
2199
|
-
*
|
|
2200
|
-
* @category Error Handling
|
|
2201
|
-
* @since 2.0.0
|
|
2140
|
+
* @category error handling
|
|
2141
|
+
* @since 4.0.0
|
|
2202
2142
|
*/
|
|
2203
2143
|
export const catchNoSuchElement = internal.catchNoSuchElement;
|
|
2204
2144
|
/**
|
|
@@ -2208,12 +2148,6 @@ export const catchNoSuchElement = internal.catchNoSuchElement;
|
|
|
2208
2148
|
* that match a specific predicate. This is useful when you want to handle
|
|
2209
2149
|
* only certain types of errors while letting others propagate.
|
|
2210
2150
|
*
|
|
2211
|
-
* **Previously Known As**
|
|
2212
|
-
*
|
|
2213
|
-
* This API replaces the following from Effect 3.x:
|
|
2214
|
-
*
|
|
2215
|
-
* - `Effect.catchSomeCause`
|
|
2216
|
-
*
|
|
2217
2151
|
* **Example** (Usage)
|
|
2218
2152
|
*
|
|
2219
2153
|
* ```ts
|
|
@@ -2237,14 +2171,14 @@ export const catchNoSuchElement = internal.catchNoSuchElement;
|
|
|
2237
2171
|
* // Then: "Fallback response"
|
|
2238
2172
|
* ```
|
|
2239
2173
|
*
|
|
2240
|
-
* @category
|
|
2174
|
+
* @category error handling
|
|
2241
2175
|
* @since 4.0.0
|
|
2242
2176
|
*/
|
|
2243
2177
|
export const catchCauseIf = internal.catchCauseIf;
|
|
2244
2178
|
/**
|
|
2245
2179
|
* Recovers from specific failures based on a `Filter`.
|
|
2246
2180
|
*
|
|
2247
|
-
* @category
|
|
2181
|
+
* @category error handling
|
|
2248
2182
|
* @since 4.0.0
|
|
2249
2183
|
*/
|
|
2250
2184
|
export const catchCauseFilter = internal.catchCauseFilter;
|
|
@@ -2259,7 +2193,7 @@ export const catchCauseFilter = internal.catchCauseFilter;
|
|
|
2259
2193
|
*
|
|
2260
2194
|
* @see {@link map} for a version that operates on the success channel.
|
|
2261
2195
|
* @see {@link mapBoth} for a version that operates on both channels.
|
|
2262
|
-
* @see {@link
|
|
2196
|
+
* @see {@link mapError} if you want to replace the error with a new one.
|
|
2263
2197
|
*
|
|
2264
2198
|
* **Example** (Usage)
|
|
2265
2199
|
*
|
|
@@ -2280,7 +2214,7 @@ export const catchCauseFilter = internal.catchCauseFilter;
|
|
|
2280
2214
|
* )
|
|
2281
2215
|
* ```
|
|
2282
2216
|
*
|
|
2283
|
-
* @category
|
|
2217
|
+
* @category error handling
|
|
2284
2218
|
* @since 2.0.0
|
|
2285
2219
|
*/
|
|
2286
2220
|
export const mapError = internal.mapError;
|
|
@@ -2316,7 +2250,7 @@ export const mapError = internal.mapError;
|
|
|
2316
2250
|
* @see {@link map} for a version that operates on the success channel.
|
|
2317
2251
|
* @see {@link mapError} for a version that operates on the error channel.
|
|
2318
2252
|
*
|
|
2319
|
-
* @category
|
|
2253
|
+
* @category mapping
|
|
2320
2254
|
* @since 2.0.0
|
|
2321
2255
|
*/
|
|
2322
2256
|
export const mapBoth = internal.mapBoth;
|
|
@@ -2329,7 +2263,7 @@ export const mapBoth = internal.mapBoth;
|
|
|
2329
2263
|
* Use `orDie` when a typed failure represents an unrecoverable bug or invalid
|
|
2330
2264
|
* state and should not be handled as a recoverable error.
|
|
2331
2265
|
*
|
|
2332
|
-
* @see {@link
|
|
2266
|
+
* @see {@link mapError} to transform the error before converting it into a defect with {@link orDie}.
|
|
2333
2267
|
*
|
|
2334
2268
|
* **Example** (Propagating an Error as a Defect)
|
|
2335
2269
|
*
|
|
@@ -2386,7 +2320,7 @@ export const orDie = internal.orDie;
|
|
|
2386
2320
|
* // expected error: NetworkError
|
|
2387
2321
|
* ```
|
|
2388
2322
|
*
|
|
2389
|
-
* @category
|
|
2323
|
+
* @category sequencing
|
|
2390
2324
|
* @since 2.0.0
|
|
2391
2325
|
*/
|
|
2392
2326
|
export const tapError = internal.tapError;
|
|
@@ -2422,7 +2356,7 @@ export const tapError = internal.tapError;
|
|
|
2422
2356
|
* // expected error: 504
|
|
2423
2357
|
* ```
|
|
2424
2358
|
*
|
|
2425
|
-
* @category
|
|
2359
|
+
* @category sequencing
|
|
2426
2360
|
* @since 2.0.0
|
|
2427
2361
|
*/
|
|
2428
2362
|
export const tapErrorTag = internal.tapErrorTag;
|
|
@@ -2436,12 +2370,6 @@ export const tapErrorTag = internal.tapErrorTag;
|
|
|
2436
2370
|
* the operation succeeds, the original cause is preserved. If the operation
|
|
2437
2371
|
* fails, its error is also represented in the returned effect.
|
|
2438
2372
|
*
|
|
2439
|
-
* **Previously Known As**
|
|
2440
|
-
*
|
|
2441
|
-
* This API replaces the following from Effect 3.x:
|
|
2442
|
-
*
|
|
2443
|
-
* - `Effect.tapErrorCause`
|
|
2444
|
-
*
|
|
2445
2373
|
* **Example** (Usage)
|
|
2446
2374
|
*
|
|
2447
2375
|
* ```ts
|
|
@@ -2459,8 +2387,8 @@ export const tapErrorTag = internal.tapErrorTag;
|
|
|
2459
2387
|
* // Then: { _id: 'Exit', _tag: 'Failure', cause: ... }
|
|
2460
2388
|
* ```
|
|
2461
2389
|
*
|
|
2462
|
-
* @category
|
|
2463
|
-
* @since
|
|
2390
|
+
* @category sequencing
|
|
2391
|
+
* @since 4.0.0
|
|
2464
2392
|
*/
|
|
2465
2393
|
export const tapCause = internal.tapCause;
|
|
2466
2394
|
/**
|
|
@@ -2489,14 +2417,14 @@ export const tapCause = internal.tapCause;
|
|
|
2489
2417
|
* // Then: { _id: 'Exit', _tag: 'Failure', cause: ... }
|
|
2490
2418
|
* ```
|
|
2491
2419
|
*
|
|
2492
|
-
* @category
|
|
2420
|
+
* @category sequencing
|
|
2493
2421
|
* @since 4.0.0
|
|
2494
2422
|
*/
|
|
2495
2423
|
export const tapCauseIf = internal.tapCauseIf;
|
|
2496
2424
|
/**
|
|
2497
2425
|
* Conditionally executes a side effect based on the cause of a failed effect.
|
|
2498
2426
|
*
|
|
2499
|
-
* @category
|
|
2427
|
+
* @category sequencing
|
|
2500
2428
|
* @since 4.0.0
|
|
2501
2429
|
*/
|
|
2502
2430
|
export const tapCauseFilter = internal.tapCauseFilter;
|
|
@@ -2544,7 +2472,7 @@ export const tapCauseFilter = internal.tapCauseFilter;
|
|
|
2544
2472
|
* // ... stack trace ...
|
|
2545
2473
|
* ```
|
|
2546
2474
|
*
|
|
2547
|
-
* @category
|
|
2475
|
+
* @category sequencing
|
|
2548
2476
|
* @since 2.0.0
|
|
2549
2477
|
*/
|
|
2550
2478
|
export const tapDefect = internal.tapDefect;
|
|
@@ -2627,7 +2555,7 @@ export const eventually = internal.eventually;
|
|
|
2627
2555
|
* @see {@link retryOrElse} for a version that allows you to run a fallback.
|
|
2628
2556
|
* @see {@link repeat} if your retry condition is based on successful outcomes rather than errors.
|
|
2629
2557
|
*
|
|
2630
|
-
* @category
|
|
2558
|
+
* @category error handling
|
|
2631
2559
|
* @since 2.0.0
|
|
2632
2560
|
*/
|
|
2633
2561
|
export const retry = internalSchedule.retry;
|
|
@@ -2685,7 +2613,7 @@ export const retry = internalSchedule.retry;
|
|
|
2685
2613
|
* // Network data
|
|
2686
2614
|
* ```
|
|
2687
2615
|
*
|
|
2688
|
-
* @category
|
|
2616
|
+
* @category error handling
|
|
2689
2617
|
* @since 2.0.0
|
|
2690
2618
|
*/
|
|
2691
2619
|
export const retryOrElse = internalSchedule.retryOrElse;
|
|
@@ -2715,9 +2643,9 @@ export const retryOrElse = internalSchedule.retryOrElse;
|
|
|
2715
2643
|
* // Output: "Caught cause: Something went wrong"
|
|
2716
2644
|
* ```
|
|
2717
2645
|
*
|
|
2718
|
-
* @see {@link
|
|
2646
|
+
* @see {@link sandbox} to expose failures as full causes.
|
|
2719
2647
|
*
|
|
2720
|
-
* @category
|
|
2648
|
+
* @category error handling
|
|
2721
2649
|
* @since 2.0.0
|
|
2722
2650
|
*/
|
|
2723
2651
|
export const sandbox = internal.sandbox;
|
|
@@ -2758,13 +2686,7 @@ export const sandbox = internal.sandbox;
|
|
|
2758
2686
|
* const programWarn = task.pipe(Effect.ignore({ log: "Warn", message: "Ignoring task failure" }))
|
|
2759
2687
|
* ```
|
|
2760
2688
|
*
|
|
2761
|
-
*
|
|
2762
|
-
*
|
|
2763
|
-
* This API replaces the following from Effect 3.x:
|
|
2764
|
-
*
|
|
2765
|
-
* - `Effect.ignoreLogged`
|
|
2766
|
-
*
|
|
2767
|
-
* @category Error Handling
|
|
2689
|
+
* @category error handling
|
|
2768
2690
|
* @since 2.0.0
|
|
2769
2691
|
*/
|
|
2770
2692
|
export const ignore = internal.ignore;
|
|
@@ -2785,7 +2707,7 @@ export const ignore = internal.ignore;
|
|
|
2785
2707
|
* const programLog = task.pipe(Effect.ignoreCause({ log: true, message: "Ignoring failure cause" }))
|
|
2786
2708
|
* ```
|
|
2787
2709
|
*
|
|
2788
|
-
* @category
|
|
2710
|
+
* @category error handling
|
|
2789
2711
|
* @since 4.0.0
|
|
2790
2712
|
*/
|
|
2791
2713
|
export const ignoreCause = internal.ignoreCause;
|
|
@@ -2800,7 +2722,7 @@ export const ignoreCause = internal.ignoreCause;
|
|
|
2800
2722
|
* **Example** (Usage)
|
|
2801
2723
|
*
|
|
2802
2724
|
* ```ts
|
|
2803
|
-
* import { Effect, ExecutionPlan, Layer
|
|
2725
|
+
* import { Context, Effect, ExecutionPlan, Layer } from "effect"
|
|
2804
2726
|
*
|
|
2805
2727
|
* const Endpoint = Context.Service<{ url: string }>("Endpoint")
|
|
2806
2728
|
*
|
|
@@ -2830,7 +2752,7 @@ export const withExecutionPlan = internalExecutionPlan.withExecutionPlan;
|
|
|
2830
2752
|
* If the `defectsOnly` option is set to `true`, only defects (unrecoverable
|
|
2831
2753
|
* errors) will be reported, while regular failures will be ignored.
|
|
2832
2754
|
*
|
|
2833
|
-
* @category
|
|
2755
|
+
* @category error handling
|
|
2834
2756
|
* @since 4.0.0
|
|
2835
2757
|
*/
|
|
2836
2758
|
export const withErrorReporting = internal.withErrorReporting;
|
|
@@ -2932,9 +2854,7 @@ export const firstSuccessOf = internal.firstSuccessOf;
|
|
|
2932
2854
|
* your program waits for a task to finish, ensuring that it doesn't hang
|
|
2933
2855
|
* indefinitely if the task takes too long.
|
|
2934
2856
|
*
|
|
2935
|
-
* @see {@link
|
|
2936
|
-
* @see {@link timeoutFailCause} for a version that raises a custom defect.
|
|
2937
|
-
* @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers.
|
|
2857
|
+
* @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
|
|
2938
2858
|
*
|
|
2939
2859
|
* **Example** (Usage)
|
|
2940
2860
|
*
|
|
@@ -2982,9 +2902,7 @@ export const timeout = internal.timeout;
|
|
|
2982
2902
|
* source effect fails before the timeout, that failure is preserved.
|
|
2983
2903
|
*
|
|
2984
2904
|
* @see {@link timeout} for a version that raises a `TimeoutException`.
|
|
2985
|
-
* @see {@link
|
|
2986
|
-
* @see {@link timeoutFailCause} for a version that raises a custom defect.
|
|
2987
|
-
* @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers.
|
|
2905
|
+
* @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
|
|
2988
2906
|
*
|
|
2989
2907
|
* **Example** (Usage)
|
|
2990
2908
|
*
|
|
@@ -3053,7 +2971,7 @@ export const timeoutOption = internal.timeoutOption;
|
|
|
3053
2971
|
* ```
|
|
3054
2972
|
*
|
|
3055
2973
|
* @category Delays & Timeouts
|
|
3056
|
-
* @since
|
|
2974
|
+
* @since 4.0.0
|
|
3057
2975
|
*/
|
|
3058
2976
|
export const timeoutOrElse = internal.timeoutOrElse;
|
|
3059
2977
|
/**
|
|
@@ -3271,21 +3189,21 @@ export const raceFirst = internal.raceFirst;
|
|
|
3271
3189
|
* // Use Effect.filterMapEffect for effectful Filter.Filter callbacks
|
|
3272
3190
|
* ```
|
|
3273
3191
|
*
|
|
3274
|
-
* @category
|
|
3192
|
+
* @category filtering
|
|
3275
3193
|
* @since 2.0.0
|
|
3276
3194
|
*/
|
|
3277
3195
|
export const filter = internal.filter;
|
|
3278
3196
|
/**
|
|
3279
3197
|
* Filters and maps elements of an iterable with a `Filter`.
|
|
3280
3198
|
*
|
|
3281
|
-
* @category
|
|
3282
|
-
* @since
|
|
3199
|
+
* @category filtering
|
|
3200
|
+
* @since 2.0.0
|
|
3283
3201
|
*/
|
|
3284
3202
|
export const filterMap = internal.filterMap;
|
|
3285
3203
|
/**
|
|
3286
3204
|
* Effectfully filters and maps elements of an iterable with a `FilterEffect`.
|
|
3287
3205
|
*
|
|
3288
|
-
* @category
|
|
3206
|
+
* @category filtering
|
|
3289
3207
|
* @since 4.0.0
|
|
3290
3208
|
*/
|
|
3291
3209
|
export const filterMapEffect = internal.filterMapEffect;
|
|
@@ -3317,14 +3235,14 @@ export const filterMapEffect = internal.filterMapEffect;
|
|
|
3317
3235
|
* // Result: "Number 5 is odd" (since 5 is not even)
|
|
3318
3236
|
* ```
|
|
3319
3237
|
*
|
|
3320
|
-
* @category
|
|
3238
|
+
* @category filtering
|
|
3321
3239
|
* @since 2.0.0
|
|
3322
3240
|
*/
|
|
3323
3241
|
export const filterOrElse = internal.filterOrElse;
|
|
3324
3242
|
/**
|
|
3325
3243
|
* Filters an effect with a `Filter`, providing an alternative effect on failure.
|
|
3326
3244
|
*
|
|
3327
|
-
* @category
|
|
3245
|
+
* @category filtering
|
|
3328
3246
|
* @since 4.0.0
|
|
3329
3247
|
*/
|
|
3330
3248
|
export const filterMapOrElse = internal.filterMapOrElse;
|
|
@@ -3355,14 +3273,14 @@ export const filterMapOrElse = internal.filterMapOrElse;
|
|
|
3355
3273
|
* // Result: Effect.fail("Expected even number, got 5")
|
|
3356
3274
|
* ```
|
|
3357
3275
|
*
|
|
3358
|
-
* @category
|
|
3276
|
+
* @category filtering
|
|
3359
3277
|
* @since 2.0.0
|
|
3360
3278
|
*/
|
|
3361
3279
|
export const filterOrFail = internal.filterOrFail;
|
|
3362
3280
|
/**
|
|
3363
3281
|
* Filters an effect with a `Filter`, failing when the filter fails.
|
|
3364
3282
|
*
|
|
3365
|
-
* @category
|
|
3283
|
+
* @category filtering
|
|
3366
3284
|
* @since 4.0.0
|
|
3367
3285
|
*/
|
|
3368
3286
|
export const filterMapOrFail = internal.filterMapOrFail;
|
|
@@ -3402,8 +3320,7 @@ export const filterMapOrFail = internal.filterMapOrFail;
|
|
|
3402
3320
|
* // { _id: 'Option', _tag: 'Some', value: undefined }
|
|
3403
3321
|
* ```
|
|
3404
3322
|
*
|
|
3405
|
-
* @see {@link
|
|
3406
|
-
* @see {@link unless} for a version that executes the effect when the condition is `false`.
|
|
3323
|
+
* @see {@link when} for conditional execution with a boolean condition.
|
|
3407
3324
|
*
|
|
3408
3325
|
* @category Conditional Operators
|
|
3409
3326
|
* @since 2.0.0
|
|
@@ -3501,7 +3418,7 @@ export const match = internal.match;
|
|
|
3501
3418
|
* @see {@link matchEffect} if you need to perform side effects in the handlers.
|
|
3502
3419
|
*
|
|
3503
3420
|
* @category Pattern Matching
|
|
3504
|
-
* @since
|
|
3421
|
+
* @since 4.0.0
|
|
3505
3422
|
*/
|
|
3506
3423
|
export const matchEager = internal.matchEager;
|
|
3507
3424
|
/**
|
|
@@ -3569,7 +3486,7 @@ export const matchCause = internal.matchCause;
|
|
|
3569
3486
|
* ```
|
|
3570
3487
|
*
|
|
3571
3488
|
* @category Pattern Matching
|
|
3572
|
-
* @since
|
|
3489
|
+
* @since 4.0.0
|
|
3573
3490
|
*/
|
|
3574
3491
|
export const matchCauseEager = internal.matchCauseEager;
|
|
3575
3492
|
/**
|
|
@@ -3765,7 +3682,7 @@ export const isSuccess = internal.isSuccess;
|
|
|
3765
3682
|
* **Example** (Usage)
|
|
3766
3683
|
*
|
|
3767
3684
|
* ```ts
|
|
3768
|
-
* import { Console, Effect, Option
|
|
3685
|
+
* import { Console, Context, Effect, Option } from "effect"
|
|
3769
3686
|
*
|
|
3770
3687
|
* const Logger = Context.Service<{
|
|
3771
3688
|
* log: (msg: string) => void
|
|
@@ -3805,7 +3722,7 @@ export const context = internal.context;
|
|
|
3805
3722
|
* **Example** (Usage)
|
|
3806
3723
|
*
|
|
3807
3724
|
* ```ts
|
|
3808
|
-
* import { Console, Effect, Option
|
|
3725
|
+
* import { Console, Context, Effect, Option } from "effect"
|
|
3809
3726
|
*
|
|
3810
3727
|
* const Logger = Context.Service<{
|
|
3811
3728
|
* log: (msg: string) => void
|
|
@@ -3849,7 +3766,7 @@ export const contextWith = internal.contextWith;
|
|
|
3849
3766
|
* **Example** (Usage)
|
|
3850
3767
|
*
|
|
3851
3768
|
* ```ts
|
|
3852
|
-
* import { Effect, Layer
|
|
3769
|
+
* import { Context, Effect, Layer } from "effect"
|
|
3853
3770
|
*
|
|
3854
3771
|
* interface Database {
|
|
3855
3772
|
* readonly query: (sql: string) => Effect.Effect<string>
|
|
@@ -3888,7 +3805,7 @@ export const provide = internalLayer.provide;
|
|
|
3888
3805
|
* **Example** (Usage)
|
|
3889
3806
|
*
|
|
3890
3807
|
* ```ts
|
|
3891
|
-
* import {
|
|
3808
|
+
* import { Context, Effect } from "effect"
|
|
3892
3809
|
*
|
|
3893
3810
|
* // Define service keys
|
|
3894
3811
|
* const Logger = Context.Service<{
|
|
@@ -3914,7 +3831,7 @@ export const provide = internalLayer.provide;
|
|
|
3914
3831
|
* ```
|
|
3915
3832
|
*
|
|
3916
3833
|
* @category Environment
|
|
3917
|
-
* @since
|
|
3834
|
+
* @since 4.0.0
|
|
3918
3835
|
*/
|
|
3919
3836
|
export const provideContext = internal.provideContext;
|
|
3920
3837
|
/**
|
|
@@ -3923,7 +3840,7 @@ export const provideContext = internal.provideContext;
|
|
|
3923
3840
|
* **Example** (Usage)
|
|
3924
3841
|
*
|
|
3925
3842
|
* ```ts
|
|
3926
|
-
* import {
|
|
3843
|
+
* import { Context, Effect } from "effect"
|
|
3927
3844
|
*
|
|
3928
3845
|
* interface Database {
|
|
3929
3846
|
* readonly query: (sql: string) => Effect.Effect<string>
|
|
@@ -3954,7 +3871,7 @@ export const service = internal.service;
|
|
|
3954
3871
|
* **Example** (Usage)
|
|
3955
3872
|
*
|
|
3956
3873
|
* ```ts
|
|
3957
|
-
* import { Effect, Option
|
|
3874
|
+
* import { Context, Effect, Option } from "effect"
|
|
3958
3875
|
*
|
|
3959
3876
|
* // Define a service key
|
|
3960
3877
|
* const Logger = Context.Service<{
|
|
@@ -3988,7 +3905,7 @@ export const serviceOption = internal.serviceOption;
|
|
|
3988
3905
|
* **Example** (Usage)
|
|
3989
3906
|
*
|
|
3990
3907
|
* ```ts
|
|
3991
|
-
* import {
|
|
3908
|
+
* import { Context, Effect } from "effect"
|
|
3992
3909
|
*
|
|
3993
3910
|
* // Define services
|
|
3994
3911
|
* const Logger = Context.Service<{
|
|
@@ -4029,7 +3946,7 @@ export const updateContext = internal.updateContext;
|
|
|
4029
3946
|
* **Example** (Usage)
|
|
4030
3947
|
*
|
|
4031
3948
|
* ```ts
|
|
4032
|
-
* import { Console,
|
|
3949
|
+
* import { Console, Context, Effect } from "effect"
|
|
4033
3950
|
*
|
|
4034
3951
|
* // Define a counter service
|
|
4035
3952
|
* const Counter = Context.Service<{ count: number }>("Counter")
|
|
@@ -4068,7 +3985,7 @@ export const updateService = internal.updateService;
|
|
|
4068
3985
|
* **Example** (Usage)
|
|
4069
3986
|
*
|
|
4070
3987
|
* ```ts
|
|
4071
|
-
* import { Console,
|
|
3988
|
+
* import { Console, Context, Effect } from "effect"
|
|
4072
3989
|
*
|
|
4073
3990
|
* // Define a service for configuration
|
|
4074
3991
|
* const Config = Context.Service<{
|
|
@@ -4113,7 +4030,7 @@ export const provideService = internal.provideService;
|
|
|
4113
4030
|
* **Example** (Usage)
|
|
4114
4031
|
*
|
|
4115
4032
|
* ```ts
|
|
4116
|
-
* import { Console,
|
|
4033
|
+
* import { Console, Context, Effect } from "effect"
|
|
4117
4034
|
*
|
|
4118
4035
|
* // Define a database connection service
|
|
4119
4036
|
* interface DatabaseConnection {
|
|
@@ -4186,7 +4103,7 @@ export const provideServiceEffect = internal.provideServiceEffect;
|
|
|
4186
4103
|
* // [1, 2, 3, 4, 5]
|
|
4187
4104
|
* ```
|
|
4188
4105
|
*
|
|
4189
|
-
* @category
|
|
4106
|
+
* @category references
|
|
4190
4107
|
* @since 2.0.0
|
|
4191
4108
|
*/
|
|
4192
4109
|
export const withConcurrency = internal.withConcurrency;
|
|
@@ -4222,7 +4139,7 @@ export const withConcurrency = internal.withConcurrency;
|
|
|
4222
4139
|
* // Releasing resource
|
|
4223
4140
|
* ```
|
|
4224
4141
|
*
|
|
4225
|
-
* @category
|
|
4142
|
+
* @category resource management
|
|
4226
4143
|
* @since 2.0.0
|
|
4227
4144
|
*/
|
|
4228
4145
|
export const scope = internal.scope;
|
|
@@ -4255,7 +4172,7 @@ export const scope = internal.scope;
|
|
|
4255
4172
|
* // Output: "Releasing resource"
|
|
4256
4173
|
* ```
|
|
4257
4174
|
*
|
|
4258
|
-
* @category
|
|
4175
|
+
* @category resource management
|
|
4259
4176
|
* @since 2.0.0
|
|
4260
4177
|
*/
|
|
4261
4178
|
export const scoped = internal.scoped;
|
|
@@ -4295,8 +4212,8 @@ export const scoped = internal.scoped;
|
|
|
4295
4212
|
* // Manual finalizer
|
|
4296
4213
|
* ```
|
|
4297
4214
|
*
|
|
4298
|
-
* @category
|
|
4299
|
-
* @since
|
|
4215
|
+
* @category resource management
|
|
4216
|
+
* @since 3.11.0
|
|
4300
4217
|
*/
|
|
4301
4218
|
export const scopedWith = internal.scopedWith;
|
|
4302
4219
|
/**
|
|
@@ -4350,7 +4267,7 @@ export const scopedWith = internal.scopedWith;
|
|
|
4350
4267
|
* )
|
|
4351
4268
|
* ```
|
|
4352
4269
|
*
|
|
4353
|
-
* @category
|
|
4270
|
+
* @category resource management
|
|
4354
4271
|
* @since 2.0.0
|
|
4355
4272
|
*/
|
|
4356
4273
|
export const acquireRelease = internal.acquireRelease;
|
|
@@ -4367,13 +4284,13 @@ export const acquireRelease = internal.acquireRelease;
|
|
|
4367
4284
|
* JavaScript disposal protocal instead of requiring an explicit release
|
|
4368
4285
|
* function.
|
|
4369
4286
|
*
|
|
4370
|
-
* @see
|
|
4287
|
+
* @see [JavaScript `using` declarations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using)
|
|
4371
4288
|
*
|
|
4372
4289
|
* **Example** (Usage)
|
|
4373
4290
|
*
|
|
4374
4291
|
* ```ts
|
|
4375
4292
|
* import sqlite from "node:sqlite";
|
|
4376
|
-
* import { Effect } from "effect"
|
|
4293
|
+
* import { Effect } from "effect"
|
|
4377
4294
|
*
|
|
4378
4295
|
* const program = Effect.scoped(
|
|
4379
4296
|
* Effect.gen(function* () {
|
|
@@ -4389,7 +4306,7 @@ export const acquireRelease = internal.acquireRelease;
|
|
|
4389
4306
|
* )
|
|
4390
4307
|
* ```
|
|
4391
4308
|
*
|
|
4392
|
-
* @category
|
|
4309
|
+
* @category resource management
|
|
4393
4310
|
* @since 4.0.0
|
|
4394
4311
|
*/
|
|
4395
4312
|
export const acquireDisposable = internal.acquireDisposable;
|
|
@@ -4462,7 +4379,7 @@ export const acquireDisposable = internal.acquireDisposable;
|
|
|
4462
4379
|
* // Closing connection to db://localhost:5432 (success)
|
|
4463
4380
|
* ```
|
|
4464
4381
|
*
|
|
4465
|
-
* @category
|
|
4382
|
+
* @category resource management
|
|
4466
4383
|
* @since 2.0.0
|
|
4467
4384
|
*/
|
|
4468
4385
|
export const acquireUseRelease = internal.acquireUseRelease;
|
|
@@ -4505,7 +4422,7 @@ export const acquireUseRelease = internal.acquireUseRelease;
|
|
|
4505
4422
|
* // operation result
|
|
4506
4423
|
* ```
|
|
4507
4424
|
*
|
|
4508
|
-
* @category
|
|
4425
|
+
* @category resource management
|
|
4509
4426
|
* @since 2.0.0
|
|
4510
4427
|
*/
|
|
4511
4428
|
export const addFinalizer = internal.addFinalizer;
|
|
@@ -4546,7 +4463,7 @@ export const addFinalizer = internal.addFinalizer;
|
|
|
4546
4463
|
* // 42
|
|
4547
4464
|
* ```
|
|
4548
4465
|
*
|
|
4549
|
-
* @category
|
|
4466
|
+
* @category resource management
|
|
4550
4467
|
* @since 2.0.0
|
|
4551
4468
|
*/
|
|
4552
4469
|
export const ensuring = internal.ensuring;
|
|
@@ -4557,7 +4474,7 @@ export const ensuring = internal.ensuring;
|
|
|
4557
4474
|
* **Example** (Usage)
|
|
4558
4475
|
*
|
|
4559
4476
|
* ```ts
|
|
4560
|
-
* import { Cause,
|
|
4477
|
+
* import { Cause, Console, Data, Effect } from "effect"
|
|
4561
4478
|
*
|
|
4562
4479
|
* class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {}
|
|
4563
4480
|
*
|
|
@@ -4574,7 +4491,7 @@ export const ensuring = internal.ensuring;
|
|
|
4574
4491
|
* // TaskError: Something went wrong
|
|
4575
4492
|
* ```
|
|
4576
4493
|
*
|
|
4577
|
-
* @category
|
|
4494
|
+
* @category resource management
|
|
4578
4495
|
* @since 2.0.0
|
|
4579
4496
|
*/
|
|
4580
4497
|
export const onError = internal.onError;
|
|
@@ -4599,14 +4516,14 @@ export const onError = internal.onError;
|
|
|
4599
4516
|
* )
|
|
4600
4517
|
* ```
|
|
4601
4518
|
*
|
|
4602
|
-
* @category
|
|
4519
|
+
* @category resource management
|
|
4603
4520
|
* @since 4.0.0
|
|
4604
4521
|
*/
|
|
4605
4522
|
export const onErrorIf = internal.onErrorIf;
|
|
4606
4523
|
/**
|
|
4607
4524
|
* Runs the finalizer only when this effect fails and the cause matches the provided `Filter`.
|
|
4608
4525
|
*
|
|
4609
|
-
* @category
|
|
4526
|
+
* @category resource management
|
|
4610
4527
|
* @since 4.0.0
|
|
4611
4528
|
*/
|
|
4612
4529
|
export const onErrorFilter = internal.onErrorFilter;
|
|
@@ -4619,8 +4536,8 @@ export const onErrorFilter = internal.onErrorFilter;
|
|
|
4619
4536
|
* This low-level operator preserves the source effect's result unless the
|
|
4620
4537
|
* finalizer fails. Prefer `onExit` for normal cleanup logic.
|
|
4621
4538
|
*
|
|
4622
|
-
* @category
|
|
4623
|
-
* @since
|
|
4539
|
+
* @category resource management
|
|
4540
|
+
* @since 4.0.0
|
|
4624
4541
|
*/
|
|
4625
4542
|
export const onExitPrimitive = internal.onExitPrimitive;
|
|
4626
4543
|
/**
|
|
@@ -4647,7 +4564,7 @@ export const onExitPrimitive = internal.onExitPrimitive;
|
|
|
4647
4564
|
* // 42
|
|
4648
4565
|
* ```
|
|
4649
4566
|
*
|
|
4650
|
-
* @category
|
|
4567
|
+
* @category resource management
|
|
4651
4568
|
* @since 2.0.0
|
|
4652
4569
|
*/
|
|
4653
4570
|
export const onExit = internal.onExit;
|
|
@@ -4670,14 +4587,14 @@ export const onExit = internal.onExit;
|
|
|
4670
4587
|
* )
|
|
4671
4588
|
* ```
|
|
4672
4589
|
*
|
|
4673
|
-
* @category
|
|
4590
|
+
* @category resource management
|
|
4674
4591
|
* @since 4.0.0
|
|
4675
4592
|
*/
|
|
4676
4593
|
export const onExitIf = internal.onExitIf;
|
|
4677
4594
|
/**
|
|
4678
4595
|
* Runs the cleanup effect only when the `Exit` matches the provided `Filter`.
|
|
4679
4596
|
*
|
|
4680
|
-
* @category
|
|
4597
|
+
* @category resource management
|
|
4681
4598
|
* @since 4.0.0
|
|
4682
4599
|
*/
|
|
4683
4600
|
export const onExitFilter = internal.onExitFilter;
|
|
@@ -5110,9 +5027,7 @@ export const forever = internal.forever;
|
|
|
5110
5027
|
*
|
|
5111
5028
|
* ```ts
|
|
5112
5029
|
* // Success Example
|
|
5113
|
-
* import { Effect } from "effect"
|
|
5114
|
-
* import { Schedule } from "effect"
|
|
5115
|
-
* import { Console } from "effect"
|
|
5030
|
+
* import { Console, Effect, Schedule } from "effect"
|
|
5116
5031
|
*
|
|
5117
5032
|
* const action = Console.log("success")
|
|
5118
5033
|
* const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis"))
|
|
@@ -5125,8 +5040,7 @@ export const forever = internal.forever;
|
|
|
5125
5040
|
*
|
|
5126
5041
|
* ```ts
|
|
5127
5042
|
* // Failure Example
|
|
5128
|
-
* import { Effect } from "effect"
|
|
5129
|
-
* import { Schedule } from "effect"
|
|
5043
|
+
* import { Effect, Schedule } from "effect"
|
|
5130
5044
|
*
|
|
5131
5045
|
* let count = 0
|
|
5132
5046
|
*
|
|
@@ -5166,8 +5080,7 @@ export const repeat = internalSchedule.repeat;
|
|
|
5166
5080
|
* **Example** (Usage)
|
|
5167
5081
|
*
|
|
5168
5082
|
* ```ts
|
|
5169
|
-
* import { Console, Effect, Schedule } from "effect"
|
|
5170
|
-
* import * as Option from "effect/Option"
|
|
5083
|
+
* import { Console, Effect, Option, Schedule } from "effect"
|
|
5171
5084
|
*
|
|
5172
5085
|
* let attempt = 0
|
|
5173
5086
|
* const task = Effect.gen(function*() {
|
|
@@ -5324,7 +5237,7 @@ export const scheduleFrom = internalSchedule.scheduleFrom;
|
|
|
5324
5237
|
* })
|
|
5325
5238
|
* ```
|
|
5326
5239
|
*
|
|
5327
|
-
* @category
|
|
5240
|
+
* @category tracing
|
|
5328
5241
|
* @since 2.0.0
|
|
5329
5242
|
*/
|
|
5330
5243
|
export const tracer = internal.tracer;
|
|
@@ -5345,7 +5258,7 @@ export const tracer = internal.tracer;
|
|
|
5345
5258
|
* // const traced = Effect.withTracer(program, customTracer)
|
|
5346
5259
|
* ```
|
|
5347
5260
|
*
|
|
5348
|
-
* @category
|
|
5261
|
+
* @category tracing
|
|
5349
5262
|
* @since 2.0.0
|
|
5350
5263
|
*/
|
|
5351
5264
|
export const withTracer = internal.withTracer;
|
|
@@ -5369,7 +5282,7 @@ export const withTracer = internal.withTracer;
|
|
|
5369
5282
|
* )
|
|
5370
5283
|
* ```
|
|
5371
5284
|
*
|
|
5372
|
-
* @category
|
|
5285
|
+
* @category tracing
|
|
5373
5286
|
* @since 2.0.0
|
|
5374
5287
|
*/
|
|
5375
5288
|
export const withTracerEnabled = internal.withTracerEnabled;
|
|
@@ -5388,7 +5301,7 @@ export const withTracerEnabled = internal.withTracerEnabled;
|
|
|
5388
5301
|
* )
|
|
5389
5302
|
* ```
|
|
5390
5303
|
*
|
|
5391
|
-
* @category
|
|
5304
|
+
* @category tracing
|
|
5392
5305
|
* @since 2.0.0
|
|
5393
5306
|
*/
|
|
5394
5307
|
export const withTracerTiming = internal.withTracerTiming;
|
|
@@ -5416,7 +5329,7 @@ export const withTracerTiming = internal.withTracerTiming;
|
|
|
5416
5329
|
* })
|
|
5417
5330
|
* ```
|
|
5418
5331
|
*
|
|
5419
|
-
* @category
|
|
5332
|
+
* @category tracing
|
|
5420
5333
|
* @since 2.0.0
|
|
5421
5334
|
*/
|
|
5422
5335
|
export const annotateSpans = internal.annotateSpans;
|
|
@@ -5441,7 +5354,7 @@ export const annotateSpans = internal.annotateSpans;
|
|
|
5441
5354
|
* const traced = Effect.withSpan(program, "user-operation")
|
|
5442
5355
|
* ```
|
|
5443
5356
|
*
|
|
5444
|
-
* @category
|
|
5357
|
+
* @category tracing
|
|
5445
5358
|
* @since 2.0.0
|
|
5446
5359
|
*/
|
|
5447
5360
|
export const annotateCurrentSpan = internal.annotateCurrentSpan;
|
|
@@ -5467,7 +5380,7 @@ export const annotateCurrentSpan = internal.annotateCurrentSpan;
|
|
|
5467
5380
|
* const traced = Effect.withSpan(program, "my-span")
|
|
5468
5381
|
* ```
|
|
5469
5382
|
*
|
|
5470
|
-
* @category
|
|
5383
|
+
* @category tracing
|
|
5471
5384
|
* @since 2.0.0
|
|
5472
5385
|
*/
|
|
5473
5386
|
export const currentSpan = internal.currentSpan;
|
|
@@ -5499,7 +5412,7 @@ export const currentSpan = internal.currentSpan;
|
|
|
5499
5412
|
* const traced = Effect.withSpan(program, "parent-span")
|
|
5500
5413
|
* ```
|
|
5501
5414
|
*
|
|
5502
|
-
* @category
|
|
5415
|
+
* @category tracing
|
|
5503
5416
|
* @since 2.0.0
|
|
5504
5417
|
*/
|
|
5505
5418
|
export const currentParentSpan = internal.currentParentSpan;
|
|
@@ -5532,7 +5445,7 @@ export const currentParentSpan = internal.currentParentSpan;
|
|
|
5532
5445
|
* // Output: Current span annotations: { userId: "123", operation: "data-processing" }
|
|
5533
5446
|
* ```
|
|
5534
5447
|
*
|
|
5535
|
-
* @category
|
|
5448
|
+
* @category tracing
|
|
5536
5449
|
* @since 2.0.0
|
|
5537
5450
|
*/
|
|
5538
5451
|
export const spanAnnotations = internal.spanAnnotations;
|
|
@@ -5557,7 +5470,7 @@ export const spanAnnotations = internal.spanAnnotations;
|
|
|
5557
5470
|
* })
|
|
5558
5471
|
* ```
|
|
5559
5472
|
*
|
|
5560
|
-
* @category
|
|
5473
|
+
* @category tracing
|
|
5561
5474
|
* @since 2.0.0
|
|
5562
5475
|
*/
|
|
5563
5476
|
export const spanLinks = internal.spanLinks;
|
|
@@ -5610,7 +5523,7 @@ export const spanLinks = internal.spanLinks;
|
|
|
5610
5523
|
* })
|
|
5611
5524
|
* ```
|
|
5612
5525
|
*
|
|
5613
|
-
* @category
|
|
5526
|
+
* @category tracing
|
|
5614
5527
|
* @since 2.0.0
|
|
5615
5528
|
*/
|
|
5616
5529
|
export const linkSpans = internal.linkSpans;
|
|
@@ -5635,7 +5548,7 @@ export const linkSpans = internal.linkSpans;
|
|
|
5635
5548
|
* })
|
|
5636
5549
|
* ```
|
|
5637
5550
|
*
|
|
5638
|
-
* @category
|
|
5551
|
+
* @category tracing
|
|
5639
5552
|
* @since 2.0.0
|
|
5640
5553
|
*/
|
|
5641
5554
|
export const makeSpan = internal.makeSpan;
|
|
@@ -5661,7 +5574,7 @@ export const makeSpan = internal.makeSpan;
|
|
|
5661
5574
|
* )
|
|
5662
5575
|
* ```
|
|
5663
5576
|
*
|
|
5664
|
-
* @category
|
|
5577
|
+
* @category tracing
|
|
5665
5578
|
* @since 2.0.0
|
|
5666
5579
|
*/
|
|
5667
5580
|
export const makeSpanScoped = internal.makeSpanScoped;
|
|
@@ -5687,7 +5600,7 @@ export const makeSpanScoped = internal.makeSpanScoped;
|
|
|
5687
5600
|
* )
|
|
5688
5601
|
* ```
|
|
5689
5602
|
*
|
|
5690
|
-
* @category
|
|
5603
|
+
* @category tracing
|
|
5691
5604
|
* @since 2.0.0
|
|
5692
5605
|
*/
|
|
5693
5606
|
export const useSpan = internal.useSpan;
|
|
@@ -5709,7 +5622,7 @@ export const useSpan = internal.useSpan;
|
|
|
5709
5622
|
* })
|
|
5710
5623
|
* ```
|
|
5711
5624
|
*
|
|
5712
|
-
* @category
|
|
5625
|
+
* @category tracing
|
|
5713
5626
|
* @since 2.0.0
|
|
5714
5627
|
*/
|
|
5715
5628
|
export const withSpan = internal.withSpan;
|
|
@@ -5732,7 +5645,7 @@ export const withSpan = internal.withSpan;
|
|
|
5732
5645
|
* )
|
|
5733
5646
|
* ```
|
|
5734
5647
|
*
|
|
5735
|
-
* @category
|
|
5648
|
+
* @category tracing
|
|
5736
5649
|
* @since 2.0.0
|
|
5737
5650
|
*/
|
|
5738
5651
|
export const withSpanScoped = internal.withSpanScoped;
|
|
@@ -5752,7 +5665,7 @@ export const withSpanScoped = internal.withSpanScoped;
|
|
|
5752
5665
|
* })
|
|
5753
5666
|
* ```
|
|
5754
5667
|
*
|
|
5755
|
-
* @category
|
|
5668
|
+
* @category tracing
|
|
5756
5669
|
* @since 2.0.0
|
|
5757
5670
|
*/
|
|
5758
5671
|
export const withParentSpan = internal.withParentSpan;
|
|
@@ -5946,7 +5859,7 @@ export const forkScoped = internal.forkScoped;
|
|
|
5946
5859
|
* ```
|
|
5947
5860
|
*
|
|
5948
5861
|
* @category Supervision & Fibers
|
|
5949
|
-
* @since
|
|
5862
|
+
* @since 4.0.0
|
|
5950
5863
|
*/
|
|
5951
5864
|
export const forkDetach = internal.forkDetach;
|
|
5952
5865
|
/**
|
|
@@ -5995,7 +5908,7 @@ export const fiber = internal.fiber;
|
|
|
5995
5908
|
* ```
|
|
5996
5909
|
*
|
|
5997
5910
|
* @category Supervision & Fibers
|
|
5998
|
-
* @since
|
|
5911
|
+
* @since 2.0.0
|
|
5999
5912
|
*/
|
|
6000
5913
|
export const fiberId = internal.fiberId;
|
|
6001
5914
|
/**
|
|
@@ -6014,10 +5927,7 @@ export const fiberId = internal.fiberId;
|
|
|
6014
5927
|
* **Example** (Running an Effect in the Background)
|
|
6015
5928
|
*
|
|
6016
5929
|
* ```ts
|
|
6017
|
-
* import { Effect } from "effect"
|
|
6018
|
-
* import { Schedule } from "effect"
|
|
6019
|
-
* import { Fiber } from "effect"
|
|
6020
|
-
* import { Console } from "effect"
|
|
5930
|
+
* import { Console, Effect, Fiber, Schedule } from "effect"
|
|
6021
5931
|
*
|
|
6022
5932
|
* // ┌─── Effect<number, never, never>
|
|
6023
5933
|
* // ▼
|
|
@@ -6045,7 +5955,7 @@ export const runFork = internal.runFork;
|
|
|
6045
5955
|
* **Example** (Usage)
|
|
6046
5956
|
*
|
|
6047
5957
|
* ```ts
|
|
6048
|
-
* import {
|
|
5958
|
+
* import { Context, Effect } from "effect"
|
|
6049
5959
|
*
|
|
6050
5960
|
* interface Logger {
|
|
6051
5961
|
* log: (message: string) => void
|
|
@@ -6078,7 +5988,7 @@ export const runForkWith = internal.runForkWith;
|
|
|
6078
5988
|
* **Example** (Usage)
|
|
6079
5989
|
*
|
|
6080
5990
|
* ```ts
|
|
6081
|
-
* import { Console, Effect, Exit
|
|
5991
|
+
* import { Console, Context, Effect, Exit } from "effect"
|
|
6082
5992
|
*
|
|
6083
5993
|
* interface Logger {
|
|
6084
5994
|
* log: (message: string) => Effect.Effect<void>
|
|
@@ -6148,7 +6058,7 @@ export const runCallbackWith = internal.runCallbackWith;
|
|
|
6148
6058
|
* ```
|
|
6149
6059
|
*
|
|
6150
6060
|
* @category Running Effects
|
|
6151
|
-
* @since
|
|
6061
|
+
* @since 2.0.0
|
|
6152
6062
|
*/
|
|
6153
6063
|
export const runCallback = internal.runCallback;
|
|
6154
6064
|
/**
|
|
@@ -6195,7 +6105,7 @@ export const runPromise = internal.runPromise;
|
|
|
6195
6105
|
* **Example** (Usage)
|
|
6196
6106
|
*
|
|
6197
6107
|
* ```ts
|
|
6198
|
-
* import {
|
|
6108
|
+
* import { Context, Effect } from "effect"
|
|
6199
6109
|
*
|
|
6200
6110
|
* interface Config {
|
|
6201
6111
|
* apiUrl: string
|
|
@@ -6273,7 +6183,7 @@ export const runPromiseExit = internal.runPromiseExit;
|
|
|
6273
6183
|
* **Example** (Usage)
|
|
6274
6184
|
*
|
|
6275
6185
|
* ```ts
|
|
6276
|
-
* import { Effect, Exit
|
|
6186
|
+
* import { Context, Effect, Exit } from "effect"
|
|
6277
6187
|
*
|
|
6278
6188
|
* interface Database {
|
|
6279
6189
|
* query: (sql: string) => string
|
|
@@ -6368,7 +6278,7 @@ export const runSync = internal.runSync;
|
|
|
6368
6278
|
* **Example** (Usage)
|
|
6369
6279
|
*
|
|
6370
6280
|
* ```ts
|
|
6371
|
-
* import {
|
|
6281
|
+
* import { Context, Effect } from "effect"
|
|
6372
6282
|
*
|
|
6373
6283
|
* interface MathService {
|
|
6374
6284
|
* add: (a: number, b: number) => number
|
|
@@ -6471,7 +6381,7 @@ export const runSyncExit = internal.runSyncExit;
|
|
|
6471
6381
|
* **Example** (Usage)
|
|
6472
6382
|
*
|
|
6473
6383
|
* ```ts
|
|
6474
|
-
* import { Effect, Exit
|
|
6384
|
+
* import { Context, Effect, Exit } from "effect"
|
|
6475
6385
|
*
|
|
6476
6386
|
* // Define a logger service
|
|
6477
6387
|
* const Logger = Context.Service<{
|
|
@@ -6553,7 +6463,7 @@ export const fnUntraced = internal.fnUntraced;
|
|
|
6553
6463
|
* ```
|
|
6554
6464
|
*
|
|
6555
6465
|
* @category Function
|
|
6556
|
-
* @since 3.
|
|
6466
|
+
* @since 3.11.0
|
|
6557
6467
|
*/
|
|
6558
6468
|
export const fn = internal.fn;
|
|
6559
6469
|
// ========================================================================
|
|
@@ -6605,7 +6515,7 @@ export const clockWith = internal.clockWith;
|
|
|
6605
6515
|
* })
|
|
6606
6516
|
* ```
|
|
6607
6517
|
*
|
|
6608
|
-
* @category
|
|
6518
|
+
* @category logging
|
|
6609
6519
|
* @since 2.0.0
|
|
6610
6520
|
*/
|
|
6611
6521
|
export const logWithLevel = internal.logWithLevel;
|
|
@@ -6633,7 +6543,7 @@ export const logWithLevel = internal.logWithLevel;
|
|
|
6633
6543
|
* // 4
|
|
6634
6544
|
* ```
|
|
6635
6545
|
*
|
|
6636
|
-
* @category
|
|
6546
|
+
* @category logging
|
|
6637
6547
|
* @since 2.0.0
|
|
6638
6548
|
*/
|
|
6639
6549
|
export const log = /*#__PURE__*/internal.logWithLevel();
|
|
@@ -6662,7 +6572,7 @@ export const log = /*#__PURE__*/internal.logWithLevel();
|
|
|
6662
6572
|
* // timestamp=2023-... level=FATAL message="System shutting down"
|
|
6663
6573
|
* ```
|
|
6664
6574
|
*
|
|
6665
|
-
* @category
|
|
6575
|
+
* @category logging
|
|
6666
6576
|
* @since 2.0.0
|
|
6667
6577
|
*/
|
|
6668
6578
|
export const logFatal = /*#__PURE__*/internal.logWithLevel("Fatal");
|
|
@@ -6692,7 +6602,7 @@ export const logFatal = /*#__PURE__*/internal.logWithLevel("Fatal");
|
|
|
6692
6602
|
* // timestamp=2023-... level=WARN message="Using deprecated API endpoint"
|
|
6693
6603
|
* ```
|
|
6694
6604
|
*
|
|
6695
|
-
* @category
|
|
6605
|
+
* @category logging
|
|
6696
6606
|
* @since 2.0.0
|
|
6697
6607
|
*/
|
|
6698
6608
|
export const logWarning = /*#__PURE__*/internal.logWithLevel("Warn");
|
|
@@ -6725,7 +6635,7 @@ export const logWarning = /*#__PURE__*/internal.logWithLevel("Warn");
|
|
|
6725
6635
|
* // timestamp=2023-... level=ERROR message="Caught error: Something went wrong"
|
|
6726
6636
|
* ```
|
|
6727
6637
|
*
|
|
6728
|
-
* @category
|
|
6638
|
+
* @category logging
|
|
6729
6639
|
* @since 2.0.0
|
|
6730
6640
|
*/
|
|
6731
6641
|
export const logError = /*#__PURE__*/internal.logWithLevel("Error");
|
|
@@ -6753,7 +6663,7 @@ export const logError = /*#__PURE__*/internal.logWithLevel("Error");
|
|
|
6753
6663
|
* // timestamp=2023-... level=INFO message="Application version: 1.2.3"
|
|
6754
6664
|
* ```
|
|
6755
6665
|
*
|
|
6756
|
-
* @category
|
|
6666
|
+
* @category logging
|
|
6757
6667
|
* @since 2.0.0
|
|
6758
6668
|
*/
|
|
6759
6669
|
export const logInfo = /*#__PURE__*/internal.logWithLevel("Info");
|
|
@@ -6782,7 +6692,7 @@ export const logInfo = /*#__PURE__*/internal.logWithLevel("Info");
|
|
|
6782
6692
|
* // timestamp=2023-... level=DEBUG message="Variable state: x=10 y=20 z=30"
|
|
6783
6693
|
* ```
|
|
6784
6694
|
*
|
|
6785
|
-
* @category
|
|
6695
|
+
* @category logging
|
|
6786
6696
|
* @since 2.0.0
|
|
6787
6697
|
*/
|
|
6788
6698
|
export const logDebug = /*#__PURE__*/internal.logWithLevel("Debug");
|
|
@@ -6814,7 +6724,7 @@ export const logDebug = /*#__PURE__*/internal.logWithLevel("Debug");
|
|
|
6814
6724
|
* // timestamp=2023-... level=TRACE message="Exiting function processData"
|
|
6815
6725
|
* ```
|
|
6816
6726
|
*
|
|
6817
|
-
* @category
|
|
6727
|
+
* @category logging
|
|
6818
6728
|
* @since 2.0.0
|
|
6819
6729
|
*/
|
|
6820
6730
|
export const logTrace = /*#__PURE__*/internal.logWithLevel("Trace");
|
|
@@ -6843,8 +6753,8 @@ export const logTrace = /*#__PURE__*/internal.logWithLevel("Trace");
|
|
|
6843
6753
|
* // Output includes both default and custom log outputs
|
|
6844
6754
|
* ```
|
|
6845
6755
|
*
|
|
6846
|
-
* @category
|
|
6847
|
-
* @since
|
|
6756
|
+
* @category logging
|
|
6757
|
+
* @since 4.0.0
|
|
6848
6758
|
*/
|
|
6849
6759
|
export const withLogger = /*#__PURE__*/dual(2, (effect, logger) => internal.updateService(effect, internal.CurrentLoggers, loggers => new Set([...loggers, logger])));
|
|
6850
6760
|
/**
|
|
@@ -6874,7 +6784,7 @@ export const withLogger = /*#__PURE__*/dual(2, (effect, logger) => internal.upda
|
|
|
6874
6784
|
* // All log messages will include the userId and operation annotations
|
|
6875
6785
|
* ```
|
|
6876
6786
|
*
|
|
6877
|
-
* @category
|
|
6787
|
+
* @category logging
|
|
6878
6788
|
* @since 2.0.0
|
|
6879
6789
|
*/
|
|
6880
6790
|
export const annotateLogs = /*#__PURE__*/dual(args => isEffect(args[0]), (effect, ...args) => internal.updateService(effect, CurrentLogAnnotations, annotations => {
|
|
@@ -6911,8 +6821,8 @@ export const annotateLogs = /*#__PURE__*/dual(args => isEffect(args[0]), (effect
|
|
|
6911
6821
|
* Effect.runPromise(program)
|
|
6912
6822
|
* ```
|
|
6913
6823
|
*
|
|
6914
|
-
* @category
|
|
6915
|
-
* @since
|
|
6824
|
+
* @category logging
|
|
6825
|
+
* @since 3.1.0
|
|
6916
6826
|
*/
|
|
6917
6827
|
export const annotateLogsScoped = internal.annotateLogsScoped;
|
|
6918
6828
|
/**
|
|
@@ -6943,7 +6853,7 @@ export const annotateLogsScoped = internal.annotateLogsScoped;
|
|
|
6943
6853
|
* // All log messages will include span information showing the nested operation context
|
|
6944
6854
|
* ```
|
|
6945
6855
|
*
|
|
6946
|
-
* @category
|
|
6856
|
+
* @category logging
|
|
6947
6857
|
* @since 2.0.0
|
|
6948
6858
|
*/
|
|
6949
6859
|
export const withLogSpan = /*#__PURE__*/dual(2, (effect, label) => internal.flatMap(internal.currentTimeMillis, now => internal.updateService(effect, CurrentLogSpans, spans => {
|