effect 4.0.0-beta.70 → 4.0.0-beta.72
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 +1483 -239
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +617 -164
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +646 -52
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +331 -28
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +474 -18
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +292 -14
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +239 -19
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +163 -13
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +53 -8
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +82 -11
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +73 -12
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +53 -15
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +488 -200
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +349 -129
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +539 -158
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +222 -89
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +81 -6
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +45 -4
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +179 -54
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +65 -22
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +60 -3
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +31 -1
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +21 -21
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +14 -18
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +135 -50
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +109 -37
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +52 -29
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +21 -21
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +32 -7
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +32 -7
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +503 -48
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +191 -17
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +116 -6
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +92 -6
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +30 -1
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +30 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +92 -47
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +16 -12
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +313 -128
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +167 -68
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +345 -79
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +131 -12
- 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 +203 -50
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +112 -32
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +2006 -810
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +785 -350
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +16 -2
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +16 -2
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +100 -8
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +141 -8
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +10 -11
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +7 -8
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +46 -43
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +43 -35
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +135 -16
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +93 -12
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +96 -26
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +28 -2
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +149 -101
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +117 -80
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +321 -72
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +152 -3
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +6 -6
- package/dist/FiberHandle.js +4 -4
- package/dist/FiberMap.d.ts +18 -18
- package/dist/FiberMap.js +8 -8
- package/dist/FiberSet.d.ts +21 -13
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -9
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +79 -16
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +93 -33
- 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 +4 -6
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +3 -5
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +164 -18
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +116 -15
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +297 -25
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +75 -12
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +59 -26
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +95 -19
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +119 -17
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +35 -37
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +13 -15
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +210 -9
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +95 -5
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +16 -16
- package/dist/HashSet.js +6 -6
- package/dist/Inspectable.d.ts +47 -4
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +74 -17
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +261 -81
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +123 -43
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +34 -19
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +52 -44
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +5 -5
- package/dist/JsonPointer.js +5 -5
- package/dist/JsonSchema.d.ts +77 -33
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +45 -31
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +158 -13
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +79 -4
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +297 -101
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +94 -36
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +9 -2
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +1 -2
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +96 -21
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +68 -9
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +21 -7
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +26 -13
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +82 -10
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +33 -2
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +215 -42
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +242 -59
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +68 -41
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +60 -33
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +285 -40
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +128 -7
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +111 -4
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +98 -39
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +24 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +23 -5
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +141 -4
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +73 -2
- 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 +22 -6
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +6 -1
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +434 -17
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +268 -13
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +26 -33
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +18 -25
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +186 -150
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +75 -72
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +93 -120
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +149 -142
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +37 -5
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +22 -3
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +238 -15
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +106 -8
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +34 -6
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +19 -5
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +29 -4
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +16 -4
- 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 +98 -168
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +109 -120
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +75 -9
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +70 -9
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +241 -66
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +187 -52
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +148 -3
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +69 -2
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +167 -59
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +163 -55
- 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 +171 -9
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +49 -3
- 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 +174 -53
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +128 -23
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +27 -23
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +22 -18
- 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 -7
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +2 -4
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +168 -32
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +135 -30
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +226 -30
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +162 -23
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +15 -2
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +49 -3
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +218 -35
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +57 -10
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +213 -29
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +99 -11
- 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 +380 -57
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +176 -32
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +124 -14
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +150 -25
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +436 -115
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +344 -107
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +53 -4
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +42 -3
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +934 -239
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +655 -217
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +239 -28
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +239 -28
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +127 -129
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +115 -117
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +45 -56
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +39 -50
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +254 -15
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +295 -33
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +106 -77
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +101 -71
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +92 -56
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +86 -50
- 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 +127 -25
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +91 -21
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +364 -19
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +155 -7
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +69 -7
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +49 -5
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +348 -29
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +103 -8
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +343 -45
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +194 -26
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +72 -17
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +62 -16
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +774 -224
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +333 -91
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +219 -47
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +179 -29
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +54 -110
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +26 -42
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +341 -105
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +162 -44
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +25 -7
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +25 -7
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +529 -29
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +193 -11
- 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 +76 -20
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +41 -5
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +74 -7
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +74 -7
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +67 -30
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +7 -7
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +96 -108
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +42 -52
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +42 -9
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +42 -9
- 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/TxHashMap.d.ts +20 -20
- package/dist/TxHashMap.js +8 -8
- package/dist/TxHashSet.d.ts +14 -14
- package/dist/TxHashSet.js +6 -6
- package/dist/TxPriorityQueue.d.ts +43 -8
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +41 -6
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +98 -8
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +70 -8
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +58 -17
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +10 -10
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +88 -16
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +78 -14
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +113 -8
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +82 -8
- 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 +206 -3
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +111 -3
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +68 -13
- 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 +130 -22
- 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 +21 -16
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +14 -6
- 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 +79 -30
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +69 -31
- 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 +33 -5
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +33 -5
- 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 +45 -6
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +73 -33
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +104 -8
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +103 -7
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +8 -3
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +8 -3
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +51 -7
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +50 -6
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +299 -169
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +278 -147
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +108 -14
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +80 -10
- 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 +24 -3
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +23 -2
- 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 +41 -25
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +41 -25
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +85 -24
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +84 -23
- 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/CliError.d.ts +3 -3
- package/dist/unstable/cli/CliError.js +3 -3
- package/dist/unstable/cli/CliOutput.d.ts +1 -1
- package/dist/unstable/cli/Command.d.ts +136 -8
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +50 -4
- 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 +24 -12
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +18 -6
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +39 -8
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +39 -8
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +128 -2
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +59 -7
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +59 -10
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +37 -7
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +51 -9
- 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/cli/internal/parser.js +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 +58 -5
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +58 -5
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +87 -26
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +87 -26
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +49 -10
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +6 -1
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js +6 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +33 -6
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +32 -5
- 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/EntityResource.d.ts +5 -6
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +4 -5
- package/dist/unstable/cluster/EntityResource.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/Envelope.d.ts +11 -11
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +11 -11
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +42 -22
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +42 -22
- 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 +11 -11
- package/dist/unstable/cluster/Message.js +11 -11
- package/dist/unstable/cluster/MessageStorage.d.ts +38 -24
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +37 -23
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +18 -8
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +18 -8
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +47 -14
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +47 -14
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +52 -10
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +52 -10
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +33 -16
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +33 -16
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +19 -4
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +19 -4
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +25 -1
- 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 +24 -2
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +24 -2
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +27 -3
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +63 -20
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +60 -16
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +61 -17
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +27 -14
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +28 -15
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +26 -1
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +26 -1
- 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 +19 -5
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +19 -5
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +27 -1
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +27 -1
- 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 +25 -14
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +25 -14
- 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 +2 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +30 -14
- 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 +38 -17
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +3 -3
- 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 +23 -15
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +22 -14
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +36 -19
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +63 -25
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +61 -23
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +49 -40
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +28 -28
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +14 -4
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +14 -4
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +7 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +7 -2
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +24 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +24 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +82 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +119 -22
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +33 -7
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +68 -24
- 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 +99 -52
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +77 -30
- 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 +59 -17
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +59 -17
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +60 -22
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +58 -20
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +6 -2
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +59 -15
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +66 -30
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +17 -7
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +15 -14
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +39 -22
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +37 -16
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +37 -16
- 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 +3 -3
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +3 -3
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +46 -20
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +46 -20
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +19 -14
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +54 -26
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +34 -21
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +34 -21
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +41 -28
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +39 -26
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +53 -21
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +20 -5
- 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 +64 -42
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +48 -26
- 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 +32 -19
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +32 -19
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +39 -19
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +39 -19
- 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 +41 -28
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +32 -17
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +43 -28
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +40 -25
- 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 +50 -26
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +3 -3
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +3 -3
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +39 -25
- 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 +2 -2
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +37 -17
- 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 +43 -43
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +42 -42
- 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/HttpApiTest.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +7 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +45 -27
- 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 +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +31 -15
- 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 +3 -3
- package/dist/unstable/observability/PrometheusMetrics.js +3 -3
- 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 +12 -4
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +10 -2
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +8 -3
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +8 -3
- package/dist/unstable/persistence/Persistable.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/PersistedQueue.d.ts +10 -5
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +9 -4
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +20 -10
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +19 -9
- package/dist/unstable/persistence/RateLimiter.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/ChildProcess.d.ts +14 -14
- package/dist/unstable/process/ChildProcess.js +7 -7
- package/dist/unstable/process/ChildProcessSpawner.d.ts +17 -5
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +17 -5
- 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 +74 -22
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +52 -20
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +81 -35
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +70 -32
- 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 +81 -20
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +81 -20
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +37 -17
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +44 -21
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +44 -21
- 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 +47 -32
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +15 -11
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +27 -12
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +27 -12
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +31 -17
- package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +31 -17
- 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 +37 -19
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +4 -4
- 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 +30 -20
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +30 -20
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +50 -33
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +48 -31
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +22 -17
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +22 -17
- 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/Model.d.ts +32 -33
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +25 -26
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -1
- package/dist/unstable/schema/VariantSchema.js +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/Socket.d.ts +8 -2
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +8 -2
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +2 -2
- package/dist/unstable/socket/SocketServer.js +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/SqlClient.d.ts +7 -2
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +7 -2
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/SqlError.d.ts +2 -2
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +33 -17
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +3 -3
- package/dist/unstable/sql/SqlResolver.js +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +51 -21
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +51 -21
- 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 +32 -21
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +32 -21
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +37 -24
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +35 -22
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +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 +2 -2
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +25 -13
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +12 -12
- package/dist/unstable/workflow/DurableDeferred.js +7 -7
- package/dist/unstable/workflow/DurableQueue.d.ts +36 -18
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +36 -18
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +22 -23
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +17 -18
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +26 -8
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +25 -7
- package/dist/unstable/workflow/WorkflowEngine.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 +1557 -312
- package/src/BigDecimal.ts +646 -52
- package/src/BigInt.ts +474 -18
- package/src/Boolean.ts +239 -19
- package/src/Brand.ts +102 -11
- package/src/Cache.ts +96 -24
- package/src/Cause.ts +488 -200
- package/src/Channel.ts +647 -191
- package/src/ChannelSchema.ts +99 -6
- package/src/Chunk.ts +187 -54
- package/src/Clock.ts +60 -3
- package/src/Combiner.ts +21 -21
- package/src/Config.ts +135 -50
- package/src/ConfigProvider.ts +52 -29
- package/src/Console.ts +32 -7
- package/src/Context.ts +516 -50
- package/src/Cron.ts +116 -6
- package/src/Crypto.ts +30 -1
- package/src/Data.ts +92 -47
- package/src/DateTime.ts +313 -128
- package/src/Deferred.ts +345 -79
- package/src/Differ.ts +5 -0
- package/src/Duration.ts +203 -50
- package/src/Effect.ts +2044 -816
- package/src/Effectable.ts +16 -2
- package/src/Encoding.ts +146 -9
- package/src/Equal.ts +10 -11
- package/src/Equivalence.ts +49 -46
- package/src/ErrorReporter.ts +135 -16
- package/src/ExecutionPlan.ts +96 -26
- package/src/Exit.ts +149 -101
- package/src/Fiber.ts +321 -72
- package/src/FiberHandle.ts +6 -6
- package/src/FiberMap.ts +20 -20
- package/src/FiberSet.ts +21 -13
- package/src/FileSystem.ts +119 -39
- package/src/Filter.ts +221 -2
- package/src/Formatter.ts +4 -6
- package/src/Function.ts +164 -18
- package/src/Graph.ts +297 -25
- package/src/HKT.ts +59 -26
- package/src/Hash.ts +143 -23
- package/src/HashMap.ts +35 -37
- package/src/HashRing.ts +210 -9
- package/src/HashSet.ts +16 -16
- package/src/Inspectable.ts +86 -17
- package/src/Iterable.ts +261 -81
- package/src/JsonPatch.ts +79 -56
- package/src/JsonPointer.ts +5 -5
- package/src/JsonSchema.ts +77 -33
- package/src/Latch.ts +164 -13
- package/src/Layer.ts +297 -101
- package/src/LayerMap.ts +9 -2
- package/src/LogLevel.ts +96 -21
- package/src/Logger.ts +31 -15
- package/src/ManagedRuntime.ts +82 -10
- package/src/Match.ts +250 -59
- package/src/Metric.ts +68 -41
- package/src/MutableHashMap.ts +381 -52
- package/src/MutableHashSet.ts +145 -41
- package/src/MutableList.ts +24 -6
- package/src/MutableRef.ts +141 -4
- package/src/Newtype.ts +20 -11
- package/src/NonEmptyIterable.ts +22 -6
- package/src/Number.ts +434 -17
- package/src/Optic.ts +26 -33
- package/src/Option.ts +186 -150
- package/src/Order.ts +163 -161
- package/src/Ordering.ts +37 -5
- package/src/PartitionedSemaphore.ts +238 -15
- package/src/Path.ts +34 -6
- package/src/Pipeable.ts +29 -4
- package/src/PlatformError.ts +53 -4
- package/src/Pool.ts +174 -32
- package/src/Predicate.ts +151 -196
- package/src/PrimaryKey.ts +75 -9
- package/src/PubSub.ts +241 -66
- package/src/Pull.ts +148 -3
- package/src/Queue.ts +167 -59
- package/src/Random.ts +71 -16
- package/src/RcMap.ts +171 -9
- package/src/RcRef.ts +73 -18
- package/src/Record.ts +174 -53
- package/src/Redactable.ts +27 -23
- package/src/Redacted.ts +82 -4
- package/src/Reducer.ts +17 -7
- package/src/Ref.ts +332 -54
- package/src/References.ts +226 -30
- package/src/RegExp.ts +49 -3
- package/src/Request.ts +218 -35
- package/src/RequestResolver.ts +268 -36
- package/src/Resource.ts +62 -3
- package/src/Result.ts +380 -57
- package/src/Runtime.ts +172 -32
- package/src/Schedule.ts +510 -145
- package/src/Scheduler.ts +53 -4
- package/src/Schema.ts +975 -264
- package/src/SchemaAST.ts +239 -28
- package/src/SchemaGetter.ts +127 -129
- package/src/SchemaIssue.ts +45 -56
- package/src/SchemaParser.ts +295 -33
- package/src/SchemaRepresentation.ts +106 -77
- package/src/SchemaTransformation.ts +92 -56
- package/src/SchemaUtils.ts +38 -11
- package/src/Scope.ts +127 -25
- package/src/ScopedCache.ts +418 -21
- package/src/ScopedRef.ts +69 -7
- package/src/Semaphore.ts +348 -29
- package/src/Sink.ts +343 -45
- package/src/Stdio.ts +72 -17
- package/src/Stream.ts +880 -242
- package/src/String.ts +221 -49
- package/src/Struct.ts +54 -110
- package/src/SubscriptionRef.ts +341 -105
- package/src/Symbol.ts +25 -7
- package/src/SynchronizedRef.ts +529 -29
- package/src/Take.ts +36 -13
- package/src/Terminal.ts +76 -20
- package/src/Tracer.ts +74 -7
- package/src/Trie.ts +67 -30
- package/src/Tuple.ts +96 -108
- package/src/TxChunk.ts +42 -9
- package/src/TxDeferred.ts +85 -2
- package/src/TxHashMap.ts +22 -22
- package/src/TxHashSet.ts +22 -22
- package/src/TxPriorityQueue.ts +43 -8
- package/src/TxPubSub.ts +98 -8
- package/src/TxQueue.ts +58 -17
- package/src/TxReentrantLock.ts +88 -16
- package/src/TxRef.ts +113 -8
- package/src/TxSemaphore.ts +173 -14
- package/src/TxSubscriptionRef.ts +206 -3
- package/src/Types.ts +68 -13
- package/src/UndefinedOr.ts +171 -30
- package/src/Unify.ts +130 -22
- package/src/Utils.ts +21 -16
- 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 +81 -31
- package/src/testing/index.ts +0 -107
- package/src/unstable/ai/AiError.ts +33 -5
- package/src/unstable/ai/AnthropicStructuredOutput.ts +43 -11
- package/src/unstable/ai/Chat.ts +82 -33
- package/src/unstable/ai/EmbeddingModel.ts +104 -8
- package/src/unstable/ai/IdGenerator.ts +8 -3
- package/src/unstable/ai/LanguageModel.ts +51 -7
- package/src/unstable/ai/McpSchema.ts +299 -169
- package/src/unstable/ai/McpServer.ts +108 -14
- package/src/unstable/ai/Model.ts +35 -13
- package/src/unstable/ai/OpenAiStructuredOutput.ts +48 -1
- package/src/unstable/ai/Prompt.ts +24 -3
- 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 +41 -25
- package/src/unstable/ai/Tool.ts +85 -24
- 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/CliError.ts +3 -3
- package/src/unstable/cli/CliOutput.ts +1 -1
- package/src/unstable/cli/Command.ts +136 -8
- package/src/unstable/cli/Completions.ts +41 -1
- package/src/unstable/cli/Flag.ts +24 -12
- package/src/unstable/cli/GlobalFlag.ts +39 -8
- package/src/unstable/cli/Param.ts +137 -11
- package/src/unstable/cli/Primitive.ts +59 -10
- package/src/unstable/cli/Prompt.ts +63 -14
- package/src/unstable/cli/index.ts +0 -220
- package/src/unstable/cli/internal/parser.ts +1 -1
- package/src/unstable/cluster/ClusterCron.ts +1 -1
- package/src/unstable/cluster/ClusterError.ts +61 -22
- package/src/unstable/cluster/ClusterMetrics.ts +58 -5
- package/src/unstable/cluster/ClusterSchema.ts +87 -26
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +63 -11
- package/src/unstable/cluster/DeliverAt.ts +6 -1
- package/src/unstable/cluster/Entity.ts +33 -6
- package/src/unstable/cluster/EntityAddress.ts +19 -0
- package/src/unstable/cluster/EntityId.ts +44 -7
- package/src/unstable/cluster/EntityResource.ts +5 -6
- package/src/unstable/cluster/EntityType.ts +19 -0
- package/src/unstable/cluster/Envelope.ts +11 -11
- package/src/unstable/cluster/HttpRunner.ts +42 -22
- package/src/unstable/cluster/K8sHttpClient.ts +32 -13
- package/src/unstable/cluster/MachineId.ts +35 -9
- package/src/unstable/cluster/Message.ts +11 -11
- package/src/unstable/cluster/MessageStorage.ts +38 -24
- package/src/unstable/cluster/Reply.ts +18 -8
- package/src/unstable/cluster/Runner.ts +47 -14
- package/src/unstable/cluster/RunnerAddress.ts +52 -10
- package/src/unstable/cluster/RunnerHealth.ts +33 -16
- package/src/unstable/cluster/RunnerServer.ts +19 -4
- package/src/unstable/cluster/Runners.ts +25 -1
- package/src/unstable/cluster/ShardId.ts +24 -2
- package/src/unstable/cluster/Sharding.ts +63 -20
- package/src/unstable/cluster/ShardingConfig.ts +60 -16
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +27 -14
- package/src/unstable/cluster/SingleRunner.ts +26 -1
- package/src/unstable/cluster/Singleton.ts +51 -9
- package/src/unstable/cluster/SingletonAddress.ts +27 -13
- package/src/unstable/cluster/Snowflake.ts +19 -5
- package/src/unstable/cluster/SocketRunner.ts +27 -1
- package/src/unstable/cluster/SqlMessageStorage.ts +73 -13
- package/src/unstable/cluster/SqlRunnerStorage.ts +20 -0
- package/src/unstable/cluster/TestRunner.ts +25 -14
- 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 -14
- package/src/unstable/encoding/Ndjson.ts +28 -14
- package/src/unstable/encoding/Sse.ts +38 -17
- package/src/unstable/encoding/index.ts +0 -49
- package/src/unstable/eventlog/Event.ts +30 -15
- package/src/unstable/eventlog/EventGroup.ts +23 -15
- package/src/unstable/eventlog/EventJournal.ts +38 -21
- package/src/unstable/eventlog/EventLog.ts +63 -25
- package/src/unstable/eventlog/EventLogEncryption.ts +8 -3
- package/src/unstable/eventlog/EventLogMessage.ts +49 -40
- package/src/unstable/eventlog/EventLogRemote.ts +14 -4
- package/src/unstable/eventlog/EventLogServer.ts +36 -17
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +24 -2
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +119 -22
- package/src/unstable/eventlog/EventLogSessionAuth.ts +68 -24
- 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 +97 -50
- package/src/unstable/http/Etag.ts +43 -13
- package/src/unstable/http/FetchHttpClient.ts +59 -17
- package/src/unstable/http/Headers.ts +62 -24
- package/src/unstable/http/HttpBody.ts +59 -15
- package/src/unstable/http/HttpClient.ts +119 -33
- package/src/unstable/http/HttpClientError.ts +41 -24
- package/src/unstable/http/HttpClientRequest.ts +37 -16
- package/src/unstable/http/HttpClientResponse.ts +33 -14
- package/src/unstable/http/HttpEffect.ts +35 -18
- package/src/unstable/http/HttpMethod.ts +46 -20
- package/src/unstable/http/HttpRouter.ts +58 -30
- package/src/unstable/http/HttpServer.ts +34 -21
- package/src/unstable/http/HttpServerError.ts +41 -28
- package/src/unstable/http/HttpServerRequest.ts +51 -19
- package/src/unstable/http/HttpServerRespondable.ts +28 -14
- package/src/unstable/http/HttpServerResponse.ts +66 -44
- package/src/unstable/http/HttpStaticServer.ts +29 -12
- package/src/unstable/http/HttpTraceContext.ts +32 -19
- package/src/unstable/http/Multipart.ts +39 -19
- package/src/unstable/http/Template.ts +25 -12
- package/src/unstable/http/Url.ts +41 -28
- package/src/unstable/http/UrlParams.ts +43 -28
- package/src/unstable/http/index.ts +0 -452
- package/src/unstable/httpapi/HttpApi.ts +48 -24
- package/src/unstable/httpapi/HttpApiBuilder.ts +40 -26
- package/src/unstable/httpapi/HttpApiClient.ts +28 -16
- package/src/unstable/httpapi/HttpApiEndpoint.ts +51 -23
- package/src/unstable/httpapi/HttpApiError.ts +38 -18
- 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 +43 -43
- package/src/unstable/httpapi/HttpApiSecurity.ts +54 -24
- package/src/unstable/httpapi/HttpApiSwagger.ts +28 -16
- package/src/unstable/httpapi/HttpApiTest.ts +1 -1
- package/src/unstable/httpapi/OpenApi.ts +43 -25
- package/src/unstable/httpapi/index.ts +0 -311
- package/src/unstable/observability/Otlp.ts +31 -16
- package/src/unstable/observability/OtlpLogger.ts +31 -15
- package/src/unstable/observability/OtlpResource.ts +33 -15
- package/src/unstable/observability/OtlpSerialization.ts +25 -14
- package/src/unstable/observability/PrometheusMetrics.ts +3 -3
- package/src/unstable/observability/index.ts +0 -183
- package/src/unstable/persistence/KeyValueStore.ts +12 -4
- package/src/unstable/persistence/Persistable.ts +8 -3
- package/src/unstable/persistence/PersistedCache.ts +27 -14
- package/src/unstable/persistence/PersistedQueue.ts +10 -5
- package/src/unstable/persistence/RateLimiter.ts +20 -10
- package/src/unstable/persistence/Redis.ts +33 -15
- package/src/unstable/persistence/index.ts +0 -147
- package/src/unstable/process/ChildProcess.ts +14 -14
- package/src/unstable/process/ChildProcessSpawner.ts +17 -5
- package/src/unstable/process/index.ts +0 -45
- package/src/unstable/reactivity/AsyncResult.ts +96 -24
- package/src/unstable/reactivity/Atom.ts +89 -35
- package/src/unstable/reactivity/AtomRef.ts +58 -25
- package/src/unstable/reactivity/AtomRegistry.ts +79 -18
- package/src/unstable/reactivity/Hydration.ts +37 -17
- package/src/unstable/reactivity/Reactivity.ts +42 -19
- package/src/unstable/reactivity/index.ts +0 -166
- package/src/unstable/rpc/Rpc.ts +47 -32
- package/src/unstable/rpc/RpcClient.ts +58 -34
- package/src/unstable/rpc/RpcClientError.ts +29 -15
- package/src/unstable/rpc/RpcGroup.ts +28 -17
- package/src/unstable/rpc/RpcMessage.ts +37 -19
- package/src/unstable/rpc/RpcMiddleware.ts +31 -21
- package/src/unstable/rpc/RpcSchema.ts +30 -20
- package/src/unstable/rpc/RpcSerialization.ts +48 -31
- package/src/unstable/rpc/RpcServer.ts +53 -40
- 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/Model.ts +32 -33
- package/src/unstable/schema/VariantSchema.ts +1 -1
- package/src/unstable/schema/index.ts +0 -37
- package/src/unstable/socket/Socket.ts +8 -2
- package/src/unstable/socket/SocketServer.ts +2 -2
- package/src/unstable/socket/index.ts +0 -44
- package/src/unstable/sql/Migrator.ts +39 -18
- package/src/unstable/sql/SqlClient.ts +7 -2
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/SqlError.ts +33 -17
- package/src/unstable/sql/SqlResolver.ts +3 -3
- package/src/unstable/sql/SqlSchema.ts +51 -21
- package/src/unstable/sql/Statement.ts +35 -15
- package/src/unstable/sql/index.ts +0 -178
- package/src/unstable/workers/Transferable.ts +32 -21
- package/src/unstable/workers/Worker.ts +35 -22
- package/src/unstable/workers/WorkerError.ts +35 -19
- package/src/unstable/workers/WorkerRunner.ts +29 -18
- package/src/unstable/workers/index.ts +0 -80
- package/src/unstable/workflow/DurableClock.ts +25 -13
- package/src/unstable/workflow/DurableDeferred.ts +12 -12
- package/src/unstable/workflow/DurableQueue.ts +34 -16
- package/src/unstable/workflow/Workflow.ts +22 -23
- package/src/unstable/workflow/WorkflowEngine.ts +26 -8
- package/src/unstable/workflow/index.ts +0 -160
package/src/Layer.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
|
*/
|
|
@@ -55,6 +68,12 @@ const TypeId = "~effect/Layer"
|
|
|
55
68
|
/**
|
|
56
69
|
* A `Layer` describes how to build one or more services for dependency injection.
|
|
57
70
|
*
|
|
71
|
+
* **When to use**
|
|
72
|
+
*
|
|
73
|
+
* Use to model construction of application services for dependency injection,
|
|
74
|
+
* especially when services have dependencies, can fail during construction, or
|
|
75
|
+
* need scoped setup and release.
|
|
76
|
+
*
|
|
58
77
|
* **Details**
|
|
59
78
|
*
|
|
60
79
|
* A `Layer<ROut, E, RIn>` represents `ROut` as the services this layer
|
|
@@ -118,11 +137,22 @@ export interface Variance<in ROut, out E, out RIn> {
|
|
|
118
137
|
/**
|
|
119
138
|
* A type-level constraint for working with any `Layer` type.
|
|
120
139
|
*
|
|
140
|
+
* **When to use**
|
|
141
|
+
*
|
|
142
|
+
* Use to constrain generic parameters or layer collections to any `Layer`
|
|
143
|
+
* value while preserving its provided, error, and required service types for
|
|
144
|
+
* inference.
|
|
145
|
+
*
|
|
121
146
|
* **Details**
|
|
122
147
|
*
|
|
123
148
|
* This interface is used to constrain generic types to `Layer` values without
|
|
124
149
|
* specifying exact type parameters.
|
|
125
150
|
*
|
|
151
|
+
* @see {@link Layer} for the concrete layer interface
|
|
152
|
+
* @see {@link Services} for extracting required services from a layer type
|
|
153
|
+
* @see {@link Error} for extracting construction errors from a layer type
|
|
154
|
+
* @see {@link Success} for extracting provided services from a layer type
|
|
155
|
+
*
|
|
126
156
|
* @category utility types
|
|
127
157
|
* @since 3.9.0
|
|
128
158
|
*/
|
|
@@ -136,6 +166,14 @@ export interface Any {
|
|
|
136
166
|
/**
|
|
137
167
|
* Extracts the service requirements (`RIn`) from a `Layer` type.
|
|
138
168
|
*
|
|
169
|
+
* **When to use**
|
|
170
|
+
*
|
|
171
|
+
* Use to derive the dependency requirements of a generic or inferred `Layer`
|
|
172
|
+
* without restating its `RIn` type parameter.
|
|
173
|
+
*
|
|
174
|
+
* @see {@link Success} for extracting the services provided by the same `Layer`
|
|
175
|
+
* @see {@link Error} for extracting the construction failure type from the same `Layer`
|
|
176
|
+
*
|
|
139
177
|
* @category utility types
|
|
140
178
|
* @since 4.0.0
|
|
141
179
|
*/
|
|
@@ -145,6 +183,14 @@ export type Services<T extends Any> = T extends infer L
|
|
|
145
183
|
/**
|
|
146
184
|
* Extracts the error type (`E`) from a `Layer` type.
|
|
147
185
|
*
|
|
186
|
+
* **When to use**
|
|
187
|
+
*
|
|
188
|
+
* Use to derive a layer construction error type for helper types, wrappers, or
|
|
189
|
+
* APIs that preserve a layer failure channel.
|
|
190
|
+
*
|
|
191
|
+
* @see {@link Success} for extracting the services provided by the same `Layer`
|
|
192
|
+
* @see {@link Services} for extracting the dependency requirements of the same `Layer`
|
|
193
|
+
*
|
|
148
194
|
* @category utility types
|
|
149
195
|
* @since 2.0.0
|
|
150
196
|
*/
|
|
@@ -152,6 +198,14 @@ export type Error<T extends Any> = T extends Layer<infer _ROut, infer _E, infer
|
|
|
152
198
|
/**
|
|
153
199
|
* Extracts the service output type (`ROut`) from a `Layer` type.
|
|
154
200
|
*
|
|
201
|
+
* **When to use**
|
|
202
|
+
*
|
|
203
|
+
* Use to derive the services provided by an existing or generic `Layer` without
|
|
204
|
+
* restating its `ROut` type parameter.
|
|
205
|
+
*
|
|
206
|
+
* @see {@link Error} for extracting the layer construction error type instead
|
|
207
|
+
* @see {@link Services} for extracting the layer input service requirements instead
|
|
208
|
+
*
|
|
155
209
|
* @category utility types
|
|
156
210
|
* @since 2.0.0
|
|
157
211
|
*/
|
|
@@ -425,7 +479,7 @@ class MemoMapImpl implements MemoMap {
|
|
|
425
479
|
}
|
|
426
480
|
|
|
427
481
|
/**
|
|
428
|
-
* Constructs a `MemoMap`
|
|
482
|
+
* Constructs a `MemoMap` synchronously so it can be used to build additional layers.
|
|
429
483
|
*
|
|
430
484
|
* **Example** (Creating a memo map unsafely)
|
|
431
485
|
*
|
|
@@ -456,8 +510,18 @@ class MemoMapImpl implements MemoMap {
|
|
|
456
510
|
export const makeMemoMapUnsafe = (): MemoMap => new MemoMapImpl()
|
|
457
511
|
|
|
458
512
|
/**
|
|
459
|
-
* Constructs a child `MemoMap`
|
|
460
|
-
* parent while isolating any new layer allocations to
|
|
513
|
+
* Constructs a child `MemoMap` synchronously, allowing it to reuse layers
|
|
514
|
+
* already memoized in the parent while isolating any new layer allocations to
|
|
515
|
+
* the child map.
|
|
516
|
+
*
|
|
517
|
+
* **When to use**
|
|
518
|
+
*
|
|
519
|
+
* Use to synchronously fork a memo map for manual layer building when child
|
|
520
|
+
* builds should see parent memoized layers without writing newly built layers
|
|
521
|
+
* back to the parent.
|
|
522
|
+
*
|
|
523
|
+
* @see {@link forkMemoMap} for allocating the child memo map inside `Effect`
|
|
524
|
+
* @see {@link makeMemoMapUnsafe} for creating a root memo map without a parent
|
|
461
525
|
*
|
|
462
526
|
* @category memo map
|
|
463
527
|
* @since 4.0.0
|
|
@@ -465,7 +529,7 @@ export const makeMemoMapUnsafe = (): MemoMap => new MemoMapImpl()
|
|
|
465
529
|
export const forkMemoMapUnsafe = (parent: MemoMap): MemoMap => new MemoMapImpl(parent)
|
|
466
530
|
|
|
467
531
|
/**
|
|
468
|
-
* Constructs a `MemoMap`
|
|
532
|
+
* Constructs a `MemoMap` effectfully so it can be used to build additional layers.
|
|
469
533
|
*
|
|
470
534
|
* **Example** (Creating a memo map in an effect)
|
|
471
535
|
*
|
|
@@ -496,8 +560,18 @@ export const forkMemoMapUnsafe = (parent: MemoMap): MemoMap => new MemoMapImpl(p
|
|
|
496
560
|
export const makeMemoMap: Effect<MemoMap> = internalEffect.sync(makeMemoMapUnsafe)
|
|
497
561
|
|
|
498
562
|
/**
|
|
499
|
-
* Constructs a child `MemoMap`
|
|
500
|
-
* parent while isolating any new layer allocations to the child
|
|
563
|
+
* Constructs a child `MemoMap` effectfully, allowing it to reuse layers already
|
|
564
|
+
* memoized in the parent while isolating any new layer allocations to the child
|
|
565
|
+
* map.
|
|
566
|
+
*
|
|
567
|
+
* **When to use**
|
|
568
|
+
*
|
|
569
|
+
* Use when a layer build should inherit already memoized layers from an
|
|
570
|
+
* existing `MemoMap` while keeping newly memoized layers out of the parent map.
|
|
571
|
+
*
|
|
572
|
+
* @see {@link makeMemoMap} for creating a root memo map in an `Effect`
|
|
573
|
+
* @see {@link forkMemoMapUnsafe} for the synchronous constructor variant
|
|
574
|
+
* @see {@link buildWithMemoMap} for building layers with an explicit memo map
|
|
501
575
|
*
|
|
502
576
|
* @category memo map
|
|
503
577
|
* @since 4.0.0
|
|
@@ -505,12 +579,19 @@ export const makeMemoMap: Effect<MemoMap> = internalEffect.sync(makeMemoMapUnsaf
|
|
|
505
579
|
export const forkMemoMap = (parent: MemoMap): Effect<MemoMap> => internalEffect.sync(() => forkMemoMapUnsafe(parent))
|
|
506
580
|
|
|
507
581
|
/**
|
|
508
|
-
*
|
|
582
|
+
* Context service for the current `MemoMap` used in layer construction.
|
|
583
|
+
*
|
|
584
|
+
* **When to use**
|
|
585
|
+
*
|
|
586
|
+
* Use when building custom layer operations that need to access the current
|
|
587
|
+
* memoization map from the fiber context.
|
|
509
588
|
*
|
|
510
589
|
* **Details**
|
|
511
590
|
*
|
|
512
|
-
* This service
|
|
513
|
-
*
|
|
591
|
+
* This service wraps a `MemoMap` as a `Context.Service`, making it available
|
|
592
|
+
* for dependency injection during layer construction.
|
|
593
|
+
*
|
|
594
|
+
* @see {@link MemoMap} the memoization map type wrapped by this service
|
|
514
595
|
*
|
|
515
596
|
* @category models
|
|
516
597
|
* @since 3.13.0
|
|
@@ -723,11 +804,17 @@ export const build = <RIn, E, ROut>(
|
|
|
723
804
|
)
|
|
724
805
|
|
|
725
806
|
/**
|
|
726
|
-
* Builds a layer
|
|
727
|
-
*
|
|
728
|
-
*
|
|
729
|
-
*
|
|
730
|
-
* layer
|
|
807
|
+
* Builds a layer using an explicit scope.
|
|
808
|
+
*
|
|
809
|
+
* **When to use**
|
|
810
|
+
*
|
|
811
|
+
* Use to control the lifetime of layer resources with a scope supplied by the
|
|
812
|
+
* caller.
|
|
813
|
+
*
|
|
814
|
+
* **Details**
|
|
815
|
+
*
|
|
816
|
+
* Resources created by the layer are released when the supplied scope is
|
|
817
|
+
* closed, unless a resource extends its own scope.
|
|
731
818
|
*
|
|
732
819
|
* **Example** (Building a layer with an explicit scope)
|
|
733
820
|
*
|
|
@@ -765,11 +852,17 @@ export const build = <RIn, E, ROut>(
|
|
|
765
852
|
*/
|
|
766
853
|
export const buildWithScope: {
|
|
767
854
|
/**
|
|
768
|
-
* Builds a layer
|
|
769
|
-
*
|
|
770
|
-
*
|
|
771
|
-
*
|
|
772
|
-
* layer
|
|
855
|
+
* Builds a layer using an explicit scope.
|
|
856
|
+
*
|
|
857
|
+
* **When to use**
|
|
858
|
+
*
|
|
859
|
+
* Use to control the lifetime of layer resources with a scope supplied by the
|
|
860
|
+
* caller.
|
|
861
|
+
*
|
|
862
|
+
* **Details**
|
|
863
|
+
*
|
|
864
|
+
* Resources created by the layer are released when the supplied scope is
|
|
865
|
+
* closed, unless a resource extends its own scope.
|
|
773
866
|
*
|
|
774
867
|
* **Example** (Building a layer with an explicit scope)
|
|
775
868
|
*
|
|
@@ -807,11 +900,17 @@ export const buildWithScope: {
|
|
|
807
900
|
*/
|
|
808
901
|
(scope: Scope.Scope): <RIn, E, ROut>(self: Layer<ROut, E, RIn>) => Effect<Context.Context<ROut>, E, RIn>
|
|
809
902
|
/**
|
|
810
|
-
* Builds a layer
|
|
811
|
-
*
|
|
812
|
-
*
|
|
813
|
-
*
|
|
814
|
-
* layer
|
|
903
|
+
* Builds a layer using an explicit scope.
|
|
904
|
+
*
|
|
905
|
+
* **When to use**
|
|
906
|
+
*
|
|
907
|
+
* Use to control the lifetime of layer resources with a scope supplied by the
|
|
908
|
+
* caller.
|
|
909
|
+
*
|
|
910
|
+
* **Details**
|
|
911
|
+
*
|
|
912
|
+
* Resources created by the layer are released when the supplied scope is
|
|
913
|
+
* closed, unless a resource extends its own scope.
|
|
815
914
|
*
|
|
816
915
|
* **Example** (Building a layer with an explicit scope)
|
|
817
916
|
*
|
|
@@ -866,7 +965,7 @@ export const buildWithScope: {
|
|
|
866
965
|
*
|
|
867
966
|
* **When to use**
|
|
868
967
|
*
|
|
869
|
-
* Use
|
|
968
|
+
* Use when the service implementation is already constructed and does
|
|
870
969
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
871
970
|
* lazily during layer construction.
|
|
872
971
|
*
|
|
@@ -896,7 +995,7 @@ export const succeed: {
|
|
|
896
995
|
*
|
|
897
996
|
* **When to use**
|
|
898
997
|
*
|
|
899
|
-
* Use
|
|
998
|
+
* Use when the service implementation is already constructed and does
|
|
900
999
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
901
1000
|
* lazily during layer construction.
|
|
902
1001
|
*
|
|
@@ -926,7 +1025,7 @@ export const succeed: {
|
|
|
926
1025
|
*
|
|
927
1026
|
* **When to use**
|
|
928
1027
|
*
|
|
929
|
-
* Use
|
|
1028
|
+
* Use when the service implementation is already constructed and does
|
|
930
1029
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
931
1030
|
* lazily during layer construction.
|
|
932
1031
|
*
|
|
@@ -963,7 +1062,7 @@ export const succeed: {
|
|
|
963
1062
|
*
|
|
964
1063
|
* **When to use**
|
|
965
1064
|
*
|
|
966
|
-
* Use
|
|
1065
|
+
* Use when you already have a `Context` or need to provide
|
|
967
1066
|
* multiple services at once. Use `succeed` when you only need to provide one
|
|
968
1067
|
* service value.
|
|
969
1068
|
*
|
|
@@ -1010,7 +1109,7 @@ export const succeedContext = <A>(context: Context.Context<A>): Layer<A> =>
|
|
|
1010
1109
|
*
|
|
1011
1110
|
* **When to use**
|
|
1012
1111
|
*
|
|
1013
|
-
* Use `Layer.empty` as the no-op branch when conditionally composing layers.
|
|
1112
|
+
* Use when you use `Layer.empty` as the no-op branch when conditionally composing layers.
|
|
1014
1113
|
* If you need to run an effect during layer construction while still providing
|
|
1015
1114
|
* no services, use `effectDiscard`.
|
|
1016
1115
|
*
|
|
@@ -1034,11 +1133,11 @@ export const succeedContext = <A>(context: Context.Context<A>): Layer<A> =>
|
|
|
1034
1133
|
export const empty: Layer<never> = succeedContext(Context.empty())
|
|
1035
1134
|
|
|
1036
1135
|
/**
|
|
1037
|
-
*
|
|
1136
|
+
* Constructs a layer lazily that provides a single service.
|
|
1038
1137
|
*
|
|
1039
1138
|
* **When to use**
|
|
1040
1139
|
*
|
|
1041
|
-
* Use
|
|
1140
|
+
* Use when the service can be created synchronously but should be
|
|
1042
1141
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
1043
1142
|
* already available.
|
|
1044
1143
|
*
|
|
@@ -1068,11 +1167,11 @@ export const empty: Layer<never> = succeedContext(Context.empty())
|
|
|
1068
1167
|
*/
|
|
1069
1168
|
export const sync: {
|
|
1070
1169
|
/**
|
|
1071
|
-
*
|
|
1170
|
+
* Constructs a layer lazily that provides a single service.
|
|
1072
1171
|
*
|
|
1073
1172
|
* **When to use**
|
|
1074
1173
|
*
|
|
1075
|
-
* Use
|
|
1174
|
+
* Use when the service can be created synchronously but should be
|
|
1076
1175
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
1077
1176
|
* already available.
|
|
1078
1177
|
*
|
|
@@ -1102,11 +1201,11 @@ export const sync: {
|
|
|
1102
1201
|
*/
|
|
1103
1202
|
<I, S>(service: Context.Key<I, S>): (evaluate: LazyArg<S>) => Layer<I>
|
|
1104
1203
|
/**
|
|
1105
|
-
*
|
|
1204
|
+
* Constructs a layer lazily that provides a single service.
|
|
1106
1205
|
*
|
|
1107
1206
|
* **When to use**
|
|
1108
1207
|
*
|
|
1109
|
-
* Use
|
|
1208
|
+
* Use when the service can be created synchronously but should be
|
|
1110
1209
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
1111
1210
|
* already available.
|
|
1112
1211
|
*
|
|
@@ -1143,11 +1242,11 @@ export const sync: {
|
|
|
1143
1242
|
} as any
|
|
1144
1243
|
|
|
1145
1244
|
/**
|
|
1146
|
-
*
|
|
1245
|
+
* Constructs a layer lazily that provides all services in a `Context`.
|
|
1147
1246
|
*
|
|
1148
1247
|
* **When to use**
|
|
1149
1248
|
*
|
|
1150
|
-
* Use
|
|
1249
|
+
* Use when multiple services can be created synchronously and
|
|
1151
1250
|
* should be deferred until the layer is built. Use `sync` when you only need to
|
|
1152
1251
|
* provide one service.
|
|
1153
1252
|
*
|
|
@@ -1186,7 +1285,7 @@ export const syncContext = <A>(evaluate: LazyArg<Context.Context<A>>): Layer<A>
|
|
|
1186
1285
|
*
|
|
1187
1286
|
* **When to use**
|
|
1188
1287
|
*
|
|
1189
|
-
* Use
|
|
1288
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
1190
1289
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
1191
1290
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
1192
1291
|
* should provide no services.
|
|
@@ -1225,7 +1324,7 @@ export const effect: {
|
|
|
1225
1324
|
*
|
|
1226
1325
|
* **When to use**
|
|
1227
1326
|
*
|
|
1228
|
-
* Use
|
|
1327
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
1229
1328
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
1230
1329
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
1231
1330
|
* should provide no services.
|
|
@@ -1266,7 +1365,7 @@ export const effect: {
|
|
|
1266
1365
|
*
|
|
1267
1366
|
* **When to use**
|
|
1268
1367
|
*
|
|
1269
|
-
* Use
|
|
1368
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
1270
1369
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
1271
1370
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
1272
1371
|
* should provide no services.
|
|
@@ -1318,7 +1417,7 @@ const effectImpl = <I, S, E, R>(
|
|
|
1318
1417
|
*
|
|
1319
1418
|
* **When to use**
|
|
1320
1419
|
*
|
|
1321
|
-
* Use
|
|
1420
|
+
* Use when effectful construction needs to provide multiple
|
|
1322
1421
|
* services at once. Use `effect` when the effect produces one service value.
|
|
1323
1422
|
*
|
|
1324
1423
|
* **Details**
|
|
@@ -1359,7 +1458,7 @@ export const effectContext = <A, E, R>(
|
|
|
1359
1458
|
*
|
|
1360
1459
|
* **When to use**
|
|
1361
1460
|
*
|
|
1362
|
-
*
|
|
1461
|
+
* Use when this is useful when you want to run an Effect for its side effects during
|
|
1363
1462
|
* layer construction, but don't need to provide any services.
|
|
1364
1463
|
*
|
|
1365
1464
|
* **Example** (Running an effect during layer construction)
|
|
@@ -1383,7 +1482,7 @@ export const effectDiscard = <X, E, R>(effect: Effect<X, E, R>): Layer<never, E,
|
|
|
1383
1482
|
effectContext(internalEffect.as(effect, Context.empty()))
|
|
1384
1483
|
|
|
1385
1484
|
/**
|
|
1386
|
-
*
|
|
1485
|
+
* Constructs a layer lazily using the specified factory.
|
|
1387
1486
|
*
|
|
1388
1487
|
* **Details**
|
|
1389
1488
|
*
|
|
@@ -1417,7 +1516,7 @@ export const suspend = <A, E, R>(evaluate: LazyArg<Layer<A, E, R>>): Layer<A, E,
|
|
|
1417
1516
|
*
|
|
1418
1517
|
* **When to use**
|
|
1419
1518
|
*
|
|
1420
|
-
* Use
|
|
1519
|
+
* Use when you have an `Effect` that produces a `Layer` and you want to
|
|
1421
1520
|
* use that layer directly.
|
|
1422
1521
|
*
|
|
1423
1522
|
* **Details**
|
|
@@ -1474,7 +1573,7 @@ const mergeAllEffect = <Layers extends [Layer<never, any, any>, ...Array<Layer<n
|
|
|
1474
1573
|
*
|
|
1475
1574
|
* **When to use**
|
|
1476
1575
|
*
|
|
1477
|
-
* Use
|
|
1576
|
+
* Use when you need to combine multiple independent layers.
|
|
1478
1577
|
*
|
|
1479
1578
|
* **Details**
|
|
1480
1579
|
*
|
|
@@ -1526,7 +1625,7 @@ export const mergeAll = <Layers extends [Layer<never, any, any>, ...Array<Layer<
|
|
|
1526
1625
|
*
|
|
1527
1626
|
* **When to use**
|
|
1528
1627
|
*
|
|
1529
|
-
* Use
|
|
1628
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1530
1629
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1531
1630
|
*
|
|
1532
1631
|
* **Details**
|
|
@@ -1570,7 +1669,7 @@ export const merge: {
|
|
|
1570
1669
|
*
|
|
1571
1670
|
* **When to use**
|
|
1572
1671
|
*
|
|
1573
|
-
* Use
|
|
1672
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1574
1673
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1575
1674
|
*
|
|
1576
1675
|
* **Details**
|
|
@@ -1614,7 +1713,7 @@ export const merge: {
|
|
|
1614
1713
|
*
|
|
1615
1714
|
* **When to use**
|
|
1616
1715
|
*
|
|
1617
|
-
* Use
|
|
1716
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1618
1717
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1619
1718
|
*
|
|
1620
1719
|
* **Details**
|
|
@@ -1665,7 +1764,7 @@ export const merge: {
|
|
|
1665
1764
|
*
|
|
1666
1765
|
* **When to use**
|
|
1667
1766
|
*
|
|
1668
|
-
* Use
|
|
1767
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1669
1768
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1670
1769
|
*
|
|
1671
1770
|
* **Details**
|
|
@@ -1709,7 +1808,7 @@ export const merge: {
|
|
|
1709
1808
|
*
|
|
1710
1809
|
* **When to use**
|
|
1711
1810
|
*
|
|
1712
|
-
* Use
|
|
1811
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1713
1812
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1714
1813
|
*
|
|
1715
1814
|
* **Details**
|
|
@@ -1784,7 +1883,7 @@ const provideWith = (
|
|
|
1784
1883
|
*
|
|
1785
1884
|
* **When to use**
|
|
1786
1885
|
*
|
|
1787
|
-
* Use
|
|
1886
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1788
1887
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1789
1888
|
* when callers should also receive the dependency services.
|
|
1790
1889
|
*
|
|
@@ -1864,7 +1963,7 @@ export const provide: {
|
|
|
1864
1963
|
*
|
|
1865
1964
|
* **When to use**
|
|
1866
1965
|
*
|
|
1867
|
-
* Use
|
|
1966
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1868
1967
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1869
1968
|
* when callers should also receive the dependency services.
|
|
1870
1969
|
*
|
|
@@ -1944,7 +2043,7 @@ export const provide: {
|
|
|
1944
2043
|
*
|
|
1945
2044
|
* **When to use**
|
|
1946
2045
|
*
|
|
1947
|
-
* Use
|
|
2046
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1948
2047
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1949
2048
|
* when callers should also receive the dependency services.
|
|
1950
2049
|
*
|
|
@@ -2031,7 +2130,7 @@ export const provide: {
|
|
|
2031
2130
|
*
|
|
2032
2131
|
* **When to use**
|
|
2033
2132
|
*
|
|
2034
|
-
* Use
|
|
2133
|
+
* Use when the dependency layer is an implementation detail of the
|
|
2035
2134
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
2036
2135
|
* when callers should also receive the dependency services.
|
|
2037
2136
|
*
|
|
@@ -2111,7 +2210,7 @@ export const provide: {
|
|
|
2111
2210
|
*
|
|
2112
2211
|
* **When to use**
|
|
2113
2212
|
*
|
|
2114
|
-
* Use
|
|
2213
|
+
* Use when the dependency layer is an implementation detail of the
|
|
2115
2214
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
2116
2215
|
* when callers should also receive the dependency services.
|
|
2117
2216
|
*
|
|
@@ -2201,7 +2300,7 @@ export const provide: {
|
|
|
2201
2300
|
*
|
|
2202
2301
|
* **When to use**
|
|
2203
2302
|
*
|
|
2204
|
-
* Use
|
|
2303
|
+
* Use when callers need access to both the service being built and the
|
|
2205
2304
|
* dependency used to build it, such as a health check that needs both a
|
|
2206
2305
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2207
2306
|
* private.
|
|
@@ -2283,7 +2382,7 @@ export const provideMerge: {
|
|
|
2283
2382
|
*
|
|
2284
2383
|
* **When to use**
|
|
2285
2384
|
*
|
|
2286
|
-
* Use
|
|
2385
|
+
* Use when callers need access to both the service being built and the
|
|
2287
2386
|
* dependency used to build it, such as a health check that needs both a
|
|
2288
2387
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2289
2388
|
* private.
|
|
@@ -2365,7 +2464,7 @@ export const provideMerge: {
|
|
|
2365
2464
|
*
|
|
2366
2465
|
* **When to use**
|
|
2367
2466
|
*
|
|
2368
|
-
* Use
|
|
2467
|
+
* Use when callers need access to both the service being built and the
|
|
2369
2468
|
* dependency used to build it, such as a health check that needs both a
|
|
2370
2469
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2371
2470
|
* private.
|
|
@@ -2454,7 +2553,7 @@ export const provideMerge: {
|
|
|
2454
2553
|
*
|
|
2455
2554
|
* **When to use**
|
|
2456
2555
|
*
|
|
2457
|
-
* Use
|
|
2556
|
+
* Use when callers need access to both the service being built and the
|
|
2458
2557
|
* dependency used to build it, such as a health check that needs both a
|
|
2459
2558
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2460
2559
|
* private.
|
|
@@ -2536,7 +2635,7 @@ export const provideMerge: {
|
|
|
2536
2635
|
*
|
|
2537
2636
|
* **When to use**
|
|
2538
2637
|
*
|
|
2539
|
-
* Use
|
|
2638
|
+
* Use when callers need access to both the service being built and the
|
|
2540
2639
|
* dependency used to build it, such as a health check that needs both a
|
|
2541
2640
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2542
2641
|
* private.
|
|
@@ -2860,11 +2959,20 @@ export const flatMap: {
|
|
|
2860
2959
|
/**
|
|
2861
2960
|
* Performs the specified effect if this layer succeeds.
|
|
2862
2961
|
*
|
|
2962
|
+
* **When to use**
|
|
2963
|
+
*
|
|
2964
|
+
* Use to run an effectful observation after a layer has been built
|
|
2965
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
2966
|
+
* layer provides.
|
|
2967
|
+
*
|
|
2863
2968
|
* **Details**
|
|
2864
2969
|
*
|
|
2865
2970
|
* The callback receives the services produced by this layer. Its result is
|
|
2866
2971
|
* discarded, and the original layer output is preserved.
|
|
2867
2972
|
*
|
|
2973
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
2974
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
2975
|
+
*
|
|
2868
2976
|
* @category sequencing
|
|
2869
2977
|
* @since 2.0.0
|
|
2870
2978
|
*/
|
|
@@ -2872,11 +2980,20 @@ export const tap: {
|
|
|
2872
2980
|
/**
|
|
2873
2981
|
* Performs the specified effect if this layer succeeds.
|
|
2874
2982
|
*
|
|
2983
|
+
* **When to use**
|
|
2984
|
+
*
|
|
2985
|
+
* Use to run an effectful observation after a layer has been built
|
|
2986
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
2987
|
+
* layer provides.
|
|
2988
|
+
*
|
|
2875
2989
|
* **Details**
|
|
2876
2990
|
*
|
|
2877
2991
|
* The callback receives the services produced by this layer. Its result is
|
|
2878
2992
|
* discarded, and the original layer output is preserved.
|
|
2879
2993
|
*
|
|
2994
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
2995
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
2996
|
+
*
|
|
2880
2997
|
* @category sequencing
|
|
2881
2998
|
* @since 2.0.0
|
|
2882
2999
|
*/
|
|
@@ -2884,11 +3001,20 @@ export const tap: {
|
|
|
2884
3001
|
/**
|
|
2885
3002
|
* Performs the specified effect if this layer succeeds.
|
|
2886
3003
|
*
|
|
3004
|
+
* **When to use**
|
|
3005
|
+
*
|
|
3006
|
+
* Use to run an effectful observation after a layer has been built
|
|
3007
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
3008
|
+
* layer provides.
|
|
3009
|
+
*
|
|
2887
3010
|
* **Details**
|
|
2888
3011
|
*
|
|
2889
3012
|
* The callback receives the services produced by this layer. Its result is
|
|
2890
3013
|
* discarded, and the original layer output is preserved.
|
|
2891
3014
|
*
|
|
3015
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
3016
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
3017
|
+
*
|
|
2892
3018
|
* @category sequencing
|
|
2893
3019
|
* @since 2.0.0
|
|
2894
3020
|
*/
|
|
@@ -2910,12 +3036,20 @@ export const tap: {
|
|
|
2910
3036
|
/**
|
|
2911
3037
|
* Performs the specified effect if this layer fails.
|
|
2912
3038
|
*
|
|
3039
|
+
* **When to use**
|
|
3040
|
+
*
|
|
3041
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
3042
|
+
* while preserving the original typed error.
|
|
3043
|
+
*
|
|
2913
3044
|
* **Details**
|
|
2914
3045
|
*
|
|
2915
3046
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2916
3047
|
* still fails with the original error; if the callback fails, that failure is
|
|
2917
3048
|
* added to the layer's error type.
|
|
2918
3049
|
*
|
|
3050
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
3051
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
3052
|
+
*
|
|
2919
3053
|
* @category sequencing
|
|
2920
3054
|
* @since 2.0.0
|
|
2921
3055
|
*/
|
|
@@ -2923,12 +3057,20 @@ export const tapError: {
|
|
|
2923
3057
|
/**
|
|
2924
3058
|
* Performs the specified effect if this layer fails.
|
|
2925
3059
|
*
|
|
3060
|
+
* **When to use**
|
|
3061
|
+
*
|
|
3062
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
3063
|
+
* while preserving the original typed error.
|
|
3064
|
+
*
|
|
2926
3065
|
* **Details**
|
|
2927
3066
|
*
|
|
2928
3067
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2929
3068
|
* still fails with the original error; if the callback fails, that failure is
|
|
2930
3069
|
* added to the layer's error type.
|
|
2931
3070
|
*
|
|
3071
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
3072
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
3073
|
+
*
|
|
2932
3074
|
* @category sequencing
|
|
2933
3075
|
* @since 2.0.0
|
|
2934
3076
|
*/
|
|
@@ -2936,12 +3078,20 @@ export const tapError: {
|
|
|
2936
3078
|
/**
|
|
2937
3079
|
* Performs the specified effect if this layer fails.
|
|
2938
3080
|
*
|
|
3081
|
+
* **When to use**
|
|
3082
|
+
*
|
|
3083
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
3084
|
+
* while preserving the original typed error.
|
|
3085
|
+
*
|
|
2939
3086
|
* **Details**
|
|
2940
3087
|
*
|
|
2941
3088
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2942
3089
|
* still fails with the original error; if the callback fails, that failure is
|
|
2943
3090
|
* added to the layer's error type.
|
|
2944
3091
|
*
|
|
3092
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
3093
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
3094
|
+
*
|
|
2945
3095
|
* @category sequencing
|
|
2946
3096
|
* @since 2.0.0
|
|
2947
3097
|
*/
|
|
@@ -2960,6 +3110,11 @@ export const tapError: {
|
|
|
2960
3110
|
/**
|
|
2961
3111
|
* Performs the specified effect when this layer fails with any cause.
|
|
2962
3112
|
*
|
|
3113
|
+
* **When to use**
|
|
3114
|
+
*
|
|
3115
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
3116
|
+
* full `Cause` is needed.
|
|
3117
|
+
*
|
|
2963
3118
|
* **Details**
|
|
2964
3119
|
*
|
|
2965
3120
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2967,6 +3122,9 @@ export const tapError: {
|
|
|
2967
3122
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2968
3123
|
* added to the layer's error type.
|
|
2969
3124
|
*
|
|
3125
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
3126
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
3127
|
+
*
|
|
2970
3128
|
* @category sequencing
|
|
2971
3129
|
* @since 4.0.0
|
|
2972
3130
|
*/
|
|
@@ -2974,6 +3132,11 @@ export const tapCause: {
|
|
|
2974
3132
|
/**
|
|
2975
3133
|
* Performs the specified effect when this layer fails with any cause.
|
|
2976
3134
|
*
|
|
3135
|
+
* **When to use**
|
|
3136
|
+
*
|
|
3137
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
3138
|
+
* full `Cause` is needed.
|
|
3139
|
+
*
|
|
2977
3140
|
* **Details**
|
|
2978
3141
|
*
|
|
2979
3142
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2981,6 +3144,9 @@ export const tapCause: {
|
|
|
2981
3144
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2982
3145
|
* added to the layer's error type.
|
|
2983
3146
|
*
|
|
3147
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
3148
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
3149
|
+
*
|
|
2984
3150
|
* @category sequencing
|
|
2985
3151
|
* @since 4.0.0
|
|
2986
3152
|
*/
|
|
@@ -2988,6 +3154,11 @@ export const tapCause: {
|
|
|
2988
3154
|
/**
|
|
2989
3155
|
* Performs the specified effect when this layer fails with any cause.
|
|
2990
3156
|
*
|
|
3157
|
+
* **When to use**
|
|
3158
|
+
*
|
|
3159
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
3160
|
+
* full `Cause` is needed.
|
|
3161
|
+
*
|
|
2991
3162
|
* **Details**
|
|
2992
3163
|
*
|
|
2993
3164
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2995,6 +3166,9 @@ export const tapCause: {
|
|
|
2995
3166
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2996
3167
|
* added to the layer's error type.
|
|
2997
3168
|
*
|
|
3169
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
3170
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
3171
|
+
*
|
|
2998
3172
|
* @category sequencing
|
|
2999
3173
|
* @since 4.0.0
|
|
3000
3174
|
*/
|
|
@@ -3088,7 +3262,7 @@ export {
|
|
|
3088
3262
|
*
|
|
3089
3263
|
* **When to use**
|
|
3090
3264
|
*
|
|
3091
|
-
* Use
|
|
3265
|
+
* Use when every typed construction error should use the same recovery
|
|
3092
3266
|
* path. Use `catchTag` to recover from specific tagged errors, and `catchCause`
|
|
3093
3267
|
* when recovery needs the full failure cause.
|
|
3094
3268
|
*
|
|
@@ -3106,7 +3280,7 @@ export {
|
|
|
3106
3280
|
*
|
|
3107
3281
|
* **When to use**
|
|
3108
3282
|
*
|
|
3109
|
-
* Use
|
|
3283
|
+
* Use when only some tagged construction errors should be recovered.
|
|
3110
3284
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
3111
3285
|
* cause information.
|
|
3112
3286
|
*
|
|
@@ -3141,7 +3315,7 @@ export const catchTag: {
|
|
|
3141
3315
|
*
|
|
3142
3316
|
* **When to use**
|
|
3143
3317
|
*
|
|
3144
|
-
* Use
|
|
3318
|
+
* Use when only some tagged construction errors should be recovered.
|
|
3145
3319
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
3146
3320
|
* cause information.
|
|
3147
3321
|
*
|
|
@@ -3187,7 +3361,7 @@ export const catchTag: {
|
|
|
3187
3361
|
*
|
|
3188
3362
|
* **When to use**
|
|
3189
3363
|
*
|
|
3190
|
-
* Use
|
|
3364
|
+
* Use when only some tagged construction errors should be recovered.
|
|
3191
3365
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
3192
3366
|
* cause information.
|
|
3193
3367
|
*
|
|
@@ -3259,7 +3433,7 @@ export const catchTag: {
|
|
|
3259
3433
|
*
|
|
3260
3434
|
* **When to use**
|
|
3261
3435
|
*
|
|
3262
|
-
* Use
|
|
3436
|
+
* Use when recovery needs more than the typed error, such as
|
|
3263
3437
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
3264
3438
|
* to match specific tagged errors.
|
|
3265
3439
|
*
|
|
@@ -3318,7 +3492,7 @@ export const catchCause: {
|
|
|
3318
3492
|
*
|
|
3319
3493
|
* **When to use**
|
|
3320
3494
|
*
|
|
3321
|
-
* Use
|
|
3495
|
+
* Use when recovery needs more than the typed error, such as
|
|
3322
3496
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
3323
3497
|
* to match specific tagged errors.
|
|
3324
3498
|
*
|
|
@@ -3377,7 +3551,7 @@ export const catchCause: {
|
|
|
3377
3551
|
*
|
|
3378
3552
|
* **When to use**
|
|
3379
3553
|
*
|
|
3380
|
-
* Use
|
|
3554
|
+
* Use when recovery needs more than the typed error, such as
|
|
3381
3555
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
3382
3556
|
* to match specific tagged errors.
|
|
3383
3557
|
*
|
|
@@ -3450,7 +3624,7 @@ export const catchCause: {
|
|
|
3450
3624
|
*
|
|
3451
3625
|
* **When to use**
|
|
3452
3626
|
*
|
|
3453
|
-
* Use
|
|
3627
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
3454
3628
|
* layer.
|
|
3455
3629
|
*
|
|
3456
3630
|
* **Details**
|
|
@@ -3469,7 +3643,7 @@ export const updateService: {
|
|
|
3469
3643
|
*
|
|
3470
3644
|
* **When to use**
|
|
3471
3645
|
*
|
|
3472
|
-
* Use
|
|
3646
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
3473
3647
|
* layer.
|
|
3474
3648
|
*
|
|
3475
3649
|
* **Details**
|
|
@@ -3488,7 +3662,7 @@ export const updateService: {
|
|
|
3488
3662
|
*
|
|
3489
3663
|
* **When to use**
|
|
3490
3664
|
*
|
|
3491
|
-
* Use
|
|
3665
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
3492
3666
|
* layer.
|
|
3493
3667
|
*
|
|
3494
3668
|
* **Details**
|
|
@@ -3520,7 +3694,7 @@ export const updateService: {
|
|
|
3520
3694
|
*
|
|
3521
3695
|
* **When to use**
|
|
3522
3696
|
*
|
|
3523
|
-
* Use
|
|
3697
|
+
* Use when two parts of an application must receive separate instances
|
|
3524
3698
|
* of a resource, such as two independent client sessions. Do not use it just to
|
|
3525
3699
|
* work around confusing composition: by default, sharing the same layer value is
|
|
3526
3700
|
* usually the desired behavior.
|
|
@@ -3602,7 +3776,7 @@ export const fresh = <A, E, R>(self: Layer<A, E, R>): Layer<A, E, R> =>
|
|
|
3602
3776
|
*
|
|
3603
3777
|
* **When to use**
|
|
3604
3778
|
*
|
|
3605
|
-
* Use
|
|
3779
|
+
* Use when your entire application is a layer, such as an HTTP server.
|
|
3606
3780
|
*
|
|
3607
3781
|
* **Details**
|
|
3608
3782
|
*
|
|
@@ -3666,11 +3840,19 @@ export const launch = <RIn, E, ROut>(self: Layer<ROut, E, RIn>): Effect<never, E
|
|
|
3666
3840
|
/**
|
|
3667
3841
|
* A utility type for creating partial mocks of services in testing.
|
|
3668
3842
|
*
|
|
3843
|
+
* **When to use**
|
|
3844
|
+
*
|
|
3845
|
+
* Use to type partial test service implementations where only exercised
|
|
3846
|
+
* effectful members are stubbed.
|
|
3847
|
+
*
|
|
3669
3848
|
* **Details**
|
|
3670
3849
|
*
|
|
3671
|
-
* This type makes Effect
|
|
3672
|
-
* while keeping non-
|
|
3673
|
-
* only the methods you need to test while leaving
|
|
3850
|
+
* This type makes `Effect`, `Stream`, and `Channel` values and functions
|
|
3851
|
+
* returning them optional, while keeping non-effectful properties required.
|
|
3852
|
+
* This allows you to provide only the methods you need to test while leaving
|
|
3853
|
+
* others unimplemented.
|
|
3854
|
+
*
|
|
3855
|
+
* @see {@link mock} for creating a mock layer from a partial service implementation
|
|
3674
3856
|
*
|
|
3675
3857
|
* @category testing
|
|
3676
3858
|
* @since 3.17.0
|
|
@@ -4028,6 +4210,20 @@ export const satisfiesServicesType =
|
|
|
4028
4210
|
* Represents options that can be used to control the behavior of spans created
|
|
4029
4211
|
* for layers.
|
|
4030
4212
|
*
|
|
4213
|
+
* **When to use**
|
|
4214
|
+
*
|
|
4215
|
+
* Use to configure tracing metadata, stack trace capture, and `onEnd`
|
|
4216
|
+
* finalization for spans created by `Layer.span` and `Layer.withSpan` during
|
|
4217
|
+
* layer construction.
|
|
4218
|
+
*
|
|
4219
|
+
* **Details**
|
|
4220
|
+
*
|
|
4221
|
+
* Extends `Tracer.SpanOptions` with `onEnd`, which runs when the layer span
|
|
4222
|
+
* ends as the layer scope closes.
|
|
4223
|
+
*
|
|
4224
|
+
* @see {@link span} for creating a layer span
|
|
4225
|
+
* @see {@link withSpan} for wrapping layer construction in a span
|
|
4226
|
+
*
|
|
4031
4227
|
* @category models
|
|
4032
4228
|
* @since 4.0.0
|
|
4033
4229
|
*/
|