effect 4.0.0-beta.73 → 4.0.0-beta.75
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 +745 -627
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +277 -217
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +37 -30
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +19 -16
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +34 -40
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +16 -16
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +10 -10
- package/dist/Boolean.js +6 -6
- package/dist/Brand.d.ts +13 -11
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +10 -8
- package/dist/Brand.js.map +1 -1
- package/dist/Cause.d.ts +21 -23
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +21 -23
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +282 -72
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +108 -28
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +11 -11
- package/dist/ChannelSchema.js +5 -5
- package/dist/Chunk.d.ts +86 -33
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +48 -13
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +3 -3
- package/dist/Clock.js +3 -3
- package/dist/Combiner.d.ts +9 -13
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +9 -13
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +49 -56
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +40 -43
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +34 -44
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +24 -32
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +2 -2
- package/dist/Console.js +2 -2
- package/dist/Context.d.ts +63 -75
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +29 -33
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +6 -6
- package/dist/Cron.js +6 -6
- package/dist/Crypto.d.ts +4 -4
- package/dist/Crypto.js +4 -4
- package/dist/Data.d.ts +21 -15
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +7 -7
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +35 -16
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +35 -8
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +61 -52
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +21 -18
- package/dist/Deferred.js.map +1 -1
- package/dist/Duration.d.ts +50 -37
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +24 -13
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +574 -474
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +273 -213
- package/dist/Effect.js.map +1 -1
- package/dist/Encoding.d.ts +5 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +5 -0
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +28 -41
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +12 -19
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +72 -100
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +54 -74
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +1 -1
- package/dist/ErrorReporter.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/Exit.d.ts +79 -96
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +57 -64
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +8 -6
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +8 -6
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +25 -0
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +15 -0
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +35 -0
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +15 -0
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +20 -0
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +10 -0
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Filter.d.ts +4 -4
- package/dist/Filter.js +4 -4
- package/dist/Formatter.d.ts +14 -19
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +14 -19
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +20 -21
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +14 -15
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +13 -13
- package/dist/Graph.js +7 -7
- package/dist/HKT.d.ts +3 -3
- package/dist/Hash.d.ts +2 -1
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +2 -1
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +18 -3
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +5 -0
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +9 -9
- package/dist/HashRing.js +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +39 -27
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +21 -11
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +2 -3
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +2 -3
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +2 -6
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +2 -6
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +17 -13
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +17 -13
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +4 -3
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +4 -3
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +108 -130
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +43 -51
- package/dist/Layer.js.map +1 -1
- package/dist/Logger.d.ts +16 -19
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +15 -18
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +22 -22
- package/dist/Match.js +18 -18
- package/dist/Metric.d.ts +105 -125
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +54 -64
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +21 -12
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +7 -4
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableList.d.ts +15 -0
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +15 -0
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +56 -42
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +28 -22
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +10 -7
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +10 -7
- package/dist/Newtype.js.map +1 -1
- package/dist/Number.d.ts +23 -11
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +9 -5
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +16 -16
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +10 -9
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +232 -204
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +113 -96
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +119 -180
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +93 -145
- package/dist/Order.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +14 -14
- package/dist/PartitionedSemaphore.js +6 -6
- package/dist/Path.d.ts +3 -3
- package/dist/Path.js +3 -3
- package/dist/Pipeable.d.ts +3 -3
- package/dist/Pipeable.js +3 -3
- package/dist/PlatformError.d.ts +4 -4
- package/dist/PlatformError.js +4 -4
- package/dist/Pool.d.ts +7 -11
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +3 -5
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +279 -268
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +128 -123
- package/dist/Predicate.js.map +1 -1
- package/dist/PubSub.d.ts +33 -23
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +21 -11
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +4 -4
- package/dist/Pull.js +4 -4
- package/dist/Queue.d.ts +70 -31
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +66 -27
- package/dist/Queue.js.map +1 -1
- package/dist/RcRef.d.ts +0 -4
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redactable.d.ts +2 -2
- package/dist/Redactable.js +2 -2
- package/dist/Redacted.d.ts +5 -5
- package/dist/Redacted.js +4 -4
- package/dist/Reducer.d.ts +2 -3
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +2 -3
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +23 -22
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +21 -20
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +4 -4
- package/dist/References.js +4 -4
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +22 -22
- package/dist/Request.js +6 -6
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +3 -3
- package/dist/Resource.js +3 -3
- package/dist/Result.d.ts +95 -51
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +53 -30
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +11 -8
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +11 -8
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +151 -89
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +59 -47
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +6 -4
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +6 -4
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +620 -830
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +543 -452
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +43 -22
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +80 -59
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +139 -119
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +133 -113
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +37 -39
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +16 -17
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +75 -156
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +75 -148
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +30 -21
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +26 -22
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +169 -145
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +183 -159
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.js +2 -2
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +16 -1
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +16 -1
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +1 -1
- package/dist/ScopedCache.js +1 -1
- package/dist/ScopedRef.d.ts +14 -18
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +6 -8
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +9 -9
- package/dist/Semaphore.js +3 -3
- package/dist/Sink.d.ts +18 -18
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +12 -12
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +4 -5
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +4 -5
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +376 -99
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +158 -43
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +11 -14
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +5 -6
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +23 -21
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +14 -12
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +24 -19
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +12 -7
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +145 -120
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +51 -42
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +9 -9
- package/dist/Tracer.js +6 -6
- package/dist/Trie.d.ts +15 -0
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +5 -0
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +39 -33
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +23 -19
- package/dist/Tuple.js.map +1 -1
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/TxReentrantLock.d.ts +6 -3
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +2 -1
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +16 -16
- package/dist/TxRef.js +8 -8
- package/dist/TxSubscriptionRef.d.ts +43 -27
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +19 -13
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +12 -38
- package/dist/Types.d.ts.map +1 -1
- package/dist/Types.js +0 -2
- package/dist/UndefinedOr.d.ts +15 -14
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +11 -10
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +9 -9
- package/dist/Unify.js +1 -1
- package/dist/internal/schema/annotations.js.map +1 -1
- package/dist/internal/schema/arbitrary.js +9 -9
- package/dist/internal/schema/arbitrary.js.map +1 -1
- package/dist/internal/schema/equivalence.js +9 -9
- package/dist/internal/schema/equivalence.js.map +1 -1
- package/dist/internal/schema/representation.js +14 -14
- package/dist/internal/schema/representation.js.map +1 -1
- package/dist/internal/schema/schema.js +11 -11
- package/dist/internal/schema/schema.js.map +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/testing/TestSchema.d.ts +10 -10
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +9 -9
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +4 -2
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +4 -2
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +17 -20
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +36 -39
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +6 -7
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +6 -7
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +5 -5
- package/dist/unstable/ai/EmbeddingModel.js +4 -4
- package/dist/unstable/ai/IdGenerator.d.ts +4 -5
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +3 -4
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +7 -6
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +6 -5
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +14 -12
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +19 -17
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +11 -4
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +8 -5
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +20 -18
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +45 -43
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +17 -17
- package/dist/unstable/ai/Prompt.js +4 -4
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +3 -2
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +3 -2
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +26 -11
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +9 -4
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +13 -12
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +14 -13
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +2 -2
- package/dist/unstable/ai/Toolkit.js +2 -2
- package/dist/unstable/cli/Command.d.ts +37 -16
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +16 -9
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts +1 -1
- package/dist/unstable/cli/Completions.js +1 -1
- package/dist/unstable/cli/Flag.d.ts +7 -6
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +7 -6
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +6 -1
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +7 -2
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +4 -4
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +13 -10
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +6 -5
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +4 -3
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +1 -2
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +5 -0
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +5 -0
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +3 -3
- package/dist/unstable/cluster/ClusterSchema.js +3 -3
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +15 -15
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +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 +10 -0
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +2 -2
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +2 -2
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Reply.d.ts +2 -2
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +12 -12
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +2 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +2 -1
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +2 -2
- package/dist/unstable/cluster/RunnerServer.js +2 -2
- package/dist/unstable/cluster/Runners.d.ts +4 -4
- package/dist/unstable/cluster/Runners.js +4 -4
- package/dist/unstable/cluster/ShardId.js +3 -3
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +4 -4
- package/dist/unstable/cluster/Sharding.js +4 -4
- package/dist/unstable/cluster/ShardingConfig.d.ts +4 -4
- package/dist/unstable/cluster/ShardingConfig.js +4 -4
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +6 -6
- package/dist/unstable/cluster/Snowflake.js +8 -8
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/internal/entityManager.js +2 -2
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +2 -2
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +5 -5
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +5 -0
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +5 -0
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +2 -2
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +2 -2
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +2 -1
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +2 -1
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +10 -0
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +10 -0
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +4 -4
- package/dist/unstable/eventlog/EventLog.js +4 -4
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +2 -3
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +2 -3
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -10
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -10
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +4 -4
- package/dist/unstable/eventlog/EventLogSessionAuth.js +4 -4
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Cookies.js +4 -4
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +3 -4
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js +3 -4
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/Headers.js +2 -2
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.js +2 -2
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +3 -3
- package/dist/unstable/http/HttpClient.js +3 -3
- package/dist/unstable/http/HttpClientRequest.d.ts +32 -5
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +10 -1
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +5 -5
- package/dist/unstable/http/HttpRouter.js +5 -5
- package/dist/unstable/http/HttpServerResponse.d.ts +28 -23
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +13 -8
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/Multipart.js +3 -3
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/http/UrlParams.d.ts +30 -0
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +16 -6
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +4 -3
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +4 -3
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +10 -8
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +15 -15
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +3 -3
- package/dist/unstable/httpapi/HttpApiMiddleware.js +3 -3
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +9 -9
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +11 -11
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +5 -0
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +5 -0
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +8 -6
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +6 -4
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +4 -4
- package/dist/unstable/reactivity/Atom.js +4 -4
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +5 -5
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/rpc/RpcSerialization.d.ts +2 -2
- package/dist/unstable/rpc/RpcSerialization.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +6 -6
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +2 -2
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +4 -4
- package/dist/unstable/sql/SqlSchema.js +4 -4
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +3 -3
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +6 -6
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +8 -8
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +1 -2
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +1 -2
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +35 -15
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +94 -72
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +10 -2
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +16 -8
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.d.ts +2 -4
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js +9 -11
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js +7 -7
- package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +745 -627
- package/src/BigDecimal.ts +37 -30
- package/src/BigInt.ts +34 -40
- package/src/Boolean.ts +10 -10
- package/src/Brand.ts +16 -14
- package/src/Cause.ts +21 -23
- package/src/Channel.ts +316 -76
- package/src/ChannelSchema.ts +11 -11
- package/src/Chunk.ts +87 -34
- package/src/Clock.ts +3 -3
- package/src/Combiner.ts +9 -13
- package/src/Config.ts +60 -67
- package/src/ConfigProvider.ts +34 -44
- package/src/Console.ts +2 -2
- package/src/Context.ts +64 -76
- package/src/Cron.ts +6 -6
- package/src/Crypto.ts +4 -4
- package/src/Data.ts +21 -15
- package/src/DateTime.ts +35 -16
- package/src/Deferred.ts +61 -52
- package/src/Duration.ts +50 -37
- package/src/Effect.ts +574 -474
- package/src/Encoding.ts +5 -0
- package/src/Equal.ts +28 -41
- package/src/Equivalence.ts +72 -100
- package/src/ErrorReporter.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/Exit.ts +79 -96
- package/src/Fiber.ts +8 -6
- package/src/FiberHandle.ts +25 -0
- package/src/FiberMap.ts +35 -0
- package/src/FiberSet.ts +20 -0
- package/src/FileSystem.ts +6 -6
- package/src/Filter.ts +4 -4
- package/src/Formatter.ts +14 -19
- package/src/Function.ts +20 -21
- package/src/Graph.ts +13 -13
- package/src/HKT.ts +3 -3
- package/src/Hash.ts +2 -1
- package/src/HashMap.ts +18 -3
- package/src/HashRing.ts +9 -9
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +39 -27
- package/src/JsonPatch.ts +2 -3
- package/src/JsonPointer.ts +2 -6
- package/src/JsonSchema.ts +17 -13
- package/src/Latch.ts +4 -3
- package/src/Layer.ts +108 -130
- package/src/Logger.ts +22 -25
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +22 -22
- package/src/Metric.ts +129 -157
- package/src/MutableHashMap.ts +35 -20
- package/src/MutableList.ts +15 -0
- package/src/MutableRef.ts +56 -42
- package/src/Newtype.ts +10 -7
- package/src/Number.ts +23 -11
- package/src/Optic.ts +25 -22
- package/src/Option.ts +232 -204
- package/src/Order.ts +119 -180
- package/src/PartitionedSemaphore.ts +14 -14
- package/src/Path.ts +3 -3
- package/src/Pipeable.ts +3 -3
- package/src/PlatformError.ts +4 -4
- package/src/Pool.ts +7 -11
- package/src/Predicate.ts +279 -268
- package/src/PubSub.ts +33 -23
- package/src/Pull.ts +4 -4
- package/src/Queue.ts +70 -31
- package/src/RcRef.ts +0 -4
- package/src/Record.ts +15 -15
- package/src/Redactable.ts +2 -2
- package/src/Redacted.ts +5 -5
- package/src/Reducer.ts +2 -3
- package/src/Ref.ts +61 -58
- package/src/References.ts +4 -4
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +22 -22
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +3 -3
- package/src/Result.ts +105 -51
- package/src/Runtime.ts +11 -8
- package/src/Schedule.ts +157 -90
- package/src/Scheduler.ts +6 -4
- package/src/Schema.ts +1020 -1108
- package/src/SchemaAST.ts +149 -118
- package/src/SchemaGetter.ts +155 -134
- package/src/SchemaIssue.ts +39 -41
- package/src/SchemaParser.ts +176 -232
- package/src/SchemaRepresentation.ts +38 -28
- package/src/SchemaTransformation.ts +233 -207
- package/src/SchemaUtils.ts +2 -2
- package/src/Scope.ts +16 -1
- package/src/ScopedCache.ts +1 -1
- package/src/ScopedRef.ts +14 -18
- package/src/Semaphore.ts +9 -9
- package/src/Sink.ts +18 -18
- package/src/Stdio.ts +4 -5
- package/src/Stream.ts +411 -114
- package/src/String.ts +11 -14
- package/src/Struct.ts +23 -21
- package/src/SubscriptionRef.ts +24 -19
- package/src/SynchronizedRef.ts +145 -120
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +9 -9
- package/src/Trie.ts +15 -0
- package/src/Tuple.ts +39 -33
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/TxReentrantLock.ts +6 -3
- package/src/TxRef.ts +16 -16
- package/src/TxSubscriptionRef.ts +43 -27
- package/src/Types.ts +12 -39
- package/src/UndefinedOr.ts +15 -14
- package/src/Unify.ts +9 -9
- package/src/internal/schema/annotations.ts +4 -4
- package/src/internal/schema/arbitrary.ts +16 -16
- package/src/internal/schema/equivalence.ts +11 -11
- package/src/internal/schema/representation.ts +23 -23
- package/src/internal/schema/schema.ts +17 -17
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/testing/TestSchema.ts +20 -20
- package/src/unstable/ai/AiError.ts +4 -2
- package/src/unstable/ai/AnthropicStructuredOutput.ts +59 -56
- package/src/unstable/ai/Chat.ts +6 -7
- package/src/unstable/ai/EmbeddingModel.ts +5 -5
- package/src/unstable/ai/IdGenerator.ts +4 -5
- package/src/unstable/ai/LanguageModel.ts +9 -8
- package/src/unstable/ai/McpSchema.ts +19 -17
- package/src/unstable/ai/McpServer.ts +14 -7
- package/src/unstable/ai/OpenAiStructuredOutput.ts +72 -61
- package/src/unstable/ai/Prompt.ts +20 -20
- package/src/unstable/ai/ResponseIdTracker.ts +3 -2
- package/src/unstable/ai/Telemetry.ts +26 -11
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +17 -16
- package/src/unstable/ai/Toolkit.ts +2 -2
- package/src/unstable/cli/Command.ts +42 -17
- package/src/unstable/cli/Completions.ts +1 -1
- package/src/unstable/cli/Flag.ts +7 -6
- package/src/unstable/cli/GlobalFlag.ts +7 -1
- package/src/unstable/cli/Param.ts +24 -19
- package/src/unstable/cli/Primitive.ts +6 -5
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/ClusterCron.ts +1 -2
- package/src/unstable/cluster/ClusterMetrics.ts +5 -0
- package/src/unstable/cluster/ClusterSchema.ts +3 -3
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +15 -15
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/EntityResource.ts +10 -0
- package/src/unstable/cluster/Envelope.ts +3 -3
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Reply.ts +14 -12
- package/src/unstable/cluster/RunnerHealth.ts +2 -1
- package/src/unstable/cluster/RunnerServer.ts +2 -2
- package/src/unstable/cluster/Runners.ts +4 -4
- package/src/unstable/cluster/ShardId.ts +3 -3
- package/src/unstable/cluster/Sharding.ts +4 -4
- package/src/unstable/cluster/ShardingConfig.ts +4 -4
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +8 -8
- package/src/unstable/cluster/internal/entityManager.ts +2 -2
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/encoding/Msgpack.ts +6 -6
- package/src/unstable/encoding/Ndjson.ts +5 -0
- package/src/unstable/encoding/Sse.ts +2 -2
- package/src/unstable/eventlog/EventGroup.ts +2 -1
- package/src/unstable/eventlog/EventJournal.ts +10 -0
- package/src/unstable/eventlog/EventLog.ts +4 -4
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +2 -3
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -10
- package/src/unstable/eventlog/EventLogSessionAuth.ts +4 -4
- package/src/unstable/http/Cookies.ts +5 -5
- package/src/unstable/http/Etag.ts +3 -4
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/Headers.ts +2 -2
- package/src/unstable/http/HttpBody.ts +2 -2
- package/src/unstable/http/HttpClient.ts +3 -3
- package/src/unstable/http/HttpClientRequest.ts +32 -5
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +5 -5
- package/src/unstable/http/HttpServerResponse.ts +28 -23
- package/src/unstable/http/Multipart.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/http/UrlParams.ts +36 -6
- package/src/unstable/httpapi/HttpApi.ts +6 -5
- package/src/unstable/httpapi/HttpApiBuilder.ts +14 -13
- package/src/unstable/httpapi/HttpApiClient.ts +16 -16
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/httpapi/HttpApiMiddleware.ts +3 -3
- package/src/unstable/httpapi/HttpApiSchema.ts +15 -15
- package/src/unstable/httpapi/OpenApi.ts +18 -18
- package/src/unstable/observability/OtlpResource.ts +5 -0
- package/src/unstable/observability/PrometheusMetrics.ts +8 -6
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +4 -4
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +5 -5
- package/src/unstable/rpc/RpcSerialization.ts +2 -2
- package/src/unstable/schema/Model.ts +7 -7
- package/src/unstable/schema/VariantSchema.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/SqlSchema.ts +4 -4
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +7 -7
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +8 -8
- package/src/unstable/workflow/DurableQueue.ts +1 -2
- package/src/unstable/workflow/Workflow.ts +159 -114
- package/src/unstable/workflow/WorkflowEngine.ts +16 -8
- package/src/unstable/workflow/WorkflowProxy.ts +9 -11
- package/src/unstable/workflow/WorkflowProxyServer.ts +7 -7
package/dist/Stream.js
CHANGED
|
@@ -169,7 +169,7 @@ export const isStream = u => hasProperty(u, TypeId);
|
|
|
169
169
|
* // Output: 4096
|
|
170
170
|
* ```
|
|
171
171
|
*
|
|
172
|
-
* @category
|
|
172
|
+
* @category constants
|
|
173
173
|
* @since 2.0.0
|
|
174
174
|
*/
|
|
175
175
|
export const DefaultChunkSize = Channel.DefaultChunkSize;
|
|
@@ -246,7 +246,7 @@ export const fromEffect = effect => fromChannel(Channel.fromEffect(Effect.map(ef
|
|
|
246
246
|
* // Output: [ "Hello, World!" ]
|
|
247
247
|
* ```
|
|
248
248
|
*
|
|
249
|
-
* @category
|
|
249
|
+
* @category context
|
|
250
250
|
* @since 4.0.0
|
|
251
251
|
*/
|
|
252
252
|
export const service = service => fromEffect(Effect.service(service));
|
|
@@ -256,8 +256,8 @@ export const service = service => fromEffect(Effect.service(service));
|
|
|
256
256
|
*
|
|
257
257
|
* **When to use**
|
|
258
258
|
*
|
|
259
|
-
* Use
|
|
260
|
-
*
|
|
259
|
+
* Use when you need a stream that emits an optional service from the context
|
|
260
|
+
* without requiring that service to be present.
|
|
261
261
|
*
|
|
262
262
|
* **Example** (Accessing an optional service as a stream)
|
|
263
263
|
*
|
|
@@ -290,7 +290,7 @@ export const service = service => fromEffect(Effect.service(service));
|
|
|
290
290
|
* // Output: [ "Hello, World!" ]
|
|
291
291
|
* ```
|
|
292
292
|
*
|
|
293
|
-
* @category
|
|
293
|
+
* @category context
|
|
294
294
|
* @since 4.0.0
|
|
295
295
|
*/
|
|
296
296
|
export const serviceOption = service => fromEffect(Effect.serviceOption(service));
|
|
@@ -539,8 +539,8 @@ export const toChannel = stream => stream.channel;
|
|
|
539
539
|
*
|
|
540
540
|
* **When to use**
|
|
541
541
|
*
|
|
542
|
-
* Use when you
|
|
543
|
-
*
|
|
542
|
+
* Use when you need callback-based code to emit stream values by offering to a
|
|
543
|
+
* `Queue`, or signal stream completion through the `Queue` module APIs.
|
|
544
544
|
*
|
|
545
545
|
* By default it uses an "unbounded" buffer size.
|
|
546
546
|
* You can customize the buffer size and strategy by passing an object as the
|
|
@@ -882,6 +882,11 @@ export const fromIterable = (iterable, options) => Array.isArray(iterable) && op
|
|
|
882
882
|
/**
|
|
883
883
|
* Creates a stream from an effect producing an iterable of values.
|
|
884
884
|
*
|
|
885
|
+
* **When to use**
|
|
886
|
+
*
|
|
887
|
+
* Use when the iterable must be acquired from an Effect before the stream emits,
|
|
888
|
+
* and acquisition services or failures should be part of the stream.
|
|
889
|
+
*
|
|
885
890
|
* **Example** (Creating a stream from an iterable effect)
|
|
886
891
|
*
|
|
887
892
|
* ```ts
|
|
@@ -964,6 +969,11 @@ export const fromArray = array => Arr.isReadonlyArrayNonEmpty(array) ? fromChann
|
|
|
964
969
|
/**
|
|
965
970
|
* Creates a stream from an effect that produces an array of values.
|
|
966
971
|
*
|
|
972
|
+
* **When to use**
|
|
973
|
+
*
|
|
974
|
+
* Use when the array must be acquired from an Effect before the stream emits,
|
|
975
|
+
* and acquisition services or failures should be part of the stream.
|
|
976
|
+
*
|
|
967
977
|
* **Example** (Creating a stream from an effect that produces an array of values)
|
|
968
978
|
*
|
|
969
979
|
* ```ts
|
|
@@ -1216,8 +1226,9 @@ export const fromSchedule = schedule => fromPull(Effect.map(Schedule.toStepWithS
|
|
|
1216
1226
|
*
|
|
1217
1227
|
* **When to use**
|
|
1218
1228
|
*
|
|
1219
|
-
* Use
|
|
1220
|
-
*
|
|
1229
|
+
* Use when you already have a `PubSub.Subscription` and want to expose its
|
|
1230
|
+
* messages as a `Stream`, with `Stream.take` or cancellation controlling how
|
|
1231
|
+
* many values are consumed.
|
|
1221
1232
|
*
|
|
1222
1233
|
* **Example** (Creating a stream from a PubSub subscription)
|
|
1223
1234
|
*
|
|
@@ -1594,6 +1605,11 @@ export const mapArray = /*#__PURE__*/dual(2, (self, f) => fromChannel(Channel.ma
|
|
|
1594
1605
|
/**
|
|
1595
1606
|
* Maps over elements of the stream with the specified effectful function.
|
|
1596
1607
|
*
|
|
1608
|
+
* **When to use**
|
|
1609
|
+
*
|
|
1610
|
+
* Use when each stream element transformation needs an Effect, service
|
|
1611
|
+
* dependency, failure channel, or configured concurrency.
|
|
1612
|
+
*
|
|
1597
1613
|
* **Example** (Effectfully mapping stream values)
|
|
1598
1614
|
*
|
|
1599
1615
|
* ```ts
|
|
@@ -1630,6 +1646,11 @@ export const mapEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, f,
|
|
|
1630
1646
|
/**
|
|
1631
1647
|
* Flattens a stream of `Effect` values into a stream of their results.
|
|
1632
1648
|
*
|
|
1649
|
+
* **When to use**
|
|
1650
|
+
*
|
|
1651
|
+
* Use when stream elements already are effects and their successes should become
|
|
1652
|
+
* stream elements while their failures enter the stream error channel.
|
|
1653
|
+
*
|
|
1633
1654
|
* **Example** (Flattening a stream of Effect values into a stream of their results)
|
|
1634
1655
|
*
|
|
1635
1656
|
* ```ts
|
|
@@ -1653,6 +1674,11 @@ export const flattenEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self,
|
|
|
1653
1674
|
/**
|
|
1654
1675
|
* Maps over non-empty array chunks emitted by the stream effectfully.
|
|
1655
1676
|
*
|
|
1677
|
+
* **When to use**
|
|
1678
|
+
*
|
|
1679
|
+
* Use when transformation needs to see and replace each non-empty emitted chunk
|
|
1680
|
+
* effectfully instead of mapping individual stream elements.
|
|
1681
|
+
*
|
|
1656
1682
|
* **Example** (Effectfully mapping stream chunks)
|
|
1657
1683
|
*
|
|
1658
1684
|
* ```ts
|
|
@@ -2341,13 +2367,18 @@ export const prepend = /*#__PURE__*/dual(2, (self, values) => concat(fromIterabl
|
|
|
2341
2367
|
* // Output: [ 1, 2, 3, 4 ]
|
|
2342
2368
|
* ```
|
|
2343
2369
|
*
|
|
2344
|
-
* @category
|
|
2370
|
+
* @category merging
|
|
2345
2371
|
* @since 2.0.0
|
|
2346
2372
|
*/
|
|
2347
2373
|
export const merge = /*#__PURE__*/dual(args => isStream(args[0]) && isStream(args[1]), (self, that, options) => fromChannel(Channel.merge(toChannel(self), toChannel(that), options)));
|
|
2348
2374
|
/**
|
|
2349
2375
|
* Merges this stream with a background effect, keeping the stream's elements.
|
|
2350
2376
|
*
|
|
2377
|
+
* **When to use**
|
|
2378
|
+
*
|
|
2379
|
+
* Use when an effect should run concurrently for the lifetime of a stream while
|
|
2380
|
+
* only the stream's elements remain in the output.
|
|
2381
|
+
*
|
|
2351
2382
|
* **Details**
|
|
2352
2383
|
*
|
|
2353
2384
|
* The effect runs concurrently, fails the stream if it fails, and is interrupted
|
|
@@ -2372,7 +2403,7 @@ export const merge = /*#__PURE__*/dual(args => isStream(args[0]) && isStream(arg
|
|
|
2372
2403
|
* // Output: [ 1, 2, 3 ]
|
|
2373
2404
|
* ```
|
|
2374
2405
|
*
|
|
2375
|
-
* @category
|
|
2406
|
+
* @category merging
|
|
2376
2407
|
* @since 4.0.0
|
|
2377
2408
|
*/
|
|
2378
2409
|
export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => self.channel.pipe(Channel.mergeEffect(effect), fromChannel));
|
|
@@ -2380,6 +2411,12 @@ export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => self.channel.p
|
|
|
2380
2411
|
* Merges this stream and the specified stream together, tagging values from the
|
|
2381
2412
|
* left stream as `Result.succeed` and values from the right stream as `Result.fail`.
|
|
2382
2413
|
*
|
|
2414
|
+
* **When to use**
|
|
2415
|
+
*
|
|
2416
|
+
* Use when values from both streams should be emitted and downstream code needs
|
|
2417
|
+
* left values wrapped as successful `Result` values and right values wrapped as
|
|
2418
|
+
* failed `Result` values.
|
|
2419
|
+
*
|
|
2383
2420
|
* **Example** (Merging streams into results)
|
|
2384
2421
|
*
|
|
2385
2422
|
* ```ts
|
|
@@ -2407,13 +2444,18 @@ export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => self.channel.p
|
|
|
2407
2444
|
* // Output: [ "left:left", "right:right" ]
|
|
2408
2445
|
* ```
|
|
2409
2446
|
*
|
|
2410
|
-
* @category
|
|
2447
|
+
* @category merging
|
|
2411
2448
|
* @since 4.0.0
|
|
2412
2449
|
*/
|
|
2413
2450
|
export const mergeResult = /*#__PURE__*/dual(2, (self, that) => merge(map(self, Result.succeed), map(that, Result.fail)));
|
|
2414
2451
|
/**
|
|
2415
2452
|
* Merges two streams while emitting only the values from the left stream.
|
|
2416
2453
|
*
|
|
2454
|
+
* **When to use**
|
|
2455
|
+
*
|
|
2456
|
+
* Use when the right stream is needed for its effects or failures, but downstream
|
|
2457
|
+
* consumers should only receive values from the left stream.
|
|
2458
|
+
*
|
|
2417
2459
|
* **Details**
|
|
2418
2460
|
*
|
|
2419
2461
|
* The right stream still runs for its effects, and any failures from the right
|
|
@@ -2436,7 +2478,7 @@ export const mergeResult = /*#__PURE__*/dual(2, (self, that) => merge(map(self,
|
|
|
2436
2478
|
* // Output: [ 1, 2 ]
|
|
2437
2479
|
* ```
|
|
2438
2480
|
*
|
|
2439
|
-
* @category
|
|
2481
|
+
* @category merging
|
|
2440
2482
|
* @since 2.0.0
|
|
2441
2483
|
*/
|
|
2442
2484
|
export const mergeLeft = /*#__PURE__*/dual(2, (left, right) => mergeEffect(left, runDrain(right)));
|
|
@@ -2444,6 +2486,11 @@ export const mergeLeft = /*#__PURE__*/dual(2, (left, right) => mergeEffect(left,
|
|
|
2444
2486
|
* Merges this stream and the specified stream together, emitting only the
|
|
2445
2487
|
* values from the right stream while the left stream runs for its effects.
|
|
2446
2488
|
*
|
|
2489
|
+
* **When to use**
|
|
2490
|
+
*
|
|
2491
|
+
* Use when the left stream is needed for its effects or failures, but downstream
|
|
2492
|
+
* consumers should only receive values from the right stream.
|
|
2493
|
+
*
|
|
2447
2494
|
* **Details**
|
|
2448
2495
|
*
|
|
2449
2496
|
* The merged stream ends when the right stream completes, interrupting the
|
|
@@ -2470,7 +2517,7 @@ export const mergeLeft = /*#__PURE__*/dual(2, (left, right) => mergeEffect(left,
|
|
|
2470
2517
|
* // Output: [ 1, 2 ]
|
|
2471
2518
|
* ```
|
|
2472
2519
|
*
|
|
2473
|
-
* @category
|
|
2520
|
+
* @category merging
|
|
2474
2521
|
* @since 2.0.0
|
|
2475
2522
|
*/
|
|
2476
2523
|
export const mergeRight = /*#__PURE__*/dual(2, (left, right) => mergeEffect(right, runDrain(left)));
|
|
@@ -2512,7 +2559,7 @@ export const mergeRight = /*#__PURE__*/dual(2, (left, right) => mergeEffect(righ
|
|
|
2512
2559
|
* @see {@link merge} for merging exactly two streams and choosing a halt strategy
|
|
2513
2560
|
* @see {@link flatten} for flattening a stream that already emits streams
|
|
2514
2561
|
*
|
|
2515
|
-
* @category
|
|
2562
|
+
* @category merging
|
|
2516
2563
|
* @since 2.0.0
|
|
2517
2564
|
*/
|
|
2518
2565
|
export const mergeAll = /*#__PURE__*/dual(2, (streams, options) => flatten(fromIterable(streams), options));
|
|
@@ -2958,6 +3005,11 @@ export const zipWithPreviousAndNext = self => mapAccumArray(self, () => ({
|
|
|
2958
3005
|
* Zips multiple streams so that when a value is emitted by any stream, it is
|
|
2959
3006
|
* combined with the latest values from the other streams to produce a result.
|
|
2960
3007
|
*
|
|
3008
|
+
* **When to use**
|
|
3009
|
+
*
|
|
3010
|
+
* Use when each stream should contribute its latest value after all streams have
|
|
3011
|
+
* emitted at least once.
|
|
3012
|
+
*
|
|
2961
3013
|
* **Gotchas**
|
|
2962
3014
|
*
|
|
2963
3015
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
@@ -3009,6 +3061,11 @@ export const zipLatestAll = (...streams) => fromChannel(Channel.suspend(() => {
|
|
|
3009
3061
|
/**
|
|
3010
3062
|
* Combines two streams by emitting each new element with the latest value from the other stream.
|
|
3011
3063
|
*
|
|
3064
|
+
* **When to use**
|
|
3065
|
+
*
|
|
3066
|
+
* Use when two streams should start emitting combined pairs after both have
|
|
3067
|
+
* produced at least one value.
|
|
3068
|
+
*
|
|
3012
3069
|
* **Gotchas**
|
|
3013
3070
|
*
|
|
3014
3071
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
@@ -3039,6 +3096,11 @@ export const zipLatest = /*#__PURE__*/dual(2, (left, right) => zipLatestAll(left
|
|
|
3039
3096
|
* Combines the latest values from both streams whenever either emits, using
|
|
3040
3097
|
* the provided function.
|
|
3041
3098
|
*
|
|
3099
|
+
* **When to use**
|
|
3100
|
+
*
|
|
3101
|
+
* Use when two streams should start emitting custom combined values after both
|
|
3102
|
+
* have produced at least one value.
|
|
3103
|
+
*
|
|
3042
3104
|
* **Gotchas**
|
|
3043
3105
|
*
|
|
3044
3106
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
@@ -3096,7 +3158,7 @@ export const zipLatestWith = /*#__PURE__*/dual(3, (left, right, f) => map(zipLat
|
|
|
3096
3158
|
* // Output: [ 0, 1, 2 ]
|
|
3097
3159
|
* ```
|
|
3098
3160
|
*
|
|
3099
|
-
* @category
|
|
3161
|
+
* @category racing
|
|
3100
3162
|
* @since 3.5.0
|
|
3101
3163
|
*/
|
|
3102
3164
|
export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, scope) => Effect.sync(() => {
|
|
@@ -3145,7 +3207,7 @@ export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, sco
|
|
|
3145
3207
|
* // Output: [ 0, 1, 2 ]
|
|
3146
3208
|
* ```
|
|
3147
3209
|
*
|
|
3148
|
-
* @category
|
|
3210
|
+
* @category racing
|
|
3149
3211
|
* @since 3.7.0
|
|
3150
3212
|
*/
|
|
3151
3213
|
export const race = /*#__PURE__*/dual(2, (left, right) => raceAll(left, right));
|
|
@@ -3323,8 +3385,8 @@ export const partitionQueue = /*#__PURE__*/dual(args => isStream(args[0]), /*#__
|
|
|
3323
3385
|
*
|
|
3324
3386
|
* **When to use**
|
|
3325
3387
|
*
|
|
3326
|
-
* Use when each stream element
|
|
3327
|
-
* both passing and failing mapped values
|
|
3388
|
+
* Use when you need to classify each stream element with an effectful `Filter`
|
|
3389
|
+
* and consume both passing and failing mapped values as streams.
|
|
3328
3390
|
*
|
|
3329
3391
|
* **Details**
|
|
3330
3392
|
*
|
|
@@ -3688,8 +3750,8 @@ export const catchFilter = /*#__PURE__*/dual(args => isStream(args[0]), (self, f
|
|
|
3688
3750
|
*
|
|
3689
3751
|
* **When to use**
|
|
3690
3752
|
*
|
|
3691
|
-
* Use when
|
|
3692
|
-
*
|
|
3753
|
+
* Use when you need to handle a specific error case from a stream whose error
|
|
3754
|
+
* type is a tagged union with a readonly `_tag` field.
|
|
3693
3755
|
*
|
|
3694
3756
|
* **Example** (Catching tagged failures)
|
|
3695
3757
|
*
|
|
@@ -3770,7 +3832,11 @@ export const catchTags = /*#__PURE__*/dual(args => isStream(args[0]), (self, cas
|
|
|
3770
3832
|
* **When to use**
|
|
3771
3833
|
*
|
|
3772
3834
|
* Use to handle nested error causes without removing the parent error
|
|
3773
|
-
* from the error channel.
|
|
3835
|
+
* from the error channel.
|
|
3836
|
+
*
|
|
3837
|
+
* **Details**
|
|
3838
|
+
*
|
|
3839
|
+
* The handler receives the unwrapped reason.
|
|
3774
3840
|
*
|
|
3775
3841
|
* **Example** (Catching a tagged error reason)
|
|
3776
3842
|
*
|
|
@@ -3923,7 +3989,7 @@ export const catchCauseIf = /*#__PURE__*/dual(3, (self, predicate, f) => fromCha
|
|
|
3923
3989
|
* **When to use**
|
|
3924
3990
|
*
|
|
3925
3991
|
* Use when you need to recover a stream only from causes selected by a
|
|
3926
|
-
* `Filter`,
|
|
3992
|
+
* `Filter`, while giving the recovery both the selected value and the original
|
|
3927
3993
|
* `Cause`.
|
|
3928
3994
|
*
|
|
3929
3995
|
* **Details**
|
|
@@ -4020,8 +4086,12 @@ export const orDie = self => fromChannel(Channel.orDie(self.channel));
|
|
|
4020
4086
|
* **When to use**
|
|
4021
4087
|
*
|
|
4022
4088
|
* Use when you want a failing stream to end gracefully rather than propagate
|
|
4023
|
-
* the error.
|
|
4024
|
-
*
|
|
4089
|
+
* the error.
|
|
4090
|
+
*
|
|
4091
|
+
* **Details**
|
|
4092
|
+
*
|
|
4093
|
+
* The `log` option controls whether the failure is logged before the stream
|
|
4094
|
+
* terminates.
|
|
4025
4095
|
*
|
|
4026
4096
|
* **Example** (Ignoring stream failures)
|
|
4027
4097
|
*
|
|
@@ -4068,9 +4138,8 @@ export const ignore = /*#__PURE__*/dual(args => isStream(args[0]), (self, option
|
|
|
4068
4138
|
*
|
|
4069
4139
|
* **When to use**
|
|
4070
4140
|
*
|
|
4071
|
-
* Use when
|
|
4072
|
-
*
|
|
4073
|
-
* propagate it downstream.
|
|
4141
|
+
* Use when you need to silently suppress a stream's entire failure cause,
|
|
4142
|
+
* including both typed errors and defects, rather than propagate it downstream.
|
|
4074
4143
|
*
|
|
4075
4144
|
* **Example** (Ignoring stream failure causes)
|
|
4076
4145
|
*
|
|
@@ -4333,6 +4402,11 @@ export const takeUntil = /*#__PURE__*/dual(args => isStream(args[0]), (self, pre
|
|
|
4333
4402
|
/**
|
|
4334
4403
|
* Takes stream elements until an effectful predicate returns `true`.
|
|
4335
4404
|
*
|
|
4405
|
+
* **When to use**
|
|
4406
|
+
*
|
|
4407
|
+
* Use when the stopping condition needs an Effect or service and predicate
|
|
4408
|
+
* failure should fail the stream.
|
|
4409
|
+
*
|
|
4336
4410
|
* **Example** (Taking until an effectful predicate matches)
|
|
4337
4411
|
*
|
|
4338
4412
|
* ```ts
|
|
@@ -4448,6 +4522,11 @@ export const takeWhileFilter = /*#__PURE__*/dual(2, (self, filter) => transformP
|
|
|
4448
4522
|
/**
|
|
4449
4523
|
* Takes elements from the stream while the effectful predicate is `true`.
|
|
4450
4524
|
*
|
|
4525
|
+
* **When to use**
|
|
4526
|
+
*
|
|
4527
|
+
* Use when the leading-prefix predicate needs an Effect or service and the
|
|
4528
|
+
* stream should stop before the first false result.
|
|
4529
|
+
*
|
|
4451
4530
|
* **Example** (Effectfully taking while a predicate holds)
|
|
4452
4531
|
*
|
|
4453
4532
|
* ```ts
|
|
@@ -4530,9 +4609,10 @@ export const dropUntil = /*#__PURE__*/dual(2, (self, predicate) => drop(dropWhil
|
|
|
4530
4609
|
* Drops all elements of the stream until the specified effectful predicate
|
|
4531
4610
|
* evaluates to `true`.
|
|
4532
4611
|
*
|
|
4533
|
-
* **
|
|
4612
|
+
* **When to use**
|
|
4534
4613
|
*
|
|
4535
|
-
*
|
|
4614
|
+
* Use when dropping the leading prefix requires an Effect or service and the
|
|
4615
|
+
* first matching element should also be dropped.
|
|
4536
4616
|
*
|
|
4537
4617
|
* **Example** (Dropping until an effectful predicate matches)
|
|
4538
4618
|
*
|
|
@@ -4949,7 +5029,7 @@ export const split = /*#__PURE__*/dual(2, (self, predicate) => mapAccumArray(sel
|
|
|
4949
5029
|
* // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ]
|
|
4950
5030
|
* ```
|
|
4951
5031
|
*
|
|
4952
|
-
* @category
|
|
5032
|
+
* @category merging
|
|
4953
5033
|
* @since 2.0.0
|
|
4954
5034
|
*/
|
|
4955
5035
|
export const combine = /*#__PURE__*/dual(4, (self, that, s, f) => Channel.combine(Channel.flattenArray(self.channel), Channel.flattenArray(that.channel), s, f).pipe(Channel.map(Arr.of), fromChannel));
|
|
@@ -5084,6 +5164,11 @@ const emptyArr = /*#__PURE__*/Arr.empty();
|
|
|
5084
5164
|
* Maps each element statefully and effectfully, emitting zero or more output
|
|
5085
5165
|
* values per input.
|
|
5086
5166
|
*
|
|
5167
|
+
* **When to use**
|
|
5168
|
+
*
|
|
5169
|
+
* Use when stateful element mapping needs Effects or can fail while emitting
|
|
5170
|
+
* zero or more values per input element.
|
|
5171
|
+
*
|
|
5087
5172
|
* **Details**
|
|
5088
5173
|
*
|
|
5089
5174
|
* The mapping effect receives the current state and element, then returns the
|
|
@@ -5123,6 +5208,11 @@ export const mapAccumEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self
|
|
|
5123
5208
|
* Maps each non-empty input chunk statefully and effectfully, emitting zero or
|
|
5124
5209
|
* more output values per chunk.
|
|
5125
5210
|
*
|
|
5211
|
+
* **When to use**
|
|
5212
|
+
*
|
|
5213
|
+
* Use when stateful mapping should process each emitted non-empty chunk with an
|
|
5214
|
+
* Effect instead of each element separately.
|
|
5215
|
+
*
|
|
5126
5216
|
* **Details**
|
|
5127
5217
|
*
|
|
5128
5218
|
* The mapping effect receives the current state and chunk, then returns the
|
|
@@ -5623,9 +5713,9 @@ const groupByImpl = (self, f, options) => transformPullBracket(self, Effect.fnUn
|
|
|
5623
5713
|
*
|
|
5624
5714
|
* **When to use**
|
|
5625
5715
|
*
|
|
5626
|
-
* Use when a stream
|
|
5627
|
-
* each consecutive run as a non-empty array while keeping later
|
|
5628
|
-
* runs separate.
|
|
5716
|
+
* Use when you already have a stream ordered by the grouping key and want to
|
|
5717
|
+
* emit each consecutive run as a non-empty array while keeping later
|
|
5718
|
+
* non-adjacent runs separate.
|
|
5629
5719
|
*
|
|
5630
5720
|
* **Details**
|
|
5631
5721
|
*
|
|
@@ -6397,7 +6487,7 @@ export const intersperseAffixes = /*#__PURE__*/dual(2, (self, options) => succee
|
|
|
6397
6487
|
* // [2, 5, 3, 6, 7]
|
|
6398
6488
|
* ```
|
|
6399
6489
|
*
|
|
6400
|
-
* @category
|
|
6490
|
+
* @category merging
|
|
6401
6491
|
* @since 2.0.0
|
|
6402
6492
|
*/
|
|
6403
6493
|
export const interleave = /*#__PURE__*/dual(2, (self, that) => interleaveWith(self, that, fromIterable(Iterable.forever([true, false]))));
|
|
@@ -6430,7 +6520,7 @@ export const interleave = /*#__PURE__*/dual(2, (self, that) => interleaveWith(se
|
|
|
6430
6520
|
* // [ 1, 2, 4, 3, 5 ]
|
|
6431
6521
|
* ```
|
|
6432
6522
|
*
|
|
6433
|
-
* @category
|
|
6523
|
+
* @category merging
|
|
6434
6524
|
* @since 2.0.0
|
|
6435
6525
|
*/
|
|
6436
6526
|
export const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => fromChannel(Channel.fromTransform(Effect.fnUntraced(function* (upstream, scope) {
|
|
@@ -6495,7 +6585,7 @@ export const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => from
|
|
|
6495
6585
|
* // => [1, 2]
|
|
6496
6586
|
* ```
|
|
6497
6587
|
*
|
|
6498
|
-
* @category
|
|
6588
|
+
* @category interruption
|
|
6499
6589
|
* @since 2.0.0
|
|
6500
6590
|
*/
|
|
6501
6591
|
export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(Channel.interruptWhen(self.channel, effect)));
|
|
@@ -6536,7 +6626,7 @@ export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(
|
|
|
6536
6626
|
* // [1, 2]
|
|
6537
6627
|
* ```
|
|
6538
6628
|
*
|
|
6539
|
-
* @category
|
|
6629
|
+
* @category interruption
|
|
6540
6630
|
* @since 2.0.0
|
|
6541
6631
|
*/
|
|
6542
6632
|
export const haltWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(Channel.haltWhen(self.channel, effect)));
|
|
@@ -6970,7 +7060,7 @@ export const withSpan = function () {
|
|
|
6970
7060
|
* //=> [{ value: 1, next: 2 }, { value: 2, next: 3 }]
|
|
6971
7061
|
* ```
|
|
6972
7062
|
*
|
|
6973
|
-
* @category
|
|
7063
|
+
* @category do notation
|
|
6974
7064
|
* @since 2.0.0
|
|
6975
7065
|
*/
|
|
6976
7066
|
export const Do = /*#__PURE__*/succeed({});
|
|
@@ -7001,7 +7091,7 @@ export {
|
|
|
7001
7091
|
* // [{ x: 2, y: 6 }]
|
|
7002
7092
|
* ```
|
|
7003
7093
|
*
|
|
7004
|
-
* @category
|
|
7094
|
+
* @category do notation
|
|
7005
7095
|
* @since 2.0.0
|
|
7006
7096
|
*/
|
|
7007
7097
|
let_ as let };
|
|
@@ -7024,7 +7114,7 @@ let_ as let };
|
|
|
7024
7114
|
* // [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
|
7025
7115
|
* ```
|
|
7026
7116
|
*
|
|
7027
|
-
* @category
|
|
7117
|
+
* @category do notation
|
|
7028
7118
|
* @since 2.0.0
|
|
7029
7119
|
*/
|
|
7030
7120
|
export const bind = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f, options) => flatMap(self, a => map(f(a), b => ({
|
|
@@ -7053,7 +7143,7 @@ export const bind = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f,
|
|
|
7053
7143
|
* // [{ value: 1, double: 2 }, { value: 2, double: 4 }]
|
|
7054
7144
|
* ```
|
|
7055
7145
|
*
|
|
7056
|
-
* @category
|
|
7146
|
+
* @category do notation
|
|
7057
7147
|
* @since 2.0.0
|
|
7058
7148
|
*/
|
|
7059
7149
|
export const bindEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f, options) => mapEffect(self, a => Effect.map(f(a), b => ({
|
|
@@ -7076,7 +7166,7 @@ export const bindEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, ta
|
|
|
7076
7166
|
* // [{ value: 1 }, { value: 2 }, { value: 3 }]
|
|
7077
7167
|
* ```
|
|
7078
7168
|
*
|
|
7079
|
-
* @category
|
|
7169
|
+
* @category do notation
|
|
7080
7170
|
* @since 2.0.0
|
|
7081
7171
|
*/
|
|
7082
7172
|
export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, a => ({
|
|
@@ -7210,6 +7300,11 @@ export const runFold = /*#__PURE__*/dual(3, (self, initial, f) => Channel.runFol
|
|
|
7210
7300
|
/**
|
|
7211
7301
|
* Runs the stream and folds elements using an effectful reducer.
|
|
7212
7302
|
*
|
|
7303
|
+
* **When to use**
|
|
7304
|
+
*
|
|
7305
|
+
* Use when reducing stream elements needs Effects, services, or failures in the
|
|
7306
|
+
* reducer.
|
|
7307
|
+
*
|
|
7213
7308
|
* **Example** (Effectfully folding stream values)
|
|
7214
7309
|
*
|
|
7215
7310
|
* ```ts
|
|
@@ -7510,6 +7605,11 @@ export const mkUint8Array = self => Effect.map(Channel.runFold(self.channel, ()
|
|
|
7510
7605
|
/**
|
|
7511
7606
|
* Converts the stream to a `ReadableStream` using the provided services.
|
|
7512
7607
|
*
|
|
7608
|
+
* **When to use**
|
|
7609
|
+
*
|
|
7610
|
+
* Use when bridging to Web Streams and you already have the `Context` required
|
|
7611
|
+
* to run the stream outside an `Effect`.
|
|
7612
|
+
*
|
|
7513
7613
|
* **Details**
|
|
7514
7614
|
*
|
|
7515
7615
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
@@ -7583,6 +7683,11 @@ export const toReadableStream = /*#__PURE__*/dual(args => isStream(args[0]), (se
|
|
|
7583
7683
|
/**
|
|
7584
7684
|
* Creates an Effect that builds a ReadableStream from the stream.
|
|
7585
7685
|
*
|
|
7686
|
+
* **When to use**
|
|
7687
|
+
*
|
|
7688
|
+
* Use when bridging to Web Streams from inside an `Effect` so the required
|
|
7689
|
+
* services can be captured from the current context.
|
|
7690
|
+
*
|
|
7586
7691
|
* **Details**
|
|
7587
7692
|
*
|
|
7588
7693
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
@@ -7609,6 +7714,11 @@ export const toReadableStreamEffect = /*#__PURE__*/dual(args => isStream(args[0]
|
|
|
7609
7714
|
/**
|
|
7610
7715
|
* Converts the stream to an `AsyncIterable` using the provided services.
|
|
7611
7716
|
*
|
|
7717
|
+
* **When to use**
|
|
7718
|
+
*
|
|
7719
|
+
* Use when converting outside an Effect and you already have the `Context`
|
|
7720
|
+
* needed to run the stream.
|
|
7721
|
+
*
|
|
7612
7722
|
* **Example** (Converting to an AsyncIterable with services)
|
|
7613
7723
|
*
|
|
7614
7724
|
* ```ts
|
|
@@ -7671,6 +7781,11 @@ export const toAsyncIterableWith = /*#__PURE__*/dual(2, (self, context) => ({
|
|
|
7671
7781
|
/**
|
|
7672
7782
|
* Creates an effect that yields an `AsyncIterable` using the current services.
|
|
7673
7783
|
*
|
|
7784
|
+
* **When to use**
|
|
7785
|
+
*
|
|
7786
|
+
* Use when the `AsyncIterable` should be created inside Effect with the current
|
|
7787
|
+
* context supplying the stream's services.
|
|
7788
|
+
*
|
|
7674
7789
|
* **Example** (Creating an AsyncIterable effect)
|
|
7675
7790
|
*
|
|
7676
7791
|
* ```ts
|