effect 4.0.0-beta.70 → 4.0.0-beta.71
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 +1428 -138
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +595 -126
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +594 -8
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +307 -8
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +457 -3
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +279 -3
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +229 -7
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +155 -5
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +51 -5
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +80 -8
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +64 -3
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +50 -12
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +475 -183
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +336 -114
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +398 -59
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +166 -47
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +78 -3
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +44 -3
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +112 -0
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +32 -0
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +57 -0
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +30 -0
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +15 -11
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +8 -8
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +126 -40
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +102 -29
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +48 -25
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +17 -17
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +22 -1
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +22 -1
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +491 -36
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +185 -11
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +110 -1
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +86 -1
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +29 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +29 -0
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +77 -26
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +10 -7
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +149 -6
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +81 -2
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +340 -74
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +128 -9
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +5 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +164 -11
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +91 -11
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +1822 -537
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +684 -224
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +14 -0
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +14 -0
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +89 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +131 -1
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +7 -7
- package/dist/Equal.js +5 -5
- package/dist/Equivalence.d.ts +41 -24
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +38 -21
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +123 -5
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +85 -5
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +89 -24
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +21 -0
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +128 -82
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +106 -69
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +317 -68
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +150 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/FileSystem.d.ts +69 -10
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +85 -29
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +221 -2
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +155 -2
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +3 -3
- package/dist/Formatter.js +2 -2
- package/dist/Function.d.ts +152 -6
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +104 -3
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +275 -3
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +63 -0
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +55 -23
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +92 -16
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +116 -14
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +2 -2
- package/dist/HashMap.js +2 -2
- package/dist/HashRing.d.ts +203 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +92 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/Inspectable.d.ts +43 -0
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +70 -13
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +179 -25
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +95 -23
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +33 -18
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +51 -43
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +2 -2
- package/dist/JsonPointer.js +2 -2
- package/dist/JsonSchema.d.ts +64 -10
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +32 -8
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +156 -11
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +77 -2
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +250 -74
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +71 -21
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +8 -0
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +93 -18
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +65 -6
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +19 -5
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +24 -11
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +81 -9
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +32 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +185 -7
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +212 -24
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +33 -20
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +26 -13
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +272 -21
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +123 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +107 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +96 -37
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +10 -2
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +10 -2
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +136 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +70 -0
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +20 -11
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +6 -6
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +20 -4
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +5 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +417 -2
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +255 -2
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +17 -17
- package/dist/Optic.js +12 -12
- package/dist/Option.d.ts +168 -129
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +67 -63
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +82 -82
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +138 -109
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +32 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +19 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +238 -11
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +107 -5
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +35 -4
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +21 -4
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +27 -2
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +14 -2
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +53 -4
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +45 -4
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +140 -14
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +63 -8
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +96 -87
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +107 -73
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +74 -8
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +69 -8
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +94 -20
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +94 -20
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +147 -2
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +68 -1
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +127 -35
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +127 -35
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +71 -16
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +35 -0
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +168 -6
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +48 -2
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +73 -18
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +23 -3
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +95 -1
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +95 -1
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +20 -16
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +15 -11
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +82 -4
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +64 -4
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +17 -5
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +2 -2
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +156 -20
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +125 -20
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +208 -12
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +144 -5
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +13 -0
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +47 -1
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +215 -32
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +54 -7
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +202 -15
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +94 -5
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +62 -3
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +52 -3
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +328 -23
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +132 -12
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +123 -13
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +149 -24
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +418 -93
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +334 -97
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +50 -1
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +39 -0
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +467 -42
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +248 -48
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +205 -2
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +205 -2
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +123 -123
- package/dist/SchemaGetter.js +111 -111
- package/dist/SchemaIssue.d.ts +25 -24
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +19 -19
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +238 -3
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +279 -21
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +61 -17
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +58 -14
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +76 -38
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +73 -35
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +9 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +38 -11
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +79 -14
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +63 -14
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +352 -7
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +151 -3
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +67 -5
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +47 -3
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +347 -28
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +102 -7
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +307 -4
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +173 -2
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +69 -15
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +60 -15
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +516 -65
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +234 -33
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +173 -2
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +149 -2
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +19 -10
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +13 -4
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +73 -14
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +72 -13
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +24 -6
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +24 -6
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +502 -2
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +184 -2
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +36 -13
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js +5 -0
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +68 -17
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +33 -2
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +49 -0
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +49 -0
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +48 -9
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +70 -35
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +32 -21
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +40 -7
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +40 -7
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +85 -2
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +56 -2
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +29 -2
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +29 -2
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +94 -4
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +66 -4
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +48 -7
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +40 -4
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +40 -4
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +112 -7
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +81 -7
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +173 -14
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +130 -14
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +205 -2
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +110 -2
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +60 -6
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +171 -30
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +115 -30
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +120 -12
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +36 -12
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +20 -14
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +13 -4
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +0 -5205
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -5205
- package/dist/index.js.map +1 -1
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/request.js +3 -1
- package/dist/internal/request.js.map +1 -1
- package/dist/internal/schema/arbitrary.js +11 -1
- package/dist/internal/schema/arbitrary.js.map +1 -1
- package/dist/internal/schema/representation.js +21 -12
- package/dist/internal/schema/representation.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +69 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +73 -9
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +81 -24
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +71 -25
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.d.ts +0 -107
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +0 -107
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +24 -1
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +24 -1
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +9 -0
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +43 -11
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +25 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +53 -28
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +100 -5
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +100 -5
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +41 -2
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +40 -1
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +10 -2
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +10 -2
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +59 -1
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +59 -1
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +35 -13
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +34 -12
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +48 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +23 -2
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +22 -1
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +71 -13
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +35 -1
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +34 -12
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +33 -11
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +40 -27
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +34 -26
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +34 -23
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +34 -23
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +82 -21
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +81 -20
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +1 -1
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +1 -1
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +0 -560
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +0 -560
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/cli/Argument.js +1 -1
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +133 -5
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +49 -3
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts +13 -0
- package/dist/unstable/cli/Completions.d.ts.map +1 -1
- package/dist/unstable/cli/Completions.js +41 -1
- package/dist/unstable/cli/Completions.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +15 -3
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +15 -3
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +28 -4
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +28 -4
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +126 -0
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +57 -5
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +2 -2
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +58 -9
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +26 -1
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +25 -0
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/index.d.ts +0 -220
- package/dist/unstable/cli/index.d.ts.map +1 -1
- package/dist/unstable/cli/index.js +0 -220
- package/dist/unstable/cli/index.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
- package/dist/unstable/cluster/ClusterError.d.ts +61 -22
- package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterError.js +61 -22
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +53 -0
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +53 -0
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +76 -24
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +76 -24
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +18 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +17 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.d.ts +19 -0
- package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js +19 -0
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.d.ts +44 -7
- package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityId.js +44 -7
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityType.d.ts +19 -0
- package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityType.js +19 -0
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +26 -14
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +26 -14
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +33 -14
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.d.ts +35 -9
- package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
- package/dist/unstable/cluster/MachineId.js +35 -9
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +1 -1
- package/dist/unstable/cluster/Message.js +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +31 -17
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +31 -17
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +46 -13
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +46 -13
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +45 -9
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +45 -9
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +30 -13
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +30 -13
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +15 -1
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +15 -1
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +24 -0
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +24 -0
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +22 -0
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +22 -0
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +19 -0
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +55 -17
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +57 -13
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +58 -14
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +26 -12
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +27 -13
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +25 -0
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +25 -0
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.d.ts +51 -9
- package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
- package/dist/unstable/cluster/Singleton.js +51 -9
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +27 -13
- package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +27 -13
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +13 -0
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +13 -0
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +21 -0
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +21 -0
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts +38 -0
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +73 -13
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts +20 -0
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +20 -0
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +27 -16
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +27 -16
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/index.d.ts +0 -790
- package/dist/unstable/cluster/index.d.ts.map +1 -1
- package/dist/unstable/cluster/index.js +0 -790
- package/dist/unstable/cluster/index.js.map +1 -1
- package/dist/unstable/devtools/DevTools.d.ts +41 -11
- package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
- package/dist/unstable/devtools/DevTools.js +41 -11
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts +38 -0
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +68 -11
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +24 -16
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +20 -13
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +20 -13
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/devtools/index.d.ts +0 -58
- package/dist/unstable/devtools/index.d.ts.map +1 -1
- package/dist/unstable/devtools/index.js +0 -58
- package/dist/unstable/devtools/index.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +30 -15
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +28 -14
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +28 -14
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +35 -14
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/encoding/index.d.ts +0 -49
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +0 -49
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +28 -13
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +22 -14
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +21 -13
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +31 -14
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +52 -15
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +52 -15
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +21 -12
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +17 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +17 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +45 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +82 -15
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +33 -15
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +21 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +50 -14
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +39 -15
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +39 -15
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +30 -11
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/index.d.ts +0 -240
- package/dist/unstable/eventlog/index.d.ts.map +1 -1
- package/dist/unstable/eventlog/index.js +0 -240
- package/dist/unstable/eventlog/index.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +59 -13
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +59 -13
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +43 -13
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js +43 -13
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +53 -16
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +53 -16
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +52 -15
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +52 -15
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +53 -13
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +37 -21
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +27 -11
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +38 -17
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +38 -17
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +35 -16
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +33 -14
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +30 -15
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +30 -15
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +1 -1
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +40 -17
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +30 -17
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +30 -17
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +32 -19
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +32 -19
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +33 -16
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +28 -14
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +49 -27
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +43 -21
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +30 -13
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +29 -12
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +28 -15
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +28 -15
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +37 -17
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +37 -17
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +27 -14
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +25 -12
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +29 -13
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +29 -13
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +33 -18
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +34 -19
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +0 -452
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +0 -452
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +48 -24
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- 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 +37 -23
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +28 -16
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +51 -23
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +36 -16
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +34 -23
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +49 -25
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +49 -25
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +4 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +28 -16
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +39 -36
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +39 -36
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +54 -24
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +54 -24
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +28 -16
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +36 -24
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/httpapi/index.d.ts +0 -311
- package/dist/unstable/httpapi/index.d.ts.map +1 -1
- package/dist/unstable/httpapi/index.js +0 -311
- package/dist/unstable/httpapi/index.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +31 -16
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +30 -14
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +33 -15
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.d.ts +27 -16
- package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js +27 -16
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +1 -1
- package/dist/unstable/observability/index.d.ts +0 -183
- package/dist/unstable/observability/index.d.ts.map +1 -1
- package/dist/unstable/observability/index.js +0 -183
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +4 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +4 -1
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +29 -16
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +27 -14
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +33 -15
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/persistence/index.d.ts +0 -147
- package/dist/unstable/persistence/index.d.ts.map +1 -1
- package/dist/unstable/persistence/index.js +0 -147
- package/dist/unstable/persistence/index.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +15 -3
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +15 -3
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/process/index.d.ts +0 -45
- package/dist/unstable/process/index.d.ts.map +1 -1
- package/dist/unstable/process/index.js +0 -45
- package/dist/unstable/process/index.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +40 -19
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +40 -19
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +36 -22
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +36 -22
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +32 -16
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +52 -25
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +74 -18
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +74 -18
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +29 -14
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +38 -20
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +38 -20
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/reactivity/index.d.ts +0 -166
- package/dist/unstable/reactivity/index.d.ts.map +1 -1
- package/dist/unstable/reactivity/index.js +0 -166
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +29 -18
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +29 -15
- package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +29 -15
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +29 -18
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +34 -16
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +31 -21
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +31 -21
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +29 -19
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +29 -19
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +33 -23
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +31 -21
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcTest.d.ts +31 -15
- package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcTest.js +31 -15
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +29 -14
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/index.d.ts +0 -272
- package/dist/unstable/rpc/index.d.ts.map +1 -1
- package/dist/unstable/rpc/index.js +0 -272
- package/dist/unstable/rpc/index.js.map +1 -1
- package/dist/unstable/schema/index.d.ts +0 -37
- package/dist/unstable/schema/index.d.ts.map +1 -1
- package/dist/unstable/schema/index.js +0 -37
- package/dist/unstable/schema/index.js.map +1 -1
- package/dist/unstable/socket/index.d.ts +0 -44
- package/dist/unstable/socket/index.d.ts.map +1 -1
- package/dist/unstable/socket/index.js +0 -44
- package/dist/unstable/socket/index.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +39 -18
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +31 -15
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +30 -15
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +30 -15
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +1 -1
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +34 -14
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.d.ts +0 -178
- package/dist/unstable/sql/index.d.ts.map +1 -1
- package/dist/unstable/sql/index.js +0 -178
- package/dist/unstable/sql/index.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +29 -15
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +29 -15
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +36 -23
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +34 -21
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerError.js +32 -16
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +31 -20
- package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerRunner.js +31 -20
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workers/index.d.ts +0 -80
- package/dist/unstable/workers/index.d.ts.map +1 -1
- package/dist/unstable/workers/index.js +0 -80
- package/dist/unstable/workers/index.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +23 -11
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +33 -15
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +33 -15
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/index.d.ts +0 -160
- package/dist/unstable/workflow/index.d.ts.map +1 -1
- package/dist/unstable/workflow/index.js +0 -160
- package/dist/unstable/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +1504 -211
- package/src/BigDecimal.ts +594 -8
- package/src/BigInt.ts +457 -3
- package/src/Boolean.ts +229 -7
- package/src/Brand.ts +100 -8
- package/src/Cache.ts +87 -15
- package/src/Cause.ts +475 -183
- package/src/Channel.ts +498 -84
- package/src/ChannelSchema.ts +96 -3
- package/src/Chunk.ts +120 -0
- package/src/Clock.ts +57 -0
- package/src/Combiner.ts +15 -11
- package/src/Config.ts +126 -40
- package/src/ConfigProvider.ts +48 -25
- package/src/Console.ts +22 -1
- package/src/Context.ts +503 -37
- package/src/Cron.ts +110 -1
- package/src/Crypto.ts +29 -0
- package/src/Data.ts +77 -26
- package/src/DateTime.ts +149 -6
- package/src/Deferred.ts +340 -74
- package/src/Differ.ts +5 -0
- package/src/Duration.ts +164 -11
- package/src/Effect.ts +1860 -543
- package/src/Effectable.ts +14 -0
- package/src/Encoding.ts +135 -1
- package/src/Equal.ts +7 -7
- package/src/Equivalence.ts +44 -27
- package/src/ErrorReporter.ts +123 -5
- package/src/ExecutionPlan.ts +89 -24
- package/src/Exit.ts +128 -82
- package/src/Fiber.ts +317 -68
- package/src/FileSystem.ts +109 -33
- package/src/Filter.ts +221 -2
- package/src/Formatter.ts +3 -3
- package/src/Function.ts +152 -6
- package/src/Graph.ts +275 -3
- package/src/HKT.ts +55 -23
- package/src/Hash.ts +140 -20
- package/src/HashMap.ts +2 -2
- package/src/HashRing.ts +203 -0
- package/src/Inspectable.ts +82 -13
- package/src/Iterable.ts +179 -25
- package/src/JsonPatch.ts +78 -55
- package/src/JsonPointer.ts +2 -2
- package/src/JsonSchema.ts +64 -10
- package/src/Latch.ts +162 -11
- package/src/Layer.ts +250 -74
- package/src/LayerMap.ts +8 -0
- package/src/LogLevel.ts +93 -18
- package/src/Logger.ts +25 -9
- package/src/ManagedRuntime.ts +81 -9
- package/src/Match.ts +220 -24
- package/src/Metric.ts +33 -20
- package/src/MutableHashMap.ts +360 -21
- package/src/MutableHashSet.ts +141 -37
- package/src/MutableList.ts +10 -2
- package/src/MutableRef.ts +136 -0
- package/src/Newtype.ts +20 -11
- package/src/NonEmptyIterable.ts +20 -4
- package/src/Number.ts +417 -2
- package/src/Optic.ts +17 -17
- package/src/Option.ts +168 -129
- package/src/Order.ts +152 -123
- package/src/Ordering.ts +32 -0
- package/src/PartitionedSemaphore.ts +238 -11
- package/src/Path.ts +35 -4
- package/src/Pipeable.ts +27 -2
- package/src/PlatformError.ts +53 -4
- package/src/Pool.ts +174 -32
- package/src/Predicate.ts +149 -115
- package/src/PrimaryKey.ts +74 -8
- package/src/PubSub.ts +94 -20
- package/src/Pull.ts +147 -2
- package/src/Queue.ts +127 -35
- package/src/Random.ts +71 -16
- package/src/RcMap.ts +168 -6
- package/src/RcRef.ts +73 -18
- package/src/Record.ts +95 -1
- package/src/Redactable.ts +20 -16
- package/src/Redacted.ts +82 -4
- package/src/Reducer.ts +17 -5
- package/src/Ref.ts +300 -22
- package/src/References.ts +208 -12
- package/src/RegExp.ts +47 -1
- package/src/Request.ts +215 -32
- package/src/RequestResolver.ts +257 -22
- package/src/Resource.ts +62 -3
- package/src/Result.ts +328 -23
- package/src/Runtime.ts +171 -31
- package/src/Schedule.ts +484 -111
- package/src/Scheduler.ts +50 -1
- package/src/Schema.ts +508 -67
- package/src/SchemaAST.ts +205 -2
- package/src/SchemaGetter.ts +123 -123
- package/src/SchemaIssue.ts +25 -24
- package/src/SchemaParser.ts +279 -21
- package/src/SchemaRepresentation.ts +61 -17
- package/src/SchemaTransformation.ts +76 -38
- package/src/SchemaUtils.ts +38 -11
- package/src/Scope.ts +79 -14
- package/src/ScopedCache.ts +404 -7
- package/src/ScopedRef.ts +67 -5
- package/src/Semaphore.ts +347 -28
- package/src/Sink.ts +307 -4
- package/src/Stdio.ts +69 -15
- package/src/Stream.ts +611 -72
- package/src/String.ts +173 -2
- package/src/Struct.ts +19 -10
- package/src/SubscriptionRef.ts +73 -14
- package/src/Symbol.ts +24 -6
- package/src/SynchronizedRef.ts +502 -2
- package/src/Take.ts +36 -13
- package/src/Terminal.ts +68 -17
- package/src/Tracer.ts +49 -0
- package/src/Trie.ts +48 -9
- package/src/Tuple.ts +70 -35
- package/src/TxChunk.ts +40 -7
- package/src/TxDeferred.ts +85 -2
- package/src/TxPriorityQueue.ts +29 -2
- package/src/TxPubSub.ts +94 -4
- package/src/TxQueue.ts +48 -7
- package/src/TxReentrantLock.ts +40 -4
- package/src/TxRef.ts +112 -7
- package/src/TxSemaphore.ts +173 -14
- package/src/TxSubscriptionRef.ts +205 -2
- package/src/Types.ts +60 -6
- package/src/UndefinedOr.ts +171 -30
- package/src/Unify.ts +120 -12
- package/src/Utils.ts +20 -14
- package/src/index.ts +0 -5205
- package/src/internal/effect.ts +59 -29
- package/src/internal/request.ts +3 -1
- package/src/internal/schema/arbitrary.ts +14 -1
- package/src/internal/schema/representation.ts +37 -14
- package/src/testing/TestConsole.ts +105 -9
- package/src/testing/TestSchema.ts +83 -25
- package/src/testing/index.ts +0 -107
- package/src/unstable/ai/AiError.ts +24 -1
- package/src/unstable/ai/AnthropicStructuredOutput.ts +43 -11
- package/src/unstable/ai/Chat.ts +62 -28
- package/src/unstable/ai/EmbeddingModel.ts +100 -5
- package/src/unstable/ai/IdGenerator.ts +1 -1
- package/src/unstable/ai/LanguageModel.ts +41 -2
- package/src/unstable/ai/McpSchema.ts +10 -2
- package/src/unstable/ai/McpServer.ts +59 -1
- package/src/unstable/ai/Model.ts +35 -13
- package/src/unstable/ai/OpenAiStructuredOutput.ts +48 -1
- package/src/unstable/ai/Prompt.ts +23 -2
- package/src/unstable/ai/Response.ts +71 -13
- package/src/unstable/ai/ResponseIdTracker.ts +34 -12
- package/src/unstable/ai/Telemetry.ts +40 -27
- package/src/unstable/ai/Tokenizer.ts +34 -23
- package/src/unstable/ai/Tool.ts +82 -21
- package/src/unstable/ai/Toolkit.ts +32 -4
- package/src/unstable/ai/index.ts +0 -560
- package/src/unstable/cli/Argument.ts +1 -1
- package/src/unstable/cli/Command.ts +133 -5
- package/src/unstable/cli/Completions.ts +41 -1
- package/src/unstable/cli/Flag.ts +15 -3
- package/src/unstable/cli/GlobalFlag.ts +28 -4
- package/src/unstable/cli/Param.ts +135 -9
- package/src/unstable/cli/Primitive.ts +58 -9
- package/src/unstable/cli/Prompt.ts +26 -1
- package/src/unstable/cli/index.ts +0 -220
- package/src/unstable/cluster/ClusterCron.ts +1 -1
- package/src/unstable/cluster/ClusterError.ts +61 -22
- package/src/unstable/cluster/ClusterMetrics.ts +53 -0
- package/src/unstable/cluster/ClusterSchema.ts +76 -24
- package/src/unstable/cluster/Entity.ts +18 -1
- package/src/unstable/cluster/EntityAddress.ts +19 -0
- package/src/unstable/cluster/EntityId.ts +44 -7
- package/src/unstable/cluster/EntityType.ts +19 -0
- package/src/unstable/cluster/HttpRunner.ts +26 -14
- package/src/unstable/cluster/K8sHttpClient.ts +32 -13
- package/src/unstable/cluster/MachineId.ts +35 -9
- package/src/unstable/cluster/Message.ts +1 -1
- package/src/unstable/cluster/MessageStorage.ts +31 -17
- package/src/unstable/cluster/Runner.ts +46 -13
- package/src/unstable/cluster/RunnerAddress.ts +45 -9
- package/src/unstable/cluster/RunnerHealth.ts +30 -13
- package/src/unstable/cluster/RunnerServer.ts +15 -1
- package/src/unstable/cluster/Runners.ts +24 -0
- package/src/unstable/cluster/ShardId.ts +22 -0
- package/src/unstable/cluster/Sharding.ts +55 -17
- package/src/unstable/cluster/ShardingConfig.ts +57 -13
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +26 -12
- package/src/unstable/cluster/SingleRunner.ts +25 -0
- package/src/unstable/cluster/Singleton.ts +51 -9
- package/src/unstable/cluster/SingletonAddress.ts +27 -13
- package/src/unstable/cluster/Snowflake.ts +13 -0
- package/src/unstable/cluster/SocketRunner.ts +21 -0
- package/src/unstable/cluster/SqlMessageStorage.ts +73 -13
- package/src/unstable/cluster/SqlRunnerStorage.ts +20 -0
- package/src/unstable/cluster/TestRunner.ts +27 -16
- package/src/unstable/cluster/index.ts +0 -790
- package/src/unstable/devtools/DevTools.ts +41 -11
- package/src/unstable/devtools/DevToolsClient.ts +68 -11
- package/src/unstable/devtools/DevToolsSchema.ts +24 -16
- package/src/unstable/devtools/DevToolsServer.ts +18 -11
- package/src/unstable/devtools/index.ts +0 -58
- package/src/unstable/encoding/Msgpack.ts +30 -15
- package/src/unstable/encoding/Ndjson.ts +28 -14
- package/src/unstable/encoding/Sse.ts +35 -14
- package/src/unstable/encoding/index.ts +0 -49
- package/src/unstable/eventlog/Event.ts +30 -15
- package/src/unstable/eventlog/EventGroup.ts +22 -14
- package/src/unstable/eventlog/EventJournal.ts +31 -14
- package/src/unstable/eventlog/EventLog.ts +52 -15
- package/src/unstable/eventlog/EventLogMessage.ts +21 -12
- package/src/unstable/eventlog/EventLogServer.ts +27 -13
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +17 -0
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +82 -15
- package/src/unstable/eventlog/EventLogSessionAuth.ts +35 -17
- package/src/unstable/eventlog/SqlEventJournal.ts +50 -14
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +39 -15
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +30 -11
- package/src/unstable/eventlog/index.ts +0 -240
- package/src/unstable/http/Cookies.ts +59 -13
- package/src/unstable/http/Etag.ts +43 -13
- package/src/unstable/http/FetchHttpClient.ts +53 -16
- package/src/unstable/http/Headers.ts +52 -15
- package/src/unstable/http/HttpBody.ts +53 -13
- package/src/unstable/http/HttpClient.ts +88 -22
- package/src/unstable/http/HttpClientError.ts +26 -10
- package/src/unstable/http/HttpClientRequest.ts +36 -15
- package/src/unstable/http/HttpClientResponse.ts +33 -14
- package/src/unstable/http/HttpEffect.ts +32 -15
- package/src/unstable/http/HttpMethod.ts +30 -15
- package/src/unstable/http/HttpRouter.ts +40 -17
- package/src/unstable/http/HttpServer.ts +30 -17
- package/src/unstable/http/HttpServerError.ts +32 -19
- package/src/unstable/http/HttpServerRequest.ts +31 -14
- package/src/unstable/http/HttpServerRespondable.ts +28 -14
- package/src/unstable/http/HttpServerResponse.ts +51 -29
- package/src/unstable/http/HttpStaticServer.ts +29 -12
- package/src/unstable/http/HttpTraceContext.ts +28 -15
- package/src/unstable/http/Multipart.ts +37 -17
- package/src/unstable/http/Template.ts +25 -12
- package/src/unstable/http/Url.ts +29 -13
- package/src/unstable/http/UrlParams.ts +33 -18
- package/src/unstable/http/index.ts +0 -452
- package/src/unstable/httpapi/HttpApi.ts +46 -22
- package/src/unstable/httpapi/HttpApiBuilder.ts +37 -23
- package/src/unstable/httpapi/HttpApiClient.ts +28 -16
- package/src/unstable/httpapi/HttpApiEndpoint.ts +51 -23
- package/src/unstable/httpapi/HttpApiError.ts +36 -16
- package/src/unstable/httpapi/HttpApiGroup.ts +34 -23
- package/src/unstable/httpapi/HttpApiMiddleware.ts +49 -25
- package/src/unstable/httpapi/HttpApiScalar.ts +32 -17
- package/src/unstable/httpapi/HttpApiSchema.ts +39 -36
- package/src/unstable/httpapi/HttpApiSecurity.ts +54 -24
- package/src/unstable/httpapi/HttpApiSwagger.ts +28 -16
- package/src/unstable/httpapi/OpenApi.ts +38 -26
- package/src/unstable/httpapi/index.ts +0 -311
- package/src/unstable/observability/Otlp.ts +31 -16
- package/src/unstable/observability/OtlpLogger.ts +30 -14
- package/src/unstable/observability/OtlpResource.ts +33 -15
- package/src/unstable/observability/OtlpSerialization.ts +25 -14
- package/src/unstable/observability/PrometheusMetrics.ts +1 -1
- package/src/unstable/observability/index.ts +0 -183
- package/src/unstable/persistence/KeyValueStore.ts +4 -1
- package/src/unstable/persistence/PersistedCache.ts +27 -14
- package/src/unstable/persistence/Redis.ts +33 -15
- package/src/unstable/persistence/index.ts +0 -147
- package/src/unstable/process/ChildProcessSpawner.ts +15 -3
- package/src/unstable/process/index.ts +0 -45
- package/src/unstable/reactivity/AsyncResult.ts +38 -17
- package/src/unstable/reactivity/Atom.ts +36 -22
- package/src/unstable/reactivity/AtomRef.ts +58 -25
- package/src/unstable/reactivity/AtomRegistry.ts +72 -16
- package/src/unstable/reactivity/Hydration.ts +31 -16
- package/src/unstable/reactivity/Reactivity.ts +36 -18
- package/src/unstable/reactivity/index.ts +0 -166
- package/src/unstable/rpc/Rpc.ts +29 -18
- package/src/unstable/rpc/RpcClient.ts +31 -22
- package/src/unstable/rpc/RpcClientError.ts +27 -13
- package/src/unstable/rpc/RpcGroup.ts +28 -17
- package/src/unstable/rpc/RpcMessage.ts +34 -16
- package/src/unstable/rpc/RpcMiddleware.ts +31 -21
- package/src/unstable/rpc/RpcSchema.ts +29 -19
- package/src/unstable/rpc/RpcSerialization.ts +31 -21
- package/src/unstable/rpc/RpcServer.ts +31 -23
- package/src/unstable/rpc/RpcTest.ts +29 -13
- package/src/unstable/rpc/RpcWorker.ts +29 -14
- package/src/unstable/rpc/index.ts +0 -272
- package/src/unstable/schema/index.ts +0 -37
- package/src/unstable/socket/index.ts +0 -44
- package/src/unstable/sql/Migrator.ts +39 -18
- package/src/unstable/sql/SqlError.ts +31 -15
- package/src/unstable/sql/SqlSchema.ts +30 -15
- package/src/unstable/sql/Statement.ts +35 -15
- package/src/unstable/sql/index.ts +0 -178
- package/src/unstable/workers/Transferable.ts +29 -15
- package/src/unstable/workers/Worker.ts +34 -21
- package/src/unstable/workers/WorkerError.ts +34 -18
- package/src/unstable/workers/WorkerRunner.ts +29 -18
- package/src/unstable/workers/index.ts +0 -80
- package/src/unstable/workflow/DurableClock.ts +23 -11
- package/src/unstable/workflow/DurableQueue.ts +31 -13
- package/src/unstable/workflow/index.ts +0 -160
package/dist/Layer.d.ts
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
2
|
+
* The `Layer` module provides the dependency-injection building blocks for
|
|
3
|
+
* Effect applications. A {@link Layer} describes how to acquire one or more
|
|
4
|
+
* services, which dependencies are needed to acquire them, and which errors can
|
|
5
|
+
* occur during acquisition.
|
|
6
|
+
*
|
|
7
|
+
* **Mental model**
|
|
8
|
+
*
|
|
9
|
+
* - Application effects ask for services through context tags.
|
|
10
|
+
* - Layer code builds those services, often from configuration, clients,
|
|
11
|
+
* connection pools, or other services.
|
|
12
|
+
* - The application boundary provides a final layer to the program.
|
|
13
|
+
* - Layers are lazy: acquisition starts only when a layer is provided, built, or
|
|
14
|
+
* launched.
|
|
15
|
+
* - Layer acquisition is scoped, so finalizers run when the owning scope closes.
|
|
16
|
+
* - A layer value is memoized by default; reusing the same layer value shares
|
|
17
|
+
* the acquired service instance.
|
|
18
|
+
*
|
|
19
|
+
* **Common tasks**
|
|
20
|
+
*
|
|
21
|
+
* - Provide an existing service value with {@link succeed}.
|
|
22
|
+
* - Build a service lazily with {@link sync}, {@link effect}, or
|
|
23
|
+
* {@link effectContext}.
|
|
24
|
+
* - Run setup work that provides no services with {@link effectDiscard}.
|
|
25
|
+
* - Combine independent layers with {@link merge} or {@link mergeAll}.
|
|
26
|
+
* - Feed one layer's output into another layer's requirements with
|
|
27
|
+
* {@link provide}.
|
|
28
|
+
* - Keep dependency services in the final output with {@link provideMerge}.
|
|
29
|
+
* - Materialize a layer manually with {@link build} or {@link buildWithScope}.
|
|
30
|
+
*
|
|
31
|
+
* **Gotchas**
|
|
32
|
+
*
|
|
33
|
+
* - Sharing is tied to layer identity. Constructing the same layer twice creates
|
|
34
|
+
* two distinct values and can acquire two service instances.
|
|
35
|
+
* - Use {@link fresh} when a layer must be rebuilt even if the same value is
|
|
36
|
+
* provided more than once.
|
|
37
|
+
* - Scoped resources belong in layers when construction and release are part of
|
|
38
|
+
* the service lifecycle.
|
|
39
|
+
* - Normal application code should request services; layer code should create
|
|
40
|
+
* services.
|
|
28
41
|
*
|
|
29
42
|
* @since 2.0.0
|
|
30
43
|
*/
|
|
@@ -45,6 +58,12 @@ declare const TypeId = "~effect/Layer";
|
|
|
45
58
|
/**
|
|
46
59
|
* A `Layer` describes how to build one or more services for dependency injection.
|
|
47
60
|
*
|
|
61
|
+
* **When to use**
|
|
62
|
+
*
|
|
63
|
+
* Use to model construction of application services for dependency injection,
|
|
64
|
+
* especially when services have dependencies, can fail during construction, or
|
|
65
|
+
* need scoped setup and release.
|
|
66
|
+
*
|
|
48
67
|
* **Details**
|
|
49
68
|
*
|
|
50
69
|
* A `Layer<ROut, E, RIn>` represents `ROut` as the services this layer
|
|
@@ -101,11 +120,22 @@ export interface Variance<in ROut, out E, out RIn> {
|
|
|
101
120
|
/**
|
|
102
121
|
* A type-level constraint for working with any `Layer` type.
|
|
103
122
|
*
|
|
123
|
+
* **When to use**
|
|
124
|
+
*
|
|
125
|
+
* Use to constrain generic parameters or layer collections to any `Layer`
|
|
126
|
+
* value while preserving its provided, error, and required service types for
|
|
127
|
+
* inference.
|
|
128
|
+
*
|
|
104
129
|
* **Details**
|
|
105
130
|
*
|
|
106
131
|
* This interface is used to constrain generic types to `Layer` values without
|
|
107
132
|
* specifying exact type parameters.
|
|
108
133
|
*
|
|
134
|
+
* @see {@link Layer} for the concrete layer interface
|
|
135
|
+
* @see {@link Services} for extracting required services from a layer type
|
|
136
|
+
* @see {@link Error} for extracting construction errors from a layer type
|
|
137
|
+
* @see {@link Success} for extracting provided services from a layer type
|
|
138
|
+
*
|
|
109
139
|
* @category utility types
|
|
110
140
|
* @since 3.9.0
|
|
111
141
|
*/
|
|
@@ -119,6 +149,14 @@ export interface Any {
|
|
|
119
149
|
/**
|
|
120
150
|
* Extracts the service requirements (`RIn`) from a `Layer` type.
|
|
121
151
|
*
|
|
152
|
+
* **When to use**
|
|
153
|
+
*
|
|
154
|
+
* Use to derive the dependency requirements of a generic or inferred `Layer`
|
|
155
|
+
* without restating its `RIn` type parameter.
|
|
156
|
+
*
|
|
157
|
+
* @see {@link Success} for extracting the services provided by the same `Layer`
|
|
158
|
+
* @see {@link Error} for extracting the construction failure type from the same `Layer`
|
|
159
|
+
*
|
|
122
160
|
* @category utility types
|
|
123
161
|
* @since 4.0.0
|
|
124
162
|
*/
|
|
@@ -126,6 +164,14 @@ export type Services<T extends Any> = T extends infer L ? L extends Layer<infer
|
|
|
126
164
|
/**
|
|
127
165
|
* Extracts the error type (`E`) from a `Layer` type.
|
|
128
166
|
*
|
|
167
|
+
* **When to use**
|
|
168
|
+
*
|
|
169
|
+
* Use to derive a layer construction error type for helper types, wrappers, or
|
|
170
|
+
* APIs that preserve a layer failure channel.
|
|
171
|
+
*
|
|
172
|
+
* @see {@link Success} for extracting the services provided by the same `Layer`
|
|
173
|
+
* @see {@link Services} for extracting the dependency requirements of the same `Layer`
|
|
174
|
+
*
|
|
129
175
|
* @category utility types
|
|
130
176
|
* @since 2.0.0
|
|
131
177
|
*/
|
|
@@ -133,6 +179,14 @@ export type Error<T extends Any> = T extends Layer<infer _ROut, infer _E, infer
|
|
|
133
179
|
/**
|
|
134
180
|
* Extracts the service output type (`ROut`) from a `Layer` type.
|
|
135
181
|
*
|
|
182
|
+
* **When to use**
|
|
183
|
+
*
|
|
184
|
+
* Use to derive the services provided by an existing or generic `Layer` without
|
|
185
|
+
* restating its `ROut` type parameter.
|
|
186
|
+
*
|
|
187
|
+
* @see {@link Error} for extracting the layer construction error type instead
|
|
188
|
+
* @see {@link Services} for extracting the layer input service requirements instead
|
|
189
|
+
*
|
|
136
190
|
* @category utility types
|
|
137
191
|
* @since 2.0.0
|
|
138
192
|
*/
|
|
@@ -299,6 +353,15 @@ export declare const makeMemoMapUnsafe: () => MemoMap;
|
|
|
299
353
|
* Constructs a child `MemoMap` that can reuse layers already memoized in the
|
|
300
354
|
* parent while isolating any new layer allocations to the child map.
|
|
301
355
|
*
|
|
356
|
+
* **When to use**
|
|
357
|
+
*
|
|
358
|
+
* Use to synchronously fork a memo map for manual layer building when child
|
|
359
|
+
* builds should see parent memoized layers without writing newly built layers
|
|
360
|
+
* back to the parent.
|
|
361
|
+
*
|
|
362
|
+
* @see {@link forkMemoMap} for allocating the child memo map inside `Effect`
|
|
363
|
+
* @see {@link makeMemoMapUnsafe} for creating a root memo map without a parent
|
|
364
|
+
*
|
|
302
365
|
* @category memo map
|
|
303
366
|
* @since 4.0.0
|
|
304
367
|
*/
|
|
@@ -337,6 +400,15 @@ export declare const makeMemoMap: Effect<MemoMap>;
|
|
|
337
400
|
* Constructs a child `MemoMap` that can reuse layers already memoized in the
|
|
338
401
|
* parent while isolating any new layer allocations to the child map.
|
|
339
402
|
*
|
|
403
|
+
* **When to use**
|
|
404
|
+
*
|
|
405
|
+
* Use when a layer build should inherit already memoized layers from an
|
|
406
|
+
* existing `MemoMap` while keeping newly memoized layers out of the parent map.
|
|
407
|
+
*
|
|
408
|
+
* @see {@link makeMemoMap} for creating a root memo map in an `Effect`
|
|
409
|
+
* @see {@link forkMemoMapUnsafe} for the synchronous constructor variant
|
|
410
|
+
* @see {@link buildWithMemoMap} for building layers with an explicit memo map
|
|
411
|
+
*
|
|
340
412
|
* @category memo map
|
|
341
413
|
* @since 4.0.0
|
|
342
414
|
*/
|
|
@@ -345,10 +417,17 @@ declare const CurrentMemoMap_base: Context.ServiceClass<CurrentMemoMap, "effect/
|
|
|
345
417
|
/**
|
|
346
418
|
* A service reference for the current `MemoMap` used in layer construction.
|
|
347
419
|
*
|
|
420
|
+
* **When to use**
|
|
421
|
+
*
|
|
422
|
+
* Use when building custom layer operations that need to access the current
|
|
423
|
+
* memoization map from the fiber context.
|
|
424
|
+
*
|
|
348
425
|
* **Details**
|
|
349
426
|
*
|
|
350
|
-
* This service
|
|
351
|
-
*
|
|
427
|
+
* This service wraps a `MemoMap` as a `Context.Service`, making it available
|
|
428
|
+
* for dependency injection during layer construction.
|
|
429
|
+
*
|
|
430
|
+
* @see {@link MemoMap} the memoization map type wrapped by this service
|
|
352
431
|
*
|
|
353
432
|
* @category models
|
|
354
433
|
* @since 3.13.0
|
|
@@ -669,7 +748,7 @@ export declare const buildWithScope: {
|
|
|
669
748
|
*
|
|
670
749
|
* **When to use**
|
|
671
750
|
*
|
|
672
|
-
* Use
|
|
751
|
+
* Use when the service implementation is already constructed and does
|
|
673
752
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
674
753
|
* lazily during layer construction.
|
|
675
754
|
*
|
|
@@ -699,7 +778,7 @@ export declare const succeed: {
|
|
|
699
778
|
*
|
|
700
779
|
* **When to use**
|
|
701
780
|
*
|
|
702
|
-
* Use
|
|
781
|
+
* Use when the service implementation is already constructed and does
|
|
703
782
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
704
783
|
* lazily during layer construction.
|
|
705
784
|
*
|
|
@@ -729,7 +808,7 @@ export declare const succeed: {
|
|
|
729
808
|
*
|
|
730
809
|
* **When to use**
|
|
731
810
|
*
|
|
732
|
-
* Use
|
|
811
|
+
* Use when the service implementation is already constructed and does
|
|
733
812
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
734
813
|
* lazily during layer construction.
|
|
735
814
|
*
|
|
@@ -760,7 +839,7 @@ export declare const succeed: {
|
|
|
760
839
|
*
|
|
761
840
|
* **When to use**
|
|
762
841
|
*
|
|
763
|
-
* Use
|
|
842
|
+
* Use when you already have a `Context` or need to provide
|
|
764
843
|
* multiple services at once. Use `succeed` when you only need to provide one
|
|
765
844
|
* service value.
|
|
766
845
|
*
|
|
@@ -805,7 +884,7 @@ export declare const succeedContext: <A>(context: Context.Context<A>) => Layer<A
|
|
|
805
884
|
*
|
|
806
885
|
* **When to use**
|
|
807
886
|
*
|
|
808
|
-
* Use `Layer.empty` as the no-op branch when conditionally composing layers.
|
|
887
|
+
* Use when you use `Layer.empty` as the no-op branch when conditionally composing layers.
|
|
809
888
|
* If you need to run an effect during layer construction while still providing
|
|
810
889
|
* no services, use `effectDiscard`.
|
|
811
890
|
*
|
|
@@ -832,7 +911,7 @@ export declare const empty: Layer<never>;
|
|
|
832
911
|
*
|
|
833
912
|
* **When to use**
|
|
834
913
|
*
|
|
835
|
-
* Use
|
|
914
|
+
* Use when the service can be created synchronously but should be
|
|
836
915
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
837
916
|
* already available.
|
|
838
917
|
*
|
|
@@ -866,7 +945,7 @@ export declare const sync: {
|
|
|
866
945
|
*
|
|
867
946
|
* **When to use**
|
|
868
947
|
*
|
|
869
|
-
* Use
|
|
948
|
+
* Use when the service can be created synchronously but should be
|
|
870
949
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
871
950
|
* already available.
|
|
872
951
|
*
|
|
@@ -900,7 +979,7 @@ export declare const sync: {
|
|
|
900
979
|
*
|
|
901
980
|
* **When to use**
|
|
902
981
|
*
|
|
903
|
-
* Use
|
|
982
|
+
* Use when the service can be created synchronously but should be
|
|
904
983
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
905
984
|
* already available.
|
|
906
985
|
*
|
|
@@ -935,7 +1014,7 @@ export declare const sync: {
|
|
|
935
1014
|
*
|
|
936
1015
|
* **When to use**
|
|
937
1016
|
*
|
|
938
|
-
* Use
|
|
1017
|
+
* Use when multiple services can be created synchronously and
|
|
939
1018
|
* should be deferred until the layer is built. Use `sync` when you only need to
|
|
940
1019
|
* provide one service.
|
|
941
1020
|
*
|
|
@@ -972,7 +1051,7 @@ export declare const syncContext: <A>(evaluate: LazyArg<Context.Context<A>>) =>
|
|
|
972
1051
|
*
|
|
973
1052
|
* **When to use**
|
|
974
1053
|
*
|
|
975
|
-
* Use
|
|
1054
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
976
1055
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
977
1056
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
978
1057
|
* should provide no services.
|
|
@@ -1011,7 +1090,7 @@ export declare const effect: {
|
|
|
1011
1090
|
*
|
|
1012
1091
|
* **When to use**
|
|
1013
1092
|
*
|
|
1014
|
-
* Use
|
|
1093
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
1015
1094
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
1016
1095
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
1017
1096
|
* should provide no services.
|
|
@@ -1050,7 +1129,7 @@ export declare const effect: {
|
|
|
1050
1129
|
*
|
|
1051
1130
|
* **When to use**
|
|
1052
1131
|
*
|
|
1053
|
-
* Use
|
|
1132
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
1054
1133
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
1055
1134
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
1056
1135
|
* should provide no services.
|
|
@@ -1090,7 +1169,7 @@ export declare const effect: {
|
|
|
1090
1169
|
*
|
|
1091
1170
|
* **When to use**
|
|
1092
1171
|
*
|
|
1093
|
-
* Use
|
|
1172
|
+
* Use when effectful construction needs to provide multiple
|
|
1094
1173
|
* services at once. Use `effect` when the effect produces one service value.
|
|
1095
1174
|
*
|
|
1096
1175
|
* **Details**
|
|
@@ -1128,7 +1207,7 @@ export declare const effectContext: <A, E, R>(effect: Effect<Context.Context<A>,
|
|
|
1128
1207
|
*
|
|
1129
1208
|
* **When to use**
|
|
1130
1209
|
*
|
|
1131
|
-
*
|
|
1210
|
+
* Use when this is useful when you want to run an Effect for its side effects during
|
|
1132
1211
|
* layer construction, but don't need to provide any services.
|
|
1133
1212
|
*
|
|
1134
1213
|
* **Example** (Running an effect during layer construction)
|
|
@@ -1182,7 +1261,7 @@ export declare const suspend: <A, E, R>(evaluate: LazyArg<Layer<A, E, R>>) => La
|
|
|
1182
1261
|
*
|
|
1183
1262
|
* **When to use**
|
|
1184
1263
|
*
|
|
1185
|
-
* Use
|
|
1264
|
+
* Use when you have an `Effect` that produces a `Layer` and you want to
|
|
1186
1265
|
* use that layer directly.
|
|
1187
1266
|
*
|
|
1188
1267
|
* **Details**
|
|
@@ -1216,7 +1295,7 @@ export declare const unwrap: <A, E1, R1, E, R>(self: Effect<Layer<A, E1, R1>, E,
|
|
|
1216
1295
|
*
|
|
1217
1296
|
* **When to use**
|
|
1218
1297
|
*
|
|
1219
|
-
* Use
|
|
1298
|
+
* Use when you need to combine multiple independent layers.
|
|
1220
1299
|
*
|
|
1221
1300
|
* **Details**
|
|
1222
1301
|
*
|
|
@@ -1261,7 +1340,7 @@ export declare const mergeAll: <Layers extends [Layer<never, any, any>, ...Array
|
|
|
1261
1340
|
*
|
|
1262
1341
|
* **When to use**
|
|
1263
1342
|
*
|
|
1264
|
-
* Use
|
|
1343
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1265
1344
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1266
1345
|
*
|
|
1267
1346
|
* **Details**
|
|
@@ -1305,7 +1384,7 @@ export declare const merge: {
|
|
|
1305
1384
|
*
|
|
1306
1385
|
* **When to use**
|
|
1307
1386
|
*
|
|
1308
|
-
* Use
|
|
1387
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1309
1388
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1310
1389
|
*
|
|
1311
1390
|
* **Details**
|
|
@@ -1349,7 +1428,7 @@ export declare const merge: {
|
|
|
1349
1428
|
*
|
|
1350
1429
|
* **When to use**
|
|
1351
1430
|
*
|
|
1352
|
-
* Use
|
|
1431
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1353
1432
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1354
1433
|
*
|
|
1355
1434
|
* **Details**
|
|
@@ -1393,7 +1472,7 @@ export declare const merge: {
|
|
|
1393
1472
|
*
|
|
1394
1473
|
* **When to use**
|
|
1395
1474
|
*
|
|
1396
|
-
* Use
|
|
1475
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1397
1476
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1398
1477
|
*
|
|
1399
1478
|
* **Details**
|
|
@@ -1437,7 +1516,7 @@ export declare const merge: {
|
|
|
1437
1516
|
*
|
|
1438
1517
|
* **When to use**
|
|
1439
1518
|
*
|
|
1440
|
-
* Use
|
|
1519
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1441
1520
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1442
1521
|
*
|
|
1443
1522
|
* **Details**
|
|
@@ -1482,7 +1561,7 @@ export declare const merge: {
|
|
|
1482
1561
|
*
|
|
1483
1562
|
* **When to use**
|
|
1484
1563
|
*
|
|
1485
|
-
* Use
|
|
1564
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1486
1565
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1487
1566
|
* when callers should also receive the dependency services.
|
|
1488
1567
|
*
|
|
@@ -1562,7 +1641,7 @@ export declare const provide: {
|
|
|
1562
1641
|
*
|
|
1563
1642
|
* **When to use**
|
|
1564
1643
|
*
|
|
1565
|
-
* Use
|
|
1644
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1566
1645
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1567
1646
|
* when callers should also receive the dependency services.
|
|
1568
1647
|
*
|
|
@@ -1642,7 +1721,7 @@ export declare const provide: {
|
|
|
1642
1721
|
*
|
|
1643
1722
|
* **When to use**
|
|
1644
1723
|
*
|
|
1645
|
-
* Use
|
|
1724
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1646
1725
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1647
1726
|
* when callers should also receive the dependency services.
|
|
1648
1727
|
*
|
|
@@ -1722,7 +1801,7 @@ export declare const provide: {
|
|
|
1722
1801
|
*
|
|
1723
1802
|
* **When to use**
|
|
1724
1803
|
*
|
|
1725
|
-
* Use
|
|
1804
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1726
1805
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1727
1806
|
* when callers should also receive the dependency services.
|
|
1728
1807
|
*
|
|
@@ -1802,7 +1881,7 @@ export declare const provide: {
|
|
|
1802
1881
|
*
|
|
1803
1882
|
* **When to use**
|
|
1804
1883
|
*
|
|
1805
|
-
* Use
|
|
1884
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1806
1885
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1807
1886
|
* when callers should also receive the dependency services.
|
|
1808
1887
|
*
|
|
@@ -1883,7 +1962,7 @@ export declare const provide: {
|
|
|
1883
1962
|
*
|
|
1884
1963
|
* **When to use**
|
|
1885
1964
|
*
|
|
1886
|
-
* Use
|
|
1965
|
+
* Use when callers need access to both the service being built and the
|
|
1887
1966
|
* dependency used to build it, such as a health check that needs both a
|
|
1888
1967
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
1889
1968
|
* private.
|
|
@@ -1965,7 +2044,7 @@ export declare const provideMerge: {
|
|
|
1965
2044
|
*
|
|
1966
2045
|
* **When to use**
|
|
1967
2046
|
*
|
|
1968
|
-
* Use
|
|
2047
|
+
* Use when callers need access to both the service being built and the
|
|
1969
2048
|
* dependency used to build it, such as a health check that needs both a
|
|
1970
2049
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
1971
2050
|
* private.
|
|
@@ -2047,7 +2126,7 @@ export declare const provideMerge: {
|
|
|
2047
2126
|
*
|
|
2048
2127
|
* **When to use**
|
|
2049
2128
|
*
|
|
2050
|
-
* Use
|
|
2129
|
+
* Use when callers need access to both the service being built and the
|
|
2051
2130
|
* dependency used to build it, such as a health check that needs both a
|
|
2052
2131
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2053
2132
|
* private.
|
|
@@ -2129,7 +2208,7 @@ export declare const provideMerge: {
|
|
|
2129
2208
|
*
|
|
2130
2209
|
* **When to use**
|
|
2131
2210
|
*
|
|
2132
|
-
* Use
|
|
2211
|
+
* Use when callers need access to both the service being built and the
|
|
2133
2212
|
* dependency used to build it, such as a health check that needs both a
|
|
2134
2213
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2135
2214
|
* private.
|
|
@@ -2211,7 +2290,7 @@ export declare const provideMerge: {
|
|
|
2211
2290
|
*
|
|
2212
2291
|
* **When to use**
|
|
2213
2292
|
*
|
|
2214
|
-
* Use
|
|
2293
|
+
* Use when callers need access to both the service being built and the
|
|
2215
2294
|
* dependency used to build it, such as a health check that needs both a
|
|
2216
2295
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2217
2296
|
* private.
|
|
@@ -2508,11 +2587,20 @@ export declare const flatMap: {
|
|
|
2508
2587
|
/**
|
|
2509
2588
|
* Performs the specified effect if this layer succeeds.
|
|
2510
2589
|
*
|
|
2590
|
+
* **When to use**
|
|
2591
|
+
*
|
|
2592
|
+
* Use to run an effectful observation after a layer has been built
|
|
2593
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
2594
|
+
* layer provides.
|
|
2595
|
+
*
|
|
2511
2596
|
* **Details**
|
|
2512
2597
|
*
|
|
2513
2598
|
* The callback receives the services produced by this layer. Its result is
|
|
2514
2599
|
* discarded, and the original layer output is preserved.
|
|
2515
2600
|
*
|
|
2601
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
2602
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
2603
|
+
*
|
|
2516
2604
|
* @category sequencing
|
|
2517
2605
|
* @since 2.0.0
|
|
2518
2606
|
*/
|
|
@@ -2520,11 +2608,20 @@ export declare const tap: {
|
|
|
2520
2608
|
/**
|
|
2521
2609
|
* Performs the specified effect if this layer succeeds.
|
|
2522
2610
|
*
|
|
2611
|
+
* **When to use**
|
|
2612
|
+
*
|
|
2613
|
+
* Use to run an effectful observation after a layer has been built
|
|
2614
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
2615
|
+
* layer provides.
|
|
2616
|
+
*
|
|
2523
2617
|
* **Details**
|
|
2524
2618
|
*
|
|
2525
2619
|
* The callback receives the services produced by this layer. Its result is
|
|
2526
2620
|
* discarded, and the original layer output is preserved.
|
|
2527
2621
|
*
|
|
2622
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
2623
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
2624
|
+
*
|
|
2528
2625
|
* @category sequencing
|
|
2529
2626
|
* @since 2.0.0
|
|
2530
2627
|
*/
|
|
@@ -2532,11 +2629,20 @@ export declare const tap: {
|
|
|
2532
2629
|
/**
|
|
2533
2630
|
* Performs the specified effect if this layer succeeds.
|
|
2534
2631
|
*
|
|
2632
|
+
* **When to use**
|
|
2633
|
+
*
|
|
2634
|
+
* Use to run an effectful observation after a layer has been built
|
|
2635
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
2636
|
+
* layer provides.
|
|
2637
|
+
*
|
|
2535
2638
|
* **Details**
|
|
2536
2639
|
*
|
|
2537
2640
|
* The callback receives the services produced by this layer. Its result is
|
|
2538
2641
|
* discarded, and the original layer output is preserved.
|
|
2539
2642
|
*
|
|
2643
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
2644
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
2645
|
+
*
|
|
2540
2646
|
* @category sequencing
|
|
2541
2647
|
* @since 2.0.0
|
|
2542
2648
|
*/
|
|
@@ -2545,12 +2651,20 @@ export declare const tap: {
|
|
|
2545
2651
|
/**
|
|
2546
2652
|
* Performs the specified effect if this layer fails.
|
|
2547
2653
|
*
|
|
2654
|
+
* **When to use**
|
|
2655
|
+
*
|
|
2656
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
2657
|
+
* while preserving the original typed error.
|
|
2658
|
+
*
|
|
2548
2659
|
* **Details**
|
|
2549
2660
|
*
|
|
2550
2661
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2551
2662
|
* still fails with the original error; if the callback fails, that failure is
|
|
2552
2663
|
* added to the layer's error type.
|
|
2553
2664
|
*
|
|
2665
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
2666
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
2667
|
+
*
|
|
2554
2668
|
* @category sequencing
|
|
2555
2669
|
* @since 2.0.0
|
|
2556
2670
|
*/
|
|
@@ -2558,12 +2672,20 @@ export declare const tapError: {
|
|
|
2558
2672
|
/**
|
|
2559
2673
|
* Performs the specified effect if this layer fails.
|
|
2560
2674
|
*
|
|
2675
|
+
* **When to use**
|
|
2676
|
+
*
|
|
2677
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
2678
|
+
* while preserving the original typed error.
|
|
2679
|
+
*
|
|
2561
2680
|
* **Details**
|
|
2562
2681
|
*
|
|
2563
2682
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2564
2683
|
* still fails with the original error; if the callback fails, that failure is
|
|
2565
2684
|
* added to the layer's error type.
|
|
2566
2685
|
*
|
|
2686
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
2687
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
2688
|
+
*
|
|
2567
2689
|
* @category sequencing
|
|
2568
2690
|
* @since 2.0.0
|
|
2569
2691
|
*/
|
|
@@ -2571,12 +2693,20 @@ export declare const tapError: {
|
|
|
2571
2693
|
/**
|
|
2572
2694
|
* Performs the specified effect if this layer fails.
|
|
2573
2695
|
*
|
|
2696
|
+
* **When to use**
|
|
2697
|
+
*
|
|
2698
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
2699
|
+
* while preserving the original typed error.
|
|
2700
|
+
*
|
|
2574
2701
|
* **Details**
|
|
2575
2702
|
*
|
|
2576
2703
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2577
2704
|
* still fails with the original error; if the callback fails, that failure is
|
|
2578
2705
|
* added to the layer's error type.
|
|
2579
2706
|
*
|
|
2707
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
2708
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
2709
|
+
*
|
|
2580
2710
|
* @category sequencing
|
|
2581
2711
|
* @since 2.0.0
|
|
2582
2712
|
*/
|
|
@@ -2585,6 +2715,11 @@ export declare const tapError: {
|
|
|
2585
2715
|
/**
|
|
2586
2716
|
* Performs the specified effect when this layer fails with any cause.
|
|
2587
2717
|
*
|
|
2718
|
+
* **When to use**
|
|
2719
|
+
*
|
|
2720
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
2721
|
+
* full `Cause` is needed.
|
|
2722
|
+
*
|
|
2588
2723
|
* **Details**
|
|
2589
2724
|
*
|
|
2590
2725
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2592,6 +2727,9 @@ export declare const tapError: {
|
|
|
2592
2727
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2593
2728
|
* added to the layer's error type.
|
|
2594
2729
|
*
|
|
2730
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
2731
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
2732
|
+
*
|
|
2595
2733
|
* @category sequencing
|
|
2596
2734
|
* @since 4.0.0
|
|
2597
2735
|
*/
|
|
@@ -2599,6 +2737,11 @@ export declare const tapCause: {
|
|
|
2599
2737
|
/**
|
|
2600
2738
|
* Performs the specified effect when this layer fails with any cause.
|
|
2601
2739
|
*
|
|
2740
|
+
* **When to use**
|
|
2741
|
+
*
|
|
2742
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
2743
|
+
* full `Cause` is needed.
|
|
2744
|
+
*
|
|
2602
2745
|
* **Details**
|
|
2603
2746
|
*
|
|
2604
2747
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2606,6 +2749,9 @@ export declare const tapCause: {
|
|
|
2606
2749
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2607
2750
|
* added to the layer's error type.
|
|
2608
2751
|
*
|
|
2752
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
2753
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
2754
|
+
*
|
|
2609
2755
|
* @category sequencing
|
|
2610
2756
|
* @since 4.0.0
|
|
2611
2757
|
*/
|
|
@@ -2613,6 +2759,11 @@ export declare const tapCause: {
|
|
|
2613
2759
|
/**
|
|
2614
2760
|
* Performs the specified effect when this layer fails with any cause.
|
|
2615
2761
|
*
|
|
2762
|
+
* **When to use**
|
|
2763
|
+
*
|
|
2764
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
2765
|
+
* full `Cause` is needed.
|
|
2766
|
+
*
|
|
2616
2767
|
* **Details**
|
|
2617
2768
|
*
|
|
2618
2769
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2620,6 +2771,9 @@ export declare const tapCause: {
|
|
|
2620
2771
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2621
2772
|
* added to the layer's error type.
|
|
2622
2773
|
*
|
|
2774
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
2775
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
2776
|
+
*
|
|
2623
2777
|
* @category sequencing
|
|
2624
2778
|
* @since 4.0.0
|
|
2625
2779
|
*/
|
|
@@ -2682,7 +2836,7 @@ export {
|
|
|
2682
2836
|
*
|
|
2683
2837
|
* **When to use**
|
|
2684
2838
|
*
|
|
2685
|
-
* Use
|
|
2839
|
+
* Use when every typed construction error should use the same recovery
|
|
2686
2840
|
* path. Use `catchTag` to recover from specific tagged errors, and `catchCause`
|
|
2687
2841
|
* when recovery needs the full failure cause.
|
|
2688
2842
|
*
|
|
@@ -2698,7 +2852,7 @@ catch_ as catch };
|
|
|
2698
2852
|
*
|
|
2699
2853
|
* **When to use**
|
|
2700
2854
|
*
|
|
2701
|
-
* Use
|
|
2855
|
+
* Use when only some tagged construction errors should be recovered.
|
|
2702
2856
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
2703
2857
|
* cause information.
|
|
2704
2858
|
*
|
|
@@ -2733,7 +2887,7 @@ export declare const catchTag: {
|
|
|
2733
2887
|
*
|
|
2734
2888
|
* **When to use**
|
|
2735
2889
|
*
|
|
2736
|
-
* Use
|
|
2890
|
+
* Use when only some tagged construction errors should be recovered.
|
|
2737
2891
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
2738
2892
|
* cause information.
|
|
2739
2893
|
*
|
|
@@ -2768,7 +2922,7 @@ export declare const catchTag: {
|
|
|
2768
2922
|
*
|
|
2769
2923
|
* **When to use**
|
|
2770
2924
|
*
|
|
2771
|
-
* Use
|
|
2925
|
+
* Use when only some tagged construction errors should be recovered.
|
|
2772
2926
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
2773
2927
|
* cause information.
|
|
2774
2928
|
*
|
|
@@ -2804,7 +2958,7 @@ export declare const catchTag: {
|
|
|
2804
2958
|
*
|
|
2805
2959
|
* **When to use**
|
|
2806
2960
|
*
|
|
2807
|
-
* Use
|
|
2961
|
+
* Use when recovery needs more than the typed error, such as
|
|
2808
2962
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
2809
2963
|
* to match specific tagged errors.
|
|
2810
2964
|
*
|
|
@@ -2863,7 +3017,7 @@ export declare const catchCause: {
|
|
|
2863
3017
|
*
|
|
2864
3018
|
* **When to use**
|
|
2865
3019
|
*
|
|
2866
|
-
* Use
|
|
3020
|
+
* Use when recovery needs more than the typed error, such as
|
|
2867
3021
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
2868
3022
|
* to match specific tagged errors.
|
|
2869
3023
|
*
|
|
@@ -2922,7 +3076,7 @@ export declare const catchCause: {
|
|
|
2922
3076
|
*
|
|
2923
3077
|
* **When to use**
|
|
2924
3078
|
*
|
|
2925
|
-
* Use
|
|
3079
|
+
* Use when recovery needs more than the typed error, such as
|
|
2926
3080
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
2927
3081
|
* to match specific tagged errors.
|
|
2928
3082
|
*
|
|
@@ -2982,7 +3136,7 @@ export declare const catchCause: {
|
|
|
2982
3136
|
*
|
|
2983
3137
|
* **When to use**
|
|
2984
3138
|
*
|
|
2985
|
-
* Use
|
|
3139
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
2986
3140
|
* layer.
|
|
2987
3141
|
*
|
|
2988
3142
|
* **Details**
|
|
@@ -3001,7 +3155,7 @@ export declare const updateService: {
|
|
|
3001
3155
|
*
|
|
3002
3156
|
* **When to use**
|
|
3003
3157
|
*
|
|
3004
|
-
* Use
|
|
3158
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
3005
3159
|
* layer.
|
|
3006
3160
|
*
|
|
3007
3161
|
* **Details**
|
|
@@ -3020,7 +3174,7 @@ export declare const updateService: {
|
|
|
3020
3174
|
*
|
|
3021
3175
|
* **When to use**
|
|
3022
3176
|
*
|
|
3023
|
-
* Use
|
|
3177
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
3024
3178
|
* layer.
|
|
3025
3179
|
*
|
|
3026
3180
|
* **Details**
|
|
@@ -3040,7 +3194,7 @@ export declare const updateService: {
|
|
|
3040
3194
|
*
|
|
3041
3195
|
* **When to use**
|
|
3042
3196
|
*
|
|
3043
|
-
* Use
|
|
3197
|
+
* Use when two parts of an application must receive separate instances
|
|
3044
3198
|
* of a resource, such as two independent client sessions. Do not use it just to
|
|
3045
3199
|
* work around confusing composition: by default, sharing the same layer value is
|
|
3046
3200
|
* usually the desired behavior.
|
|
@@ -3120,7 +3274,7 @@ export declare const fresh: <A, E, R>(self: Layer<A, E, R>) => Layer<A, E, R>;
|
|
|
3120
3274
|
*
|
|
3121
3275
|
* **When to use**
|
|
3122
3276
|
*
|
|
3123
|
-
* Use
|
|
3277
|
+
* Use when your entire application is a layer, such as an HTTP server.
|
|
3124
3278
|
*
|
|
3125
3279
|
* **Details**
|
|
3126
3280
|
*
|
|
@@ -3182,11 +3336,19 @@ export declare const launch: <RIn, E, ROut>(self: Layer<ROut, E, RIn>) => Effect
|
|
|
3182
3336
|
/**
|
|
3183
3337
|
* A utility type for creating partial mocks of services in testing.
|
|
3184
3338
|
*
|
|
3339
|
+
* **When to use**
|
|
3340
|
+
*
|
|
3341
|
+
* Use to type partial test service implementations where only exercised
|
|
3342
|
+
* effectful members are stubbed.
|
|
3343
|
+
*
|
|
3185
3344
|
* **Details**
|
|
3186
3345
|
*
|
|
3187
|
-
* This type makes Effect
|
|
3188
|
-
* while keeping non-
|
|
3189
|
-
* only the methods you need to test while leaving
|
|
3346
|
+
* This type makes `Effect`, `Stream`, and `Channel` values and functions
|
|
3347
|
+
* returning them optional, while keeping non-effectful properties required.
|
|
3348
|
+
* This allows you to provide only the methods you need to test while leaving
|
|
3349
|
+
* others unimplemented.
|
|
3350
|
+
*
|
|
3351
|
+
* @see {@link mock} for creating a mock layer from a partial service implementation
|
|
3190
3352
|
*
|
|
3191
3353
|
* @category testing
|
|
3192
3354
|
* @since 3.17.0
|
|
@@ -3467,6 +3629,20 @@ export declare const satisfiesServicesType: <RIn>() => <ROut, E, RIn2 extends RI
|
|
|
3467
3629
|
* Represents options that can be used to control the behavior of spans created
|
|
3468
3630
|
* for layers.
|
|
3469
3631
|
*
|
|
3632
|
+
* **When to use**
|
|
3633
|
+
*
|
|
3634
|
+
* Use to configure tracing metadata, stack trace capture, and `onEnd`
|
|
3635
|
+
* finalization for spans created by `Layer.span` and `Layer.withSpan` during
|
|
3636
|
+
* layer construction.
|
|
3637
|
+
*
|
|
3638
|
+
* **Details**
|
|
3639
|
+
*
|
|
3640
|
+
* Extends `Tracer.SpanOptions` with `onEnd`, which runs when the layer span
|
|
3641
|
+
* ends as the layer scope closes.
|
|
3642
|
+
*
|
|
3643
|
+
* @see {@link span} for creating a layer span
|
|
3644
|
+
* @see {@link withSpan} for wrapping layer construction in a span
|
|
3645
|
+
*
|
|
3470
3646
|
* @category models
|
|
3471
3647
|
* @since 4.0.0
|
|
3472
3648
|
*/
|