effect 4.0.0-beta.69 → 4.0.0-beta.70
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 +454 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +152 -0
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +87 -33
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +37 -11
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +71 -14
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +35 -10
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +4 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +4 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +16 -11
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +16 -11
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +13 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +8 -0
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +95 -3
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +56 -2
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +312 -0
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +126 -0
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +20 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +12 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +59 -22
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +29 -10
- package/dist/Chunk.js.map +1 -1
- package/dist/Combiner.d.ts +75 -71
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +67 -62
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +167 -46
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +108 -28
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +235 -158
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +144 -93
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +21 -79
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -75
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +4 -4
- package/dist/Context.js +2 -2
- package/dist/Cron.d.ts +42 -16
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +33 -13
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +6 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +132 -70
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +44 -29
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +227 -14
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +115 -6
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +94 -27
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +33 -8
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +64 -6
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +26 -2
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +907 -603
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +360 -233
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +3 -1
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +16 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +16 -0
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +52 -40
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +32 -26
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +190 -153
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +129 -104
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +35 -14
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +18 -6
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +10 -3
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +4 -3
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +212 -6
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +139 -2
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +8 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +4 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +46 -23
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +27 -11
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +43 -4
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +27 -4
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +21 -6
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -6
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +64 -0
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +26 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +53 -21
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +20 -9
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +21 -22
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +12 -12
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +67 -75
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +29 -19
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +51 -13
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +19 -3
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +22 -21
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +33 -10
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +27 -10
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +50 -9
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +17 -3
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +4 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +2 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +2 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +15 -2
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +11 -2
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +104 -22
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +46 -12
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +61 -80
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +35 -42
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +16 -20
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +16 -20
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +123 -73
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +95 -53
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +28 -2
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +22 -2
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +781 -335
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +324 -129
- package/dist/Layer.js.map +1 -1
- package/dist/LogLevel.d.ts +86 -13
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +30 -4
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +63 -51
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +61 -51
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +12 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +1 -0
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +83 -1
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +31 -1
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +89 -12
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +53 -8
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +14 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +4 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +2 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +24 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +22 -6
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +2 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +69 -30
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +52 -22
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +6 -0
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +2 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +16 -30
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +6 -12
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +90 -40
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +48 -24
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +121 -111
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +56 -54
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +169 -167
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +135 -135
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +4 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +2 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +7 -5
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +5 -5
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +8 -0
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +4 -0
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +10 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +8 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +12 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +10 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +30 -16
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +30 -16
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +520 -352
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +271 -184
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +4 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +2 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +22 -4
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +17 -3
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +16 -0
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +10 -0
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +44 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +28 -0
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +25 -6
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +11 -2
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +10 -6
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +2 -2
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +3 -1
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +24 -3
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +12 -3
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +54 -41
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +42 -32
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +10 -0
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +6 -0
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +20 -11
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +10 -6
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +45 -24
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +41 -21
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +18 -1
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +17 -1
- package/dist/References.js.map +1 -1
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +2 -2
- package/dist/RequestResolver.d.ts +7 -17
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +3 -5
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +2 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +2 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +188 -6
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +84 -2
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +14 -11
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +11 -9
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +27 -3
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +21 -2
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +22 -19
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +14 -12
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +547 -130
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +409 -121
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +123 -65
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +90 -39
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +269 -234
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +245 -215
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +48 -46
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +34 -34
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +58 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +58 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +198 -96
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +107 -45
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +272 -203
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +249 -187
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +2 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +2 -0
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +18 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +12 -0
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +44 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +18 -0
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -3
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +3 -1
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +6 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +4 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +108 -0
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +54 -0
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +7 -3
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +2 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +416 -16
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +164 -8
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +14 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +6 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +371 -191
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +144 -77
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +7 -1
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +5 -1
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +2 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +2 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Tracer.d.ts +17 -27
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +8 -12
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +23 -9
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +13 -3
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +287 -144
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +135 -66
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +182 -93
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +68 -35
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +3 -4
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +163 -86
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +57 -30
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +24 -27
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +9 -6
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +2 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +36 -35
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +22 -21
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +77 -114
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +45 -62
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxRef.d.ts +4 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +2 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +66 -27
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +38 -15
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/Types.d.ts +202 -75
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +31 -29
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +27 -21
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +28 -0
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +2 -0
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +29 -35
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +11 -13
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +18 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/testing/TestClock.d.ts +17 -17
- package/dist/testing/TestClock.js +1 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +2 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +43 -55
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +43 -55
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +62 -11
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +58 -11
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +4 -4
- package/dist/unstable/ai/AnthropicStructuredOutput.js +4 -4
- package/dist/unstable/ai/Chat.d.ts +29 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +15 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +10 -0
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +8 -0
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +32 -46
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +5 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +84 -32
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +73 -28
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +8 -0
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +6 -0
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +9 -5
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +4 -0
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +62 -35
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +16 -15
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +40 -21
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +10 -0
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +8 -0
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +4 -0
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +30 -5
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +7 -1
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +6 -0
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +4 -0
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +68 -0
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +36 -0
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +12 -0
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +6 -0
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +14 -4
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +4 -0
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +6 -0
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +4 -0
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +123 -12
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +57 -4
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +31 -14
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +23 -10
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +10 -0
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +46 -5
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +10 -0
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +10 -0
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +47 -40
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +25 -20
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +1 -0
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +10 -2
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +3 -0
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +8 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +10 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +2 -0
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -0
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +8 -0
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +3 -4
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +24 -0
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +12 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +10 -4
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +6 -0
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +4 -0
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +10 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +8 -0
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +16 -0
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +10 -0
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -0
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -0
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +8 -0
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +8 -0
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +24 -0
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +18 -0
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +64 -20
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +8 -0
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +6 -6
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +4 -3
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +2 -0
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +2 -0
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +13 -2
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +13 -2
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +8 -8
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +8 -8
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +2 -0
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +2 -0
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +4 -0
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +4 -0
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +2 -0
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +2 -0
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +3 -2
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +3 -2
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +34 -2
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +14 -0
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +4 -0
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +2 -0
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +24 -0
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +18 -0
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +46 -2
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +30 -2
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +24 -17
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +20 -11
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +16 -0
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +4 -0
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +2 -0
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +20 -0
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +18 -0
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +22 -0
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +18 -0
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +10 -0
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +10 -0
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +4 -0
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +4 -0
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +34 -0
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -0
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +4 -0
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +4 -0
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +4 -0
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +60 -0
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +24 -0
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +32 -0
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +22 -0
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +44 -0
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +14 -0
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -0
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +2 -0
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -0
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +6 -0
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +4 -0
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +4 -0
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +2 -0
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +2 -0
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +54 -16
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +26 -1
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +35 -1
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +17 -1
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +17 -3
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +16 -0
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +30 -0
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +28 -0
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +8 -0
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +6 -0
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +96 -0
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +50 -0
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +12 -0
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +10 -0
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +49 -2
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +35 -2
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +14 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +4 -0
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +64 -0
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +28 -0
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +10 -4
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +4 -0
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +9 -4
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +5 -4
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +23 -14
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +6 -3
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +14 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +6 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +38 -15
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +4 -0
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +14 -3
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +10 -0
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +2 -0
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +2 -0
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -0
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +2 -0
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js +2 -0
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +2 -0
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +2 -0
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +4 -0
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +4 -0
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +8 -9
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +3 -3
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +8 -0
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +8 -0
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +3 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +3 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +6 -2
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +6 -2
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +10 -0
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +8 -0
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -0
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +2 -0
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +2 -0
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +2 -0
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +21 -6
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +10 -0
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +14 -0
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +14 -0
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +6 -3
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +4 -0
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +6 -0
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +4 -0
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +70 -19
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +10 -0
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +20 -4
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +105 -14
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +53 -8
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +4 -0
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +2 -0
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +8 -0
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +2 -0
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +32 -0
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +12 -0
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +8 -6
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +4 -3
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -0
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +4 -0
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +27 -3
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +15 -3
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +38 -2
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +12 -2
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +6 -0
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +6 -0
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +5 -3
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +5 -3
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +43 -12
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +41 -12
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +6 -4
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +6 -4
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +8 -4
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +3 -0
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +3 -0
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +42 -34
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +18 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +454 -0
- package/src/BigDecimal.ts +87 -33
- package/src/BigInt.ts +71 -14
- package/src/Boolean.ts +4 -0
- package/src/Brand.ts +16 -11
- package/src/Cache.ts +17 -1
- package/src/Cause.ts +95 -3
- package/src/Channel.ts +326 -0
- package/src/ChannelSchema.ts +24 -0
- package/src/Chunk.ts +59 -22
- package/src/Combiner.ts +75 -71
- package/src/Config.ts +167 -46
- package/src/ConfigProvider.ts +235 -158
- package/src/Console.ts +25 -99
- package/src/Context.ts +4 -4
- package/src/Cron.ts +42 -16
- package/src/Crypto.ts +6 -0
- package/src/Data.ts +132 -70
- package/src/DateTime.ts +227 -14
- package/src/Deferred.ts +94 -27
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +64 -6
- package/src/Effect.ts +909 -605
- package/src/Effectable.ts +3 -1
- package/src/Encoding.ts +16 -0
- package/src/Equal.ts +52 -40
- package/src/Equivalence.ts +190 -153
- package/src/ErrorReporter.ts +35 -14
- package/src/ExecutionPlan.ts +10 -3
- package/src/Exit.ts +212 -6
- package/src/Fiber.ts +8 -0
- package/src/FiberHandle.ts +46 -23
- package/src/FiberMap.ts +43 -4
- package/src/FiberSet.ts +21 -6
- package/src/FileSystem.ts +64 -0
- package/src/Filter.ts +53 -21
- package/src/Formatter.ts +21 -22
- package/src/Function.ts +67 -75
- package/src/Graph.ts +51 -13
- package/src/HKT.ts +22 -21
- package/src/Hash.ts +33 -10
- package/src/HashMap.ts +50 -9
- package/src/HashRing.ts +4 -0
- package/src/HashSet.ts +2 -0
- package/src/Inspectable.ts +15 -2
- package/src/Iterable.ts +104 -22
- package/src/JsonPatch.ts +61 -80
- package/src/JsonPointer.ts +16 -20
- package/src/JsonSchema.ts +123 -73
- package/src/Latch.ts +28 -2
- package/src/Layer.ts +781 -335
- package/src/LogLevel.ts +86 -13
- package/src/Logger.ts +71 -51
- package/src/ManagedRuntime.ts +12 -0
- package/src/Match.ts +83 -1
- package/src/Metric.ts +105 -12
- package/src/MutableHashMap.ts +18 -0
- package/src/MutableHashSet.ts +2 -0
- package/src/MutableList.ts +24 -6
- package/src/MutableRef.ts +2 -0
- package/src/Newtype.ts +69 -30
- package/src/NonEmptyIterable.ts +6 -0
- package/src/Number.ts +16 -30
- package/src/Optic.ts +90 -40
- package/src/Option.ts +121 -111
- package/src/Order.ts +169 -167
- package/src/Ordering.ts +4 -0
- package/src/PartitionedSemaphore.ts +7 -5
- package/src/Path.ts +8 -0
- package/src/Pipeable.ts +10 -0
- package/src/PlatformError.ts +12 -0
- package/src/Pool.ts +30 -16
- package/src/Predicate.ts +520 -352
- package/src/PrimaryKey.ts +4 -0
- package/src/PubSub.ts +23 -5
- package/src/Pull.ts +16 -0
- package/src/Queue.ts +44 -0
- package/src/Random.ts +25 -6
- package/src/RcMap.ts +10 -6
- package/src/RcRef.ts +3 -1
- package/src/Record.ts +24 -3
- package/src/Redactable.ts +54 -41
- package/src/Redacted.ts +10 -0
- package/src/Reducer.ts +20 -11
- package/src/Ref.ts +95 -58
- package/src/References.ts +18 -1
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +8 -22
- package/src/Resource.ts +2 -0
- package/src/Result.ts +192 -6
- package/src/Runtime.ts +14 -11
- package/src/Schedule.ts +35 -3
- package/src/Scheduler.ts +22 -19
- package/src/Schema.ts +547 -130
- package/src/SchemaAST.ts +123 -65
- package/src/SchemaGetter.ts +269 -234
- package/src/SchemaIssue.ts +48 -46
- package/src/SchemaParser.ts +58 -0
- package/src/SchemaRepresentation.ts +198 -96
- package/src/SchemaTransformation.ts +272 -203
- package/src/SchemaUtils.ts +2 -0
- package/src/Scope.ts +19 -1
- package/src/ScopedCache.ts +56 -0
- package/src/ScopedRef.ts +9 -3
- package/src/Semaphore.ts +6 -0
- package/src/Sink.ts +108 -0
- package/src/Stdio.ts +7 -3
- package/src/Stream.ts +464 -16
- package/src/String.ts +14 -0
- package/src/Struct.ts +371 -191
- package/src/SubscriptionRef.ts +7 -1
- package/src/SynchronizedRef.ts +2 -0
- package/src/Tracer.ts +17 -27
- package/src/Trie.ts +23 -9
- package/src/Tuple.ts +287 -144
- package/src/TxChunk.ts +182 -93
- package/src/TxDeferred.ts +3 -4
- package/src/TxHashMap.ts +171 -90
- package/src/TxHashSet.ts +36 -35
- package/src/TxPriorityQueue.ts +2 -0
- package/src/TxPubSub.ts +36 -35
- package/src/TxQueue.ts +77 -114
- package/src/TxRef.ts +4 -0
- package/src/TxSemaphore.ts +66 -27
- package/src/Types.ts +202 -75
- package/src/UndefinedOr.ts +31 -29
- package/src/Unify.ts +28 -0
- package/src/Utils.ts +29 -35
- package/src/index.ts +18 -7
- package/src/testing/TestClock.ts +16 -16
- package/src/testing/TestConsole.ts +2 -0
- package/src/testing/TestSchema.ts +43 -55
- package/src/unstable/ai/AiError.ts +62 -11
- package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -4
- package/src/unstable/ai/Chat.ts +29 -1
- package/src/unstable/ai/IdGenerator.ts +10 -0
- package/src/unstable/ai/LanguageModel.ts +32 -46
- package/src/unstable/ai/McpSchema.ts +84 -32
- package/src/unstable/ai/McpServer.ts +8 -0
- package/src/unstable/ai/Model.ts +9 -5
- package/src/unstable/ai/OpenAiStructuredOutput.ts +3 -2
- package/src/unstable/ai/Prompt.ts +62 -35
- package/src/unstable/ai/Response.ts +40 -21
- package/src/unstable/ai/ResponseIdTracker.ts +8 -0
- package/src/unstable/ai/Telemetry.ts +30 -5
- package/src/unstable/ai/Tokenizer.ts +6 -0
- package/src/unstable/ai/Tool.ts +68 -0
- package/src/unstable/ai/Toolkit.ts +12 -0
- package/src/unstable/cli/Argument.ts +14 -4
- package/src/unstable/cli/CliError.ts +6 -0
- package/src/unstable/cli/Command.ts +128 -12
- package/src/unstable/cli/Flag.ts +31 -14
- package/src/unstable/cli/Param.ts +96 -9
- package/src/unstable/cli/Primitive.ts +10 -0
- package/src/unstable/cli/Prompt.ts +47 -40
- package/src/unstable/cli/internal/command.ts +11 -2
- package/src/unstable/cli/internal/completions/descriptor.ts +3 -0
- package/src/unstable/cli/internal/parser.ts +8 -1
- package/src/unstable/cluster/ClusterCron.ts +10 -1
- package/src/unstable/cluster/ClusterSchema.ts +8 -0
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -0
- package/src/unstable/cluster/DeliverAt.ts +3 -4
- package/src/unstable/cluster/Entity.ts +24 -0
- package/src/unstable/cluster/EntityProxy.ts +10 -4
- package/src/unstable/cluster/EntityProxyServer.ts +6 -0
- package/src/unstable/cluster/EntityResource.ts +10 -0
- package/src/unstable/cluster/Envelope.ts +16 -0
- package/src/unstable/cluster/HttpRunner.ts +16 -0
- package/src/unstable/cluster/K8sHttpClient.ts +8 -0
- package/src/unstable/cluster/Message.ts +24 -0
- package/src/unstable/cluster/MessageStorage.ts +44 -10
- package/src/unstable/cluster/Reply.ts +6 -6
- package/src/unstable/cluster/Runner.ts +2 -0
- package/src/unstable/cluster/RunnerHealth.ts +13 -2
- package/src/unstable/cluster/RunnerServer.ts +8 -8
- package/src/unstable/cluster/RunnerStorage.ts +2 -0
- package/src/unstable/cluster/ShardId.ts +4 -0
- package/src/unstable/cluster/Snowflake.ts +2 -0
- package/src/unstable/cluster/TestRunner.ts +3 -2
- package/src/unstable/devtools/DevToolsSchema.ts +34 -2
- package/src/unstable/devtools/DevToolsServer.ts +4 -0
- package/src/unstable/encoding/Msgpack.ts +24 -0
- package/src/unstable/encoding/Ndjson.ts +46 -2
- package/src/unstable/encoding/Sse.ts +24 -17
- package/src/unstable/eventlog/Event.ts +16 -0
- package/src/unstable/eventlog/EventGroup.ts +4 -0
- package/src/unstable/eventlog/EventJournal.ts +20 -0
- package/src/unstable/eventlog/EventLog.ts +22 -0
- package/src/unstable/eventlog/EventLogMessage.ts +10 -0
- package/src/unstable/eventlog/EventLogRemote.ts +4 -0
- package/src/unstable/eventlog/EventLogServer.ts +4 -0
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +6 -0
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -0
- package/src/unstable/eventlog/EventLogSessionAuth.ts +11 -1
- package/src/unstable/eventlog/SqlEventJournal.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +2 -0
- package/src/unstable/http/Cookies.ts +34 -0
- package/src/unstable/http/Etag.ts +4 -0
- package/src/unstable/http/FetchHttpClient.ts +4 -0
- package/src/unstable/http/Headers.ts +88 -0
- package/src/unstable/http/HttpBody.ts +32 -0
- package/src/unstable/http/HttpClient.ts +44 -0
- package/src/unstable/http/HttpClientRequest.ts +2 -0
- package/src/unstable/http/HttpClientResponse.ts +6 -0
- package/src/unstable/http/HttpEffect.ts +4 -0
- package/src/unstable/http/HttpPlatform.ts +2 -0
- package/src/unstable/http/HttpRouter.ts +54 -16
- package/src/unstable/http/HttpServer.ts +35 -1
- package/src/unstable/http/HttpServerError.ts +17 -3
- package/src/unstable/http/HttpServerRequest.ts +30 -0
- package/src/unstable/http/HttpServerRespondable.ts +8 -0
- package/src/unstable/http/HttpServerResponse.ts +96 -0
- package/src/unstable/http/HttpTraceContext.ts +12 -0
- package/src/unstable/http/Multipart.ts +49 -2
- package/src/unstable/http/Template.ts +14 -0
- package/src/unstable/http/UrlParams.ts +64 -0
- package/src/unstable/httpapi/HttpApi.ts +10 -4
- package/src/unstable/httpapi/HttpApiBuilder.ts +9 -4
- package/src/unstable/httpapi/HttpApiEndpoint.ts +2 -0
- package/src/unstable/httpapi/HttpApiGroup.ts +23 -14
- package/src/unstable/httpapi/HttpApiMiddleware.ts +14 -0
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -15
- package/src/unstable/httpapi/HttpApiSchema.ts +14 -3
- package/src/unstable/httpapi/HttpApiSecurity.ts +17 -11
- package/src/unstable/httpapi/HttpApiSwagger.ts +2 -4
- package/src/unstable/httpapi/HttpApiTest.ts +2 -0
- package/src/unstable/httpapi/OpenApi.ts +2 -0
- package/src/unstable/observability/Otlp.ts +2 -0
- package/src/unstable/observability/OtlpExporter.ts +2 -0
- package/src/unstable/observability/OtlpLogger.ts +4 -0
- package/src/unstable/observability/OtlpMetrics.ts +8 -9
- package/src/unstable/observability/OtlpResource.ts +8 -0
- package/src/unstable/observability/OtlpTracer.ts +3 -2
- package/src/unstable/observability/PrometheusMetrics.ts +6 -2
- package/src/unstable/persistence/KeyValueStore.ts +10 -0
- package/src/unstable/persistence/Persistable.ts +2 -0
- package/src/unstable/persistence/PersistedCache.ts +2 -0
- package/src/unstable/persistence/PersistedQueue.ts +21 -6
- package/src/unstable/persistence/Persistence.ts +14 -0
- package/src/unstable/persistence/RateLimiter.ts +6 -3
- package/src/unstable/persistence/Redis.ts +6 -0
- package/src/unstable/process/ChildProcess.ts +70 -19
- package/src/unstable/process/ChildProcessSpawner.ts +20 -4
- package/src/unstable/reactivity/Atom.ts +119 -14
- package/src/unstable/reactivity/AtomHttpApi.ts +4 -0
- package/src/unstable/reactivity/AtomRef.ts +8 -0
- package/src/unstable/reactivity/AtomRegistry.ts +34 -0
- package/src/unstable/reactivity/AtomRpc.ts +8 -6
- package/src/unstable/reactivity/Hydration.ts +6 -0
- package/src/unstable/reactivity/Reactivity.ts +27 -3
- package/src/unstable/rpc/Rpc.ts +38 -2
- package/src/unstable/rpc/RpcSerialization.ts +6 -0
- package/src/unstable/rpc/RpcServer.ts +5 -3
- package/src/unstable/schema/Model.ts +43 -12
- package/src/unstable/sql/SqlClient.ts +1 -1
- package/src/unstable/sql/SqlResolver.ts +6 -4
- package/src/unstable/sql/Statement.ts +8 -4
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +3 -0
- package/src/unstable/workflow/Workflow.ts +42 -34
package/dist/Channel.d.ts
CHANGED
|
@@ -118,6 +118,8 @@ export declare const isChannel: (u: unknown) => u is Channel<unknown, unknown, u
|
|
|
118
118
|
* `OutElem`. When the channel finishes, it yields a value of type `OutDone`. A
|
|
119
119
|
* channel may fail with a value of type `OutErr`.
|
|
120
120
|
*
|
|
121
|
+
* **Details**
|
|
122
|
+
*
|
|
121
123
|
* Channels are the foundation of Streams: both streams and sinks are built on
|
|
122
124
|
* channels. Most users shouldn't have to use channels directly, as streams and
|
|
123
125
|
* sinks are much more convenient and cover all common use cases. However, when
|
|
@@ -169,6 +171,8 @@ export interface Channel<out OutElem, out OutErr = never, out OutDone = void, in
|
|
|
169
171
|
/**
|
|
170
172
|
* Type-level unification support for `Channel` values.
|
|
171
173
|
*
|
|
174
|
+
* **Details**
|
|
175
|
+
*
|
|
172
176
|
* This preserves all `Channel` type parameters when `Unify` normalizes unions
|
|
173
177
|
* or generic return types that include channels. Users normally do not need to
|
|
174
178
|
* reference this interface directly.
|
|
@@ -184,6 +188,8 @@ export interface ChannelUnify<A extends {
|
|
|
184
188
|
/**
|
|
185
189
|
* Marker used by `Unify` while resolving `Channel` values.
|
|
186
190
|
*
|
|
191
|
+
* **Details**
|
|
192
|
+
*
|
|
187
193
|
* It prevents the inherited `Effect` unifier from being selected when the
|
|
188
194
|
* channel-specific unifier should preserve `Channel` input, output, and
|
|
189
195
|
* environment type parameters. Users normally do not need to reference this
|
|
@@ -201,6 +207,8 @@ type TagsWithReason<E> = {
|
|
|
201
207
|
/**
|
|
202
208
|
* Phantom variance marker for the type parameters of `Channel`.
|
|
203
209
|
*
|
|
210
|
+
* **Details**
|
|
211
|
+
*
|
|
204
212
|
* Output element, output error, output done, and environment types are
|
|
205
213
|
* covariant. Input element, input error, and input done types are
|
|
206
214
|
* contravariant. This is type-level machinery and is not used directly at
|
|
@@ -216,6 +224,8 @@ export interface Variance<out OutElem, out OutErr, out OutDone, in InElem, in In
|
|
|
216
224
|
* Structural encoding used by `Variance` to record each `Channel` type
|
|
217
225
|
* parameter's variance.
|
|
218
226
|
*
|
|
227
|
+
* **Details**
|
|
228
|
+
*
|
|
219
229
|
* The `_OutElem`, `_OutErr`, `_OutDone`, and `_Env` fields are covariant; the
|
|
220
230
|
* `_InElem`, `_InErr`, and `_InDone` fields are contravariant. Users normally
|
|
221
231
|
* do not need to reference this interface directly.
|
|
@@ -399,6 +409,8 @@ export declare const suspend: <OutElem, OutErr, OutDone, InElem, InErr, InDone,
|
|
|
399
409
|
* `release` runs with the channel's `Exit` when the channel completes, fails,
|
|
400
410
|
* or is interrupted.
|
|
401
411
|
*
|
|
412
|
+
* **Details**
|
|
413
|
+
*
|
|
402
414
|
* Acquisition is uninterruptible. If acquisition fails, `use` is not run and
|
|
403
415
|
* `release` is not registered.
|
|
404
416
|
*
|
|
@@ -422,6 +434,8 @@ export declare const acquireUseRelease: <A, E, R, OutElem, OutErr, OutDone, InEl
|
|
|
422
434
|
* Acquires a resource, emits the acquired value as a single channel element,
|
|
423
435
|
* and registers `release` in the channel scope.
|
|
424
436
|
*
|
|
437
|
+
* **Details**
|
|
438
|
+
*
|
|
425
439
|
* The release action runs when the channel scope closes and receives the scope
|
|
426
440
|
* exit. If acquisition fails, no element is emitted and `release` is not
|
|
427
441
|
* registered.
|
|
@@ -445,6 +459,8 @@ export declare const acquireRelease: {
|
|
|
445
459
|
* Acquires a resource, emits the acquired value as a single channel element,
|
|
446
460
|
* and registers `release` in the channel scope.
|
|
447
461
|
*
|
|
462
|
+
* **Details**
|
|
463
|
+
*
|
|
448
464
|
* The release action runs when the channel scope closes and receives the scope
|
|
449
465
|
* exit. If acquisition fails, no element is emitted and `release` is not
|
|
450
466
|
* registered.
|
|
@@ -468,6 +484,8 @@ export declare const acquireRelease: {
|
|
|
468
484
|
* Acquires a resource, emits the acquired value as a single channel element,
|
|
469
485
|
* and registers `release` in the channel scope.
|
|
470
486
|
*
|
|
487
|
+
* **Details**
|
|
488
|
+
*
|
|
471
489
|
* The release action runs when the channel scope closes and receives the scope
|
|
472
490
|
* exit. If acquisition fails, no element is emitted and `release` is not
|
|
473
491
|
* registered.
|
|
@@ -912,6 +930,8 @@ export declare const fromEffect: <A, E, R>(effect: Effect.Effect<A, E, R>) => Ch
|
|
|
912
930
|
* Creates a channel that evaluates an effect and uses its successful value as
|
|
913
931
|
* the channel's done value without emitting any output elements.
|
|
914
932
|
*
|
|
933
|
+
* **Details**
|
|
934
|
+
*
|
|
915
935
|
* If the effect fails, the channel fails with the effect's error.
|
|
916
936
|
*
|
|
917
937
|
* @category constructors
|
|
@@ -928,6 +948,8 @@ export declare const fromEffectDrain: <A, E, R>(effect: Effect.Effect<A, E, R>)
|
|
|
928
948
|
/**
|
|
929
949
|
* Creates a channel from an effect that produces a `Take`.
|
|
930
950
|
*
|
|
951
|
+
* **Details**
|
|
952
|
+
*
|
|
931
953
|
* A successful `Take` emits a non-empty array of output elements. A failed
|
|
932
954
|
* `Take` fails the channel. A done `Take` completes the channel with its done
|
|
933
955
|
* value.
|
|
@@ -1076,6 +1098,8 @@ export declare const fromSubscription: <A>(subscription: PubSub.Subscription<A>)
|
|
|
1076
1098
|
/**
|
|
1077
1099
|
* Create a channel from a PubSub subscription that outputs arrays of values.
|
|
1078
1100
|
*
|
|
1101
|
+
* **Details**
|
|
1102
|
+
*
|
|
1079
1103
|
* This constructor creates a channel that reads from a PubSub subscription and outputs
|
|
1080
1104
|
* arrays of values in chunks. It's useful when you want to process multiple values at once
|
|
1081
1105
|
* for better performance.
|
|
@@ -1177,6 +1201,8 @@ export declare const fromSubscriptionArray: <A>(subscription: PubSub.Subscriptio
|
|
|
1177
1201
|
/**
|
|
1178
1202
|
* Create a channel from a PubSub that outputs individual values.
|
|
1179
1203
|
*
|
|
1204
|
+
* **Details**
|
|
1205
|
+
*
|
|
1180
1206
|
* This constructor creates a channel that reads from a PubSub by automatically
|
|
1181
1207
|
* subscribing to it. The channel outputs individual values as they are published
|
|
1182
1208
|
* to the PubSub, making it ideal for real-time streaming scenarios.
|
|
@@ -1269,6 +1295,8 @@ export declare const fromPubSub: <A>(pubsub: PubSub.PubSub<A>) => Channel<A>;
|
|
|
1269
1295
|
/**
|
|
1270
1296
|
* Create a channel from a PubSub that outputs arrays of values.
|
|
1271
1297
|
*
|
|
1298
|
+
* **Details**
|
|
1299
|
+
*
|
|
1272
1300
|
* This constructor creates a channel that reads from a PubSub by automatically
|
|
1273
1301
|
* subscribing to it and collecting values into arrays. The channel outputs
|
|
1274
1302
|
* arrays of values in chunks, making it ideal for batch processing scenarios.
|
|
@@ -1389,6 +1417,8 @@ export declare const fromPubSubArray: <A>(pubsub: PubSub.PubSub<A>) => Channel<A
|
|
|
1389
1417
|
/**
|
|
1390
1418
|
* Subscribes to a `PubSub` of `Take` values and exposes them as a channel.
|
|
1391
1419
|
*
|
|
1420
|
+
* **Details**
|
|
1421
|
+
*
|
|
1392
1422
|
* Output `Take` values are emitted as non-empty arrays. Failed `Take` values
|
|
1393
1423
|
* fail the channel. Done `Take` values complete the channel.
|
|
1394
1424
|
*
|
|
@@ -1406,6 +1436,8 @@ export declare const fromSchedule: <O, E, R>(schedule: Schedule.Schedule<O, unkn
|
|
|
1406
1436
|
/**
|
|
1407
1437
|
* Creates a channel that pulls values from an `AsyncIterable`.
|
|
1408
1438
|
*
|
|
1439
|
+
* **Details**
|
|
1440
|
+
*
|
|
1409
1441
|
* Each yielded value is emitted as an output element. The iterator's return
|
|
1410
1442
|
* value becomes the channel's done value. Thrown or rejected iterator errors
|
|
1411
1443
|
* are converted with `onError`. If the channel scope closes early and the
|
|
@@ -1419,6 +1451,8 @@ export declare const fromAsyncIterable: <A, D, E>(iterable: AsyncIterable<A, D>,
|
|
|
1419
1451
|
* Creates a channel from an `AsyncIterable`, emitting each yielded value as a
|
|
1420
1452
|
* single-element non-empty array.
|
|
1421
1453
|
*
|
|
1454
|
+
* **Details**
|
|
1455
|
+
*
|
|
1422
1456
|
* The iterator's return value becomes the channel's done value. Thrown or
|
|
1423
1457
|
* rejected iterator errors are converted with `onError`. If the channel scope
|
|
1424
1458
|
* closes early and the iterator has a `return` method, that method is called.
|
|
@@ -1596,6 +1630,8 @@ export declare const mapDoneEffect: {
|
|
|
1596
1630
|
* Maps each output element with an effectful function, preserving the source
|
|
1597
1631
|
* channel's done value.
|
|
1598
1632
|
*
|
|
1633
|
+
* **Details**
|
|
1634
|
+
*
|
|
1599
1635
|
* The mapping function receives the output element and its zero-based index.
|
|
1600
1636
|
* By default elements are mapped sequentially. Use `options.concurrency` to
|
|
1601
1637
|
* map multiple elements concurrently, and `options.unordered` to allow
|
|
@@ -1647,6 +1683,8 @@ export declare const mapEffect: {
|
|
|
1647
1683
|
* Maps each output element with an effectful function, preserving the source
|
|
1648
1684
|
* channel's done value.
|
|
1649
1685
|
*
|
|
1686
|
+
* **Details**
|
|
1687
|
+
*
|
|
1650
1688
|
* The mapping function receives the output element and its zero-based index.
|
|
1651
1689
|
* By default elements are mapped sequentially. Use `options.concurrency` to
|
|
1652
1690
|
* map multiple elements concurrently, and `options.unordered` to allow
|
|
@@ -1701,6 +1739,8 @@ export declare const mapEffect: {
|
|
|
1701
1739
|
* Maps each output element with an effectful function, preserving the source
|
|
1702
1740
|
* channel's done value.
|
|
1703
1741
|
*
|
|
1742
|
+
* **Details**
|
|
1743
|
+
*
|
|
1704
1744
|
* The mapping function receives the output element and its zero-based index.
|
|
1705
1745
|
* By default elements are mapped sequentially. Use `options.concurrency` to
|
|
1706
1746
|
* map multiple elements concurrently, and `options.unordered` to allow
|
|
@@ -1806,6 +1846,8 @@ export declare const mapInputError: {
|
|
|
1806
1846
|
* Applies a side effect function to each output element of the channel,
|
|
1807
1847
|
* returning a new channel that emits the same elements.
|
|
1808
1848
|
*
|
|
1849
|
+
* **Details**
|
|
1850
|
+
*
|
|
1809
1851
|
* The `tap` function allows you to perform side effects (like logging or
|
|
1810
1852
|
* debugging) on each element emitted by a channel without modifying the
|
|
1811
1853
|
* elements themselves.
|
|
@@ -1840,6 +1882,8 @@ export declare const tap: {
|
|
|
1840
1882
|
* Applies a side effect function to each output element of the channel,
|
|
1841
1883
|
* returning a new channel that emits the same elements.
|
|
1842
1884
|
*
|
|
1885
|
+
* **Details**
|
|
1886
|
+
*
|
|
1843
1887
|
* The `tap` function allows you to perform side effects (like logging or
|
|
1844
1888
|
* debugging) on each element emitted by a channel without modifying the
|
|
1845
1889
|
* elements themselves.
|
|
@@ -1876,6 +1920,8 @@ export declare const tap: {
|
|
|
1876
1920
|
* Applies a side effect function to each output element of the channel,
|
|
1877
1921
|
* returning a new channel that emits the same elements.
|
|
1878
1922
|
*
|
|
1923
|
+
* **Details**
|
|
1924
|
+
*
|
|
1879
1925
|
* The `tap` function allows you to perform side effects (like logging or
|
|
1880
1926
|
* debugging) on each element emitted by a channel without modifying the
|
|
1881
1927
|
* elements themselves.
|
|
@@ -1913,6 +1959,8 @@ export declare const tap: {
|
|
|
1913
1959
|
* Maps each output element to a channel and flattens the child channel
|
|
1914
1960
|
* outputs.
|
|
1915
1961
|
*
|
|
1962
|
+
* **Details**
|
|
1963
|
+
*
|
|
1916
1964
|
* The source channel's done value is preserved. Child channel done values are
|
|
1917
1965
|
* used only for child-channel completion. By default child channels are run
|
|
1918
1966
|
* sequentially. Use `options.concurrency` and `options.bufferSize` to run child
|
|
@@ -1949,6 +1997,8 @@ export declare const flatMap: {
|
|
|
1949
1997
|
* Maps each output element to a channel and flattens the child channel
|
|
1950
1998
|
* outputs.
|
|
1951
1999
|
*
|
|
2000
|
+
* **Details**
|
|
2001
|
+
*
|
|
1952
2002
|
* The source channel's done value is preserved. Child channel done values are
|
|
1953
2003
|
* used only for child-channel completion. By default child channels are run
|
|
1954
2004
|
* sequentially. Use `options.concurrency` and `options.bufferSize` to run child
|
|
@@ -1988,6 +2038,8 @@ export declare const flatMap: {
|
|
|
1988
2038
|
* Maps each output element to a channel and flattens the child channel
|
|
1989
2039
|
* outputs.
|
|
1990
2040
|
*
|
|
2041
|
+
* **Details**
|
|
2042
|
+
*
|
|
1991
2043
|
* The source channel's done value is preserved. Child channel done values are
|
|
1992
2044
|
* used only for child-channel completion. By default child channels are run
|
|
1993
2045
|
* sequentially. Use `options.concurrency` and `options.bufferSize` to run child
|
|
@@ -2223,6 +2275,8 @@ export declare const combine: {
|
|
|
2223
2275
|
* Runs a fallback channel if this channel completes without emitting any
|
|
2224
2276
|
* output elements.
|
|
2225
2277
|
*
|
|
2278
|
+
* **Details**
|
|
2279
|
+
*
|
|
2226
2280
|
* If the source emits at least one element, the source is used unchanged. If
|
|
2227
2281
|
* the source completes before emitting an element, the fallback function
|
|
2228
2282
|
* receives the source done value and returns the replacement channel.
|
|
@@ -2235,6 +2289,8 @@ export declare const orElseIfEmpty: {
|
|
|
2235
2289
|
* Runs a fallback channel if this channel completes without emitting any
|
|
2236
2290
|
* output elements.
|
|
2237
2291
|
*
|
|
2292
|
+
* **Details**
|
|
2293
|
+
*
|
|
2238
2294
|
* If the source emits at least one element, the source is used unchanged. If
|
|
2239
2295
|
* the source completes before emitting an element, the fallback function
|
|
2240
2296
|
* receives the source done value and returns the replacement channel.
|
|
@@ -2247,6 +2303,8 @@ export declare const orElseIfEmpty: {
|
|
|
2247
2303
|
* Runs a fallback channel if this channel completes without emitting any
|
|
2248
2304
|
* output elements.
|
|
2249
2305
|
*
|
|
2306
|
+
* **Details**
|
|
2307
|
+
*
|
|
2250
2308
|
* If the source emits at least one element, the source is used unchanged. If
|
|
2251
2309
|
* the source completes before emitting an element, the fallback function
|
|
2252
2310
|
* receives the source done value and returns the replacement channel.
|
|
@@ -2318,6 +2376,8 @@ export declare const flattenArray: <OutElem, OutErr, OutDone, InElem, InErr, InD
|
|
|
2318
2376
|
* Flattens a channel that emits `Take` values into a channel that emits the
|
|
2319
2377
|
* `Take` outputs directly.
|
|
2320
2378
|
*
|
|
2379
|
+
* **Details**
|
|
2380
|
+
*
|
|
2321
2381
|
* Output `Take` values are emitted as non-empty arrays. Failed `Take` values
|
|
2322
2382
|
* fail the returned channel. Done `Take` values complete the returned channel.
|
|
2323
2383
|
*
|
|
@@ -2381,6 +2441,8 @@ export declare const forever: <OutElem, OutErr, OutDone, InElem, InErr, InDone,
|
|
|
2381
2441
|
* Runs a schedule step for each output element while preserving the emitted
|
|
2382
2442
|
* elements.
|
|
2383
2443
|
*
|
|
2444
|
+
* **Details**
|
|
2445
|
+
*
|
|
2384
2446
|
* The schedule receives each output element as input. Schedule delays are
|
|
2385
2447
|
* applied between emitted elements. If the schedule fails, the returned channel
|
|
2386
2448
|
* fails. If the schedule finishes, the returned channel completes with the
|
|
@@ -2394,6 +2456,8 @@ export declare const schedule: {
|
|
|
2394
2456
|
* Runs a schedule step for each output element while preserving the emitted
|
|
2395
2457
|
* elements.
|
|
2396
2458
|
*
|
|
2459
|
+
* **Details**
|
|
2460
|
+
*
|
|
2397
2461
|
* The schedule receives each output element as input. Schedule delays are
|
|
2398
2462
|
* applied between emitted elements. If the schedule fails, the returned channel
|
|
2399
2463
|
* fails. If the schedule finishes, the returned channel completes with the
|
|
@@ -2407,6 +2471,8 @@ export declare const schedule: {
|
|
|
2407
2471
|
* Runs a schedule step for each output element while preserving the emitted
|
|
2408
2472
|
* elements.
|
|
2409
2473
|
*
|
|
2474
|
+
* **Details**
|
|
2475
|
+
*
|
|
2410
2476
|
* The schedule receives each output element as input. Schedule delays are
|
|
2411
2477
|
* applied between emitted elements. If the schedule fails, the returned channel
|
|
2412
2478
|
* fails. If the schedule finishes, the returned channel completes with the
|
|
@@ -2566,6 +2632,8 @@ export declare const filter: {
|
|
|
2566
2632
|
/**
|
|
2567
2633
|
* Filters and maps output elements using a `Filter`.
|
|
2568
2634
|
*
|
|
2635
|
+
* **Details**
|
|
2636
|
+
*
|
|
2569
2637
|
* Successful filter results are emitted as mapped values. Failed filter
|
|
2570
2638
|
* results are discarded. The source channel's errors and done value are
|
|
2571
2639
|
* preserved.
|
|
@@ -2577,6 +2645,8 @@ export declare const filterMap: {
|
|
|
2577
2645
|
/**
|
|
2578
2646
|
* Filters and maps output elements using a `Filter`.
|
|
2579
2647
|
*
|
|
2648
|
+
* **Details**
|
|
2649
|
+
*
|
|
2580
2650
|
* Successful filter results are emitted as mapped values. Failed filter
|
|
2581
2651
|
* results are discarded. The source channel's errors and done value are
|
|
2582
2652
|
* preserved.
|
|
@@ -2588,6 +2658,8 @@ export declare const filterMap: {
|
|
|
2588
2658
|
/**
|
|
2589
2659
|
* Filters and maps output elements using a `Filter`.
|
|
2590
2660
|
*
|
|
2661
|
+
* **Details**
|
|
2662
|
+
*
|
|
2591
2663
|
* Successful filter results are emitted as mapped values. Failed filter
|
|
2592
2664
|
* results are discarded. The source channel's errors and done value are
|
|
2593
2665
|
* preserved.
|
|
@@ -2600,6 +2672,8 @@ export declare const filterMap: {
|
|
|
2600
2672
|
/**
|
|
2601
2673
|
* Filters output elements with an effectful predicate.
|
|
2602
2674
|
*
|
|
2675
|
+
* **Details**
|
|
2676
|
+
*
|
|
2603
2677
|
* Elements for which the predicate succeeds with `true` are emitted. Elements
|
|
2604
2678
|
* for which the predicate succeeds with `false` are discarded. Predicate
|
|
2605
2679
|
* failures fail the returned channel.
|
|
@@ -2611,6 +2685,8 @@ export declare const filterEffect: {
|
|
|
2611
2685
|
/**
|
|
2612
2686
|
* Filters output elements with an effectful predicate.
|
|
2613
2687
|
*
|
|
2688
|
+
* **Details**
|
|
2689
|
+
*
|
|
2614
2690
|
* Elements for which the predicate succeeds with `true` are emitted. Elements
|
|
2615
2691
|
* for which the predicate succeeds with `false` are discarded. Predicate
|
|
2616
2692
|
* failures fail the returned channel.
|
|
@@ -2622,6 +2698,8 @@ export declare const filterEffect: {
|
|
|
2622
2698
|
/**
|
|
2623
2699
|
* Filters output elements with an effectful predicate.
|
|
2624
2700
|
*
|
|
2701
|
+
* **Details**
|
|
2702
|
+
*
|
|
2625
2703
|
* Elements for which the predicate succeeds with `true` are emitted. Elements
|
|
2626
2704
|
* for which the predicate succeeds with `false` are discarded. Predicate
|
|
2627
2705
|
* failures fail the returned channel.
|
|
@@ -2634,6 +2712,8 @@ export declare const filterEffect: {
|
|
|
2634
2712
|
/**
|
|
2635
2713
|
* Filters and maps output elements using an effectful `Filter`.
|
|
2636
2714
|
*
|
|
2715
|
+
* **Details**
|
|
2716
|
+
*
|
|
2637
2717
|
* Successful filter results are emitted as mapped values. Failed filter
|
|
2638
2718
|
* results are discarded. Failures from the effectful filter fail the returned
|
|
2639
2719
|
* channel.
|
|
@@ -2645,6 +2725,8 @@ export declare const filterMapEffect: {
|
|
|
2645
2725
|
/**
|
|
2646
2726
|
* Filters and maps output elements using an effectful `Filter`.
|
|
2647
2727
|
*
|
|
2728
|
+
* **Details**
|
|
2729
|
+
*
|
|
2648
2730
|
* Successful filter results are emitted as mapped values. Failed filter
|
|
2649
2731
|
* results are discarded. Failures from the effectful filter fail the returned
|
|
2650
2732
|
* channel.
|
|
@@ -2656,6 +2738,8 @@ export declare const filterMapEffect: {
|
|
|
2656
2738
|
/**
|
|
2657
2739
|
* Filters and maps output elements using an effectful `Filter`.
|
|
2658
2740
|
*
|
|
2741
|
+
* **Details**
|
|
2742
|
+
*
|
|
2659
2743
|
* Successful filter results are emitted as mapped values. Failed filter
|
|
2660
2744
|
* results are discarded. Failures from the effectful filter fail the returned
|
|
2661
2745
|
* channel.
|
|
@@ -2855,6 +2939,8 @@ export declare const filterArray: {
|
|
|
2855
2939
|
* Filters and maps each element inside emitted non-empty arrays using a
|
|
2856
2940
|
* `Filter`.
|
|
2857
2941
|
*
|
|
2942
|
+
* **Details**
|
|
2943
|
+
*
|
|
2858
2944
|
* Successful filter results are kept as mapped values. Failed filter results
|
|
2859
2945
|
* are removed from the array. Arrays that become empty are discarded.
|
|
2860
2946
|
*
|
|
@@ -2866,6 +2952,8 @@ export declare const filterMapArray: {
|
|
|
2866
2952
|
* Filters and maps each element inside emitted non-empty arrays using a
|
|
2867
2953
|
* `Filter`.
|
|
2868
2954
|
*
|
|
2955
|
+
* **Details**
|
|
2956
|
+
*
|
|
2869
2957
|
* Successful filter results are kept as mapped values. Failed filter results
|
|
2870
2958
|
* are removed from the array. Arrays that become empty are discarded.
|
|
2871
2959
|
*
|
|
@@ -2877,6 +2965,8 @@ export declare const filterMapArray: {
|
|
|
2877
2965
|
* Filters and maps each element inside emitted non-empty arrays using a
|
|
2878
2966
|
* `Filter`.
|
|
2879
2967
|
*
|
|
2968
|
+
* **Details**
|
|
2969
|
+
*
|
|
2880
2970
|
* Successful filter results are kept as mapped values. Failed filter results
|
|
2881
2971
|
* are removed from the array. Arrays that become empty are discarded.
|
|
2882
2972
|
*
|
|
@@ -2889,6 +2979,8 @@ export declare const filterMapArray: {
|
|
|
2889
2979
|
* Filters each element inside emitted non-empty arrays with an effectful
|
|
2890
2980
|
* predicate.
|
|
2891
2981
|
*
|
|
2982
|
+
* **Details**
|
|
2983
|
+
*
|
|
2892
2984
|
* The predicate receives the element and its index within the array. Elements
|
|
2893
2985
|
* for which the predicate succeeds with `true` are kept. Arrays that become
|
|
2894
2986
|
* empty are discarded. Predicate failures fail the returned channel.
|
|
@@ -2901,6 +2993,8 @@ export declare const filterArrayEffect: {
|
|
|
2901
2993
|
* Filters each element inside emitted non-empty arrays with an effectful
|
|
2902
2994
|
* predicate.
|
|
2903
2995
|
*
|
|
2996
|
+
* **Details**
|
|
2997
|
+
*
|
|
2904
2998
|
* The predicate receives the element and its index within the array. Elements
|
|
2905
2999
|
* for which the predicate succeeds with `true` are kept. Arrays that become
|
|
2906
3000
|
* empty are discarded. Predicate failures fail the returned channel.
|
|
@@ -2913,6 +3007,8 @@ export declare const filterArrayEffect: {
|
|
|
2913
3007
|
* Filters each element inside emitted non-empty arrays with an effectful
|
|
2914
3008
|
* predicate.
|
|
2915
3009
|
*
|
|
3010
|
+
* **Details**
|
|
3011
|
+
*
|
|
2916
3012
|
* The predicate receives the element and its index within the array. Elements
|
|
2917
3013
|
* for which the predicate succeeds with `true` are kept. Arrays that become
|
|
2918
3014
|
* empty are discarded. Predicate failures fail the returned channel.
|
|
@@ -2926,6 +3022,8 @@ export declare const filterArrayEffect: {
|
|
|
2926
3022
|
* Filters and maps each element inside emitted non-empty arrays using an
|
|
2927
3023
|
* effectful `Filter`.
|
|
2928
3024
|
*
|
|
3025
|
+
* **Details**
|
|
3026
|
+
*
|
|
2929
3027
|
* Successful filter results are kept as mapped values. Failed filter results
|
|
2930
3028
|
* are removed from the array. Arrays that become empty are discarded. Failures
|
|
2931
3029
|
* from the effectful filter fail the returned channel.
|
|
@@ -2938,6 +3036,8 @@ export declare const filterMapArrayEffect: {
|
|
|
2938
3036
|
* Filters and maps each element inside emitted non-empty arrays using an
|
|
2939
3037
|
* effectful `Filter`.
|
|
2940
3038
|
*
|
|
3039
|
+
* **Details**
|
|
3040
|
+
*
|
|
2941
3041
|
* Successful filter results are kept as mapped values. Failed filter results
|
|
2942
3042
|
* are removed from the array. Arrays that become empty are discarded. Failures
|
|
2943
3043
|
* from the effectful filter fail the returned channel.
|
|
@@ -2950,6 +3050,8 @@ export declare const filterMapArrayEffect: {
|
|
|
2950
3050
|
* Filters and maps each element inside emitted non-empty arrays using an
|
|
2951
3051
|
* effectful `Filter`.
|
|
2952
3052
|
*
|
|
3053
|
+
* **Details**
|
|
3054
|
+
*
|
|
2953
3055
|
* Successful filter results are kept as mapped values. Failed filter results
|
|
2954
3056
|
* are removed from the array. Arrays that become empty are discarded. Failures
|
|
2955
3057
|
* from the effectful filter fail the returned channel.
|
|
@@ -3430,6 +3532,8 @@ export declare const catchCause: {
|
|
|
3430
3532
|
* Runs an effect with the full failure `Cause` when the channel fails, then
|
|
3431
3533
|
* fails the returned channel with the original cause.
|
|
3432
3534
|
*
|
|
3535
|
+
* **Details**
|
|
3536
|
+
*
|
|
3433
3537
|
* Use this for observing failures, such as logging or metrics. If the observer
|
|
3434
3538
|
* effect fails, that failure can fail the returned channel.
|
|
3435
3539
|
*
|
|
@@ -3441,6 +3545,8 @@ export declare const tapCause: {
|
|
|
3441
3545
|
* Runs an effect with the full failure `Cause` when the channel fails, then
|
|
3442
3546
|
* fails the returned channel with the original cause.
|
|
3443
3547
|
*
|
|
3548
|
+
* **Details**
|
|
3549
|
+
*
|
|
3444
3550
|
* Use this for observing failures, such as logging or metrics. If the observer
|
|
3445
3551
|
* effect fails, that failure can fail the returned channel.
|
|
3446
3552
|
*
|
|
@@ -3452,6 +3558,8 @@ export declare const tapCause: {
|
|
|
3452
3558
|
* Runs an effect with the full failure `Cause` when the channel fails, then
|
|
3453
3559
|
* fails the returned channel with the original cause.
|
|
3454
3560
|
*
|
|
3561
|
+
* **Details**
|
|
3562
|
+
*
|
|
3455
3563
|
* Use this for observing failures, such as logging or metrics. If the observer
|
|
3456
3564
|
* effect fails, that failure can fail the returned channel.
|
|
3457
3565
|
*
|
|
@@ -3488,6 +3596,8 @@ export declare const catchCauseIf: {
|
|
|
3488
3596
|
/**
|
|
3489
3597
|
* Recovers from channel failures whose full `Cause` is selected by a `Filter`.
|
|
3490
3598
|
*
|
|
3599
|
+
* **Details**
|
|
3600
|
+
*
|
|
3491
3601
|
* When the filter succeeds, the recovery function receives the selected value
|
|
3492
3602
|
* and the original cause. When the filter fails, the returned channel fails
|
|
3493
3603
|
* with the residual cause produced by the filter.
|
|
@@ -3499,6 +3609,8 @@ export declare const catchCauseFilter: {
|
|
|
3499
3609
|
/**
|
|
3500
3610
|
* Recovers from channel failures whose full `Cause` is selected by a `Filter`.
|
|
3501
3611
|
*
|
|
3612
|
+
* **Details**
|
|
3613
|
+
*
|
|
3502
3614
|
* When the filter succeeds, the recovery function receives the selected value
|
|
3503
3615
|
* and the original cause. When the filter fails, the returned channel fails
|
|
3504
3616
|
* with the residual cause produced by the filter.
|
|
@@ -3510,6 +3622,8 @@ export declare const catchCauseFilter: {
|
|
|
3510
3622
|
/**
|
|
3511
3623
|
* Recovers from channel failures whose full `Cause` is selected by a `Filter`.
|
|
3512
3624
|
*
|
|
3625
|
+
* **Details**
|
|
3626
|
+
*
|
|
3513
3627
|
* When the filter succeeds, the recovery function receives the selected value
|
|
3514
3628
|
* and the original cause. When the filter fails, the returned channel fails
|
|
3515
3629
|
* with the residual cause produced by the filter.
|
|
@@ -3525,6 +3639,8 @@ declare const catch_: {
|
|
|
3525
3639
|
};
|
|
3526
3640
|
export {
|
|
3527
3641
|
/**
|
|
3642
|
+
* Recovers from typed channel errors by running a fallback channel.
|
|
3643
|
+
*
|
|
3528
3644
|
* @category error handling
|
|
3529
3645
|
* @since 4.0.0
|
|
3530
3646
|
*/
|
|
@@ -3533,6 +3649,8 @@ catch_ as catch };
|
|
|
3533
3649
|
* Runs an effect when the channel fails with a typed error, then preserves the
|
|
3534
3650
|
* original channel failure.
|
|
3535
3651
|
*
|
|
3652
|
+
* **Details**
|
|
3653
|
+
*
|
|
3536
3654
|
* The effect is not run for normal channel completion. If the observer effect
|
|
3537
3655
|
* fails, that failure can fail the returned channel.
|
|
3538
3656
|
*
|
|
@@ -3544,6 +3662,8 @@ export declare const tapError: {
|
|
|
3544
3662
|
* Runs an effect when the channel fails with a typed error, then preserves the
|
|
3545
3663
|
* original channel failure.
|
|
3546
3664
|
*
|
|
3665
|
+
* **Details**
|
|
3666
|
+
*
|
|
3547
3667
|
* The effect is not run for normal channel completion. If the observer effect
|
|
3548
3668
|
* fails, that failure can fail the returned channel.
|
|
3549
3669
|
*
|
|
@@ -3555,6 +3675,8 @@ export declare const tapError: {
|
|
|
3555
3675
|
* Runs an effect when the channel fails with a typed error, then preserves the
|
|
3556
3676
|
* original channel failure.
|
|
3557
3677
|
*
|
|
3678
|
+
* **Details**
|
|
3679
|
+
*
|
|
3558
3680
|
* The effect is not run for normal channel completion. If the observer effect
|
|
3559
3681
|
* fails, that failure can fail the returned channel.
|
|
3560
3682
|
*
|
|
@@ -3566,6 +3688,8 @@ export declare const tapError: {
|
|
|
3566
3688
|
/**
|
|
3567
3689
|
* Recovers from typed channel errors that match a predicate or refinement.
|
|
3568
3690
|
*
|
|
3691
|
+
* **Details**
|
|
3692
|
+
*
|
|
3569
3693
|
* Matching errors are handled by the recovery function. Non-matching errors
|
|
3570
3694
|
* are handled by `orElse` when provided. Without `orElse`, non-matching errors
|
|
3571
3695
|
* are re-failed.
|
|
@@ -3577,6 +3701,8 @@ export declare const catchIf: {
|
|
|
3577
3701
|
/**
|
|
3578
3702
|
* Recovers from typed channel errors that match a predicate or refinement.
|
|
3579
3703
|
*
|
|
3704
|
+
* **Details**
|
|
3705
|
+
*
|
|
3580
3706
|
* Matching errors are handled by the recovery function. Non-matching errors
|
|
3581
3707
|
* are handled by `orElse` when provided. Without `orElse`, non-matching errors
|
|
3582
3708
|
* are re-failed.
|
|
@@ -3588,6 +3714,8 @@ export declare const catchIf: {
|
|
|
3588
3714
|
/**
|
|
3589
3715
|
* Recovers from typed channel errors that match a predicate or refinement.
|
|
3590
3716
|
*
|
|
3717
|
+
* **Details**
|
|
3718
|
+
*
|
|
3591
3719
|
* Matching errors are handled by the recovery function. Non-matching errors
|
|
3592
3720
|
* are handled by `orElse` when provided. Without `orElse`, non-matching errors
|
|
3593
3721
|
* are re-failed.
|
|
@@ -3599,6 +3727,8 @@ export declare const catchIf: {
|
|
|
3599
3727
|
/**
|
|
3600
3728
|
* Recovers from typed channel errors that match a predicate or refinement.
|
|
3601
3729
|
*
|
|
3730
|
+
* **Details**
|
|
3731
|
+
*
|
|
3602
3732
|
* Matching errors are handled by the recovery function. Non-matching errors
|
|
3603
3733
|
* are handled by `orElse` when provided. Without `orElse`, non-matching errors
|
|
3604
3734
|
* are re-failed.
|
|
@@ -3610,6 +3740,8 @@ export declare const catchIf: {
|
|
|
3610
3740
|
/**
|
|
3611
3741
|
* Recovers from typed channel errors that match a predicate or refinement.
|
|
3612
3742
|
*
|
|
3743
|
+
* **Details**
|
|
3744
|
+
*
|
|
3613
3745
|
* Matching errors are handled by the recovery function. Non-matching errors
|
|
3614
3746
|
* are handled by `orElse` when provided. Without `orElse`, non-matching errors
|
|
3615
3747
|
* are re-failed.
|
|
@@ -3622,6 +3754,8 @@ export declare const catchIf: {
|
|
|
3622
3754
|
/**
|
|
3623
3755
|
* Recovers from typed channel errors selected by a `Filter`.
|
|
3624
3756
|
*
|
|
3757
|
+
* **Details**
|
|
3758
|
+
*
|
|
3625
3759
|
* Successful filter results are handled by the recovery function. Failed
|
|
3626
3760
|
* filter results are handled by `orElse` when provided. Without `orElse`,
|
|
3627
3761
|
* failed filter results are re-failed.
|
|
@@ -3633,6 +3767,8 @@ export declare const catchFilter: {
|
|
|
3633
3767
|
/**
|
|
3634
3768
|
* Recovers from typed channel errors selected by a `Filter`.
|
|
3635
3769
|
*
|
|
3770
|
+
* **Details**
|
|
3771
|
+
*
|
|
3636
3772
|
* Successful filter results are handled by the recovery function. Failed
|
|
3637
3773
|
* filter results are handled by `orElse` when provided. Without `orElse`,
|
|
3638
3774
|
* failed filter results are re-failed.
|
|
@@ -3644,6 +3780,8 @@ export declare const catchFilter: {
|
|
|
3644
3780
|
/**
|
|
3645
3781
|
* Recovers from typed channel errors selected by a `Filter`.
|
|
3646
3782
|
*
|
|
3783
|
+
* **Details**
|
|
3784
|
+
*
|
|
3647
3785
|
* Successful filter results are handled by the recovery function. Failed
|
|
3648
3786
|
* filter results are handled by `orElse` when provided. Without `orElse`,
|
|
3649
3787
|
* failed filter results are re-failed.
|
|
@@ -3656,6 +3794,8 @@ export declare const catchFilter: {
|
|
|
3656
3794
|
/**
|
|
3657
3795
|
* Recovers from tagged channel errors whose `_tag` matches one or more tags.
|
|
3658
3796
|
*
|
|
3797
|
+
* **Details**
|
|
3798
|
+
*
|
|
3659
3799
|
* Matching tagged errors are handled by the recovery function. Non-matching
|
|
3660
3800
|
* errors are handled by `orElse` when provided. Without `orElse`,
|
|
3661
3801
|
* non-matching errors are re-failed.
|
|
@@ -3667,6 +3807,8 @@ export declare const catchTag: {
|
|
|
3667
3807
|
/**
|
|
3668
3808
|
* Recovers from tagged channel errors whose `_tag` matches one or more tags.
|
|
3669
3809
|
*
|
|
3810
|
+
* **Details**
|
|
3811
|
+
*
|
|
3670
3812
|
* Matching tagged errors are handled by the recovery function. Non-matching
|
|
3671
3813
|
* errors are handled by `orElse` when provided. Without `orElse`,
|
|
3672
3814
|
* non-matching errors are re-failed.
|
|
@@ -3678,6 +3820,8 @@ export declare const catchTag: {
|
|
|
3678
3820
|
/**
|
|
3679
3821
|
* Recovers from tagged channel errors whose `_tag` matches one or more tags.
|
|
3680
3822
|
*
|
|
3823
|
+
* **Details**
|
|
3824
|
+
*
|
|
3681
3825
|
* Matching tagged errors are handled by the recovery function. Non-matching
|
|
3682
3826
|
* errors are handled by `orElse` when provided. Without `orElse`,
|
|
3683
3827
|
* non-matching errors are re-failed.
|
|
@@ -3998,6 +4142,8 @@ export declare const orDie: <OutElem, OutErr, OutDone, InElem, InErr, InDone, En
|
|
|
3998
4142
|
/**
|
|
3999
4143
|
* Ignores all errors in the channel, converting them to an empty channel.
|
|
4000
4144
|
*
|
|
4145
|
+
* **Details**
|
|
4146
|
+
*
|
|
4001
4147
|
* Use the `log` option to emit the full {@link Cause} when the channel fails.
|
|
4002
4148
|
*
|
|
4003
4149
|
* @category error handling
|
|
@@ -4015,6 +4161,8 @@ export declare const ignore: <Arg extends Channel<any, any, any, any, any, any,
|
|
|
4015
4161
|
/**
|
|
4016
4162
|
* Ignores all errors in the channel including defects, converting them to an empty channel.
|
|
4017
4163
|
*
|
|
4164
|
+
* **Details**
|
|
4165
|
+
*
|
|
4018
4166
|
* Use the `log` option to emit the full {@link Cause} when the channel fails.
|
|
4019
4167
|
*
|
|
4020
4168
|
* @category error handling
|
|
@@ -4058,6 +4206,8 @@ export declare const retry: {
|
|
|
4058
4206
|
* Maps each output element to a channel and emits values from the most recent
|
|
4059
4207
|
* active child channels.
|
|
4060
4208
|
*
|
|
4209
|
+
* **Details**
|
|
4210
|
+
*
|
|
4061
4211
|
* With the default concurrency of `1`, starting a new child channel interrupts
|
|
4062
4212
|
* the previous child channel. Use `options.concurrency` to allow more active
|
|
4063
4213
|
* child channels. The source channel's done value is preserved.
|
|
@@ -4091,6 +4241,8 @@ export declare const switchMap: {
|
|
|
4091
4241
|
* Maps each output element to a channel and emits values from the most recent
|
|
4092
4242
|
* active child channels.
|
|
4093
4243
|
*
|
|
4244
|
+
* **Details**
|
|
4245
|
+
*
|
|
4094
4246
|
* With the default concurrency of `1`, starting a new child channel interrupts
|
|
4095
4247
|
* the previous child channel. Use `options.concurrency` to allow more active
|
|
4096
4248
|
* child channels. The source channel's done value is preserved.
|
|
@@ -4127,6 +4279,8 @@ export declare const switchMap: {
|
|
|
4127
4279
|
* Maps each output element to a channel and emits values from the most recent
|
|
4128
4280
|
* active child channels.
|
|
4129
4281
|
*
|
|
4282
|
+
* **Details**
|
|
4283
|
+
*
|
|
4130
4284
|
* With the default concurrency of `1`, starting a new child channel interrupts
|
|
4131
4285
|
* the previous child channel. Use `options.concurrency` to allow more active
|
|
4132
4286
|
* child channels. The source channel's done value is preserved.
|
|
@@ -4383,6 +4537,8 @@ export declare const merge: {
|
|
|
4383
4537
|
* Runs an effect concurrently with a channel while emitting only the channel's
|
|
4384
4538
|
* output elements.
|
|
4385
4539
|
*
|
|
4540
|
+
* **Details**
|
|
4541
|
+
*
|
|
4386
4542
|
* The effect's successful value is ignored. If the effect fails while the
|
|
4387
4543
|
* channel is running, the returned channel fails with that error.
|
|
4388
4544
|
*
|
|
@@ -4394,6 +4550,8 @@ export declare const mergeEffect: {
|
|
|
4394
4550
|
* Runs an effect concurrently with a channel while emitting only the channel's
|
|
4395
4551
|
* output elements.
|
|
4396
4552
|
*
|
|
4553
|
+
* **Details**
|
|
4554
|
+
*
|
|
4397
4555
|
* The effect's successful value is ignored. If the effect fails while the
|
|
4398
4556
|
* channel is running, the returned channel fails with that error.
|
|
4399
4557
|
*
|
|
@@ -4405,6 +4563,8 @@ export declare const mergeEffect: {
|
|
|
4405
4563
|
* Runs an effect concurrently with a channel while emitting only the channel's
|
|
4406
4564
|
* output elements.
|
|
4407
4565
|
*
|
|
4566
|
+
* **Details**
|
|
4567
|
+
*
|
|
4408
4568
|
* The effect's successful value is ignored. If the effect fails while the
|
|
4409
4569
|
* channel is running, the returned channel fails with that error.
|
|
4410
4570
|
*
|
|
@@ -4418,6 +4578,8 @@ export declare const mergeEffect: {
|
|
|
4418
4578
|
* standalone `\r` as line terminators. The behavior matches
|
|
4419
4579
|
* `String.linesIterator` regardless of how the input is chunked.
|
|
4420
4580
|
*
|
|
4581
|
+
* **Details**
|
|
4582
|
+
*
|
|
4421
4583
|
* A line terminator at the very end of the stream does **not** produce a
|
|
4422
4584
|
* trailing empty line (consistent with `String.linesIterator`). Conversely,
|
|
4423
4585
|
* if the stream ends without a terminator the final partial line is still
|
|
@@ -4444,6 +4606,8 @@ export declare const splitLines: <Err, Done>() => Channel<Arr.NonEmptyReadonlyAr
|
|
|
4444
4606
|
/**
|
|
4445
4607
|
* Decodes incoming `Uint8Array` chunks into strings using `TextDecoder`.
|
|
4446
4608
|
*
|
|
4609
|
+
* **Details**
|
|
4610
|
+
*
|
|
4447
4611
|
* Input chunks are decoded with streaming enabled so multi-byte characters may
|
|
4448
4612
|
* span `Uint8Array` boundaries. The optional `encoding` and `options` are
|
|
4449
4613
|
* passed to `TextDecoder`.
|
|
@@ -4455,6 +4619,8 @@ export declare const decodeText: <Err, Done>(encoding?: string, options?: TextDe
|
|
|
4455
4619
|
/**
|
|
4456
4620
|
* Encodes incoming string chunks into `Uint8Array` values using `TextEncoder`.
|
|
4457
4621
|
*
|
|
4622
|
+
* **Details**
|
|
4623
|
+
*
|
|
4458
4624
|
* Each string inside an emitted array is encoded independently.
|
|
4459
4625
|
*
|
|
4460
4626
|
* @category String manipulation
|
|
@@ -4674,6 +4840,8 @@ export declare const scoped: <OutElem, OutErr, OutDone, InElem, InErr, InDone, E
|
|
|
4674
4840
|
* Runs an input handler against the upstream pull while the wrapped channel
|
|
4675
4841
|
* runs without receiving upstream input directly.
|
|
4676
4842
|
*
|
|
4843
|
+
* **Details**
|
|
4844
|
+
*
|
|
4677
4845
|
* The input handler is forked in the channel scope. The wrapped channel is run
|
|
4678
4846
|
* with an already-completed input.
|
|
4679
4847
|
*
|
|
@@ -4707,6 +4875,8 @@ export declare const embedInput: {
|
|
|
4707
4875
|
* Runs an input handler against the upstream pull while the wrapped channel
|
|
4708
4876
|
* runs without receiving upstream input directly.
|
|
4709
4877
|
*
|
|
4878
|
+
* **Details**
|
|
4879
|
+
*
|
|
4710
4880
|
* The input handler is forked in the channel scope. The wrapped channel is run
|
|
4711
4881
|
* with an already-completed input.
|
|
4712
4882
|
*
|
|
@@ -4740,6 +4910,8 @@ export declare const embedInput: {
|
|
|
4740
4910
|
* Runs an input handler against the upstream pull while the wrapped channel
|
|
4741
4911
|
* runs without receiving upstream input directly.
|
|
4742
4912
|
*
|
|
4913
|
+
* **Details**
|
|
4914
|
+
*
|
|
4743
4915
|
* The input handler is forked in the channel scope. The wrapped channel is run
|
|
4744
4916
|
* with an already-completed input.
|
|
4745
4917
|
*
|
|
@@ -4883,6 +5055,8 @@ export declare const interruptWhen: {
|
|
|
4883
5055
|
/**
|
|
4884
5056
|
* Halts a channel when the specified effect completes or fails.
|
|
4885
5057
|
*
|
|
5058
|
+
* **Details**
|
|
5059
|
+
*
|
|
4886
5060
|
* If the effect completes before the channel is done, its success value becomes
|
|
4887
5061
|
* the returned channel's done value. If the effect fails, the returned channel
|
|
4888
5062
|
* fails with that error. If the channel completes first, the channel's done
|
|
@@ -4895,6 +5069,8 @@ export declare const haltWhen: {
|
|
|
4895
5069
|
/**
|
|
4896
5070
|
* Halts a channel when the specified effect completes or fails.
|
|
4897
5071
|
*
|
|
5072
|
+
* **Details**
|
|
5073
|
+
*
|
|
4898
5074
|
* If the effect completes before the channel is done, its success value becomes
|
|
4899
5075
|
* the returned channel's done value. If the effect fails, the returned channel
|
|
4900
5076
|
* fails with that error. If the channel completes first, the channel's done
|
|
@@ -4907,6 +5083,8 @@ export declare const haltWhen: {
|
|
|
4907
5083
|
/**
|
|
4908
5084
|
* Halts a channel when the specified effect completes or fails.
|
|
4909
5085
|
*
|
|
5086
|
+
* **Details**
|
|
5087
|
+
*
|
|
4910
5088
|
* If the effect completes before the channel is done, its success value becomes
|
|
4911
5089
|
* the returned channel's done value. If the effect fails, the returned channel
|
|
4912
5090
|
* fails with that error. If the channel completes first, the channel's done
|
|
@@ -4920,6 +5098,8 @@ export declare const haltWhen: {
|
|
|
4920
5098
|
/**
|
|
4921
5099
|
* Attaches a finalizer that runs only when the channel exits with failure.
|
|
4922
5100
|
*
|
|
5101
|
+
* **Details**
|
|
5102
|
+
*
|
|
4923
5103
|
* The finalizer receives the failure `Cause`. The original channel failure is
|
|
4924
5104
|
* preserved. The finalizer itself must not fail.
|
|
4925
5105
|
*
|
|
@@ -4930,6 +5110,8 @@ export declare const onError: {
|
|
|
4930
5110
|
/**
|
|
4931
5111
|
* Attaches a finalizer that runs only when the channel exits with failure.
|
|
4932
5112
|
*
|
|
5113
|
+
* **Details**
|
|
5114
|
+
*
|
|
4933
5115
|
* The finalizer receives the failure `Cause`. The original channel failure is
|
|
4934
5116
|
* preserved. The finalizer itself must not fail.
|
|
4935
5117
|
*
|
|
@@ -4940,6 +5122,8 @@ export declare const onError: {
|
|
|
4940
5122
|
/**
|
|
4941
5123
|
* Attaches a finalizer that runs only when the channel exits with failure.
|
|
4942
5124
|
*
|
|
5125
|
+
* **Details**
|
|
5126
|
+
*
|
|
4943
5127
|
* The finalizer receives the failure `Cause`. The original channel failure is
|
|
4944
5128
|
* preserved. The finalizer itself must not fail.
|
|
4945
5129
|
*
|
|
@@ -5045,6 +5229,8 @@ export declare const onExit: {
|
|
|
5045
5229
|
/**
|
|
5046
5230
|
* Runs an effect before the channel starts.
|
|
5047
5231
|
*
|
|
5232
|
+
* **Details**
|
|
5233
|
+
*
|
|
5048
5234
|
* The effect's successful value is ignored. If the effect fails, the returned
|
|
5049
5235
|
* channel fails before running the source channel.
|
|
5050
5236
|
*
|
|
@@ -5055,6 +5241,8 @@ export declare const onStart: {
|
|
|
5055
5241
|
/**
|
|
5056
5242
|
* Runs an effect before the channel starts.
|
|
5057
5243
|
*
|
|
5244
|
+
* **Details**
|
|
5245
|
+
*
|
|
5058
5246
|
* The effect's successful value is ignored. If the effect fails, the returned
|
|
5059
5247
|
* channel fails before running the source channel.
|
|
5060
5248
|
*
|
|
@@ -5065,6 +5253,8 @@ export declare const onStart: {
|
|
|
5065
5253
|
/**
|
|
5066
5254
|
* Runs an effect before the channel starts.
|
|
5067
5255
|
*
|
|
5256
|
+
* **Details**
|
|
5257
|
+
*
|
|
5068
5258
|
* The effect's successful value is ignored. If the effect fails, the returned
|
|
5069
5259
|
* channel fails before running the source channel.
|
|
5070
5260
|
*
|
|
@@ -5076,6 +5266,8 @@ export declare const onStart: {
|
|
|
5076
5266
|
/**
|
|
5077
5267
|
* Runs an effect the first time the channel emits an output element.
|
|
5078
5268
|
*
|
|
5269
|
+
* **Details**
|
|
5270
|
+
*
|
|
5079
5271
|
* The effect receives the first emitted element. The first element is still
|
|
5080
5272
|
* emitted unchanged. The effect is not run if the channel completes without
|
|
5081
5273
|
* emitting an element.
|
|
@@ -5087,6 +5279,8 @@ export declare const onFirst: {
|
|
|
5087
5279
|
/**
|
|
5088
5280
|
* Runs an effect the first time the channel emits an output element.
|
|
5089
5281
|
*
|
|
5282
|
+
* **Details**
|
|
5283
|
+
*
|
|
5090
5284
|
* The effect receives the first emitted element. The first element is still
|
|
5091
5285
|
* emitted unchanged. The effect is not run if the channel completes without
|
|
5092
5286
|
* emitting an element.
|
|
@@ -5098,6 +5292,8 @@ export declare const onFirst: {
|
|
|
5098
5292
|
/**
|
|
5099
5293
|
* Runs an effect the first time the channel emits an output element.
|
|
5100
5294
|
*
|
|
5295
|
+
* **Details**
|
|
5296
|
+
*
|
|
5101
5297
|
* The effect receives the first emitted element. The first element is still
|
|
5102
5298
|
* emitted unchanged. The effect is not run if the channel completes without
|
|
5103
5299
|
* emitting an element.
|
|
@@ -5110,6 +5306,8 @@ export declare const onFirst: {
|
|
|
5110
5306
|
/**
|
|
5111
5307
|
* Runs an effect when the channel completes successfully.
|
|
5112
5308
|
*
|
|
5309
|
+
* **Details**
|
|
5310
|
+
*
|
|
5113
5311
|
* The effect runs before the original done value is propagated. The effect is
|
|
5114
5312
|
* not run when the channel fails. If the effect fails, the returned channel
|
|
5115
5313
|
* fails with that error.
|
|
@@ -5121,6 +5319,8 @@ export declare const onEnd: {
|
|
|
5121
5319
|
/**
|
|
5122
5320
|
* Runs an effect when the channel completes successfully.
|
|
5123
5321
|
*
|
|
5322
|
+
* **Details**
|
|
5323
|
+
*
|
|
5124
5324
|
* The effect runs before the original done value is propagated. The effect is
|
|
5125
5325
|
* not run when the channel fails. If the effect fails, the returned channel
|
|
5126
5326
|
* fails with that error.
|
|
@@ -5132,6 +5332,8 @@ export declare const onEnd: {
|
|
|
5132
5332
|
/**
|
|
5133
5333
|
* Runs an effect when the channel completes successfully.
|
|
5134
5334
|
*
|
|
5335
|
+
* **Details**
|
|
5336
|
+
*
|
|
5135
5337
|
* The effect runs before the original done value is propagated. The effect is
|
|
5136
5338
|
* not run when the channel fails. If the effect fails, the returned channel
|
|
5137
5339
|
* fails with that error.
|
|
@@ -5287,6 +5489,8 @@ export declare const provideService: {
|
|
|
5287
5489
|
* Evaluates an effect to obtain a service, then provides that service to the
|
|
5288
5490
|
* channel.
|
|
5289
5491
|
*
|
|
5492
|
+
* **Details**
|
|
5493
|
+
*
|
|
5290
5494
|
* If the service effect fails, the returned channel fails. The provided service
|
|
5291
5495
|
* removes the corresponding service requirement from the returned channel.
|
|
5292
5496
|
*
|
|
@@ -5298,6 +5502,8 @@ export declare const provideServiceEffect: {
|
|
|
5298
5502
|
* Evaluates an effect to obtain a service, then provides that service to the
|
|
5299
5503
|
* channel.
|
|
5300
5504
|
*
|
|
5505
|
+
* **Details**
|
|
5506
|
+
*
|
|
5301
5507
|
* If the service effect fails, the returned channel fails. The provided service
|
|
5302
5508
|
* removes the corresponding service requirement from the returned channel.
|
|
5303
5509
|
*
|
|
@@ -5309,6 +5515,8 @@ export declare const provideServiceEffect: {
|
|
|
5309
5515
|
* Evaluates an effect to obtain a service, then provides that service to the
|
|
5310
5516
|
* channel.
|
|
5311
5517
|
*
|
|
5518
|
+
* **Details**
|
|
5519
|
+
*
|
|
5312
5520
|
* If the service effect fails, the returned channel fails. The provided service
|
|
5313
5521
|
* removes the corresponding service requirement from the returned channel.
|
|
5314
5522
|
*
|
|
@@ -5321,6 +5529,8 @@ export declare const provideServiceEffect: {
|
|
|
5321
5529
|
* Provides a `Layer` or `Context` to the channel, removing the corresponding
|
|
5322
5530
|
* service requirements.
|
|
5323
5531
|
*
|
|
5532
|
+
* **Details**
|
|
5533
|
+
*
|
|
5324
5534
|
* Providing a `Context` delegates to `provideContext`. Providing a `Layer`
|
|
5325
5535
|
* builds the layer in the channel scope. Use `options.local` to build a fresh
|
|
5326
5536
|
* layer instance for this provision.
|
|
@@ -5333,6 +5543,8 @@ export declare const provide: {
|
|
|
5333
5543
|
* Provides a `Layer` or `Context` to the channel, removing the corresponding
|
|
5334
5544
|
* service requirements.
|
|
5335
5545
|
*
|
|
5546
|
+
* **Details**
|
|
5547
|
+
*
|
|
5336
5548
|
* Providing a `Context` delegates to `provideContext`. Providing a `Layer`
|
|
5337
5549
|
* builds the layer in the channel scope. Use `options.local` to build a fresh
|
|
5338
5550
|
* layer instance for this provision.
|
|
@@ -5347,6 +5559,8 @@ export declare const provide: {
|
|
|
5347
5559
|
* Provides a `Layer` or `Context` to the channel, removing the corresponding
|
|
5348
5560
|
* service requirements.
|
|
5349
5561
|
*
|
|
5562
|
+
* **Details**
|
|
5563
|
+
*
|
|
5350
5564
|
* Providing a `Context` delegates to `provideContext`. Providing a `Layer`
|
|
5351
5565
|
* builds the layer in the channel scope. Use `options.local` to build a fresh
|
|
5352
5566
|
* layer instance for this provision.
|
|
@@ -5361,6 +5575,8 @@ export declare const provide: {
|
|
|
5361
5575
|
/**
|
|
5362
5576
|
* Transforms the current context before running the channel.
|
|
5363
5577
|
*
|
|
5578
|
+
* **Details**
|
|
5579
|
+
*
|
|
5364
5580
|
* The function receives the surrounding context and returns the context to
|
|
5365
5581
|
* provide to the channel. The returned channel requires the services needed to
|
|
5366
5582
|
* build that context.
|
|
@@ -5372,6 +5588,8 @@ export declare const updateContext: {
|
|
|
5372
5588
|
/**
|
|
5373
5589
|
* Transforms the current context before running the channel.
|
|
5374
5590
|
*
|
|
5591
|
+
* **Details**
|
|
5592
|
+
*
|
|
5375
5593
|
* The function receives the surrounding context and returns the context to
|
|
5376
5594
|
* provide to the channel. The returned channel requires the services needed to
|
|
5377
5595
|
* build that context.
|
|
@@ -5383,6 +5601,8 @@ export declare const updateContext: {
|
|
|
5383
5601
|
/**
|
|
5384
5602
|
* Transforms the current context before running the channel.
|
|
5385
5603
|
*
|
|
5604
|
+
* **Details**
|
|
5605
|
+
*
|
|
5386
5606
|
* The function receives the surrounding context and returns the context to
|
|
5387
5607
|
* provide to the channel. The returned channel requires the services needed to
|
|
5388
5608
|
* build that context.
|
|
@@ -5395,6 +5615,8 @@ export declare const updateContext: {
|
|
|
5395
5615
|
/**
|
|
5396
5616
|
* Updates a service in the current context before running the channel.
|
|
5397
5617
|
*
|
|
5618
|
+
* **Details**
|
|
5619
|
+
*
|
|
5398
5620
|
* The existing service is read from the context. The updated service is
|
|
5399
5621
|
* provided to the channel under the same key.
|
|
5400
5622
|
*
|
|
@@ -5405,6 +5627,8 @@ export declare const updateService: {
|
|
|
5405
5627
|
/**
|
|
5406
5628
|
* Updates a service in the current context before running the channel.
|
|
5407
5629
|
*
|
|
5630
|
+
* **Details**
|
|
5631
|
+
*
|
|
5408
5632
|
* The existing service is read from the context. The updated service is
|
|
5409
5633
|
* provided to the channel under the same key.
|
|
5410
5634
|
*
|
|
@@ -5415,6 +5639,8 @@ export declare const updateService: {
|
|
|
5415
5639
|
/**
|
|
5416
5640
|
* Updates a service in the current context before running the channel.
|
|
5417
5641
|
*
|
|
5642
|
+
* **Details**
|
|
5643
|
+
*
|
|
5418
5644
|
* The existing service is read from the context. The updated service is
|
|
5419
5645
|
* provided to the channel under the same key.
|
|
5420
5646
|
*
|
|
@@ -5426,6 +5652,8 @@ export declare const updateService: {
|
|
|
5426
5652
|
/**
|
|
5427
5653
|
* Runs the channel inside a tracing span with the specified name and options.
|
|
5428
5654
|
*
|
|
5655
|
+
* **Details**
|
|
5656
|
+
*
|
|
5429
5657
|
* The created span is provided as the current parent span while the channel
|
|
5430
5658
|
* runs. The span is ended with the channel's exit value.
|
|
5431
5659
|
*
|
|
@@ -5436,6 +5664,8 @@ export declare const withSpan: {
|
|
|
5436
5664
|
/**
|
|
5437
5665
|
* Runs the channel inside a tracing span with the specified name and options.
|
|
5438
5666
|
*
|
|
5667
|
+
* **Details**
|
|
5668
|
+
*
|
|
5439
5669
|
* The created span is provided as the current parent span while the channel
|
|
5440
5670
|
* runs. The span is ended with the channel's exit value.
|
|
5441
5671
|
*
|
|
@@ -5446,6 +5676,8 @@ export declare const withSpan: {
|
|
|
5446
5676
|
/**
|
|
5447
5677
|
* Runs the channel inside a tracing span with the specified name and options.
|
|
5448
5678
|
*
|
|
5679
|
+
* **Details**
|
|
5680
|
+
*
|
|
5449
5681
|
* The created span is provided as the current parent span while the channel
|
|
5450
5682
|
* runs. The span is ended with the channel's exit value.
|
|
5451
5683
|
*
|
|
@@ -5471,6 +5703,8 @@ declare const let_: {
|
|
|
5471
5703
|
};
|
|
5472
5704
|
export {
|
|
5473
5705
|
/**
|
|
5706
|
+
* Adds a computed field to each object emitted by a channel.
|
|
5707
|
+
*
|
|
5474
5708
|
* @category Do notation
|
|
5475
5709
|
* @since 4.0.0
|
|
5476
5710
|
*/
|
|
@@ -5479,6 +5713,8 @@ let_ as let };
|
|
|
5479
5713
|
* Adds a field to each object emitted by a channel by running another channel
|
|
5480
5714
|
* derived from that object.
|
|
5481
5715
|
*
|
|
5716
|
+
* **Details**
|
|
5717
|
+
*
|
|
5482
5718
|
* The field name must not already exist on the emitted object. The derived
|
|
5483
5719
|
* channel's output becomes the value of the new field. `options.concurrency`
|
|
5484
5720
|
* and `options.bufferSize` control how derived channels are flattened.
|
|
@@ -5491,6 +5727,8 @@ export declare const bind: {
|
|
|
5491
5727
|
* Adds a field to each object emitted by a channel by running another channel
|
|
5492
5728
|
* derived from that object.
|
|
5493
5729
|
*
|
|
5730
|
+
* **Details**
|
|
5731
|
+
*
|
|
5494
5732
|
* The field name must not already exist on the emitted object. The derived
|
|
5495
5733
|
* channel's output becomes the value of the new field. `options.concurrency`
|
|
5496
5734
|
* and `options.bufferSize` control how derived channels are flattened.
|
|
@@ -5508,6 +5746,8 @@ export declare const bind: {
|
|
|
5508
5746
|
* Adds a field to each object emitted by a channel by running another channel
|
|
5509
5747
|
* derived from that object.
|
|
5510
5748
|
*
|
|
5749
|
+
* **Details**
|
|
5750
|
+
*
|
|
5511
5751
|
* The field name must not already exist on the emitted object. The derived
|
|
5512
5752
|
* channel's output becomes the value of the new field. `options.concurrency`
|
|
5513
5753
|
* and `options.bufferSize` control how derived channels are flattened.
|
|
@@ -5691,6 +5931,8 @@ export declare const runForEach: {
|
|
|
5691
5931
|
* Runs a channel and applies an effectful predicate to each output element
|
|
5692
5932
|
* until the predicate returns `false`.
|
|
5693
5933
|
*
|
|
5934
|
+
* **Details**
|
|
5935
|
+
*
|
|
5694
5936
|
* Returning `true` continues consuming the channel. Returning `false` stops
|
|
5695
5937
|
* consumption early. The returned effect completes with `void`.
|
|
5696
5938
|
*
|
|
@@ -5702,6 +5944,8 @@ export declare const runForEachWhile: {
|
|
|
5702
5944
|
* Runs a channel and applies an effectful predicate to each output element
|
|
5703
5945
|
* until the predicate returns `false`.
|
|
5704
5946
|
*
|
|
5947
|
+
* **Details**
|
|
5948
|
+
*
|
|
5705
5949
|
* Returning `true` continues consuming the channel. Returning `false` stops
|
|
5706
5950
|
* consumption early. The returned effect completes with `void`.
|
|
5707
5951
|
*
|
|
@@ -5713,6 +5957,8 @@ export declare const runForEachWhile: {
|
|
|
5713
5957
|
* Runs a channel and applies an effectful predicate to each output element
|
|
5714
5958
|
* until the predicate returns `false`.
|
|
5715
5959
|
*
|
|
5960
|
+
* **Details**
|
|
5961
|
+
*
|
|
5716
5962
|
* Returning `true` continues consuming the channel. Returning `false` stops
|
|
5717
5963
|
* consumption early. The returned effect completes with `void`.
|
|
5718
5964
|
*
|
|
@@ -5757,6 +6003,8 @@ export declare const runDone: <OutElem, OutErr, OutDone, Env>(self: Channel<OutE
|
|
|
5757
6003
|
* Runs a channel until the first output element is available, returning it in
|
|
5758
6004
|
* an `Option`.
|
|
5759
6005
|
*
|
|
6006
|
+
* **Details**
|
|
6007
|
+
*
|
|
5760
6008
|
* Returns `Option.some` with the first output element, or `Option.none` if the
|
|
5761
6009
|
* channel completes without emitting output.
|
|
5762
6010
|
*
|
|
@@ -5768,6 +6016,8 @@ export declare const runHead: <OutElem, OutErr, OutDone, Env>(self: Channel<OutE
|
|
|
5768
6016
|
* Runs a channel to completion and returns the last output element in an
|
|
5769
6017
|
* `Option`.
|
|
5770
6018
|
*
|
|
6019
|
+
* **Details**
|
|
6020
|
+
*
|
|
5771
6021
|
* Returns `Option.some` with the last emitted element, or `Option.none` if the
|
|
5772
6022
|
* channel completes without emitting output.
|
|
5773
6023
|
*
|
|
@@ -5854,6 +6104,8 @@ export declare const runFold: {
|
|
|
5854
6104
|
/**
|
|
5855
6105
|
* Runs a channel and effectfully folds all output elements with an accumulator.
|
|
5856
6106
|
*
|
|
6107
|
+
* **Details**
|
|
6108
|
+
*
|
|
5857
6109
|
* The initial accumulator is evaluated lazily. Each output element is passed to
|
|
5858
6110
|
* the effectful accumulator function. The returned effect succeeds with the
|
|
5859
6111
|
* final accumulator value.
|
|
@@ -5865,6 +6117,8 @@ export declare const runFoldEffect: {
|
|
|
5865
6117
|
/**
|
|
5866
6118
|
* Runs a channel and effectfully folds all output elements with an accumulator.
|
|
5867
6119
|
*
|
|
6120
|
+
* **Details**
|
|
6121
|
+
*
|
|
5868
6122
|
* The initial accumulator is evaluated lazily. Each output element is passed to
|
|
5869
6123
|
* the effectful accumulator function. The returned effect succeeds with the
|
|
5870
6124
|
* final accumulator value.
|
|
@@ -5876,6 +6130,8 @@ export declare const runFoldEffect: {
|
|
|
5876
6130
|
/**
|
|
5877
6131
|
* Runs a channel and effectfully folds all output elements with an accumulator.
|
|
5878
6132
|
*
|
|
6133
|
+
* **Details**
|
|
6134
|
+
*
|
|
5879
6135
|
* The initial accumulator is evaluated lazily. Each output element is passed to
|
|
5880
6136
|
* the effectful accumulator function. The returned effect succeeds with the
|
|
5881
6137
|
* final accumulator value.
|
|
@@ -5888,6 +6144,8 @@ export declare const runFoldEffect: {
|
|
|
5888
6144
|
/**
|
|
5889
6145
|
* Converts a channel to a scoped `Pull` for low-level consumption.
|
|
5890
6146
|
*
|
|
6147
|
+
* **Details**
|
|
6148
|
+
*
|
|
5891
6149
|
* The effect requires a `Scope`. The returned pull should be consumed only
|
|
5892
6150
|
* while that scope remains open. Pulls are serialized so only one pull is
|
|
5893
6151
|
* evaluated at a time.
|
|
@@ -5946,6 +6204,8 @@ export declare const toPullScoped: <OutElem, OutErr, OutDone, Env>(self: Channel
|
|
|
5946
6204
|
/**
|
|
5947
6205
|
* Runs a channel and offers each output element into a queue.
|
|
5948
6206
|
*
|
|
6207
|
+
* **Details**
|
|
6208
|
+
*
|
|
5949
6209
|
* When the channel completes, the queue is ended. When the channel fails, the
|
|
5950
6210
|
* queue is failed with the channel's cause. The returned effect itself
|
|
5951
6211
|
* completes with `void`.
|
|
@@ -5957,6 +6217,8 @@ export declare const runIntoQueue: {
|
|
|
5957
6217
|
/**
|
|
5958
6218
|
* Runs a channel and offers each output element into a queue.
|
|
5959
6219
|
*
|
|
6220
|
+
* **Details**
|
|
6221
|
+
*
|
|
5960
6222
|
* When the channel completes, the queue is ended. When the channel fails, the
|
|
5961
6223
|
* queue is failed with the channel's cause. The returned effect itself
|
|
5962
6224
|
* completes with `void`.
|
|
@@ -5968,6 +6230,8 @@ export declare const runIntoQueue: {
|
|
|
5968
6230
|
/**
|
|
5969
6231
|
* Runs a channel and offers each output element into a queue.
|
|
5970
6232
|
*
|
|
6233
|
+
* **Details**
|
|
6234
|
+
*
|
|
5971
6235
|
* When the channel completes, the queue is ended. When the channel fails, the
|
|
5972
6236
|
* queue is failed with the channel's cause. The returned effect itself
|
|
5973
6237
|
* completes with `void`.
|
|
@@ -5981,6 +6245,8 @@ export declare const runIntoQueue: {
|
|
|
5981
6245
|
* Runs a channel that emits non-empty arrays and offers each array element into
|
|
5982
6246
|
* a queue.
|
|
5983
6247
|
*
|
|
6248
|
+
* **Details**
|
|
6249
|
+
*
|
|
5984
6250
|
* When the channel completes, the queue is ended. When the channel fails, the
|
|
5985
6251
|
* queue is failed with the channel's cause. The returned effect itself
|
|
5986
6252
|
* completes with `void`.
|
|
@@ -5993,6 +6259,8 @@ export declare const runIntoQueueArray: {
|
|
|
5993
6259
|
* Runs a channel that emits non-empty arrays and offers each array element into
|
|
5994
6260
|
* a queue.
|
|
5995
6261
|
*
|
|
6262
|
+
* **Details**
|
|
6263
|
+
*
|
|
5996
6264
|
* When the channel completes, the queue is ended. When the channel fails, the
|
|
5997
6265
|
* queue is failed with the channel's cause. The returned effect itself
|
|
5998
6266
|
* completes with `void`.
|
|
@@ -6005,6 +6273,8 @@ export declare const runIntoQueueArray: {
|
|
|
6005
6273
|
* Runs a channel that emits non-empty arrays and offers each array element into
|
|
6006
6274
|
* a queue.
|
|
6007
6275
|
*
|
|
6276
|
+
* **Details**
|
|
6277
|
+
*
|
|
6008
6278
|
* When the channel completes, the queue is ended. When the channel fails, the
|
|
6009
6279
|
* queue is failed with the channel's cause. The returned effect itself
|
|
6010
6280
|
* completes with `void`.
|
|
@@ -6018,6 +6288,8 @@ export declare const runIntoQueueArray: {
|
|
|
6018
6288
|
* Creates a scoped queue and forks the channel to feed it for concurrent
|
|
6019
6289
|
* consumption.
|
|
6020
6290
|
*
|
|
6291
|
+
* **Details**
|
|
6292
|
+
*
|
|
6021
6293
|
* Output elements are offered to the queue. Channel completion and failure are
|
|
6022
6294
|
* signaled through the queue. The queue is shut down when the surrounding scope
|
|
6023
6295
|
* closes.
|
|
@@ -6049,6 +6321,8 @@ export declare const toQueue: {
|
|
|
6049
6321
|
* Creates a scoped queue and forks the channel to feed it for concurrent
|
|
6050
6322
|
* consumption.
|
|
6051
6323
|
*
|
|
6324
|
+
* **Details**
|
|
6325
|
+
*
|
|
6052
6326
|
* Output elements are offered to the queue. Channel completion and failure are
|
|
6053
6327
|
* signaled through the queue. The queue is shut down when the surrounding scope
|
|
6054
6328
|
* closes.
|
|
@@ -6085,6 +6359,8 @@ export declare const toQueue: {
|
|
|
6085
6359
|
* Creates a scoped queue and forks the channel to feed it for concurrent
|
|
6086
6360
|
* consumption.
|
|
6087
6361
|
*
|
|
6362
|
+
* **Details**
|
|
6363
|
+
*
|
|
6088
6364
|
* Output elements are offered to the queue. Channel completion and failure are
|
|
6089
6365
|
* signaled through the queue. The queue is shut down when the surrounding scope
|
|
6090
6366
|
* closes.
|
|
@@ -6121,6 +6397,8 @@ export declare const toQueue: {
|
|
|
6121
6397
|
/**
|
|
6122
6398
|
* Creates a scoped queue and forks an array-emitting channel to feed it.
|
|
6123
6399
|
*
|
|
6400
|
+
* **Details**
|
|
6401
|
+
*
|
|
6124
6402
|
* Each element inside emitted non-empty arrays is offered to the queue. Channel
|
|
6125
6403
|
* completion and failure are signaled through the queue. The queue is shut down
|
|
6126
6404
|
* when the surrounding scope closes.
|
|
@@ -6132,6 +6410,8 @@ export declare const toQueueArray: {
|
|
|
6132
6410
|
/**
|
|
6133
6411
|
* Creates a scoped queue and forks an array-emitting channel to feed it.
|
|
6134
6412
|
*
|
|
6413
|
+
* **Details**
|
|
6414
|
+
*
|
|
6135
6415
|
* Each element inside emitted non-empty arrays is offered to the queue. Channel
|
|
6136
6416
|
* completion and failure are signaled through the queue. The queue is shut down
|
|
6137
6417
|
* when the surrounding scope closes.
|
|
@@ -6148,6 +6428,8 @@ export declare const toQueueArray: {
|
|
|
6148
6428
|
/**
|
|
6149
6429
|
* Creates a scoped queue and forks an array-emitting channel to feed it.
|
|
6150
6430
|
*
|
|
6431
|
+
* **Details**
|
|
6432
|
+
*
|
|
6151
6433
|
* Each element inside emitted non-empty arrays is offered to the queue. Channel
|
|
6152
6434
|
* completion and failure are signaled through the queue. The queue is shut down
|
|
6153
6435
|
* when the surrounding scope closes.
|
|
@@ -6165,6 +6447,8 @@ export declare const toQueueArray: {
|
|
|
6165
6447
|
/**
|
|
6166
6448
|
* Converts a channel to a PubSub for concurrent consumption.
|
|
6167
6449
|
*
|
|
6450
|
+
* **Details**
|
|
6451
|
+
*
|
|
6168
6452
|
* `shutdownOnEnd` indicates whether the PubSub should be shut down when the
|
|
6169
6453
|
* channel ends. By default this is `true`.
|
|
6170
6454
|
*
|
|
@@ -6175,6 +6459,8 @@ export declare const toPubSub: {
|
|
|
6175
6459
|
/**
|
|
6176
6460
|
* Converts a channel to a PubSub for concurrent consumption.
|
|
6177
6461
|
*
|
|
6462
|
+
* **Details**
|
|
6463
|
+
*
|
|
6178
6464
|
* `shutdownOnEnd` indicates whether the PubSub should be shut down when the
|
|
6179
6465
|
* channel ends. By default this is `true`.
|
|
6180
6466
|
*
|
|
@@ -6194,6 +6480,8 @@ export declare const toPubSub: {
|
|
|
6194
6480
|
/**
|
|
6195
6481
|
* Converts a channel to a PubSub for concurrent consumption.
|
|
6196
6482
|
*
|
|
6483
|
+
* **Details**
|
|
6484
|
+
*
|
|
6197
6485
|
* `shutdownOnEnd` indicates whether the PubSub should be shut down when the
|
|
6198
6486
|
* channel ends. By default this is `true`.
|
|
6199
6487
|
*
|
|
@@ -6214,6 +6502,8 @@ export declare const toPubSub: {
|
|
|
6214
6502
|
/**
|
|
6215
6503
|
* Runs a channel and publishes each output element to a `PubSub`.
|
|
6216
6504
|
*
|
|
6505
|
+
* **Details**
|
|
6506
|
+
*
|
|
6217
6507
|
* The channel's output values are published as individual PubSub messages. Use
|
|
6218
6508
|
* `options.shutdownOnEnd` to shut down the PubSub when channel execution ends.
|
|
6219
6509
|
*
|
|
@@ -6224,6 +6514,8 @@ export declare const runIntoPubSub: {
|
|
|
6224
6514
|
/**
|
|
6225
6515
|
* Runs a channel and publishes each output element to a `PubSub`.
|
|
6226
6516
|
*
|
|
6517
|
+
* **Details**
|
|
6518
|
+
*
|
|
6227
6519
|
* The channel's output values are published as individual PubSub messages. Use
|
|
6228
6520
|
* `options.shutdownOnEnd` to shut down the PubSub when channel execution ends.
|
|
6229
6521
|
*
|
|
@@ -6236,6 +6528,8 @@ export declare const runIntoPubSub: {
|
|
|
6236
6528
|
/**
|
|
6237
6529
|
* Runs a channel and publishes each output element to a `PubSub`.
|
|
6238
6530
|
*
|
|
6531
|
+
* **Details**
|
|
6532
|
+
*
|
|
6239
6533
|
* The channel's output values are published as individual PubSub messages. Use
|
|
6240
6534
|
* `options.shutdownOnEnd` to shut down the PubSub when channel execution ends.
|
|
6241
6535
|
*
|
|
@@ -6250,6 +6544,8 @@ export declare const runIntoPubSub: {
|
|
|
6250
6544
|
* Converts an array-emitting channel to a scoped `PubSub` for concurrent
|
|
6251
6545
|
* consumption.
|
|
6252
6546
|
*
|
|
6547
|
+
* **Details**
|
|
6548
|
+
*
|
|
6253
6549
|
* Each element inside emitted non-empty arrays is published as an individual
|
|
6254
6550
|
* PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut
|
|
6255
6551
|
* down when the channel ends. By default this is `true`.
|
|
@@ -6262,6 +6558,8 @@ export declare const toPubSubArray: {
|
|
|
6262
6558
|
* Converts an array-emitting channel to a scoped `PubSub` for concurrent
|
|
6263
6559
|
* consumption.
|
|
6264
6560
|
*
|
|
6561
|
+
* **Details**
|
|
6562
|
+
*
|
|
6265
6563
|
* Each element inside emitted non-empty arrays is published as an individual
|
|
6266
6564
|
* PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut
|
|
6267
6565
|
* down when the channel ends. By default this is `true`.
|
|
@@ -6283,6 +6581,8 @@ export declare const toPubSubArray: {
|
|
|
6283
6581
|
* Converts an array-emitting channel to a scoped `PubSub` for concurrent
|
|
6284
6582
|
* consumption.
|
|
6285
6583
|
*
|
|
6584
|
+
* **Details**
|
|
6585
|
+
*
|
|
6286
6586
|
* Each element inside emitted non-empty arrays is published as an individual
|
|
6287
6587
|
* PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut
|
|
6288
6588
|
* down when the channel ends. By default this is `true`.
|
|
@@ -6305,6 +6605,8 @@ export declare const toPubSubArray: {
|
|
|
6305
6605
|
* Runs an array-emitting channel and publishes each array element to a
|
|
6306
6606
|
* `PubSub`.
|
|
6307
6607
|
*
|
|
6608
|
+
* **Details**
|
|
6609
|
+
*
|
|
6308
6610
|
* Each element inside emitted non-empty arrays is published as an individual
|
|
6309
6611
|
* PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when
|
|
6310
6612
|
* channel execution ends.
|
|
@@ -6317,6 +6619,8 @@ export declare const runIntoPubSubArray: {
|
|
|
6317
6619
|
* Runs an array-emitting channel and publishes each array element to a
|
|
6318
6620
|
* `PubSub`.
|
|
6319
6621
|
*
|
|
6622
|
+
* **Details**
|
|
6623
|
+
*
|
|
6320
6624
|
* Each element inside emitted non-empty arrays is published as an individual
|
|
6321
6625
|
* PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when
|
|
6322
6626
|
* channel execution ends.
|
|
@@ -6331,6 +6635,8 @@ export declare const runIntoPubSubArray: {
|
|
|
6331
6635
|
* Runs an array-emitting channel and publishes each array element to a
|
|
6332
6636
|
* `PubSub`.
|
|
6333
6637
|
*
|
|
6638
|
+
* **Details**
|
|
6639
|
+
*
|
|
6334
6640
|
* Each element inside emitted non-empty arrays is published as an individual
|
|
6335
6641
|
* PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when
|
|
6336
6642
|
* channel execution ends.
|
|
@@ -6345,6 +6651,8 @@ export declare const runIntoPubSubArray: {
|
|
|
6345
6651
|
/**
|
|
6346
6652
|
* Converts a channel to a scoped `PubSub` of `Take` values.
|
|
6347
6653
|
*
|
|
6654
|
+
* **Details**
|
|
6655
|
+
*
|
|
6348
6656
|
* Emitted non-empty arrays are published as output `Take` values. When the
|
|
6349
6657
|
* channel ends, its final `Exit` is published so subscribers can observe
|
|
6350
6658
|
* completion or failure.
|
|
@@ -6356,6 +6664,8 @@ export declare const toPubSubTake: {
|
|
|
6356
6664
|
/**
|
|
6357
6665
|
* Converts a channel to a scoped `PubSub` of `Take` values.
|
|
6358
6666
|
*
|
|
6667
|
+
* **Details**
|
|
6668
|
+
*
|
|
6359
6669
|
* Emitted non-empty arrays are published as output `Take` values. When the
|
|
6360
6670
|
* channel ends, its final `Exit` is published so subscribers can observe
|
|
6361
6671
|
* completion or failure.
|
|
@@ -6374,6 +6684,8 @@ export declare const toPubSubTake: {
|
|
|
6374
6684
|
/**
|
|
6375
6685
|
* Converts a channel to a scoped `PubSub` of `Take` values.
|
|
6376
6686
|
*
|
|
6687
|
+
* **Details**
|
|
6688
|
+
*
|
|
6377
6689
|
* Emitted non-empty arrays are published as output `Take` values. When the
|
|
6378
6690
|
* channel ends, its final `Exit` is published so subscribers can observe
|
|
6379
6691
|
* completion or failure.
|