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/Stream.js
CHANGED
|
@@ -366,6 +366,8 @@ export const tick = interval => fromPull(Effect.sync(() => {
|
|
|
366
366
|
/**
|
|
367
367
|
* Creates a stream from a pull effect, such as one produced by `Stream.toPull`.
|
|
368
368
|
*
|
|
369
|
+
* **Details**
|
|
370
|
+
*
|
|
369
371
|
* A pull effect yields chunks on demand and completes when the upstream stream ends.
|
|
370
372
|
* See `Stream.toPull` for a matching producer.
|
|
371
373
|
*
|
|
@@ -420,6 +422,8 @@ export const transformPull = (self, f) => fromChannel(Channel.fromTransform((_,
|
|
|
420
422
|
/**
|
|
421
423
|
* Transforms a stream by effectfully transforming its pull effect.
|
|
422
424
|
*
|
|
425
|
+
* **Details**
|
|
426
|
+
*
|
|
423
427
|
* A forked scope is also provided to the transformation function, which is
|
|
424
428
|
* closed once the resulting stream has finished processing.
|
|
425
429
|
*
|
|
@@ -479,6 +483,8 @@ export const toChannel = stream => stream.channel;
|
|
|
479
483
|
/**
|
|
480
484
|
* Creates a stream from a callback that can emit values into a queue.
|
|
481
485
|
*
|
|
486
|
+
* **When to use**
|
|
487
|
+
*
|
|
482
488
|
* You can use the `Queue` with the apis from the `Queue` module to emit
|
|
483
489
|
* values to the stream or to signal the stream ending.
|
|
484
490
|
*
|
|
@@ -582,6 +588,8 @@ export const make = (...values) => fromArray(values);
|
|
|
582
588
|
/**
|
|
583
589
|
* Creates a stream that synchronously evaluates a function and emits the result as a single value.
|
|
584
590
|
*
|
|
591
|
+
* **Details**
|
|
592
|
+
*
|
|
585
593
|
* The function is evaluated each time the stream is run.
|
|
586
594
|
*
|
|
587
595
|
* **Example** (Evaluating a value synchronously)
|
|
@@ -605,6 +613,8 @@ export const sync = evaluate => fromChannel(Channel.sync(() => Arr.of(evaluate()
|
|
|
605
613
|
/**
|
|
606
614
|
* Creates a lazily constructed stream.
|
|
607
615
|
*
|
|
616
|
+
* **Details**
|
|
617
|
+
*
|
|
608
618
|
* The stream factory is evaluated each time the stream is run.
|
|
609
619
|
*
|
|
610
620
|
* **Example** (Creating a lazily constructed stream)
|
|
@@ -757,6 +767,8 @@ export const failCauseSync = evaluate => fromChannel(Channel.failCauseSync(evalu
|
|
|
757
767
|
/**
|
|
758
768
|
* Creates a stream that consumes values from an iterator.
|
|
759
769
|
*
|
|
770
|
+
* **Details**
|
|
771
|
+
*
|
|
760
772
|
* The `maxChunkSize` parameter controls how many values are pulled per chunk.
|
|
761
773
|
*
|
|
762
774
|
* **Example** (Consuming values from an iterator)
|
|
@@ -788,7 +800,7 @@ export const fromIteratorSucceed = (iterator, maxChunkSize) => fromChannel(Chann
|
|
|
788
800
|
/**
|
|
789
801
|
* Creates a new `Stream` from an iterable collection of values.
|
|
790
802
|
*
|
|
791
|
-
* **
|
|
803
|
+
* **Details**
|
|
792
804
|
*
|
|
793
805
|
* - `chunkSize`: Maximum number of values emitted per chunk.
|
|
794
806
|
*
|
|
@@ -942,6 +954,8 @@ export const fromArrays = (...arrays) => fromChannel(Channel.fromArray(Arr.filte
|
|
|
942
954
|
/**
|
|
943
955
|
* Creates a stream that pulls values from a `Queue.Dequeue`.
|
|
944
956
|
*
|
|
957
|
+
* **Details**
|
|
958
|
+
*
|
|
945
959
|
* The stream emits non-empty batches of queued values and ends when the queue
|
|
946
960
|
* fails with `Cause.Done`; other queue failures are propagated.
|
|
947
961
|
*
|
|
@@ -1006,6 +1020,8 @@ export const fromPubSub = pubsub => fromChannel(Channel.fromPubSubArray(pubsub))
|
|
|
1006
1020
|
/**
|
|
1007
1021
|
* Creates a stream from a PubSub of `Take` values.
|
|
1008
1022
|
*
|
|
1023
|
+
* **Details**
|
|
1024
|
+
*
|
|
1009
1025
|
* `Take` values include end and failure signals.
|
|
1010
1026
|
*
|
|
1011
1027
|
* **Example** (Creating a stream from PubSub takes)
|
|
@@ -1037,6 +1053,8 @@ export const fromPubSubTake = pubsub => fromChannel(Channel.fromPubSubTake(pubsu
|
|
|
1037
1053
|
/**
|
|
1038
1054
|
* Creates a stream from a lazily supplied Web `ReadableStream`.
|
|
1039
1055
|
*
|
|
1056
|
+
* **Details**
|
|
1057
|
+
*
|
|
1040
1058
|
* The stream reads from a `ReadableStreamDefaultReader`, maps read failures
|
|
1041
1059
|
* with `onError`, and closes the reader when the stream finalizes. By default
|
|
1042
1060
|
* the reader is canceled; set `releaseLockOnEnd` to release the lock instead.
|
|
@@ -1142,6 +1160,8 @@ export const fromSchedule = schedule => fromPull(Effect.map(Schedule.toStepWithS
|
|
|
1142
1160
|
/**
|
|
1143
1161
|
* Creates a stream from a PubSub subscription.
|
|
1144
1162
|
*
|
|
1163
|
+
* **When to use**
|
|
1164
|
+
*
|
|
1145
1165
|
* Use `PubSub.subscribe` to create the subscription and `Stream.take` or
|
|
1146
1166
|
* cancellation to control how many values are consumed.
|
|
1147
1167
|
*
|
|
@@ -1215,6 +1235,8 @@ export const fromEventListener = (target, type, options) => callback(queue => {
|
|
|
1215
1235
|
* Creates a stream by repeatedly applying an effectful step function to a
|
|
1216
1236
|
* state.
|
|
1217
1237
|
*
|
|
1238
|
+
* **Details**
|
|
1239
|
+
*
|
|
1218
1240
|
* Each `readonly [value, nextState]` result emits `value` and continues with
|
|
1219
1241
|
* `nextState`; returning `undefined` ends the stream.
|
|
1220
1242
|
*
|
|
@@ -1311,6 +1333,8 @@ export const iterate = (value, next) => unfold(value, a => Effect.succeed([a, ne
|
|
|
1311
1333
|
/**
|
|
1312
1334
|
* Constructs a stream from a range of integers, including both endpoints.
|
|
1313
1335
|
*
|
|
1336
|
+
* **Details**
|
|
1337
|
+
*
|
|
1314
1338
|
* If the provided `min` is greater than `max`, the stream will not emit any
|
|
1315
1339
|
* values.
|
|
1316
1340
|
*
|
|
@@ -1327,6 +1351,7 @@ export const iterate = (value, next) => unfold(value, a => Effect.succeed([a, ne
|
|
|
1327
1351
|
* Effect.runPromise(program)
|
|
1328
1352
|
* // Output: [ 1, 2, 3, 4, 5 ]
|
|
1329
1353
|
* ```
|
|
1354
|
+
*
|
|
1330
1355
|
* @category constructors
|
|
1331
1356
|
* @since 2.0.0
|
|
1332
1357
|
*/
|
|
@@ -1593,6 +1618,8 @@ export const mapArrayEffect = /*#__PURE__*/dual(2, (self, f) => fromChannel(Chan
|
|
|
1593
1618
|
/**
|
|
1594
1619
|
* Lifts failures and successes into a `Result`, yielding a stream that cannot fail.
|
|
1595
1620
|
*
|
|
1621
|
+
* **Details**
|
|
1622
|
+
*
|
|
1596
1623
|
* The stream ends after the first failure, emitting a `Result.fail` value.
|
|
1597
1624
|
*
|
|
1598
1625
|
* **Example** (Converting failures to results)
|
|
@@ -1767,6 +1794,8 @@ export const tapSink = /*#__PURE__*/dual(2, (self, sink) => transformPullBracket
|
|
|
1767
1794
|
/**
|
|
1768
1795
|
* Maps each element to a stream and flattens the resulting streams.
|
|
1769
1796
|
*
|
|
1797
|
+
* **Details**
|
|
1798
|
+
*
|
|
1770
1799
|
* With the default sequential concurrency, inner streams are concatenated in
|
|
1771
1800
|
* input order. When `concurrency` is greater than `1` or `"unbounded"`,
|
|
1772
1801
|
* multiple inner streams may run at the same time and their outputs are merged
|
|
@@ -1821,6 +1850,8 @@ export const switchMap = /*#__PURE__*/dual(args => isStream(args[0]), (self, f,
|
|
|
1821
1850
|
/**
|
|
1822
1851
|
* Flattens a stream of streams into a single stream.
|
|
1823
1852
|
*
|
|
1853
|
+
* **Details**
|
|
1854
|
+
*
|
|
1824
1855
|
* With the default sequential concurrency, inner streams are concatenated in
|
|
1825
1856
|
* strict order. When `concurrency` is greater than `1` or `"unbounded"`,
|
|
1826
1857
|
* multiple inner streams may run at the same time and their outputs are merged
|
|
@@ -2005,6 +2036,8 @@ export const timeout = /*#__PURE__*/dual(2, (self, duration) => timeoutOrElse(se
|
|
|
2005
2036
|
* Switches to a fallback stream if this stream does not emit a value within
|
|
2006
2037
|
* the specified duration.
|
|
2007
2038
|
*
|
|
2039
|
+
* **Details**
|
|
2040
|
+
*
|
|
2008
2041
|
* The timeout is checked for each pull. A zero duration uses `orElse`
|
|
2009
2042
|
* immediately, while an infinite duration leaves the original stream
|
|
2010
2043
|
* unchanged.
|
|
@@ -2214,6 +2247,8 @@ export const prepend = /*#__PURE__*/dual(2, (self, values) => concat(fromIterabl
|
|
|
2214
2247
|
/**
|
|
2215
2248
|
* Merges two streams, emitting elements from both as they arrive.
|
|
2216
2249
|
*
|
|
2250
|
+
* **Details**
|
|
2251
|
+
*
|
|
2217
2252
|
* By default, the merged stream ends when both streams end. Use
|
|
2218
2253
|
* `haltStrategy` to change the termination behavior.
|
|
2219
2254
|
*
|
|
@@ -2241,6 +2276,8 @@ export const merge = /*#__PURE__*/dual(args => isStream(args[0]) && isStream(arg
|
|
|
2241
2276
|
/**
|
|
2242
2277
|
* Merges this stream with a background effect, keeping the stream's elements.
|
|
2243
2278
|
*
|
|
2279
|
+
* **Details**
|
|
2280
|
+
*
|
|
2244
2281
|
* The effect runs concurrently, fails the stream if it fails, and is interrupted
|
|
2245
2282
|
* when the stream completes.
|
|
2246
2283
|
*
|
|
@@ -2305,6 +2342,8 @@ export const mergeResult = /*#__PURE__*/dual(2, (self, that) => merge(map(self,
|
|
|
2305
2342
|
/**
|
|
2306
2343
|
* Merges two streams while emitting only the values from the left stream.
|
|
2307
2344
|
*
|
|
2345
|
+
* **Details**
|
|
2346
|
+
*
|
|
2308
2347
|
* The right stream still runs for its effects, and any failures from the right
|
|
2309
2348
|
* stream are propagated. The merged stream completes when the left stream
|
|
2310
2349
|
* completes, interrupting the right stream.
|
|
@@ -2333,6 +2372,8 @@ export const mergeLeft = /*#__PURE__*/dual(2, (left, right) => mergeEffect(left,
|
|
|
2333
2372
|
* Merges this stream and the specified stream together, emitting only the
|
|
2334
2373
|
* values from the right stream while the left stream runs for its effects.
|
|
2335
2374
|
*
|
|
2375
|
+
* **Details**
|
|
2376
|
+
*
|
|
2336
2377
|
* The merged stream ends when the right stream completes, interrupting the
|
|
2337
2378
|
* left stream. Failures from the left stream still fail the merged stream.
|
|
2338
2379
|
*
|
|
@@ -2393,6 +2434,8 @@ export const mergeAll = /*#__PURE__*/dual(2, (streams, options) => flatten(fromI
|
|
|
2393
2434
|
* Creates the cartesian product of two streams, running the `right` stream for
|
|
2394
2435
|
* each element in the `left` stream.
|
|
2395
2436
|
*
|
|
2437
|
+
* **Details**
|
|
2438
|
+
*
|
|
2396
2439
|
* See also `Stream.zip` for the more common point-wise variant.
|
|
2397
2440
|
*
|
|
2398
2441
|
* **Example** (Computing cartesian products)
|
|
@@ -2418,6 +2461,8 @@ export const cross = /*#__PURE__*/dual(2, (left, right) => crossWith(left, right
|
|
|
2418
2461
|
/**
|
|
2419
2462
|
* Creates a cartesian product of elements from two streams using a function.
|
|
2420
2463
|
*
|
|
2464
|
+
* **Details**
|
|
2465
|
+
*
|
|
2421
2466
|
* The `right` stream is rerun for every element in the `left` stream.
|
|
2422
2467
|
*
|
|
2423
2468
|
* See also `Stream.zipWith` for the more common point-wise variant.
|
|
@@ -2480,6 +2525,8 @@ const zipArrays = f => (leftArr, rightArr) => {
|
|
|
2480
2525
|
/**
|
|
2481
2526
|
* Zips two streams by applying a function to non-empty arrays of elements.
|
|
2482
2527
|
*
|
|
2528
|
+
* **Details**
|
|
2529
|
+
*
|
|
2483
2530
|
* The function returns output plus leftover arrays that carry into the next pull.
|
|
2484
2531
|
*
|
|
2485
2532
|
* **Example** (Zipping stream chunks)
|
|
@@ -2573,6 +2620,8 @@ export const zip = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, (a,
|
|
|
2573
2620
|
* Zips this stream with another point-wise and keeps only the values from
|
|
2574
2621
|
* the left stream.
|
|
2575
2622
|
*
|
|
2623
|
+
* **Details**
|
|
2624
|
+
*
|
|
2576
2625
|
* The resulting stream ends when either side ends.
|
|
2577
2626
|
*
|
|
2578
2627
|
* **Example** (Zipping streams while keeping left values)
|
|
@@ -2636,6 +2685,8 @@ export const zipRight = /*#__PURE__*/dual(2, (left, right) => zipWithArray(left,
|
|
|
2636
2685
|
* Zips this stream with another point-wise and emits tuples of elements from
|
|
2637
2686
|
* both streams, flattening the left tuple.
|
|
2638
2687
|
*
|
|
2688
|
+
* **Details**
|
|
2689
|
+
*
|
|
2639
2690
|
* The new stream will end when one of the sides ends.
|
|
2640
2691
|
*
|
|
2641
2692
|
* **Example** (Zipping and flattening tuples)
|
|
@@ -2821,6 +2872,8 @@ export const zipWithPreviousAndNext = self => mapAccumArray(self, () => ({
|
|
|
2821
2872
|
* Zips multiple streams so that when a value is emitted by any stream, it is
|
|
2822
2873
|
* combined with the latest values from the other streams to produce a result.
|
|
2823
2874
|
*
|
|
2875
|
+
* **Gotchas**
|
|
2876
|
+
*
|
|
2824
2877
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
2825
2878
|
* that emitted elements that are not the last value in arrays will never be
|
|
2826
2879
|
* used for zipping.
|
|
@@ -2870,6 +2923,8 @@ export const zipLatestAll = (...streams) => fromChannel(Channel.suspend(() => {
|
|
|
2870
2923
|
/**
|
|
2871
2924
|
* Combines two streams by emitting each new element with the latest value from the other stream.
|
|
2872
2925
|
*
|
|
2926
|
+
* **Gotchas**
|
|
2927
|
+
*
|
|
2873
2928
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
2874
2929
|
* that emitted elements that are not the last value in arrays will never be
|
|
2875
2930
|
* used for zipping.
|
|
@@ -2898,6 +2953,8 @@ export const zipLatest = /*#__PURE__*/dual(2, (left, right) => zipLatestAll(left
|
|
|
2898
2953
|
* Combines the latest values from both streams whenever either emits, using
|
|
2899
2954
|
* the provided function.
|
|
2900
2955
|
*
|
|
2956
|
+
* **Gotchas**
|
|
2957
|
+
*
|
|
2901
2958
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
2902
2959
|
* that emitted elements that are not the last value in arrays will never be
|
|
2903
2960
|
* used for zipping.
|
|
@@ -2930,13 +2987,12 @@ export const zipLatestWith = /*#__PURE__*/dual(3, (left, right, f) => map(zipLat
|
|
|
2930
2987
|
* Runs all streams concurrently until one stream emits its first value, then
|
|
2931
2988
|
* mirrors that winning stream and interrupts the rest.
|
|
2932
2989
|
*
|
|
2990
|
+
* **Details**
|
|
2991
|
+
*
|
|
2933
2992
|
* Failures or completion from losing streams before a winner is chosen are
|
|
2934
2993
|
* ignored unless every stream fails or completes before emitting. After a
|
|
2935
2994
|
* winner is chosen, that stream's later failures are propagated.
|
|
2936
2995
|
*
|
|
2937
|
-
* @category Racing
|
|
2938
|
-
* @since 3.5.0
|
|
2939
|
-
*
|
|
2940
2996
|
* **Example** (Racing multiple streams)
|
|
2941
2997
|
*
|
|
2942
2998
|
* ```ts
|
|
@@ -2953,6 +3009,9 @@ export const zipLatestWith = /*#__PURE__*/dual(3, (left, right, f) => map(zipLat
|
|
|
2953
3009
|
* Effect.runPromise(program)
|
|
2954
3010
|
* // Output: [ 0, 1, 2 ]
|
|
2955
3011
|
* ```
|
|
3012
|
+
*
|
|
3013
|
+
* @category Racing
|
|
3014
|
+
* @since 3.5.0
|
|
2956
3015
|
*/
|
|
2957
3016
|
export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, scope) => Effect.sync(() => {
|
|
2958
3017
|
let winner;
|
|
@@ -2975,6 +3034,8 @@ export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, sco
|
|
|
2975
3034
|
* Runs both streams concurrently until one stream emits its first value, then
|
|
2976
3035
|
* mirrors that winning stream and interrupts the other.
|
|
2977
3036
|
*
|
|
3037
|
+
* **Details**
|
|
3038
|
+
*
|
|
2978
3039
|
* A failure or completion from one side before the other side emits does not
|
|
2979
3040
|
* win the race unless both sides fail or complete before emitting. After a
|
|
2980
3041
|
* winner is chosen, that stream's later failures are propagated.
|
|
@@ -3067,6 +3128,8 @@ export const filterMapEffect = /*#__PURE__*/dual(2, (self, filter) => fromChanne
|
|
|
3067
3128
|
* Partitions a stream using a `Filter` and exposes passing and failing values
|
|
3068
3129
|
* as scoped queues.
|
|
3069
3130
|
*
|
|
3131
|
+
* **Details**
|
|
3132
|
+
*
|
|
3070
3133
|
* The queues are backed by a fiber in the current scope and should be consumed
|
|
3071
3134
|
* while that scope remains open. Each queue fails with the stream error or
|
|
3072
3135
|
* `Cause.Done` when the source ends.
|
|
@@ -3145,6 +3208,8 @@ export const partitionQueue = /*#__PURE__*/dual(args => isStream(args[0]), /*#__
|
|
|
3145
3208
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
3146
3209
|
* filter successes and failures.
|
|
3147
3210
|
*
|
|
3211
|
+
* **Details**
|
|
3212
|
+
*
|
|
3148
3213
|
* The returned streams are backed by queues in the current scope and should be
|
|
3149
3214
|
* consumed while that scope remains open. The first stream emits success values
|
|
3150
3215
|
* from the filter, and the second emits failure values.
|
|
@@ -3157,13 +3222,12 @@ export const partitionEffect = /*#__PURE__*/dual(args => isStream(args[0]), (sel
|
|
|
3157
3222
|
* Splits a stream into scoped excluded and satisfying substreams using a
|
|
3158
3223
|
* `Filter`.
|
|
3159
3224
|
*
|
|
3225
|
+
* **Details**
|
|
3226
|
+
*
|
|
3160
3227
|
* The returned streams are backed by queues in the current scope and should be
|
|
3161
3228
|
* consumed while that scope remains open. The faster stream may advance up to
|
|
3162
3229
|
* `bufferSize` elements ahead of the slower one.
|
|
3163
3230
|
*
|
|
3164
|
-
* @category filtering
|
|
3165
|
-
* @since 2.0.0
|
|
3166
|
-
*
|
|
3167
3231
|
* **Example** (Partitioning a stream)
|
|
3168
3232
|
*
|
|
3169
3233
|
* ```ts
|
|
@@ -3182,6 +3246,9 @@ export const partitionEffect = /*#__PURE__*/dual(args => isStream(args[0]), (sel
|
|
|
3182
3246
|
* // Output: [ 2, 4 ]
|
|
3183
3247
|
* })
|
|
3184
3248
|
* ```
|
|
3249
|
+
*
|
|
3250
|
+
* @category filtering
|
|
3251
|
+
* @since 2.0.0
|
|
3185
3252
|
*/
|
|
3186
3253
|
export const partition = /*#__PURE__*/dual(args => isStream(args[0]), (self, filter, options) => Effect.map(partitionQueue(self, filter, {
|
|
3187
3254
|
capacity: options?.bufferSize ?? 16
|
|
@@ -3214,6 +3281,8 @@ export const when = /*#__PURE__*/dual(2, (self, test) => test.pipe(Effect.map(pa
|
|
|
3214
3281
|
* Runs a sink to peel off enough elements to produce a value and returns that
|
|
3215
3282
|
* value with the remaining stream in a scope.
|
|
3216
3283
|
*
|
|
3284
|
+
* **Details**
|
|
3285
|
+
*
|
|
3217
3286
|
* The returned stream is only valid within the scope.
|
|
3218
3287
|
*
|
|
3219
3288
|
* **Example** (Peeling a stream with a sink)
|
|
@@ -3256,6 +3325,8 @@ export const peel = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function
|
|
|
3256
3325
|
* Buffers up to `capacity` elements so a faster producer can progress
|
|
3257
3326
|
* independently of a slower consumer.
|
|
3258
3327
|
*
|
|
3328
|
+
* **Details**
|
|
3329
|
+
*
|
|
3259
3330
|
* Finite buffers use the configured queue strategy: `"suspend"` applies
|
|
3260
3331
|
* backpressure, while `"dropping"` and `"sliding"` may discard elements when
|
|
3261
3332
|
* the buffer is full. This combinator destroys chunking; use `Stream.rechunk`
|
|
@@ -3286,6 +3357,8 @@ export const buffer = /*#__PURE__*/dual(2, (self, options) => fromChannel(Channe
|
|
|
3286
3357
|
* Allows a faster producer to progress independently of a slower consumer by
|
|
3287
3358
|
* buffering up to `capacity` chunks in a queue.
|
|
3288
3359
|
*
|
|
3360
|
+
* **Details**
|
|
3361
|
+
*
|
|
3289
3362
|
* Finite buffers use the configured queue strategy: `"suspend"` applies
|
|
3290
3363
|
* backpressure, while `"dropping"` and `"sliding"` may discard chunks when the
|
|
3291
3364
|
* buffer is full. This combinator preserves chunking and is best with
|
|
@@ -3432,6 +3505,8 @@ export const tapError = /*#__PURE__*/dual(2, (self, f) => self.channel.pipe(Chan
|
|
|
3432
3505
|
/**
|
|
3433
3506
|
* Recovers from errors that match a predicate by switching to a recovery stream.
|
|
3434
3507
|
*
|
|
3508
|
+
* **Details**
|
|
3509
|
+
*
|
|
3435
3510
|
* When a failure matches the filter, the stream switches to the recovery
|
|
3436
3511
|
* stream. Non-matching failures propagate downstream, so the error type is
|
|
3437
3512
|
* preserved unless the filter narrows it.
|
|
@@ -3474,7 +3549,7 @@ export const catchFilter = /*#__PURE__*/dual(args => isStream(args[0]), (self, f
|
|
|
3474
3549
|
* Recovers from failures whose `_tag` matches the provided value by switching to
|
|
3475
3550
|
* the stream returned by `f`.
|
|
3476
3551
|
*
|
|
3477
|
-
* **When to
|
|
3552
|
+
* **When to use**
|
|
3478
3553
|
*
|
|
3479
3554
|
* Use `catchTag` when your error type is a tagged union with a readonly `_tag`
|
|
3480
3555
|
* field and you want to handle a specific error case.
|
|
@@ -3555,6 +3630,8 @@ export const catchTags = /*#__PURE__*/dual(args => isStream(args[0]), (self, cas
|
|
|
3555
3630
|
/**
|
|
3556
3631
|
* Catches a specific reason within a tagged error.
|
|
3557
3632
|
*
|
|
3633
|
+
* **When to use**
|
|
3634
|
+
*
|
|
3558
3635
|
* Use this to handle nested error causes without removing the parent error
|
|
3559
3636
|
* from the error channel. The handler receives the unwrapped reason.
|
|
3560
3637
|
*
|
|
@@ -3787,6 +3864,8 @@ export const orDie = self => fromChannel(Channel.orDie(self.channel));
|
|
|
3787
3864
|
/**
|
|
3788
3865
|
* Ignores failures and ends the stream on error.
|
|
3789
3866
|
*
|
|
3867
|
+
* **When to use**
|
|
3868
|
+
*
|
|
3790
3869
|
* Use the `log` option to emit the full {@link Cause} when the stream fails.
|
|
3791
3870
|
*
|
|
3792
3871
|
* **Example** (Ignoring stream failures)
|
|
@@ -3830,6 +3909,8 @@ export const ignore = /*#__PURE__*/dual(args => isStream(args[0]), (self, option
|
|
|
3830
3909
|
/**
|
|
3831
3910
|
* Ignores the stream's failure cause, including defects, and ends the stream.
|
|
3832
3911
|
*
|
|
3912
|
+
* **When to use**
|
|
3913
|
+
*
|
|
3833
3914
|
* Use the `log` option to emit the full {@link Cause} when the stream fails.
|
|
3834
3915
|
*
|
|
3835
3916
|
* **Example** (Ignoring stream failure causes)
|
|
@@ -3856,6 +3937,8 @@ export const ignoreCause = /*#__PURE__*/dual(args => isStream(args[0]), (self, o
|
|
|
3856
3937
|
/**
|
|
3857
3938
|
* When the stream fails, retry it according to the given schedule.
|
|
3858
3939
|
*
|
|
3940
|
+
* **Details**
|
|
3941
|
+
*
|
|
3859
3942
|
* This retries the entire stream, so will re-execute all of the stream's
|
|
3860
3943
|
* acquire operations.
|
|
3861
3944
|
*
|
|
@@ -3890,6 +3973,8 @@ export const retry = /*#__PURE__*/dual(2, (self, policy) => fromChannel(Channel.
|
|
|
3890
3973
|
* Apply an `ExecutionPlan` to a stream, retrying with step-provided resources
|
|
3891
3974
|
* until it succeeds or the plan is exhausted.
|
|
3892
3975
|
*
|
|
3976
|
+
* **Details**
|
|
3977
|
+
*
|
|
3893
3978
|
* By default, a failing step can fallback even after emitting elements; set
|
|
3894
3979
|
* `preventFallbackOnPartialStream` to fail instead of mixing partial output with
|
|
3895
3980
|
* a later fallback.
|
|
@@ -4039,6 +4124,8 @@ export const takeRight = /*#__PURE__*/dual(2, (self, n) => mapAccumArray(self, M
|
|
|
4039
4124
|
/**
|
|
4040
4125
|
* Takes elements until the predicate matches.
|
|
4041
4126
|
*
|
|
4127
|
+
* **Details**
|
|
4128
|
+
*
|
|
4042
4129
|
* When `excludeLast` is `true`, the matching element is dropped.
|
|
4043
4130
|
*
|
|
4044
4131
|
* **Example** (Taking until a predicate matches)
|
|
@@ -4165,6 +4252,8 @@ export const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => transformPull
|
|
|
4165
4252
|
* Takes the longest initial prefix accepted by a `Filter` and emits the
|
|
4166
4253
|
* filter's success values.
|
|
4167
4254
|
*
|
|
4255
|
+
* **Details**
|
|
4256
|
+
*
|
|
4168
4257
|
* The stream stops at the first `Result.fail` returned by the filter.
|
|
4169
4258
|
*
|
|
4170
4259
|
* @category filtering
|
|
@@ -4271,6 +4360,8 @@ export const dropUntil = /*#__PURE__*/dual(2, (self, predicate) => drop(dropWhil
|
|
|
4271
4360
|
* Drops all elements of the stream until the specified effectful predicate
|
|
4272
4361
|
* evaluates to `true`.
|
|
4273
4362
|
*
|
|
4363
|
+
* **Details**
|
|
4364
|
+
*
|
|
4274
4365
|
* The first element that satisfies the predicate is also dropped.
|
|
4275
4366
|
*
|
|
4276
4367
|
* **Example** (Dropping until an effectful predicate matches)
|
|
@@ -4386,6 +4477,8 @@ export const dropWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => transfo
|
|
|
4386
4477
|
/**
|
|
4387
4478
|
* Drops the last specified number of elements from this stream.
|
|
4388
4479
|
*
|
|
4480
|
+
* **Details**
|
|
4481
|
+
*
|
|
4389
4482
|
* Keeps the last `n` elements in memory to drop them on completion.
|
|
4390
4483
|
*
|
|
4391
4484
|
* **Example** (Dropping values from the right)
|
|
@@ -4449,6 +4542,8 @@ export const chunks = self => self.channel.pipe(Channel.map(Arr.of), fromChannel
|
|
|
4449
4542
|
/**
|
|
4450
4543
|
* Re-chunks the stream into arrays of the specified size, preserving element order.
|
|
4451
4544
|
*
|
|
4545
|
+
* **Details**
|
|
4546
|
+
*
|
|
4452
4547
|
* The size is clamped to at least 1.
|
|
4453
4548
|
*
|
|
4454
4549
|
* **Example** (Rechunking stream elements)
|
|
@@ -4594,6 +4689,8 @@ export const slidingSize = /*#__PURE__*/dual(3, (self, chunkSize, stepSize) => t
|
|
|
4594
4689
|
/**
|
|
4595
4690
|
* Splits the stream into non-empty groups whenever the predicate matches.
|
|
4596
4691
|
*
|
|
4692
|
+
* **Details**
|
|
4693
|
+
*
|
|
4597
4694
|
* Matching elements act as delimiters and are not included in the output.
|
|
4598
4695
|
*
|
|
4599
4696
|
* **Example** (Splitting on matching values)
|
|
@@ -4638,6 +4735,8 @@ export const split = /*#__PURE__*/dual(2, (self, predicate) => mapAccumArray(sel
|
|
|
4638
4735
|
* Combines elements from this stream and the specified stream by repeatedly
|
|
4639
4736
|
* applying a stateful function that can pull from either side.
|
|
4640
4737
|
*
|
|
4738
|
+
* **Details**
|
|
4739
|
+
*
|
|
4641
4740
|
* Where possible, prefer `Stream.combineArray` for a more efficient
|
|
4642
4741
|
* implementation.
|
|
4643
4742
|
*
|
|
@@ -4750,6 +4849,8 @@ export const mapAccum = /*#__PURE__*/dual(args => isStream(args[0]), (self, init
|
|
|
4750
4849
|
/**
|
|
4751
4850
|
* Statefully maps over non-empty chunk arrays, emitting zero or more values per chunk.
|
|
4752
4851
|
*
|
|
4852
|
+
* **Details**
|
|
4853
|
+
*
|
|
4753
4854
|
* The mapping function runs once per chunk and the state is threaded across chunks.
|
|
4754
4855
|
*
|
|
4755
4856
|
* **Example** (Statefully mapping stream chunks)
|
|
@@ -4791,6 +4892,8 @@ const emptyArr = /*#__PURE__*/Arr.empty();
|
|
|
4791
4892
|
* Statefully and effectfully maps each element, emitting zero or more output
|
|
4792
4893
|
* values per input.
|
|
4793
4894
|
*
|
|
4895
|
+
* **Details**
|
|
4896
|
+
*
|
|
4794
4897
|
* The mapping effect receives the current state and element, then returns the
|
|
4795
4898
|
* next state plus the values to emit. The state is threaded through the
|
|
4796
4899
|
* stream.
|
|
@@ -4828,6 +4931,8 @@ export const mapAccumEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self
|
|
|
4828
4931
|
* Statefully and effectfully maps each non-empty input chunk, emitting zero or
|
|
4829
4932
|
* more output values per chunk.
|
|
4830
4933
|
*
|
|
4934
|
+
* **Details**
|
|
4935
|
+
*
|
|
4831
4936
|
* The mapping effect receives the current state and chunk, then returns the
|
|
4832
4937
|
* next state plus the values to emit. The state is threaded across chunks.
|
|
4833
4938
|
*
|
|
@@ -5008,6 +5113,8 @@ export const debounce = /*#__PURE__*/dual(2, (self, duration) => transformPull(s
|
|
|
5008
5113
|
* allowing the bucket to accumulate tokens up to a `units + burst` threshold.
|
|
5009
5114
|
* The weight of each array is determined by the effectful `cost` function.
|
|
5010
5115
|
*
|
|
5116
|
+
* **Details**
|
|
5117
|
+
*
|
|
5011
5118
|
* If using the "enforce" strategy, arrays that do not meet the bandwidth
|
|
5012
5119
|
* constraints are dropped. If using the "shape" strategy, arrays are delayed
|
|
5013
5120
|
* until they can be emitted without exceeding the bandwidth constraints.
|
|
@@ -5105,6 +5212,8 @@ const throttleShapeEffect = (self, cost, units, duration, burst) => transformPul
|
|
|
5105
5212
|
* Allows bursts by letting the bucket accumulate up to a `units + burst`
|
|
5106
5213
|
* threshold. The weight of each array is determined by the `cost` function.
|
|
5107
5214
|
*
|
|
5215
|
+
* **Details**
|
|
5216
|
+
*
|
|
5108
5217
|
* If using the "enforce" strategy, arrays that do not meet the bandwidth
|
|
5109
5218
|
* constraints are dropped. If using the "shape" strategy, arrays are delayed
|
|
5110
5219
|
* until they can be emitted without exceeding the bandwidth constraints.
|
|
@@ -5143,6 +5252,8 @@ export const throttle = /*#__PURE__*/dual(2, (self, options) => throttleEffect(s
|
|
|
5143
5252
|
/**
|
|
5144
5253
|
* Partitions the stream into non-empty arrays of the specified size.
|
|
5145
5254
|
*
|
|
5255
|
+
* **Details**
|
|
5256
|
+
*
|
|
5146
5257
|
* The final array may be smaller if there are not enough elements to fill it.
|
|
5147
5258
|
*
|
|
5148
5259
|
* **Example** (Grouping elements by size)
|
|
@@ -5309,6 +5420,8 @@ const groupByImpl = (self, f, options) => transformPullBracket(self, Effect.fnUn
|
|
|
5309
5420
|
/**
|
|
5310
5421
|
* Groups consecutive elements that have equal keys into non-empty arrays.
|
|
5311
5422
|
*
|
|
5423
|
+
* **Details**
|
|
5424
|
+
*
|
|
5312
5425
|
* The key is computed with `f`; adjacent elements whose keys are equal by
|
|
5313
5426
|
* `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs
|
|
5314
5427
|
* with the same key are emitted separately.
|
|
@@ -5396,6 +5509,8 @@ export const transduce = /*#__PURE__*/dual(2, (self, sink) => transformPull(self
|
|
|
5396
5509
|
/**
|
|
5397
5510
|
* Aggregates elements using the provided sink and emits each sink result as a stream element.
|
|
5398
5511
|
*
|
|
5512
|
+
* **Details**
|
|
5513
|
+
*
|
|
5399
5514
|
* The stream runs the upstream and downstream in separate fibers, so the sink can keep
|
|
5400
5515
|
* consuming input while downstream is busy processing the previous output.
|
|
5401
5516
|
*
|
|
@@ -5424,6 +5539,8 @@ export const aggregate = /*#__PURE__*/dual(2, (self, sink) => aggregateWithin(se
|
|
|
5424
5539
|
/**
|
|
5425
5540
|
* Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers.
|
|
5426
5541
|
*
|
|
5542
|
+
* **Details**
|
|
5543
|
+
*
|
|
5427
5544
|
* The schedule can flush the current aggregation even if the sink has not finished.
|
|
5428
5545
|
*
|
|
5429
5546
|
* **Example** (Aggregating with a sink and schedule)
|
|
@@ -5508,6 +5625,8 @@ export const aggregateWithin = /*#__PURE__*/dual(3, (self, sink, schedule) => fr
|
|
|
5508
5625
|
* Fan out the stream, producing a fixed-size tuple of streams that each emit
|
|
5509
5626
|
* the same elements as the source stream.
|
|
5510
5627
|
*
|
|
5628
|
+
* **Details**
|
|
5629
|
+
*
|
|
5511
5630
|
* The source stream starts after all downstream streams have been subscribed.
|
|
5512
5631
|
* With the default suspend strategy, the source can only advance `capacity`
|
|
5513
5632
|
* chunks ahead of the slowest downstream stream. If a downstream stream is
|
|
@@ -5557,6 +5676,8 @@ const makePubSub = options => Effect.acquireRelease(options.capacity === "unboun
|
|
|
5557
5676
|
/**
|
|
5558
5677
|
* Creates a PubSub-backed stream that multicasts the source to all subscribers.
|
|
5559
5678
|
*
|
|
5679
|
+
* **Details**
|
|
5680
|
+
*
|
|
5560
5681
|
* The returned stream is scoped and uses the provided PubSub capacity and replay settings.
|
|
5561
5682
|
*
|
|
5562
5683
|
* **Example** (Broadcasting a stream)
|
|
@@ -5591,6 +5712,8 @@ export const broadcast = /*#__PURE__*/dual(2, (self, options) => Effect.map(toPu
|
|
|
5591
5712
|
/**
|
|
5592
5713
|
* Returns a new Stream that multicasts the original stream, subscribing when the first consumer starts.
|
|
5593
5714
|
*
|
|
5715
|
+
* **Details**
|
|
5716
|
+
*
|
|
5594
5717
|
* The upstream continues running while there is at least one consumer and is finalized after the last one exits.
|
|
5595
5718
|
* If `idleTimeToLive` is set, the upstream is kept alive for that duration so a later subscriber can continue from
|
|
5596
5719
|
* the next element instead of restarting.
|
|
@@ -5627,6 +5750,8 @@ export const share = /*#__PURE__*/dual(2, (self, options) => Effect.map(RcRef.ma
|
|
|
5627
5750
|
/**
|
|
5628
5751
|
* Pipes this stream through a channel that consumes and emits chunked elements.
|
|
5629
5752
|
*
|
|
5753
|
+
* **Details**
|
|
5754
|
+
*
|
|
5630
5755
|
* The channel receives `NonEmptyReadonlyArray` chunks and can transform both the
|
|
5631
5756
|
* output elements and error type.
|
|
5632
5757
|
*
|
|
@@ -5662,6 +5787,8 @@ export const pipeThroughChannel = /*#__PURE__*/dual(2, (self, channel) => fromCh
|
|
|
5662
5787
|
* Pipes values through the provided channel while preserving this stream's
|
|
5663
5788
|
* failures alongside any channel failures.
|
|
5664
5789
|
*
|
|
5790
|
+
* **Details**
|
|
5791
|
+
*
|
|
5665
5792
|
* Upstream failures are not passed to the channel, so the resulting stream can
|
|
5666
5793
|
* fail with either the original stream error or the channel error.
|
|
5667
5794
|
*
|
|
@@ -5695,6 +5822,8 @@ export const pipeThroughChannelOrFail = /*#__PURE__*/dual(2, (self, channel) =>
|
|
|
5695
5822
|
/**
|
|
5696
5823
|
* Pipes the stream through `Sink.toChannel`, emitting only the sink leftovers.
|
|
5697
5824
|
*
|
|
5825
|
+
* **Details**
|
|
5826
|
+
*
|
|
5698
5827
|
* If the sink completes mid-chunk, the remaining elements become the output stream.
|
|
5699
5828
|
*
|
|
5700
5829
|
* **Example** (Piping through a sink)
|
|
@@ -5844,6 +5973,8 @@ export const changesWith = /*#__PURE__*/dual(2, (self, f) => transformPull(self,
|
|
|
5844
5973
|
/**
|
|
5845
5974
|
* Emits only elements that differ from the previous element, using an effectful equality check.
|
|
5846
5975
|
*
|
|
5976
|
+
* **Details**
|
|
5977
|
+
*
|
|
5847
5978
|
* The predicate runs for each element after the first; returning `true` treats it as equal and skips it.
|
|
5848
5979
|
*
|
|
5849
5980
|
* **Example** (Effectfully emitting changed values)
|
|
@@ -6006,6 +6137,8 @@ export const intersperse = /*#__PURE__*/dual(2, (self, element) => mapArray(self
|
|
|
6006
6137
|
/**
|
|
6007
6138
|
* Intersperse stream elements with a middle value, adding a start and end value.
|
|
6008
6139
|
*
|
|
6140
|
+
* **Details**
|
|
6141
|
+
*
|
|
6009
6142
|
* The start and end values are always emitted, even when the stream is empty.
|
|
6010
6143
|
*
|
|
6011
6144
|
* **Example** (Interspersing stream affixes)
|
|
@@ -6053,6 +6186,7 @@ export const intersperseAffixes = /*#__PURE__*/dual(2, (self, options) => succee
|
|
|
6053
6186
|
* Effect.runPromise(program)
|
|
6054
6187
|
* // [2, 5, 3, 6, 7]
|
|
6055
6188
|
* ```
|
|
6189
|
+
*
|
|
6056
6190
|
* @category Merging
|
|
6057
6191
|
* @since 2.0.0
|
|
6058
6192
|
*/
|
|
@@ -6060,6 +6194,8 @@ export const interleave = /*#__PURE__*/dual(2, (self, that) => interleaveWith(se
|
|
|
6060
6194
|
/**
|
|
6061
6195
|
* Interleaves two streams deterministically by following a boolean decider stream.
|
|
6062
6196
|
*
|
|
6197
|
+
* **Details**
|
|
6198
|
+
*
|
|
6063
6199
|
* The decider controls how many elements are pulled; if one side ends, pulls for
|
|
6064
6200
|
* that side are ignored.
|
|
6065
6201
|
*
|
|
@@ -6120,6 +6256,8 @@ export const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => from
|
|
|
6120
6256
|
* success will be discarded. This combinator will also interrupt any
|
|
6121
6257
|
* in-progress element being pulled from upstream.
|
|
6122
6258
|
*
|
|
6259
|
+
* **Details**
|
|
6260
|
+
*
|
|
6123
6261
|
* If the effect completes with a failure before the stream completes, the
|
|
6124
6262
|
* returned stream will emit that failure.
|
|
6125
6263
|
*
|
|
@@ -6208,6 +6346,8 @@ export const onExit = /*#__PURE__*/dual(2, (self, finalizer) => fromChannel(Chan
|
|
|
6208
6346
|
/**
|
|
6209
6347
|
* Runs the provided effect when the stream fails, passing the failure cause.
|
|
6210
6348
|
*
|
|
6349
|
+
* **Gotchas**
|
|
6350
|
+
*
|
|
6211
6351
|
* Note: Unlike `Effect.onError` there is no guarantee that the provided
|
|
6212
6352
|
* effect will not be interrupted.
|
|
6213
6353
|
*
|
|
@@ -7032,6 +7172,8 @@ export const runDrain = self => Channel.runDrain(self.channel);
|
|
|
7032
7172
|
/**
|
|
7033
7173
|
* Returns a scoped pull for manually consuming the stream's output chunks.
|
|
7034
7174
|
*
|
|
7175
|
+
* **Details**
|
|
7176
|
+
*
|
|
7035
7177
|
* The pull fails with `Cause.Done` when the stream ends and with the stream
|
|
7036
7178
|
* error on failure.
|
|
7037
7179
|
*
|
|
@@ -7126,6 +7268,8 @@ export const mkUint8Array = self => Effect.map(Channel.runFold(self.channel, ()
|
|
|
7126
7268
|
/**
|
|
7127
7269
|
* Converts the stream to a `ReadableStream` using the provided services.
|
|
7128
7270
|
*
|
|
7271
|
+
* **Details**
|
|
7272
|
+
*
|
|
7129
7273
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
7130
7274
|
*
|
|
7131
7275
|
* **Example** (Converting to a ReadableStream with services)
|
|
@@ -7177,6 +7321,8 @@ export const toReadableStreamWith = /*#__PURE__*/dual(args => isStream(args[0]),
|
|
|
7177
7321
|
/**
|
|
7178
7322
|
* Converts a stream to a `ReadableStream`.
|
|
7179
7323
|
*
|
|
7324
|
+
* **Details**
|
|
7325
|
+
*
|
|
7180
7326
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
7181
7327
|
*
|
|
7182
7328
|
* **Example** (Converting a stream to a ReadableStream)
|
|
@@ -7195,6 +7341,8 @@ export const toReadableStream = /*#__PURE__*/dual(args => isStream(args[0]), (se
|
|
|
7195
7341
|
/**
|
|
7196
7342
|
* Creates an Effect that builds a ReadableStream from the stream.
|
|
7197
7343
|
*
|
|
7344
|
+
* **Details**
|
|
7345
|
+
*
|
|
7198
7346
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
7199
7347
|
*
|
|
7200
7348
|
* **Example** (Creating a ReadableStream effect)
|
|
@@ -7338,6 +7486,8 @@ export const toAsyncIterable = self => toAsyncIterableWith(self, Context.empty()
|
|
|
7338
7486
|
/**
|
|
7339
7487
|
* Runs the stream, publishing elements into the provided PubSub.
|
|
7340
7488
|
*
|
|
7489
|
+
* **Details**
|
|
7490
|
+
*
|
|
7341
7491
|
* `shutdownOnEnd` controls whether the PubSub is shut down when the stream ends.
|
|
7342
7492
|
* It only shuts down when set to `true`.
|
|
7343
7493
|
*
|
|
@@ -7371,6 +7521,8 @@ export const runIntoPubSub = /*#__PURE__*/dual(args => isStream(args[0]), (self,
|
|
|
7371
7521
|
/**
|
|
7372
7522
|
* Converts a stream to a PubSub for concurrent consumption.
|
|
7373
7523
|
*
|
|
7524
|
+
* **Details**
|
|
7525
|
+
*
|
|
7374
7526
|
* `shutdownOnEnd` indicates whether the PubSub should be shut down when the
|
|
7375
7527
|
* stream ends. By default this is `true`.
|
|
7376
7528
|
*
|
|
@@ -7397,6 +7549,8 @@ export const toPubSub = /*#__PURE__*/dual(2, (self, options) => Channel.toPubSub
|
|
|
7397
7549
|
/**
|
|
7398
7550
|
* Converts a stream to a PubSub for concurrent consumption.
|
|
7399
7551
|
*
|
|
7552
|
+
* **Details**
|
|
7553
|
+
*
|
|
7400
7554
|
* `Take` values include the stream's end and failure signals.
|
|
7401
7555
|
*
|
|
7402
7556
|
* **Example** (Converting to a PubSub of takes)
|
|
@@ -7425,6 +7579,8 @@ export const toPubSubTake = /*#__PURE__*/dual(2, (self, options) => Channel.toPu
|
|
|
7425
7579
|
* Creates a scoped dequeue that is fed by the stream for concurrent
|
|
7426
7580
|
* consumption.
|
|
7427
7581
|
*
|
|
7582
|
+
* **Details**
|
|
7583
|
+
*
|
|
7428
7584
|
* Elements are offered to the queue as the stream runs. Stream completion is
|
|
7429
7585
|
* signaled with `Cause.Done`, stream failures fail the queue, and the queue is
|
|
7430
7586
|
* shut down when the surrounding scope closes.
|