effect 4.0.0-beta.66 → 4.0.0-beta.67
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 +113 -67
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +28 -18
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +404 -337
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +190 -146
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +167 -97
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +87 -47
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +62 -31
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +30 -15
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +20 -1
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +16 -0
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +236 -132
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +133 -57
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +74 -62
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +43 -36
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +1518 -575
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +661 -287
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +119 -10
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +45 -6
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +548 -379
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +238 -170
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +15 -8
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +8 -4
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +2 -4
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +2 -4
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +4 -2
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +2 -2
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +1 -1
- package/dist/ConfigProvider.js +1 -1
- package/dist/Console.d.ts +76 -50
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +69 -46
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +383 -134
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +134 -54
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +69 -48
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +96 -36
- package/dist/Cron.js.map +1 -1
- package/dist/Data.d.ts +3 -2
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +874 -443
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +374 -215
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +367 -174
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +145 -71
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +42 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Differ.js +36 -0
- package/dist/Duration.d.ts +329 -185
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +174 -106
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +2109 -1945
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +901 -726
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +37 -2
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +2 -2
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +78 -28
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +75 -27
- package/dist/Encoding.js.map +1 -1
- package/dist/Equivalence.d.ts +14 -19
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +14 -19
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +66 -82
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +38 -29
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +94 -9
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +20 -5
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +7 -5
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +72 -40
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +39 -21
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +117 -56
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +120 -38
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +286 -158
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +174 -72
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +92 -51
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +96 -33
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +104 -73
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +53 -39
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +166 -88
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +68 -42
- package/dist/Filter.js.map +1 -1
- package/dist/Function.d.ts +154 -86
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +53 -37
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +682 -365
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +308 -157
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +29 -13
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +31 -18
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +25 -15
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +444 -256
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +223 -105
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +36 -17
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +75 -8
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +194 -104
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +93 -38
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +20 -9
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +16 -6
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +309 -149
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +129 -65
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +4 -3
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +4 -3
- package/dist/JsonPatch.js.map +1 -1
- package/dist/Latch.d.ts +98 -15
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +41 -10
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +412 -309
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +261 -180
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +95 -21
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +55 -11
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +92 -131
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +25 -15
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +155 -99
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +211 -184
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +75 -17
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +22 -16
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +133 -157
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +85 -76
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +325 -284
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +217 -212
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +117 -58
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +52 -29
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +52 -30
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +94 -38
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +92 -49
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +123 -71
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +99 -62
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +79 -60
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +3 -0
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +36 -39
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +34 -20
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +116 -64
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +54 -30
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +1 -2
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +0 -1
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +28 -47
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +14 -12
- package/dist/Option.js.map +1 -1
- package/dist/Ordering.d.ts +43 -28
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +4 -2
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +225 -40
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +113 -17
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +77 -13
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +48 -4
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +71 -15
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +59 -12
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +74 -6
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +68 -5
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +66 -31
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +26 -24
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +16 -21
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +9 -14
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +9 -2
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +7 -1
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +364 -262
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +245 -174
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +94 -25
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +61 -13
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +284 -150
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +216 -113
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +54 -35
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +36 -24
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +151 -141
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +66 -20
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +69 -32
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +33 -16
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +273 -129
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +117 -57
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +3 -3
- package/dist/Redactable.js +2 -2
- package/dist/Redacted.d.ts +63 -33
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +30 -14
- package/dist/Redacted.js.map +1 -1
- package/dist/Ref.d.ts +81 -52
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +54 -35
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +73 -31
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +66 -30
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +11 -5
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +11 -5
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +158 -34
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +67 -12
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +261 -116
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +77 -41
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +13 -7
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +44 -6
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +16 -14
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +6 -6
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +43 -18
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +35 -16
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +545 -576
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +260 -246
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +43 -6
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +33 -4
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +803 -282
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +281 -189
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +24 -15
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +13 -9
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +26 -13
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +22 -9
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +1 -8
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +194 -25
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +220 -26
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +61 -41
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +56 -33
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +7 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +23 -0
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +102 -43
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +57 -23
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +138 -46
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +80 -19
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +28 -8
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +25 -5
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +64 -28
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +22 -13
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +458 -200
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +240 -89
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +43 -6
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +33 -4
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +1896 -1183
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +867 -524
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +171 -95
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +125 -67
- package/dist/String.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +308 -203
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +125 -76
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +13 -5
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +13 -5
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +278 -62
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +116 -23
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +26 -2
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js +4 -1
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +39 -7
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +10 -4
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +229 -55
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +94 -18
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +213 -142
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +88 -60
- package/dist/Trie.js.map +1 -1
- package/dist/TxChunk.d.ts +182 -146
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +73 -56
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +43 -29
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +22 -15
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +362 -222
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +171 -98
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +178 -104
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +84 -43
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +93 -62
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +54 -36
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +77 -49
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +60 -37
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +279 -241
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +147 -101
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +69 -46
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +48 -32
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +69 -40
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +34 -19
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +101 -54
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +76 -34
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +72 -48
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +33 -22
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +34 -34
- package/dist/UndefinedOr.d.ts +48 -25
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +28 -25
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +71 -116
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +20 -6
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +4 -0
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +4 -0
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +81 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +81 -32
- package/dist/index.js.map +1 -1
- package/dist/internal/schema/schema.js +1 -1
- package/dist/internal/schema/schema.js.map +1 -1
- package/dist/testing/FastCheck.d.ts +6 -3
- package/dist/testing/FastCheck.d.ts.map +1 -1
- package/dist/testing/FastCheck.js +6 -3
- package/dist/testing/FastCheck.js.map +1 -1
- package/dist/testing/TestClock.d.ts +39 -34
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +42 -12
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +39 -30
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +25 -10
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.js +7 -7
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +197 -130
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +166 -102
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +2 -2
- package/dist/unstable/ai/Chat.d.ts +65 -41
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +51 -33
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +12 -11
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +9 -8
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +28 -18
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +18 -11
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +31 -25
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +20 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +339 -119
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +264 -98
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +53 -19
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +63 -15
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +8 -6
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +7 -5
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +2 -2
- package/dist/unstable/ai/Prompt.d.ts +194 -168
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +75 -66
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +153 -140
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +43 -48
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +43 -4
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +27 -2
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +42 -32
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +14 -10
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +13 -8
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +10 -6
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +153 -84
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +97 -44
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +32 -39
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +7 -5
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +42 -24
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +42 -24
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +226 -134
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +101 -65
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +72 -26
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +86 -23
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts +43 -13
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +30 -6
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +194 -113
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +45 -31
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts +7 -7
- package/dist/unstable/cli/Completions.js +1 -1
- package/dist/unstable/cli/Flag.d.ts +235 -142
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +111 -71
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +41 -13
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +30 -7
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +35 -10
- package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
- package/dist/unstable/cli/HelpDoc.js +21 -0
- package/dist/unstable/cli/Param.d.ts +79 -31
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +160 -98
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +79 -42
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +66 -35
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +177 -45
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +103 -21
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/ansi.d.ts.map +1 -1
- package/dist/unstable/cli/internal/ansi.js +13 -0
- package/dist/unstable/cli/internal/ansi.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +5 -1
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +5 -1
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/config.d.ts +3 -0
- package/dist/unstable/cli/internal/config.d.ts.map +1 -1
- package/dist/unstable/cli/internal/config.js.map +1 -1
- package/dist/unstable/cli/internal/lexer.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +35 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +35 -1
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterError.d.ts +56 -7
- package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterError.js +56 -7
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +39 -5
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +39 -5
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +61 -8
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +61 -8
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +14 -2
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +35 -2
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +39 -4
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js +11 -3
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +75 -16
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +75 -10
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.d.ts +30 -2
- package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js +30 -2
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.d.ts +18 -3
- package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityId.js +15 -2
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +34 -2
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +24 -2
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +17 -2
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +40 -8
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +43 -6
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +11 -4
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/EntityType.d.ts +27 -3
- package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityType.js +24 -2
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +105 -23
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +88 -14
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +88 -13
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +88 -13
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +49 -6
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +31 -6
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.d.ts +24 -3
- package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
- package/dist/unstable/cluster/MachineId.js +21 -2
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +102 -13
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +86 -10
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +127 -21
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +70 -10
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +101 -12
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +64 -8
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +47 -17
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +47 -17
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +34 -2
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +34 -2
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +40 -12
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +40 -12
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +7 -4
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +31 -4
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +42 -5
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +38 -4
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +73 -10
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +70 -9
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +51 -5
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +47 -4
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +10 -2
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +35 -4
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +65 -9
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +66 -9
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +27 -6
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +28 -4
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +23 -1
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +23 -1
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.d.ts +15 -1
- package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
- package/dist/unstable/cluster/Singleton.js +15 -1
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +21 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +21 -1
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +89 -19
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +48 -13
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +8 -2
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +29 -2
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts +11 -3
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +27 -3
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts +11 -3
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +46 -7
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +18 -1
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +18 -1
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/internal/hash.js +12 -0
- package/dist/unstable/cluster/internal/hash.js.map +1 -1
- package/dist/unstable/devtools/DevTools.d.ts +26 -3
- package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
- package/dist/unstable/devtools/DevTools.js +26 -3
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts +20 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +32 -5
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +184 -44
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +102 -20
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +27 -2
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +21 -1
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +81 -12
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +75 -9
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +149 -21
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +97 -13
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +109 -18
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +69 -13
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +115 -30
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +22 -2
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +50 -17
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +24 -6
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +104 -20
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +108 -16
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +151 -31
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +111 -20
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +42 -6
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +38 -5
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +92 -18
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +72 -16
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +35 -8
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +54 -8
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +17 -3
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +17 -3
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +32 -6
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +52 -6
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +74 -16
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +90 -16
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +59 -15
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +73 -14
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +10 -2
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +28 -2
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +32 -3
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +32 -3
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +10 -2
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +28 -2
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +156 -77
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +93 -39
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +40 -7
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js +27 -4
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +29 -3
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +33 -4
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/FindMyWay.d.ts +1 -1
- package/dist/unstable/http/FindMyWay.js +1 -1
- package/dist/unstable/http/Headers.d.ts +182 -36
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +86 -16
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +114 -26
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +98 -20
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +205 -96
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +84 -38
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +68 -12
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +71 -9
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +318 -100
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +151 -45
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +59 -16
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +44 -11
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +42 -16
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +33 -13
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts +47 -7
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +44 -6
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +35 -5
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +23 -1
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +37 -11
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +52 -10
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +34 -3
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +34 -3
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +194 -45
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +118 -24
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +151 -22
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +76 -11
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +90 -10
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +82 -8
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +125 -21
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +101 -20
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +32 -6
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +43 -5
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +390 -67
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +204 -33
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +22 -4
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +22 -4
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +53 -6
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +47 -5
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +178 -28
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +129 -19
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Multipasta/HeadersParser.d.ts +1 -1
- package/dist/unstable/http/Multipasta/HeadersParser.js +1 -1
- package/dist/unstable/http/Multipasta/Node.d.ts +1 -1
- package/dist/unstable/http/Multipasta/Node.js +1 -1
- package/dist/unstable/http/Multipasta/Search.d.ts +1 -1
- package/dist/unstable/http/Multipasta/Search.js +1 -1
- package/dist/unstable/http/Multipasta/Web.d.ts +1 -1
- package/dist/unstable/http/Multipasta/Web.js +1 -1
- package/dist/unstable/http/Multipasta.d.ts +1 -1
- package/dist/unstable/http/Multipasta.js +1 -1
- package/dist/unstable/http/Template.d.ts +53 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +26 -0
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +56 -42
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +29 -15
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +233 -49
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +116 -23
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +49 -14
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +14 -8
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +55 -16
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +44 -6
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts +58 -15
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +42 -6
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +214 -59
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +53 -9
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +81 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +98 -1
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +87 -20
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +5 -2
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +111 -22
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +47 -5
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +19 -4
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +32 -2
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +67 -30
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +48 -27
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +74 -17
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +38 -5
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +5 -2
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +24 -2
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +6 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +26 -1
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +86 -15
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +73 -15
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +33 -3
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js +14 -3
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +8 -1
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +32 -1
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +14 -2
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +29 -2
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +15 -4
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +32 -2
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +49 -12
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +47 -5
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.d.ts +28 -3
- package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js +28 -3
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +16 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +32 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +32 -12
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +7 -5
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/observability/index.d.ts +2 -1
- package/dist/unstable/observability/index.d.ts.map +1 -1
- package/dist/unstable/observability/index.js +2 -1
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +93 -18
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +81 -21
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +76 -15
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +22 -5
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +27 -2
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +24 -1
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +73 -16
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +60 -13
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +97 -16
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +90 -14
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +97 -21
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +81 -16
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +26 -5
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +36 -4
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +87 -64
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +24 -17
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +22 -11
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +11 -6
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/process/index.d.ts +2 -1
- package/dist/unstable/process/index.d.ts.map +1 -1
- package/dist/unstable/process/index.js +2 -1
- package/dist/unstable/process/index.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +196 -59
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +121 -36
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +539 -130
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +252 -58
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +41 -2
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +35 -1
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +51 -7
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +29 -3
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +135 -21
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +69 -10
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +36 -2
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +29 -1
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +28 -5
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +35 -3
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +95 -13
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +61 -7
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +255 -56
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +44 -11
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +81 -19
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +52 -12
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +26 -2
- package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +26 -2
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +51 -8
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcGroup.js +3 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +128 -32
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +23 -7
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +100 -20
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +39 -3
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +38 -4
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +34 -3
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +60 -13
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +56 -12
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +73 -23
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +69 -22
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcTest.d.ts +20 -1
- package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcTest.js +20 -1
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +40 -6
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js +16 -4
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/Utils.d.ts +8 -0
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.js +8 -0
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +130 -52
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +79 -34
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +104 -24
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js +22 -6
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +167 -34
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +123 -28
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +58 -10
- package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
- package/dist/unstable/socket/SocketServer.js +43 -5
- package/dist/unstable/socket/SocketServer.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts +35 -4
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +44 -4
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +34 -2
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +38 -1
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +31 -0
- package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
- package/dist/unstable/sql/SqlConnection.js +22 -0
- package/dist/unstable/sql/SqlConnection.js.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts +99 -0
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +114 -0
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +26 -5
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/SqlModel.js +8 -4
- package/dist/unstable/sql/SqlModel.js.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +56 -13
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +44 -10
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +29 -8
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +29 -8
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/SqlStream.d.ts +3 -0
- package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
- package/dist/unstable/sql/SqlStream.js +23 -0
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +124 -0
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +82 -0
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.d.ts +1 -1
- package/dist/unstable/sql/index.js +1 -1
- package/dist/unstable/workers/Transferable.d.ts +65 -13
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +53 -10
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +60 -8
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +43 -4
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +31 -9
- package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerError.js +44 -7
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +32 -3
- package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerRunner.js +24 -1
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workers/index.d.ts +1 -1
- package/dist/unstable/workers/index.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +61 -10
- package/dist/unstable/workflow/Activity.d.ts.map +1 -1
- package/dist/unstable/workflow/Activity.js +20 -5
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +12 -3
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +22 -2
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +126 -31
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +76 -13
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +30 -7
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +23 -5
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +100 -31
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +75 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +40 -5
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +16 -4
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.d.ts +32 -2
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js +2 -2
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts +36 -2
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js +12 -6
- package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
- package/package.json +11 -11
- package/src/Array.ts +113 -67
- package/src/BigDecimal.ts +404 -337
- package/src/BigInt.ts +167 -97
- package/src/Boolean.ts +62 -31
- package/src/Brand.ts +20 -1
- package/src/Cache.ts +331 -164
- package/src/Cause.ts +74 -62
- package/src/Channel.ts +1585 -607
- package/src/ChannelSchema.ts +137 -12
- package/src/Chunk.ts +549 -380
- package/src/Clock.ts +15 -8
- package/src/Combiner.ts +2 -4
- package/src/Config.ts +4 -2
- package/src/ConfigProvider.ts +1 -1
- package/src/Console.ts +88 -58
- package/src/Context.ts +384 -135
- package/src/Cron.ts +111 -48
- package/src/Data.ts +3 -2
- package/src/DateTime.ts +874 -443
- package/src/Deferred.ts +367 -174
- package/src/Differ.ts +42 -0
- package/src/Duration.ts +329 -185
- package/src/Effect.ts +2127 -1957
- package/src/Effectable.ts +37 -2
- package/src/Encoding.ts +78 -28
- package/src/Equivalence.ts +14 -19
- package/src/ErrorReporter.ts +66 -82
- package/src/ExecutionPlan.ts +94 -9
- package/src/Exit.ts +7 -5
- package/src/Fiber.ts +72 -40
- package/src/FiberHandle.ts +156 -56
- package/src/FiberMap.ts +327 -162
- package/src/FiberSet.ts +129 -51
- package/src/FileSystem.ts +106 -74
- package/src/Filter.ts +166 -88
- package/src/Function.ts +154 -86
- package/src/Graph.ts +682 -365
- package/src/HKT.ts +29 -13
- package/src/Hash.ts +31 -18
- package/src/HashMap.ts +444 -256
- package/src/HashRing.ts +94 -17
- package/src/HashSet.ts +194 -104
- package/src/Inspectable.ts +22 -10
- package/src/Iterable.ts +309 -149
- package/src/JsonPatch.ts +4 -3
- package/src/Latch.ts +98 -15
- package/src/Layer.ts +487 -344
- package/src/LayerMap.ts +95 -21
- package/src/LogLevel.ts +92 -131
- package/src/Logger.ts +357 -288
- package/src/ManagedRuntime.ts +75 -17
- package/src/Match.ts +133 -157
- package/src/Metric.ts +355 -304
- package/src/MutableHashMap.ts +161 -84
- package/src/MutableHashSet.ts +122 -52
- package/src/MutableList.ts +141 -81
- package/src/MutableRef.ts +130 -90
- package/src/Newtype.ts +3 -0
- package/src/NonEmptyIterable.ts +36 -39
- package/src/Number.ts +116 -64
- package/src/Optic.ts +1 -2
- package/src/Option.ts +28 -47
- package/src/Ordering.ts +43 -28
- package/src/PartitionedSemaphore.ts +225 -40
- package/src/Path.ts +77 -13
- package/src/Pipeable.ts +76 -21
- package/src/PlatformError.ts +74 -6
- package/src/Pool.ts +94 -31
- package/src/Predicate.ts +16 -21
- package/src/PrimaryKey.ts +9 -2
- package/src/PubSub.ts +364 -262
- package/src/Pull.ts +94 -25
- package/src/Queue.ts +284 -150
- package/src/Random.ts +54 -35
- package/src/RcMap.ts +151 -141
- package/src/RcRef.ts +69 -32
- package/src/Record.ts +273 -129
- package/src/Redactable.ts +3 -3
- package/src/Redacted.ts +63 -33
- package/src/Ref.ts +161 -104
- package/src/References.ts +73 -31
- package/src/RegExp.ts +11 -5
- package/src/Request.ts +158 -34
- package/src/RequestResolver.ts +277 -119
- package/src/Resource.ts +45 -7
- package/src/Result.ts +18 -16
- package/src/Runtime.ts +45 -19
- package/src/Schedule.ts +574 -599
- package/src/Scheduler.ts +43 -6
- package/src/Schema.ts +819 -295
- package/src/SchemaAST.ts +25 -16
- package/src/SchemaGetter.ts +29 -14
- package/src/SchemaIssue.ts +1 -8
- package/src/SchemaParser.ts +262 -38
- package/src/SchemaTransformation.ts +61 -41
- package/src/SchemaUtils.ts +23 -0
- package/src/Scope.ts +102 -43
- package/src/ScopedCache.ts +192 -56
- package/src/ScopedRef.ts +28 -8
- package/src/Semaphore.ts +64 -28
- package/src/Sink.ts +458 -200
- package/src/Stdio.ts +43 -6
- package/src/Stream.ts +2039 -1252
- package/src/String.ts +171 -95
- package/src/SubscriptionRef.ts +308 -203
- package/src/Symbol.ts +13 -5
- package/src/SynchronizedRef.ts +278 -62
- package/src/Take.ts +26 -2
- package/src/Terminal.ts +40 -7
- package/src/Tracer.ts +229 -55
- package/src/Trie.ts +213 -142
- package/src/TxChunk.ts +182 -146
- package/src/TxDeferred.ts +43 -29
- package/src/TxHashMap.ts +370 -230
- package/src/TxHashSet.ts +250 -152
- package/src/TxPriorityQueue.ts +96 -64
- package/src/TxPubSub.ts +77 -49
- package/src/TxQueue.ts +279 -241
- package/src/TxReentrantLock.ts +70 -47
- package/src/TxRef.ts +69 -40
- package/src/TxSemaphore.ts +101 -54
- package/src/TxSubscriptionRef.ts +72 -48
- package/src/Types.ts +34 -34
- package/src/UndefinedOr.ts +48 -25
- package/src/Unify.ts +71 -116
- package/src/Utils.ts +4 -0
- package/src/index.ts +81 -32
- package/src/internal/schema/schema.ts +1 -1
- package/src/testing/FastCheck.ts +6 -3
- package/src/testing/TestClock.ts +63 -34
- package/src/testing/TestConsole.ts +49 -30
- package/src/testing/TestSchema.ts +8 -8
- package/src/unstable/ai/AiError.ts +187 -120
- package/src/unstable/ai/AnthropicStructuredOutput.ts +2 -2
- package/src/unstable/ai/Chat.ts +69 -43
- package/src/unstable/ai/EmbeddingModel.ts +12 -11
- package/src/unstable/ai/IdGenerator.ts +28 -18
- package/src/unstable/ai/LanguageModel.ts +35 -27
- package/src/unstable/ai/McpSchema.ts +339 -119
- package/src/unstable/ai/McpServer.ts +76 -19
- package/src/unstable/ai/Model.ts +8 -6
- package/src/unstable/ai/OpenAiStructuredOutput.ts +2 -2
- package/src/unstable/ai/Prompt.ts +210 -184
- package/src/unstable/ai/Response.ts +159 -147
- package/src/unstable/ai/ResponseIdTracker.ts +43 -4
- package/src/unstable/ai/Telemetry.ts +42 -32
- package/src/unstable/ai/Tokenizer.ts +13 -8
- package/src/unstable/ai/Tool.ts +154 -85
- package/src/unstable/ai/Toolkit.ts +51 -46
- package/src/unstable/ai/index.ts +42 -24
- package/src/unstable/cli/Argument.ts +226 -134
- package/src/unstable/cli/CliError.ts +96 -26
- package/src/unstable/cli/CliOutput.ts +43 -13
- package/src/unstable/cli/Command.ts +194 -113
- package/src/unstable/cli/Completions.ts +7 -7
- package/src/unstable/cli/Flag.ts +235 -142
- package/src/unstable/cli/GlobalFlag.ts +41 -13
- package/src/unstable/cli/HelpDoc.ts +35 -10
- package/src/unstable/cli/Param.ts +327 -189
- package/src/unstable/cli/Primitive.ts +79 -42
- package/src/unstable/cli/Prompt.ts +201 -45
- package/src/unstable/cli/internal/ansi.ts +13 -0
- package/src/unstable/cli/internal/command.ts +5 -1
- package/src/unstable/cli/internal/config.ts +3 -0
- package/src/unstable/cli/internal/lexer.ts +11 -0
- package/src/unstable/cluster/ClusterCron.ts +35 -1
- package/src/unstable/cluster/ClusterError.ts +56 -7
- package/src/unstable/cluster/ClusterMetrics.ts +39 -5
- package/src/unstable/cluster/ClusterSchema.ts +61 -8
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +35 -2
- package/src/unstable/cluster/DeliverAt.ts +39 -4
- package/src/unstable/cluster/Entity.ts +107 -16
- package/src/unstable/cluster/EntityAddress.ts +30 -2
- package/src/unstable/cluster/EntityId.ts +18 -3
- package/src/unstable/cluster/EntityProxy.ts +34 -2
- package/src/unstable/cluster/EntityProxyServer.ts +44 -8
- package/src/unstable/cluster/EntityResource.ts +43 -6
- package/src/unstable/cluster/EntityType.ts +27 -3
- package/src/unstable/cluster/Envelope.ts +128 -23
- package/src/unstable/cluster/HttpRunner.ts +88 -13
- package/src/unstable/cluster/K8sHttpClient.ts +49 -6
- package/src/unstable/cluster/MachineId.ts +24 -3
- package/src/unstable/cluster/Message.ts +102 -13
- package/src/unstable/cluster/MessageStorage.ts +127 -21
- package/src/unstable/cluster/Reply.ts +101 -12
- package/src/unstable/cluster/Runner.ts +47 -17
- package/src/unstable/cluster/RunnerAddress.ts +34 -2
- package/src/unstable/cluster/RunnerHealth.ts +40 -12
- package/src/unstable/cluster/RunnerServer.ts +31 -4
- package/src/unstable/cluster/RunnerStorage.ts +42 -5
- package/src/unstable/cluster/Runners.ts +73 -10
- package/src/unstable/cluster/ShardId.ts +51 -5
- package/src/unstable/cluster/Sharding.ts +35 -4
- package/src/unstable/cluster/ShardingConfig.ts +75 -10
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +31 -7
- package/src/unstable/cluster/SingleRunner.ts +23 -1
- package/src/unstable/cluster/Singleton.ts +15 -1
- package/src/unstable/cluster/SingletonAddress.ts +21 -1
- package/src/unstable/cluster/Snowflake.ts +89 -19
- package/src/unstable/cluster/SocketRunner.ts +29 -2
- package/src/unstable/cluster/SqlMessageStorage.ts +27 -3
- package/src/unstable/cluster/SqlRunnerStorage.ts +46 -7
- package/src/unstable/cluster/TestRunner.ts +18 -1
- package/src/unstable/cluster/internal/hash.ts +12 -0
- package/src/unstable/devtools/DevTools.ts +26 -3
- package/src/unstable/devtools/DevToolsClient.ts +32 -5
- package/src/unstable/devtools/DevToolsSchema.ts +201 -44
- package/src/unstable/devtools/DevToolsServer.ts +27 -2
- package/src/unstable/encoding/Msgpack.ts +97 -12
- package/src/unstable/encoding/Ndjson.ts +149 -21
- package/src/unstable/encoding/Sse.ts +109 -18
- package/src/unstable/eventlog/Event.ts +131 -30
- package/src/unstable/eventlog/EventGroup.ts +50 -17
- package/src/unstable/eventlog/EventJournal.ts +120 -20
- package/src/unstable/eventlog/EventLog.ts +151 -31
- package/src/unstable/eventlog/EventLogEncryption.ts +42 -6
- package/src/unstable/eventlog/EventLogMessage.ts +92 -18
- package/src/unstable/eventlog/EventLogRemote.ts +54 -8
- package/src/unstable/eventlog/EventLogServer.ts +33 -3
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +52 -6
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +90 -16
- package/src/unstable/eventlog/EventLogSessionAuth.ts +77 -15
- package/src/unstable/eventlog/SqlEventJournal.ts +28 -2
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +32 -3
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +28 -2
- package/src/unstable/http/Cookies.ts +156 -77
- package/src/unstable/http/Etag.ts +40 -7
- package/src/unstable/http/FetchHttpClient.ts +33 -4
- package/src/unstable/http/FindMyWay.ts +1 -1
- package/src/unstable/http/Headers.ts +252 -50
- package/src/unstable/http/HttpBody.ts +128 -26
- package/src/unstable/http/HttpClient.ts +205 -96
- package/src/unstable/http/HttpClientError.ts +80 -12
- package/src/unstable/http/HttpClientRequest.ts +318 -100
- package/src/unstable/http/HttpClientResponse.ts +59 -16
- package/src/unstable/http/HttpEffect.ts +66 -18
- package/src/unstable/http/HttpIncomingMessage.ts +47 -7
- package/src/unstable/http/HttpMethod.ts +35 -5
- package/src/unstable/http/HttpMiddleware.ts +59 -11
- package/src/unstable/http/HttpPlatform.ts +34 -3
- package/src/unstable/http/HttpRouter.ts +217 -52
- package/src/unstable/http/HttpServer.ts +151 -22
- package/src/unstable/http/HttpServerError.ts +90 -10
- package/src/unstable/http/HttpServerRequest.ts +125 -21
- package/src/unstable/http/HttpServerRespondable.ts +49 -6
- package/src/unstable/http/HttpServerResponse.ts +390 -67
- package/src/unstable/http/HttpStaticServer.ts +22 -4
- package/src/unstable/http/HttpTraceContext.ts +53 -6
- package/src/unstable/http/Multipart.ts +178 -28
- package/src/unstable/http/Multipasta/HeadersParser.ts +1 -1
- package/src/unstable/http/Multipasta/Node.ts +1 -1
- package/src/unstable/http/Multipasta/Search.ts +1 -1
- package/src/unstable/http/Multipasta/Web.ts +1 -1
- package/src/unstable/http/Multipasta.ts +1 -1
- package/src/unstable/http/Template.ts +53 -0
- package/src/unstable/http/Url.ts +56 -42
- package/src/unstable/http/UrlParams.ts +233 -49
- package/src/unstable/httpapi/HttpApi.ts +49 -14
- package/src/unstable/httpapi/HttpApiBuilder.ts +82 -16
- package/src/unstable/httpapi/HttpApiClient.ts +79 -15
- package/src/unstable/httpapi/HttpApiEndpoint.ts +238 -59
- package/src/unstable/httpapi/HttpApiError.ts +100 -1
- package/src/unstable/httpapi/HttpApiGroup.ts +87 -20
- package/src/unstable/httpapi/HttpApiMiddleware.ts +111 -22
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -4
- package/src/unstable/httpapi/HttpApiSchema.ts +67 -30
- package/src/unstable/httpapi/HttpApiSecurity.ts +74 -17
- package/src/unstable/httpapi/HttpApiSwagger.ts +24 -2
- package/src/unstable/httpapi/HttpApiTest.ts +26 -1
- package/src/unstable/httpapi/OpenApi.ts +115 -15
- package/src/unstable/observability/Otlp.ts +33 -3
- package/src/unstable/observability/OtlpExporter.ts +32 -1
- package/src/unstable/observability/OtlpLogger.ts +31 -2
- package/src/unstable/observability/OtlpMetrics.ts +37 -4
- package/src/unstable/observability/OtlpResource.ts +68 -12
- package/src/unstable/observability/OtlpSerialization.ts +28 -3
- package/src/unstable/observability/OtlpTracer.ts +38 -2
- package/src/unstable/observability/PrometheusMetrics.ts +32 -12
- package/src/unstable/observability/index.ts +2 -1
- package/src/unstable/persistence/KeyValueStore.ts +108 -28
- package/src/unstable/persistence/Persistable.ts +76 -15
- package/src/unstable/persistence/PersistedCache.ts +27 -2
- package/src/unstable/persistence/PersistedQueue.ts +98 -16
- package/src/unstable/persistence/Persistence.ts +97 -16
- package/src/unstable/persistence/RateLimiter.ts +97 -21
- package/src/unstable/persistence/Redis.ts +42 -5
- package/src/unstable/process/ChildProcess.ts +89 -65
- package/src/unstable/process/ChildProcessSpawner.ts +22 -11
- package/src/unstable/process/index.ts +2 -1
- package/src/unstable/reactivity/AsyncResult.ts +202 -61
- package/src/unstable/reactivity/Atom.ts +593 -139
- package/src/unstable/reactivity/AtomHttpApi.ts +41 -2
- package/src/unstable/reactivity/AtomRef.ts +51 -7
- package/src/unstable/reactivity/AtomRegistry.ts +141 -22
- package/src/unstable/reactivity/AtomRpc.ts +36 -2
- package/src/unstable/reactivity/Hydration.ts +45 -5
- package/src/unstable/reactivity/Reactivity.ts +95 -13
- package/src/unstable/rpc/Rpc.ts +255 -56
- package/src/unstable/rpc/RpcClient.ts +107 -19
- package/src/unstable/rpc/RpcClientError.ts +26 -2
- package/src/unstable/rpc/RpcGroup.ts +51 -8
- package/src/unstable/rpc/RpcMessage.ts +128 -32
- package/src/unstable/rpc/RpcMiddleware.ts +100 -20
- package/src/unstable/rpc/RpcSchema.ts +38 -4
- package/src/unstable/rpc/RpcSerialization.ts +60 -13
- package/src/unstable/rpc/RpcServer.ts +107 -23
- package/src/unstable/rpc/RpcTest.ts +20 -1
- package/src/unstable/rpc/RpcWorker.ts +40 -6
- package/src/unstable/rpc/Utils.ts +31 -0
- package/src/unstable/schema/Model.ts +148 -52
- package/src/unstable/schema/VariantSchema.ts +104 -24
- package/src/unstable/socket/Socket.ts +167 -34
- package/src/unstable/socket/SocketServer.ts +58 -10
- package/src/unstable/sql/Migrator.ts +56 -4
- package/src/unstable/sql/SqlClient.ts +55 -2
- package/src/unstable/sql/SqlConnection.ts +31 -0
- package/src/unstable/sql/SqlError.ts +117 -0
- package/src/unstable/sql/SqlModel.ts +26 -5
- package/src/unstable/sql/SqlResolver.ts +56 -13
- package/src/unstable/sql/SqlSchema.ts +29 -8
- package/src/unstable/sql/SqlStream.ts +23 -0
- package/src/unstable/sql/Statement.ts +141 -0
- package/src/unstable/sql/index.ts +1 -1
- package/src/unstable/workers/Transferable.ts +65 -13
- package/src/unstable/workers/Worker.ts +60 -8
- package/src/unstable/workers/WorkerError.ts +50 -9
- package/src/unstable/workers/WorkerRunner.ts +32 -3
- package/src/unstable/workers/index.ts +1 -1
- package/src/unstable/workflow/Activity.ts +61 -10
- package/src/unstable/workflow/DurableClock.ts +26 -3
- package/src/unstable/workflow/DurableDeferred.ts +146 -31
- package/src/unstable/workflow/DurableQueue.ts +30 -7
- package/src/unstable/workflow/Workflow.ts +121 -31
- package/src/unstable/workflow/WorkflowEngine.ts +40 -5
- package/src/unstable/workflow/WorkflowProxy.ts +32 -2
- package/src/unstable/workflow/WorkflowProxyServer.ts +40 -6
package/dist/Record.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ import type { NoInfer } from "./Types.ts";
|
|
|
14
14
|
* Represents a readonly record with keys of type `K` and values of type `A`.
|
|
15
15
|
* This is the foundational type for immutable key-value mappings in Effect.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
* **Example** (Defining a readonly record type)
|
|
18
|
+
*
|
|
18
19
|
* ```ts
|
|
19
20
|
* import type { Record } from "effect"
|
|
20
21
|
*
|
|
@@ -37,7 +38,8 @@ export type ReadonlyRecord<in out K extends string | symbol, out A> = {
|
|
|
37
38
|
* Namespace containing utility types for working with readonly records.
|
|
38
39
|
* These types help with type-level operations on record keys and values.
|
|
39
40
|
*
|
|
40
|
-
*
|
|
41
|
+
* **Example** (Using readonly record helper types)
|
|
42
|
+
*
|
|
41
43
|
* ```ts
|
|
42
44
|
* import type { Record } from "effect"
|
|
43
45
|
*
|
|
@@ -59,7 +61,8 @@ export declare namespace ReadonlyRecord {
|
|
|
59
61
|
* Represents a type that converts literal string keys to generic string type and symbol keys to generic symbol type.
|
|
60
62
|
* This is useful for maintaining type safety while allowing flexible key types in record operations.
|
|
61
63
|
*
|
|
62
|
-
*
|
|
64
|
+
* **Example** (Converting literal keys to non-literal keys)
|
|
65
|
+
*
|
|
63
66
|
* ```ts
|
|
64
67
|
* import type { Record } from "effect"
|
|
65
68
|
*
|
|
@@ -78,7 +81,8 @@ export declare namespace ReadonlyRecord {
|
|
|
78
81
|
* Represents the intersection of two key types, handling both literal and non-literal string keys.
|
|
79
82
|
* This type is used in record operations that need to compute overlapping keys.
|
|
80
83
|
*
|
|
81
|
-
*
|
|
84
|
+
* **Example** (Intersecting record keys)
|
|
85
|
+
*
|
|
82
86
|
* ```ts
|
|
83
87
|
* import type { Record } from "effect"
|
|
84
88
|
*
|
|
@@ -98,15 +102,23 @@ export declare namespace ReadonlyRecord {
|
|
|
98
102
|
* Type lambda for readonly records, used in higher-kinded type operations.
|
|
99
103
|
* This enables records to work with generic type constructors and functors.
|
|
100
104
|
*
|
|
101
|
-
*
|
|
102
|
-
* ```ts
|
|
103
|
-
* import type { Record } from "effect"
|
|
105
|
+
* **Example** (Applying a readonly record type lambda)
|
|
104
106
|
*
|
|
105
|
-
*
|
|
106
|
-
* type
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
107
|
+
* ```ts
|
|
108
|
+
* import type { HKT, Record } from "effect"
|
|
109
|
+
*
|
|
110
|
+
* type Settings = HKT.Kind<
|
|
111
|
+
* Record.ReadonlyRecordTypeLambda<"port" | "retries">,
|
|
112
|
+
* never,
|
|
113
|
+
* never,
|
|
114
|
+
* never,
|
|
115
|
+
* number
|
|
116
|
+
* >
|
|
117
|
+
*
|
|
118
|
+
* const defaults: Settings = {
|
|
119
|
+
* port: 3000,
|
|
120
|
+
* retries: 3
|
|
121
|
+
* }
|
|
110
122
|
* ```
|
|
111
123
|
*
|
|
112
124
|
* @category type lambdas
|
|
@@ -118,7 +130,8 @@ export interface ReadonlyRecordTypeLambda<K extends string = string> extends Typ
|
|
|
118
130
|
/**
|
|
119
131
|
* Creates a new, empty record.
|
|
120
132
|
*
|
|
121
|
-
*
|
|
133
|
+
* **Example** (Creating an empty record)
|
|
134
|
+
*
|
|
122
135
|
* ```ts
|
|
123
136
|
* import { Record } from "effect"
|
|
124
137
|
*
|
|
@@ -138,7 +151,8 @@ export declare const empty: <K extends string | symbol = never, V = never>() =>
|
|
|
138
151
|
/**
|
|
139
152
|
* Determine if a record is empty.
|
|
140
153
|
*
|
|
141
|
-
*
|
|
154
|
+
* **Example** (Checking for an empty record)
|
|
155
|
+
*
|
|
142
156
|
* ```ts
|
|
143
157
|
* import { Record } from "effect"
|
|
144
158
|
* import * as assert from "node:assert"
|
|
@@ -154,7 +168,8 @@ export declare const isEmptyRecord: <K extends string, A>(self: Record<K, A>) =>
|
|
|
154
168
|
/**
|
|
155
169
|
* Determine if a record is empty.
|
|
156
170
|
*
|
|
157
|
-
*
|
|
171
|
+
* **Example** (Checking for an empty readonly record)
|
|
172
|
+
*
|
|
158
173
|
* ```ts
|
|
159
174
|
* import { Record } from "effect"
|
|
160
175
|
* import * as assert from "node:assert"
|
|
@@ -171,7 +186,8 @@ export declare const isEmptyReadonlyRecord: <K extends string, A>(self: Readonly
|
|
|
171
186
|
* Takes an iterable and a projection function and returns a record.
|
|
172
187
|
* The projection function maps each value of the iterable to a tuple of a key and a value, which is then added to the resulting record.
|
|
173
188
|
*
|
|
174
|
-
*
|
|
189
|
+
* **Example** (Building a record from mapped iterable values)
|
|
190
|
+
*
|
|
175
191
|
* ```ts
|
|
176
192
|
* import { Record } from "effect"
|
|
177
193
|
* import * as assert from "node:assert"
|
|
@@ -192,7 +208,8 @@ export declare const fromIterableWith: {
|
|
|
192
208
|
* Takes an iterable and a projection function and returns a record.
|
|
193
209
|
* The projection function maps each value of the iterable to a tuple of a key and a value, which is then added to the resulting record.
|
|
194
210
|
*
|
|
195
|
-
*
|
|
211
|
+
* **Example** (Building a record from mapped iterable values)
|
|
212
|
+
*
|
|
196
213
|
* ```ts
|
|
197
214
|
* import { Record } from "effect"
|
|
198
215
|
* import * as assert from "node:assert"
|
|
@@ -213,7 +230,8 @@ export declare const fromIterableWith: {
|
|
|
213
230
|
* Takes an iterable and a projection function and returns a record.
|
|
214
231
|
* The projection function maps each value of the iterable to a tuple of a key and a value, which is then added to the resulting record.
|
|
215
232
|
*
|
|
216
|
-
*
|
|
233
|
+
* **Example** (Building a record from mapped iterable values)
|
|
234
|
+
*
|
|
217
235
|
* ```ts
|
|
218
236
|
* import { Record } from "effect"
|
|
219
237
|
* import * as assert from "node:assert"
|
|
@@ -234,7 +252,8 @@ export declare const fromIterableWith: {
|
|
|
234
252
|
/**
|
|
235
253
|
* Creates a new record from an iterable, utilizing the provided function to determine the key for each element.
|
|
236
254
|
*
|
|
237
|
-
*
|
|
255
|
+
* **Example** (Building a record keyed by iterable values)
|
|
256
|
+
*
|
|
238
257
|
* ```ts
|
|
239
258
|
* import { Record } from "effect"
|
|
240
259
|
* import * as assert from "node:assert"
|
|
@@ -263,7 +282,8 @@ export declare const fromIterableBy: <A, K extends string | symbol>(items: Itera
|
|
|
263
282
|
* If there are conflicting keys when using `fromEntries`, the last occurrence of the key/value pair will overwrite the
|
|
264
283
|
* previous ones. So the resulting record will only have the value of the last occurrence of each key.
|
|
265
284
|
*
|
|
266
|
-
*
|
|
285
|
+
* **Example** (Building a record from entries)
|
|
286
|
+
*
|
|
267
287
|
* ```ts
|
|
268
288
|
* import { Record } from "effect"
|
|
269
289
|
* import * as assert from "node:assert"
|
|
@@ -273,14 +293,15 @@ export declare const fromIterableBy: <A, K extends string | symbol>(items: Itera
|
|
|
273
293
|
* assert.deepStrictEqual(Record.fromEntries(input), { a: 1, b: 2 })
|
|
274
294
|
* ```
|
|
275
295
|
*
|
|
276
|
-
* @since 2.0.0
|
|
277
296
|
* @category constructors
|
|
297
|
+
* @since 2.0.0
|
|
278
298
|
*/
|
|
279
299
|
export declare const fromEntries: <Entry extends readonly [string | symbol, any]>(entries: Iterable<Entry>) => Record<ReadonlyRecord.NonLiteralKey<Entry[0]>, Entry[1]>;
|
|
280
300
|
/**
|
|
281
301
|
* Transforms the values of a record into an `Array` with a custom mapping function.
|
|
282
302
|
*
|
|
283
|
-
*
|
|
303
|
+
* **Example** (Collecting mapped record values)
|
|
304
|
+
*
|
|
284
305
|
* ```ts
|
|
285
306
|
* import { Record } from "effect"
|
|
286
307
|
* import * as assert from "node:assert"
|
|
@@ -299,7 +320,8 @@ export declare const collect: {
|
|
|
299
320
|
/**
|
|
300
321
|
* Transforms the values of a record into an `Array` with a custom mapping function.
|
|
301
322
|
*
|
|
302
|
-
*
|
|
323
|
+
* **Example** (Collecting mapped record values)
|
|
324
|
+
*
|
|
303
325
|
* ```ts
|
|
304
326
|
* import { Record } from "effect"
|
|
305
327
|
* import * as assert from "node:assert"
|
|
@@ -318,7 +340,8 @@ export declare const collect: {
|
|
|
318
340
|
/**
|
|
319
341
|
* Transforms the values of a record into an `Array` with a custom mapping function.
|
|
320
342
|
*
|
|
321
|
-
*
|
|
343
|
+
* **Example** (Collecting mapped record values)
|
|
344
|
+
*
|
|
322
345
|
* ```ts
|
|
323
346
|
* import { Record } from "effect"
|
|
324
347
|
* import * as assert from "node:assert"
|
|
@@ -338,7 +361,8 @@ export declare const collect: {
|
|
|
338
361
|
/**
|
|
339
362
|
* Takes a record and returns an array of tuples containing its keys and values.
|
|
340
363
|
*
|
|
341
|
-
*
|
|
364
|
+
* **Example** (Converting a record to entries)
|
|
365
|
+
*
|
|
342
366
|
* ```ts
|
|
343
367
|
* import { Record } from "effect"
|
|
344
368
|
* import * as assert from "node:assert"
|
|
@@ -354,7 +378,8 @@ export declare const toEntries: <K extends string, A>(self: ReadonlyRecord<K, A>
|
|
|
354
378
|
/**
|
|
355
379
|
* Returns the number of key/value pairs in a record.
|
|
356
380
|
*
|
|
357
|
-
*
|
|
381
|
+
* **Example** (Getting the record size)
|
|
382
|
+
*
|
|
358
383
|
* ```ts
|
|
359
384
|
* import { Record } from "effect"
|
|
360
385
|
* import * as assert from "node:assert"
|
|
@@ -369,7 +394,8 @@ export declare const size: <K extends string, A>(self: ReadonlyRecord<K, A>) =>
|
|
|
369
394
|
/**
|
|
370
395
|
* Check if a given `key` exists in a record.
|
|
371
396
|
*
|
|
372
|
-
*
|
|
397
|
+
* **Example** (Checking key membership)
|
|
398
|
+
*
|
|
373
399
|
* ```ts
|
|
374
400
|
* import { Record } from "effect"
|
|
375
401
|
* import * as assert from "node:assert"
|
|
@@ -385,7 +411,8 @@ export declare const has: {
|
|
|
385
411
|
/**
|
|
386
412
|
* Check if a given `key` exists in a record.
|
|
387
413
|
*
|
|
388
|
-
*
|
|
414
|
+
* **Example** (Checking key membership)
|
|
415
|
+
*
|
|
389
416
|
* ```ts
|
|
390
417
|
* import { Record } from "effect"
|
|
391
418
|
* import * as assert from "node:assert"
|
|
@@ -401,7 +428,8 @@ export declare const has: {
|
|
|
401
428
|
/**
|
|
402
429
|
* Check if a given `key` exists in a record.
|
|
403
430
|
*
|
|
404
|
-
*
|
|
431
|
+
* **Example** (Checking key membership)
|
|
432
|
+
*
|
|
405
433
|
* ```ts
|
|
406
434
|
* import { Record } from "effect"
|
|
407
435
|
* import * as assert from "node:assert"
|
|
@@ -418,7 +446,8 @@ export declare const has: {
|
|
|
418
446
|
/**
|
|
419
447
|
* Retrieve a value at a particular key from a record, returning it wrapped in an `Option`.
|
|
420
448
|
*
|
|
421
|
-
*
|
|
449
|
+
* **Example** (Getting a value as an Option)
|
|
450
|
+
*
|
|
422
451
|
* ```ts
|
|
423
452
|
* import { Option, Record as R } from "effect"
|
|
424
453
|
* import * as assert from "node:assert"
|
|
@@ -436,7 +465,8 @@ export declare const get: {
|
|
|
436
465
|
/**
|
|
437
466
|
* Retrieve a value at a particular key from a record, returning it wrapped in an `Option`.
|
|
438
467
|
*
|
|
439
|
-
*
|
|
468
|
+
* **Example** (Getting a value as an Option)
|
|
469
|
+
*
|
|
440
470
|
* ```ts
|
|
441
471
|
* import { Option, Record as R } from "effect"
|
|
442
472
|
* import * as assert from "node:assert"
|
|
@@ -454,7 +484,8 @@ export declare const get: {
|
|
|
454
484
|
/**
|
|
455
485
|
* Retrieve a value at a particular key from a record, returning it wrapped in an `Option`.
|
|
456
486
|
*
|
|
457
|
-
*
|
|
487
|
+
* **Example** (Getting a value as an Option)
|
|
488
|
+
*
|
|
458
489
|
* ```ts
|
|
459
490
|
* import { Option, Record as R } from "effect"
|
|
460
491
|
* import * as assert from "node:assert"
|
|
@@ -474,7 +505,8 @@ export declare const get: {
|
|
|
474
505
|
* Apply a function to the element at the specified key, creating a new record,
|
|
475
506
|
* or return `Option.none()` if the key doesn't exist.
|
|
476
507
|
*
|
|
477
|
-
*
|
|
508
|
+
* **Example** (Modifying a value at a key)
|
|
509
|
+
*
|
|
478
510
|
* ```ts
|
|
479
511
|
* import { Record } from "effect"
|
|
480
512
|
*
|
|
@@ -494,7 +526,8 @@ export declare const modify: {
|
|
|
494
526
|
* Apply a function to the element at the specified key, creating a new record,
|
|
495
527
|
* or return `Option.none()` if the key doesn't exist.
|
|
496
528
|
*
|
|
497
|
-
*
|
|
529
|
+
* **Example** (Modifying a value at a key)
|
|
530
|
+
*
|
|
498
531
|
* ```ts
|
|
499
532
|
* import { Record } from "effect"
|
|
500
533
|
*
|
|
@@ -514,7 +547,8 @@ export declare const modify: {
|
|
|
514
547
|
* Apply a function to the element at the specified key, creating a new record,
|
|
515
548
|
* or return `Option.none()` if the key doesn't exist.
|
|
516
549
|
*
|
|
517
|
-
*
|
|
550
|
+
* **Example** (Modifying a value at a key)
|
|
551
|
+
*
|
|
518
552
|
* ```ts
|
|
519
553
|
* import { Record } from "effect"
|
|
520
554
|
*
|
|
@@ -532,9 +566,14 @@ export declare const modify: {
|
|
|
532
566
|
<K extends string | symbol, A, B>(self: ReadonlyRecord<K, A>, key: NoInfer<K>, f: (a: A) => B): Option.Option<Record<K, A | B>>;
|
|
533
567
|
};
|
|
534
568
|
/**
|
|
535
|
-
* Replaces
|
|
569
|
+
* Replaces the value at an existing key and returns the updated record in
|
|
570
|
+
* `Option.some`.
|
|
571
|
+
*
|
|
572
|
+
* If the key is not present, returns `Option.none()` and leaves the record
|
|
573
|
+
* unchanged.
|
|
574
|
+
*
|
|
575
|
+
* **Example** (Replacing a value at a key)
|
|
536
576
|
*
|
|
537
|
-
* @example
|
|
538
577
|
* ```ts
|
|
539
578
|
* import { Record } from "effect"
|
|
540
579
|
*
|
|
@@ -547,9 +586,14 @@ export declare const modify: {
|
|
|
547
586
|
*/
|
|
548
587
|
export declare const replace: {
|
|
549
588
|
/**
|
|
550
|
-
* Replaces
|
|
589
|
+
* Replaces the value at an existing key and returns the updated record in
|
|
590
|
+
* `Option.some`.
|
|
591
|
+
*
|
|
592
|
+
* If the key is not present, returns `Option.none()` and leaves the record
|
|
593
|
+
* unchanged.
|
|
594
|
+
*
|
|
595
|
+
* **Example** (Replacing a value at a key)
|
|
551
596
|
*
|
|
552
|
-
* @example
|
|
553
597
|
* ```ts
|
|
554
598
|
* import { Record } from "effect"
|
|
555
599
|
*
|
|
@@ -562,9 +606,14 @@ export declare const replace: {
|
|
|
562
606
|
*/
|
|
563
607
|
<K extends string | symbol, B>(key: NoInfer<K>, b: B): <A>(self: ReadonlyRecord<K, A>) => Option.Option<Record<K, A | B>>;
|
|
564
608
|
/**
|
|
565
|
-
* Replaces
|
|
609
|
+
* Replaces the value at an existing key and returns the updated record in
|
|
610
|
+
* `Option.some`.
|
|
611
|
+
*
|
|
612
|
+
* If the key is not present, returns `Option.none()` and leaves the record
|
|
613
|
+
* unchanged.
|
|
614
|
+
*
|
|
615
|
+
* **Example** (Replacing a value at a key)
|
|
566
616
|
*
|
|
567
|
-
* @example
|
|
568
617
|
* ```ts
|
|
569
618
|
* import { Record } from "effect"
|
|
570
619
|
*
|
|
@@ -581,7 +630,8 @@ export declare const replace: {
|
|
|
581
630
|
* If the given key exists in the record, returns a new record with the key removed.
|
|
582
631
|
* If the key does not exist, returns a shallow copy of the original record.
|
|
583
632
|
*
|
|
584
|
-
*
|
|
633
|
+
* **Example** (Removing a key)
|
|
634
|
+
*
|
|
585
635
|
* ```ts
|
|
586
636
|
* import { Record } from "effect"
|
|
587
637
|
* import * as assert from "node:assert"
|
|
@@ -597,7 +647,8 @@ export declare const remove: {
|
|
|
597
647
|
* If the given key exists in the record, returns a new record with the key removed.
|
|
598
648
|
* If the key does not exist, returns a shallow copy of the original record.
|
|
599
649
|
*
|
|
600
|
-
*
|
|
650
|
+
* **Example** (Removing a key)
|
|
651
|
+
*
|
|
601
652
|
* ```ts
|
|
602
653
|
* import { Record } from "effect"
|
|
603
654
|
* import * as assert from "node:assert"
|
|
@@ -613,7 +664,8 @@ export declare const remove: {
|
|
|
613
664
|
* If the given key exists in the record, returns a new record with the key removed.
|
|
614
665
|
* If the key does not exist, returns a shallow copy of the original record.
|
|
615
666
|
*
|
|
616
|
-
*
|
|
667
|
+
* **Example** (Removing a key)
|
|
668
|
+
*
|
|
617
669
|
* ```ts
|
|
618
670
|
* import { Record } from "effect"
|
|
619
671
|
* import * as assert from "node:assert"
|
|
@@ -631,7 +683,8 @@ export declare const remove: {
|
|
|
631
683
|
* of a tuple with the value and the record with the removed property.
|
|
632
684
|
* If the key is not present, returns `Option.none()`.
|
|
633
685
|
*
|
|
634
|
-
*
|
|
686
|
+
* **Example** (Popping a value and removing its key)
|
|
687
|
+
*
|
|
635
688
|
* ```ts
|
|
636
689
|
* import { Record } from "effect"
|
|
637
690
|
*
|
|
@@ -650,7 +703,8 @@ export declare const pop: {
|
|
|
650
703
|
* of a tuple with the value and the record with the removed property.
|
|
651
704
|
* If the key is not present, returns `Option.none()`.
|
|
652
705
|
*
|
|
653
|
-
*
|
|
706
|
+
* **Example** (Popping a value and removing its key)
|
|
707
|
+
*
|
|
654
708
|
* ```ts
|
|
655
709
|
* import { Record } from "effect"
|
|
656
710
|
*
|
|
@@ -669,7 +723,8 @@ export declare const pop: {
|
|
|
669
723
|
* of a tuple with the value and the record with the removed property.
|
|
670
724
|
* If the key is not present, returns `Option.none()`.
|
|
671
725
|
*
|
|
672
|
-
*
|
|
726
|
+
* **Example** (Popping a value and removing its key)
|
|
727
|
+
*
|
|
673
728
|
* ```ts
|
|
674
729
|
* import { Record } from "effect"
|
|
675
730
|
*
|
|
@@ -687,7 +742,8 @@ export declare const pop: {
|
|
|
687
742
|
/**
|
|
688
743
|
* Maps a record into another record by applying a transformation function to each of its values.
|
|
689
744
|
*
|
|
690
|
-
*
|
|
745
|
+
* **Example** (Mapping record values)
|
|
746
|
+
*
|
|
691
747
|
* ```ts
|
|
692
748
|
* import { Record } from "effect"
|
|
693
749
|
* import * as assert from "node:assert"
|
|
@@ -708,7 +764,8 @@ export declare const map: {
|
|
|
708
764
|
/**
|
|
709
765
|
* Maps a record into another record by applying a transformation function to each of its values.
|
|
710
766
|
*
|
|
711
|
-
*
|
|
767
|
+
* **Example** (Mapping record values)
|
|
768
|
+
*
|
|
712
769
|
* ```ts
|
|
713
770
|
* import { Record } from "effect"
|
|
714
771
|
* import * as assert from "node:assert"
|
|
@@ -729,7 +786,8 @@ export declare const map: {
|
|
|
729
786
|
/**
|
|
730
787
|
* Maps a record into another record by applying a transformation function to each of its values.
|
|
731
788
|
*
|
|
732
|
-
*
|
|
789
|
+
* **Example** (Mapping record values)
|
|
790
|
+
*
|
|
733
791
|
* ```ts
|
|
734
792
|
* import { Record } from "effect"
|
|
735
793
|
* import * as assert from "node:assert"
|
|
@@ -751,7 +809,8 @@ export declare const map: {
|
|
|
751
809
|
/**
|
|
752
810
|
* Maps the keys of a `ReadonlyRecord` while preserving the corresponding values.
|
|
753
811
|
*
|
|
754
|
-
*
|
|
812
|
+
* **Example** (Mapping record keys)
|
|
813
|
+
*
|
|
755
814
|
* ```ts
|
|
756
815
|
* import { Record } from "effect"
|
|
757
816
|
* import * as assert from "node:assert"
|
|
@@ -769,7 +828,8 @@ export declare const mapKeys: {
|
|
|
769
828
|
/**
|
|
770
829
|
* Maps the keys of a `ReadonlyRecord` while preserving the corresponding values.
|
|
771
830
|
*
|
|
772
|
-
*
|
|
831
|
+
* **Example** (Mapping record keys)
|
|
832
|
+
*
|
|
773
833
|
* ```ts
|
|
774
834
|
* import { Record } from "effect"
|
|
775
835
|
* import * as assert from "node:assert"
|
|
@@ -787,7 +847,8 @@ export declare const mapKeys: {
|
|
|
787
847
|
/**
|
|
788
848
|
* Maps the keys of a `ReadonlyRecord` while preserving the corresponding values.
|
|
789
849
|
*
|
|
790
|
-
*
|
|
850
|
+
* **Example** (Mapping record keys)
|
|
851
|
+
*
|
|
791
852
|
* ```ts
|
|
792
853
|
* import { Record } from "effect"
|
|
793
854
|
* import * as assert from "node:assert"
|
|
@@ -806,7 +867,8 @@ export declare const mapKeys: {
|
|
|
806
867
|
/**
|
|
807
868
|
* Maps entries of a `ReadonlyRecord` using the provided function, allowing modification of both keys and corresponding values.
|
|
808
869
|
*
|
|
809
|
-
*
|
|
870
|
+
* **Example** (Mapping record entries)
|
|
871
|
+
*
|
|
810
872
|
* ```ts
|
|
811
873
|
* import { Record } from "effect"
|
|
812
874
|
* import * as assert from "node:assert"
|
|
@@ -824,7 +886,8 @@ export declare const mapEntries: {
|
|
|
824
886
|
/**
|
|
825
887
|
* Maps entries of a `ReadonlyRecord` using the provided function, allowing modification of both keys and corresponding values.
|
|
826
888
|
*
|
|
827
|
-
*
|
|
889
|
+
* **Example** (Mapping record entries)
|
|
890
|
+
*
|
|
828
891
|
* ```ts
|
|
829
892
|
* import { Record } from "effect"
|
|
830
893
|
* import * as assert from "node:assert"
|
|
@@ -842,7 +905,8 @@ export declare const mapEntries: {
|
|
|
842
905
|
/**
|
|
843
906
|
* Maps entries of a `ReadonlyRecord` using the provided function, allowing modification of both keys and corresponding values.
|
|
844
907
|
*
|
|
845
|
-
*
|
|
908
|
+
* **Example** (Mapping record entries)
|
|
909
|
+
*
|
|
846
910
|
* ```ts
|
|
847
911
|
* import { Record } from "effect"
|
|
848
912
|
* import * as assert from "node:assert"
|
|
@@ -862,7 +926,8 @@ export declare const mapEntries: {
|
|
|
862
926
|
* Transforms a record by applying the function `f` to each key and value in the original record.
|
|
863
927
|
* If the function succeeds, the key-value pair is included in the output record.
|
|
864
928
|
*
|
|
865
|
-
*
|
|
929
|
+
* **Example** (Filtering and mapping with Result)
|
|
930
|
+
*
|
|
866
931
|
* ```ts
|
|
867
932
|
* import { Record, Result } from "effect"
|
|
868
933
|
* import * as assert from "node:assert"
|
|
@@ -880,7 +945,8 @@ export declare const filterMap: {
|
|
|
880
945
|
* Transforms a record by applying the function `f` to each key and value in the original record.
|
|
881
946
|
* If the function succeeds, the key-value pair is included in the output record.
|
|
882
947
|
*
|
|
883
|
-
*
|
|
948
|
+
* **Example** (Filtering and mapping with Result)
|
|
949
|
+
*
|
|
884
950
|
* ```ts
|
|
885
951
|
* import { Record, Result } from "effect"
|
|
886
952
|
* import * as assert from "node:assert"
|
|
@@ -898,7 +964,8 @@ export declare const filterMap: {
|
|
|
898
964
|
* Transforms a record by applying the function `f` to each key and value in the original record.
|
|
899
965
|
* If the function succeeds, the key-value pair is included in the output record.
|
|
900
966
|
*
|
|
901
|
-
*
|
|
967
|
+
* **Example** (Filtering and mapping with Result)
|
|
968
|
+
*
|
|
902
969
|
* ```ts
|
|
903
970
|
* import { Record, Result } from "effect"
|
|
904
971
|
* import * as assert from "node:assert"
|
|
@@ -916,7 +983,8 @@ export declare const filterMap: {
|
|
|
916
983
|
/**
|
|
917
984
|
* Selects properties from a record whose values match the given predicate.
|
|
918
985
|
*
|
|
919
|
-
*
|
|
986
|
+
* **Example** (Filtering record values)
|
|
987
|
+
*
|
|
920
988
|
* ```ts
|
|
921
989
|
* import { Record } from "effect"
|
|
922
990
|
* import * as assert from "node:assert"
|
|
@@ -932,7 +1000,8 @@ export declare const filter: {
|
|
|
932
1000
|
/**
|
|
933
1001
|
* Selects properties from a record whose values match the given predicate.
|
|
934
1002
|
*
|
|
935
|
-
*
|
|
1003
|
+
* **Example** (Filtering record values)
|
|
1004
|
+
*
|
|
936
1005
|
* ```ts
|
|
937
1006
|
* import { Record } from "effect"
|
|
938
1007
|
* import * as assert from "node:assert"
|
|
@@ -948,7 +1017,8 @@ export declare const filter: {
|
|
|
948
1017
|
/**
|
|
949
1018
|
* Selects properties from a record whose values match the given predicate.
|
|
950
1019
|
*
|
|
951
|
-
*
|
|
1020
|
+
* **Example** (Filtering record values)
|
|
1021
|
+
*
|
|
952
1022
|
* ```ts
|
|
953
1023
|
* import { Record } from "effect"
|
|
954
1024
|
* import * as assert from "node:assert"
|
|
@@ -964,7 +1034,8 @@ export declare const filter: {
|
|
|
964
1034
|
/**
|
|
965
1035
|
* Selects properties from a record whose values match the given predicate.
|
|
966
1036
|
*
|
|
967
|
-
*
|
|
1037
|
+
* **Example** (Filtering record values)
|
|
1038
|
+
*
|
|
968
1039
|
* ```ts
|
|
969
1040
|
* import { Record } from "effect"
|
|
970
1041
|
* import * as assert from "node:assert"
|
|
@@ -980,7 +1051,8 @@ export declare const filter: {
|
|
|
980
1051
|
/**
|
|
981
1052
|
* Selects properties from a record whose values match the given predicate.
|
|
982
1053
|
*
|
|
983
|
-
*
|
|
1054
|
+
* **Example** (Filtering record values)
|
|
1055
|
+
*
|
|
984
1056
|
* ```ts
|
|
985
1057
|
* import { Record } from "effect"
|
|
986
1058
|
* import * as assert from "node:assert"
|
|
@@ -997,7 +1069,8 @@ export declare const filter: {
|
|
|
997
1069
|
/**
|
|
998
1070
|
* Given a record with `Option` values, returns a new record containing only the `Some` values, preserving the original keys.
|
|
999
1071
|
*
|
|
1000
|
-
*
|
|
1072
|
+
* **Example** (Extracting Some values)
|
|
1073
|
+
*
|
|
1001
1074
|
* ```ts
|
|
1002
1075
|
* import { Option, Record } from "effect"
|
|
1003
1076
|
* import * as assert from "node:assert"
|
|
@@ -1015,7 +1088,8 @@ export declare const getSomes: <K extends string, A>(self: ReadonlyRecord<K, Opt
|
|
|
1015
1088
|
/**
|
|
1016
1089
|
* Given a record with `Result` values, returns a new record containing only the `Err` values, preserving the original keys.
|
|
1017
1090
|
*
|
|
1018
|
-
*
|
|
1091
|
+
* **Example** (Extracting Result failures)
|
|
1092
|
+
*
|
|
1019
1093
|
* ```ts
|
|
1020
1094
|
* import { Record, Result } from "effect"
|
|
1021
1095
|
* import * as assert from "node:assert"
|
|
@@ -1037,7 +1111,8 @@ export declare const getFailures: <K extends string, A, E>(self: ReadonlyRecord<
|
|
|
1037
1111
|
/**
|
|
1038
1112
|
* Given a record with `Result` values, returns a new record containing only the `Ok` values, preserving the original keys.
|
|
1039
1113
|
*
|
|
1040
|
-
*
|
|
1114
|
+
* **Example** (Extracting Result successes)
|
|
1115
|
+
*
|
|
1041
1116
|
* ```ts
|
|
1042
1117
|
* import { Record, Result } from "effect"
|
|
1043
1118
|
* import * as assert from "node:assert"
|
|
@@ -1057,9 +1132,14 @@ export declare const getFailures: <K extends string, A, E>(self: ReadonlyRecord<
|
|
|
1057
1132
|
*/
|
|
1058
1133
|
export declare const getSuccesses: <K extends string, A, E>(self: ReadonlyRecord<K, Result<A, E>>) => Record<string, A>;
|
|
1059
1134
|
/**
|
|
1060
|
-
*
|
|
1135
|
+
* Applies a function to each record entry and partitions the returned `Result`
|
|
1136
|
+
* values into two records.
|
|
1137
|
+
*
|
|
1138
|
+
* Failure values are collected in the left record, and success values are
|
|
1139
|
+
* collected in the right record, preserving the original keys.
|
|
1140
|
+
*
|
|
1141
|
+
* **Example** (Partitioning with Result)
|
|
1061
1142
|
*
|
|
1062
|
-
* @example
|
|
1063
1143
|
* ```ts
|
|
1064
1144
|
* import { Record, Result } from "effect"
|
|
1065
1145
|
* import * as assert from "node:assert"
|
|
@@ -1074,9 +1154,14 @@ export declare const getSuccesses: <K extends string, A, E>(self: ReadonlyRecord
|
|
|
1074
1154
|
*/
|
|
1075
1155
|
export declare const partition: {
|
|
1076
1156
|
/**
|
|
1077
|
-
*
|
|
1157
|
+
* Applies a function to each record entry and partitions the returned `Result`
|
|
1158
|
+
* values into two records.
|
|
1159
|
+
*
|
|
1160
|
+
* Failure values are collected in the left record, and success values are
|
|
1161
|
+
* collected in the right record, preserving the original keys.
|
|
1162
|
+
*
|
|
1163
|
+
* **Example** (Partitioning with Result)
|
|
1078
1164
|
*
|
|
1079
|
-
* @example
|
|
1080
1165
|
* ```ts
|
|
1081
1166
|
* import { Record, Result } from "effect"
|
|
1082
1167
|
* import * as assert from "node:assert"
|
|
@@ -1091,9 +1176,14 @@ export declare const partition: {
|
|
|
1091
1176
|
*/
|
|
1092
1177
|
<K extends string, A, B, C>(f: (input: A, key: K) => Result<C, B>): (self: ReadonlyRecord<K, A>) => [left: Record<ReadonlyRecord.NonLiteralKey<K>, B>, right: Record<ReadonlyRecord.NonLiteralKey<K>, C>];
|
|
1093
1178
|
/**
|
|
1094
|
-
*
|
|
1179
|
+
* Applies a function to each record entry and partitions the returned `Result`
|
|
1180
|
+
* values into two records.
|
|
1181
|
+
*
|
|
1182
|
+
* Failure values are collected in the left record, and success values are
|
|
1183
|
+
* collected in the right record, preserving the original keys.
|
|
1184
|
+
*
|
|
1185
|
+
* **Example** (Partitioning with Result)
|
|
1095
1186
|
*
|
|
1096
|
-
* @example
|
|
1097
1187
|
* ```ts
|
|
1098
1188
|
* import { Record, Result } from "effect"
|
|
1099
1189
|
* import * as assert from "node:assert"
|
|
@@ -1112,7 +1202,8 @@ export declare const partition: {
|
|
|
1112
1202
|
* Partitions a record of `Result` values into two separate records,
|
|
1113
1203
|
* one with the `Err` values and one with the `Ok` values.
|
|
1114
1204
|
*
|
|
1115
|
-
*
|
|
1205
|
+
* **Example** (Separating Result values)
|
|
1206
|
+
*
|
|
1116
1207
|
* ```ts
|
|
1117
1208
|
* import { Record, Result } from "effect"
|
|
1118
1209
|
* import * as assert from "node:assert"
|
|
@@ -1130,7 +1221,8 @@ export declare const separate: <K extends string, A, B>(self: ReadonlyRecord<K,
|
|
|
1130
1221
|
/**
|
|
1131
1222
|
* Retrieve the keys of a given record as an array.
|
|
1132
1223
|
*
|
|
1133
|
-
*
|
|
1224
|
+
* **Example** (Getting record keys)
|
|
1225
|
+
*
|
|
1134
1226
|
* ```ts
|
|
1135
1227
|
* import { Record } from "effect"
|
|
1136
1228
|
* import * as assert from "node:assert"
|
|
@@ -1145,7 +1237,8 @@ export declare const keys: <K extends string | symbol, A>(self: ReadonlyRecord<K
|
|
|
1145
1237
|
/**
|
|
1146
1238
|
* Retrieve the values of a given record as an array.
|
|
1147
1239
|
*
|
|
1148
|
-
*
|
|
1240
|
+
* **Example** (Getting record values)
|
|
1241
|
+
*
|
|
1149
1242
|
* ```ts
|
|
1150
1243
|
* import { Record } from "effect"
|
|
1151
1244
|
* import * as assert from "node:assert"
|
|
@@ -1160,7 +1253,8 @@ export declare const values: <K extends string, A>(self: ReadonlyRecord<K, A>) =
|
|
|
1160
1253
|
/**
|
|
1161
1254
|
* Add a new key-value pair or update an existing key's value in a record.
|
|
1162
1255
|
*
|
|
1163
|
-
*
|
|
1256
|
+
* **Example** (Setting a record value)
|
|
1257
|
+
*
|
|
1164
1258
|
* ```ts
|
|
1165
1259
|
* import { Record } from "effect"
|
|
1166
1260
|
* import * as assert from "node:assert"
|
|
@@ -1176,7 +1270,8 @@ export declare const set: {
|
|
|
1176
1270
|
/**
|
|
1177
1271
|
* Add a new key-value pair or update an existing key's value in a record.
|
|
1178
1272
|
*
|
|
1179
|
-
*
|
|
1273
|
+
* **Example** (Setting a record value)
|
|
1274
|
+
*
|
|
1180
1275
|
* ```ts
|
|
1181
1276
|
* import { Record } from "effect"
|
|
1182
1277
|
* import * as assert from "node:assert"
|
|
@@ -1192,7 +1287,8 @@ export declare const set: {
|
|
|
1192
1287
|
/**
|
|
1193
1288
|
* Add a new key-value pair or update an existing key's value in a record.
|
|
1194
1289
|
*
|
|
1195
|
-
*
|
|
1290
|
+
* **Example** (Setting a record value)
|
|
1291
|
+
*
|
|
1196
1292
|
* ```ts
|
|
1197
1293
|
* import { Record } from "effect"
|
|
1198
1294
|
* import * as assert from "node:assert"
|
|
@@ -1210,21 +1306,30 @@ export declare const set: {
|
|
|
1210
1306
|
* Check if all the keys and values in one record are also found in another record.
|
|
1211
1307
|
* Uses the provided equivalence function to compare values.
|
|
1212
1308
|
*
|
|
1213
|
-
*
|
|
1214
|
-
* ```ts
|
|
1215
|
-
* import { Equal, Record } from "effect"
|
|
1216
|
-
* import * as assert from "node:assert"
|
|
1309
|
+
* **Example** (Checking subrecords with a custom equivalence)
|
|
1217
1310
|
*
|
|
1218
|
-
*
|
|
1311
|
+
* ```ts
|
|
1312
|
+
* import { Equivalence, Record } from "effect"
|
|
1219
1313
|
*
|
|
1220
|
-
*
|
|
1221
|
-
*
|
|
1222
|
-
* true
|
|
1223
|
-
* )
|
|
1224
|
-
* assert.deepStrictEqual(
|
|
1225
|
-
* Record.isSubrecord({ a: 1, b: 2 }, { a: 1 } as Record<string, number>),
|
|
1226
|
-
* false
|
|
1314
|
+
* const isSubrecord = Record.isSubrecordBy(
|
|
1315
|
+
* Equivalence.make<string>((self, that) => self.toLowerCase() === that.toLowerCase())
|
|
1227
1316
|
* )
|
|
1317
|
+
*
|
|
1318
|
+
* const required: Record.ReadonlyRecord<string, string> = { role: "Admin" }
|
|
1319
|
+
* const available: Record.ReadonlyRecord<string, string> = {
|
|
1320
|
+
* role: "admin",
|
|
1321
|
+
* status: "active"
|
|
1322
|
+
* }
|
|
1323
|
+
*
|
|
1324
|
+
* console.log(
|
|
1325
|
+
* isSubrecord(required, available)
|
|
1326
|
+
* ) // true
|
|
1327
|
+
* console.log(
|
|
1328
|
+
* isSubrecord({ role: "Admin", status: "inactive" }, available)
|
|
1329
|
+
* ) // false
|
|
1330
|
+
* console.log(
|
|
1331
|
+
* isSubrecord(required, { role: "editor", status: "active" })
|
|
1332
|
+
* ) // false
|
|
1228
1333
|
* ```
|
|
1229
1334
|
*
|
|
1230
1335
|
* @category predicates
|
|
@@ -1235,10 +1340,13 @@ export declare const isSubrecordBy: <A>(equivalence: Equivalence<A>) => {
|
|
|
1235
1340
|
<K extends string>(self: ReadonlyRecord<K, A>, that: ReadonlyRecord<K, A>): boolean;
|
|
1236
1341
|
};
|
|
1237
1342
|
/**
|
|
1238
|
-
*
|
|
1239
|
-
*
|
|
1343
|
+
* Checks whether the first record is a subrecord of the second record.
|
|
1344
|
+
*
|
|
1345
|
+
* Returns `true` when every key and value in `self` is also present in `that`.
|
|
1346
|
+
* Values are compared with Effect equality via `Equal.asEquivalence()`.
|
|
1347
|
+
*
|
|
1348
|
+
* **Example** (Checking subrecords)
|
|
1240
1349
|
*
|
|
1241
|
-
* @example
|
|
1242
1350
|
* ```ts
|
|
1243
1351
|
* import { Record } from "effect"
|
|
1244
1352
|
* import * as assert from "node:assert"
|
|
@@ -1258,10 +1366,13 @@ export declare const isSubrecordBy: <A>(equivalence: Equivalence<A>) => {
|
|
|
1258
1366
|
*/
|
|
1259
1367
|
export declare const isSubrecord: {
|
|
1260
1368
|
/**
|
|
1261
|
-
*
|
|
1262
|
-
*
|
|
1369
|
+
* Checks whether the first record is a subrecord of the second record.
|
|
1370
|
+
*
|
|
1371
|
+
* Returns `true` when every key and value in `self` is also present in `that`.
|
|
1372
|
+
* Values are compared with Effect equality via `Equal.asEquivalence()`.
|
|
1373
|
+
*
|
|
1374
|
+
* **Example** (Checking subrecords)
|
|
1263
1375
|
*
|
|
1264
|
-
* @example
|
|
1265
1376
|
* ```ts
|
|
1266
1377
|
* import { Record } from "effect"
|
|
1267
1378
|
* import * as assert from "node:assert"
|
|
@@ -1281,10 +1392,13 @@ export declare const isSubrecord: {
|
|
|
1281
1392
|
*/
|
|
1282
1393
|
<K extends string, A>(that: ReadonlyRecord<K, A>): (self: ReadonlyRecord<K, A>) => boolean;
|
|
1283
1394
|
/**
|
|
1284
|
-
*
|
|
1285
|
-
*
|
|
1395
|
+
* Checks whether the first record is a subrecord of the second record.
|
|
1396
|
+
*
|
|
1397
|
+
* Returns `true` when every key and value in `self` is also present in `that`.
|
|
1398
|
+
* Values are compared with Effect equality via `Equal.asEquivalence()`.
|
|
1399
|
+
*
|
|
1400
|
+
* **Example** (Checking subrecords)
|
|
1286
1401
|
*
|
|
1287
|
-
* @example
|
|
1288
1402
|
* ```ts
|
|
1289
1403
|
* import { Record } from "effect"
|
|
1290
1404
|
* import * as assert from "node:assert"
|
|
@@ -1307,7 +1421,8 @@ export declare const isSubrecord: {
|
|
|
1307
1421
|
/**
|
|
1308
1422
|
* Reduce a record to a single value by combining its entries with a specified function.
|
|
1309
1423
|
*
|
|
1310
|
-
*
|
|
1424
|
+
* **Example** (Reducing record values)
|
|
1425
|
+
*
|
|
1311
1426
|
* ```ts
|
|
1312
1427
|
* import { Record } from "effect"
|
|
1313
1428
|
* import * as assert from "node:assert"
|
|
@@ -1325,7 +1440,8 @@ export declare const reduce: {
|
|
|
1325
1440
|
/**
|
|
1326
1441
|
* Reduce a record to a single value by combining its entries with a specified function.
|
|
1327
1442
|
*
|
|
1328
|
-
*
|
|
1443
|
+
* **Example** (Reducing record values)
|
|
1444
|
+
*
|
|
1329
1445
|
* ```ts
|
|
1330
1446
|
* import { Record } from "effect"
|
|
1331
1447
|
* import * as assert from "node:assert"
|
|
@@ -1343,7 +1459,8 @@ export declare const reduce: {
|
|
|
1343
1459
|
/**
|
|
1344
1460
|
* Reduce a record to a single value by combining its entries with a specified function.
|
|
1345
1461
|
*
|
|
1346
|
-
*
|
|
1462
|
+
* **Example** (Reducing record values)
|
|
1463
|
+
*
|
|
1347
1464
|
* ```ts
|
|
1348
1465
|
* import { Record } from "effect"
|
|
1349
1466
|
* import * as assert from "node:assert"
|
|
@@ -1362,7 +1479,8 @@ export declare const reduce: {
|
|
|
1362
1479
|
/**
|
|
1363
1480
|
* Check if all entries in a record meet a specific condition.
|
|
1364
1481
|
*
|
|
1365
|
-
*
|
|
1482
|
+
* **Example** (Checking every record value)
|
|
1483
|
+
*
|
|
1366
1484
|
* ```ts
|
|
1367
1485
|
* import { Record } from "effect"
|
|
1368
1486
|
* import * as assert from "node:assert"
|
|
@@ -1378,7 +1496,8 @@ export declare const every: {
|
|
|
1378
1496
|
/**
|
|
1379
1497
|
* Check if all entries in a record meet a specific condition.
|
|
1380
1498
|
*
|
|
1381
|
-
*
|
|
1499
|
+
* **Example** (Checking every record value)
|
|
1500
|
+
*
|
|
1382
1501
|
* ```ts
|
|
1383
1502
|
* import { Record } from "effect"
|
|
1384
1503
|
* import * as assert from "node:assert"
|
|
@@ -1394,7 +1513,8 @@ export declare const every: {
|
|
|
1394
1513
|
/**
|
|
1395
1514
|
* Check if all entries in a record meet a specific condition.
|
|
1396
1515
|
*
|
|
1397
|
-
*
|
|
1516
|
+
* **Example** (Checking every record value)
|
|
1517
|
+
*
|
|
1398
1518
|
* ```ts
|
|
1399
1519
|
* import { Record } from "effect"
|
|
1400
1520
|
* import * as assert from "node:assert"
|
|
@@ -1410,7 +1530,8 @@ export declare const every: {
|
|
|
1410
1530
|
/**
|
|
1411
1531
|
* Check if all entries in a record meet a specific condition.
|
|
1412
1532
|
*
|
|
1413
|
-
*
|
|
1533
|
+
* **Example** (Checking every record value)
|
|
1534
|
+
*
|
|
1414
1535
|
* ```ts
|
|
1415
1536
|
* import { Record } from "effect"
|
|
1416
1537
|
* import * as assert from "node:assert"
|
|
@@ -1426,7 +1547,8 @@ export declare const every: {
|
|
|
1426
1547
|
/**
|
|
1427
1548
|
* Check if all entries in a record meet a specific condition.
|
|
1428
1549
|
*
|
|
1429
|
-
*
|
|
1550
|
+
* **Example** (Checking every record value)
|
|
1551
|
+
*
|
|
1430
1552
|
* ```ts
|
|
1431
1553
|
* import { Record } from "effect"
|
|
1432
1554
|
* import * as assert from "node:assert"
|
|
@@ -1443,7 +1565,8 @@ export declare const every: {
|
|
|
1443
1565
|
/**
|
|
1444
1566
|
* Check if any entry in a record meets a specific condition.
|
|
1445
1567
|
*
|
|
1446
|
-
*
|
|
1568
|
+
* **Example** (Checking for any matching value)
|
|
1569
|
+
*
|
|
1447
1570
|
* ```ts
|
|
1448
1571
|
* import { Record } from "effect"
|
|
1449
1572
|
* import * as assert from "node:assert"
|
|
@@ -1459,7 +1582,8 @@ export declare const some: {
|
|
|
1459
1582
|
/**
|
|
1460
1583
|
* Check if any entry in a record meets a specific condition.
|
|
1461
1584
|
*
|
|
1462
|
-
*
|
|
1585
|
+
* **Example** (Checking for any matching value)
|
|
1586
|
+
*
|
|
1463
1587
|
* ```ts
|
|
1464
1588
|
* import { Record } from "effect"
|
|
1465
1589
|
* import * as assert from "node:assert"
|
|
@@ -1475,7 +1599,8 @@ export declare const some: {
|
|
|
1475
1599
|
/**
|
|
1476
1600
|
* Check if any entry in a record meets a specific condition.
|
|
1477
1601
|
*
|
|
1478
|
-
*
|
|
1602
|
+
* **Example** (Checking for any matching value)
|
|
1603
|
+
*
|
|
1479
1604
|
* ```ts
|
|
1480
1605
|
* import { Record } from "effect"
|
|
1481
1606
|
* import * as assert from "node:assert"
|
|
@@ -1493,7 +1618,8 @@ export declare const some: {
|
|
|
1493
1618
|
* Merge two records, preserving entries that exist in either of the records.
|
|
1494
1619
|
* For keys that exist in both records, the provided combine function is used to merge the values.
|
|
1495
1620
|
*
|
|
1496
|
-
*
|
|
1621
|
+
* **Example** (Merging records with union)
|
|
1622
|
+
*
|
|
1497
1623
|
* ```ts
|
|
1498
1624
|
* import { Record } from "effect"
|
|
1499
1625
|
* import * as assert from "node:assert"
|
|
@@ -1512,7 +1638,8 @@ export declare const union: {
|
|
|
1512
1638
|
* Merge two records, preserving entries that exist in either of the records.
|
|
1513
1639
|
* For keys that exist in both records, the provided combine function is used to merge the values.
|
|
1514
1640
|
*
|
|
1515
|
-
*
|
|
1641
|
+
* **Example** (Merging records with union)
|
|
1642
|
+
*
|
|
1516
1643
|
* ```ts
|
|
1517
1644
|
* import { Record } from "effect"
|
|
1518
1645
|
* import * as assert from "node:assert"
|
|
@@ -1531,7 +1658,8 @@ export declare const union: {
|
|
|
1531
1658
|
* Merge two records, preserving entries that exist in either of the records.
|
|
1532
1659
|
* For keys that exist in both records, the provided combine function is used to merge the values.
|
|
1533
1660
|
*
|
|
1534
|
-
*
|
|
1661
|
+
* **Example** (Merging records with union)
|
|
1662
|
+
*
|
|
1535
1663
|
* ```ts
|
|
1536
1664
|
* import { Record } from "effect"
|
|
1537
1665
|
* import * as assert from "node:assert"
|
|
@@ -1551,7 +1679,8 @@ export declare const union: {
|
|
|
1551
1679
|
* Merge two records, retaining only the entries that exist in both records.
|
|
1552
1680
|
* For intersecting keys, the provided combine function is used to merge the values.
|
|
1553
1681
|
*
|
|
1554
|
-
*
|
|
1682
|
+
* **Example** (Merging intersecting keys)
|
|
1683
|
+
*
|
|
1555
1684
|
* ```ts
|
|
1556
1685
|
* import { Record } from "effect"
|
|
1557
1686
|
* import * as assert from "node:assert"
|
|
@@ -1570,7 +1699,8 @@ export declare const intersection: {
|
|
|
1570
1699
|
* Merge two records, retaining only the entries that exist in both records.
|
|
1571
1700
|
* For intersecting keys, the provided combine function is used to merge the values.
|
|
1572
1701
|
*
|
|
1573
|
-
*
|
|
1702
|
+
* **Example** (Merging intersecting keys)
|
|
1703
|
+
*
|
|
1574
1704
|
* ```ts
|
|
1575
1705
|
* import { Record } from "effect"
|
|
1576
1706
|
* import * as assert from "node:assert"
|
|
@@ -1589,7 +1719,8 @@ export declare const intersection: {
|
|
|
1589
1719
|
* Merge two records, retaining only the entries that exist in both records.
|
|
1590
1720
|
* For intersecting keys, the provided combine function is used to merge the values.
|
|
1591
1721
|
*
|
|
1592
|
-
*
|
|
1722
|
+
* **Example** (Merging intersecting keys)
|
|
1723
|
+
*
|
|
1593
1724
|
* ```ts
|
|
1594
1725
|
* import { Record } from "effect"
|
|
1595
1726
|
* import * as assert from "node:assert"
|
|
@@ -1609,7 +1740,8 @@ export declare const intersection: {
|
|
|
1609
1740
|
* Merge two records, preserving only the entries that are unique to each record.
|
|
1610
1741
|
* Keys that exist in both records are excluded from the result.
|
|
1611
1742
|
*
|
|
1612
|
-
*
|
|
1743
|
+
* **Example** (Keeping keys unique to each record)
|
|
1744
|
+
*
|
|
1613
1745
|
* ```ts
|
|
1614
1746
|
* import { Record } from "effect"
|
|
1615
1747
|
* import * as assert from "node:assert"
|
|
@@ -1628,7 +1760,8 @@ export declare const difference: {
|
|
|
1628
1760
|
* Merge two records, preserving only the entries that are unique to each record.
|
|
1629
1761
|
* Keys that exist in both records are excluded from the result.
|
|
1630
1762
|
*
|
|
1631
|
-
*
|
|
1763
|
+
* **Example** (Keeping keys unique to each record)
|
|
1764
|
+
*
|
|
1632
1765
|
* ```ts
|
|
1633
1766
|
* import { Record } from "effect"
|
|
1634
1767
|
* import * as assert from "node:assert"
|
|
@@ -1647,7 +1780,8 @@ export declare const difference: {
|
|
|
1647
1780
|
* Merge two records, preserving only the entries that are unique to each record.
|
|
1648
1781
|
* Keys that exist in both records are excluded from the result.
|
|
1649
1782
|
*
|
|
1650
|
-
*
|
|
1783
|
+
* **Example** (Keeping keys unique to each record)
|
|
1784
|
+
*
|
|
1651
1785
|
* ```ts
|
|
1652
1786
|
* import { Record } from "effect"
|
|
1653
1787
|
* import * as assert from "node:assert"
|
|
@@ -1667,7 +1801,8 @@ export declare const difference: {
|
|
|
1667
1801
|
* Create an `Equivalence` for records using the provided `Equivalence` for values.
|
|
1668
1802
|
* Two records are considered equivalent if they have the same keys and their corresponding values are equivalent.
|
|
1669
1803
|
*
|
|
1670
|
-
*
|
|
1804
|
+
* **Example** (Comparing records with a value equivalence)
|
|
1805
|
+
*
|
|
1671
1806
|
* ```ts
|
|
1672
1807
|
* import { Equal, Record } from "effect"
|
|
1673
1808
|
* import * as assert from "node:assert"
|
|
@@ -1685,7 +1820,8 @@ export declare const makeEquivalence: <K extends string, A>(equivalence: Equival
|
|
|
1685
1820
|
/**
|
|
1686
1821
|
* Create a non-empty record from a single element.
|
|
1687
1822
|
*
|
|
1688
|
-
*
|
|
1823
|
+
* **Example** (Creating a singleton record)
|
|
1824
|
+
*
|
|
1689
1825
|
* ```ts
|
|
1690
1826
|
* import { Record } from "effect"
|
|
1691
1827
|
* import * as assert from "node:assert"
|
|
@@ -1706,9 +1842,12 @@ export declare const singleton: <K extends string | symbol, A>(key: K, value: A)
|
|
|
1706
1842
|
*/
|
|
1707
1843
|
export declare function makeReducerUnion<K extends string, A>(combiner: Combiner.Combiner<A>): Reducer.Reducer<Record<K, A>>;
|
|
1708
1844
|
/**
|
|
1709
|
-
*
|
|
1845
|
+
* Creates a `Reducer` whose `combine` operation intersects two records and
|
|
1846
|
+
* combines values for keys present in both records.
|
|
1710
1847
|
*
|
|
1711
|
-
*
|
|
1848
|
+
* The reducer's `initialValue` is an empty record. Because intersection with
|
|
1849
|
+
* an empty record is empty, the default `combineAll` folds from `{}` and
|
|
1850
|
+
* therefore produces `{}` for ordinary non-empty inputs.
|
|
1712
1851
|
*
|
|
1713
1852
|
* @since 4.0.0
|
|
1714
1853
|
*/
|
|
@@ -1717,7 +1856,8 @@ export declare function makeReducerIntersection<K extends string, A>(combiner: C
|
|
|
1717
1856
|
* Returns the first entry that satisfies the specified
|
|
1718
1857
|
* predicate, or `None` if no such entry exists.
|
|
1719
1858
|
*
|
|
1720
|
-
*
|
|
1859
|
+
* **Example** (Finding the first matching entry)
|
|
1860
|
+
*
|
|
1721
1861
|
* ```ts
|
|
1722
1862
|
* import { Record } from "effect"
|
|
1723
1863
|
*
|
|
@@ -1737,7 +1877,8 @@ export declare const findFirst: {
|
|
|
1737
1877
|
* Returns the first entry that satisfies the specified
|
|
1738
1878
|
* predicate, or `None` if no such entry exists.
|
|
1739
1879
|
*
|
|
1740
|
-
*
|
|
1880
|
+
* **Example** (Finding the first matching entry)
|
|
1881
|
+
*
|
|
1741
1882
|
* ```ts
|
|
1742
1883
|
* import { Record } from "effect"
|
|
1743
1884
|
*
|
|
@@ -1757,7 +1898,8 @@ export declare const findFirst: {
|
|
|
1757
1898
|
* Returns the first entry that satisfies the specified
|
|
1758
1899
|
* predicate, or `None` if no such entry exists.
|
|
1759
1900
|
*
|
|
1760
|
-
*
|
|
1901
|
+
* **Example** (Finding the first matching entry)
|
|
1902
|
+
*
|
|
1761
1903
|
* ```ts
|
|
1762
1904
|
* import { Record } from "effect"
|
|
1763
1905
|
*
|
|
@@ -1777,7 +1919,8 @@ export declare const findFirst: {
|
|
|
1777
1919
|
* Returns the first entry that satisfies the specified
|
|
1778
1920
|
* predicate, or `None` if no such entry exists.
|
|
1779
1921
|
*
|
|
1780
|
-
*
|
|
1922
|
+
* **Example** (Finding the first matching entry)
|
|
1923
|
+
*
|
|
1781
1924
|
* ```ts
|
|
1782
1925
|
* import { Record } from "effect"
|
|
1783
1926
|
*
|
|
@@ -1797,7 +1940,8 @@ export declare const findFirst: {
|
|
|
1797
1940
|
* Returns the first entry that satisfies the specified
|
|
1798
1941
|
* predicate, or `None` if no such entry exists.
|
|
1799
1942
|
*
|
|
1800
|
-
*
|
|
1943
|
+
* **Example** (Finding the first matching entry)
|
|
1944
|
+
*
|
|
1801
1945
|
* ```ts
|
|
1802
1946
|
* import { Record } from "effect"
|
|
1803
1947
|
*
|