effect 4.0.0-beta.66 → 4.0.0-beta.68
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 +151 -106
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +50 -40
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +620 -553
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +298 -254
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +342 -274
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +168 -126
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +189 -156
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +85 -68
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +30 -5
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +19 -2
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +239 -135
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +135 -59
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +84 -73
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +51 -44
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +1568 -632
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +685 -315
- 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 +574 -428
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +250 -191
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +16 -9
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +9 -5
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +11 -5
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +10 -4
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +80 -68
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +53 -49
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +33 -32
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +19 -18
- package/dist/ConfigProvider.js.map +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 +400 -189
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +143 -77
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +67 -48
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +94 -36
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +208 -0
- package/dist/Crypto.d.ts.map +1 -0
- package/dist/Crypto.js +157 -0
- package/dist/Crypto.js.map +1 -0
- package/dist/Data.d.ts +9 -3
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +893 -464
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +387 -228
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +367 -175
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +146 -72
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +44 -2
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Differ.js +36 -0
- package/dist/Duration.d.ts +333 -186
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +178 -107
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +2181 -2275
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +935 -850
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +38 -3
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -3
- 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/Equal.d.ts +4 -3
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +4 -3
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +18 -24
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +16 -21
- 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 +106 -12
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +23 -6
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +6 -5
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +71 -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 +118 -57
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +121 -39
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +287 -159
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +175 -73
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +93 -52
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +97 -34
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +102 -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/Formatter.d.ts +4 -2
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +3 -69
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +218 -151
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +94 -78
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +714 -415
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +325 -182
- 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 +35 -24
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +27 -17
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +540 -388
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +262 -156
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +53 -34
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +83 -16
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +239 -153
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +110 -56
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +26 -13
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +22 -10
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +336 -222
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +146 -100
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +12 -9
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +9 -6
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +13 -11
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +13 -11
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +16 -0
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +10 -0
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +97 -26
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +39 -20
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +472 -410
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +290 -226
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +99 -26
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +58 -14
- 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 +159 -104
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +215 -189
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +78 -19
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +24 -17
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +135 -161
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +86 -78
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +330 -291
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +219 -214
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +146 -87
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +67 -43
- 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 +92 -38
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +110 -68
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +135 -85
- 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 +78 -60
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +15 -2
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +8 -2
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +38 -48
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +34 -25
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +261 -205
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +119 -91
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +6 -7
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +5 -6
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +133 -156
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +64 -64
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +6 -6
- package/dist/Order.js +6 -6
- package/dist/Ordering.d.ts +56 -45
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +10 -8
- 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 +49 -4
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +77 -18
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +63 -14
- 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 -23
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +12 -17
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +11 -3
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +9 -2
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +385 -309
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +260 -207
- 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 +303 -184
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +231 -134
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +65 -57
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +41 -66
- 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 +68 -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 +282 -137
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +124 -62
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +7 -5
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +5 -3
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +63 -34
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +31 -15
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +3 -1
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +2 -0
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +85 -66
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +57 -45
- 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 +12 -6
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +12 -6
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +159 -34
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +68 -12
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +262 -118
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +78 -42
- 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 +135 -151
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +56 -68
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +40 -20
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +34 -17
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +556 -590
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +265 -253
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +44 -7
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +34 -5
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +1293 -602
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +501 -361
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +122 -92
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +102 -77
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +49 -36
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +42 -29
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +19 -24
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +16 -14
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +231 -63
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +266 -75
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +89 -77
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +47 -37
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +97 -46
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +89 -38
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +8 -1
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +24 -1
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +107 -65
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +61 -32
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +141 -49
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +82 -21
- 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 +61 -37
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +18 -21
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +461 -206
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +241 -90
- 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 +2117 -1541
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +951 -682
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +174 -97
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +128 -69
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +20 -18
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +10 -8
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +309 -204
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +126 -77
- 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 +233 -59
- 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 +280 -245
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +116 -102
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +34 -32
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +16 -14
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +200 -155
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +83 -61
- 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 -223
- 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 +181 -111
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +87 -49
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +94 -63
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +55 -37
- 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 +277 -242
- 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 -115
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +76 -77
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +74 -50
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +34 -23
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +31 -34
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +62 -25
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +36 -25
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +72 -117
- 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 +5 -2
- 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 +1973 -418
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1973 -418
- 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 +9 -6
- package/dist/testing/FastCheck.d.ts.map +1 -1
- package/dist/testing/FastCheck.js +9 -6
- package/dist/testing/FastCheck.js.map +1 -1
- package/dist/testing/TestClock.d.ts +39 -35
- 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 +44 -36
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +30 -15
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +2 -0
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +9 -7
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.d.ts +34 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +34 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +205 -147
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +164 -109
- 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 +64 -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 +342 -119
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +266 -98
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +56 -20
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +64 -16
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +10 -12
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +9 -7
- 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 +200 -176
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +77 -68
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +173 -160
- 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 +43 -33
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +15 -11
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +14 -9
- 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 +167 -96
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +107 -53
- 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 +121 -29
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +121 -29
- 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 +48 -19
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +32 -9
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +196 -115
- 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 +39 -14
- 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 +110 -32
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +196 -135
- 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 +183 -59
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +105 -23
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/index.d.ts +182 -0
- package/dist/unstable/cli/index.d.ts.map +1 -1
- package/dist/unstable/cli/index.js +205 -6
- package/dist/unstable/cli/index.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/cli/internal/parser.js +0 -1
- package/dist/unstable/cli/internal/parser.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 +74 -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 +42 -14
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +30 -14
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +18 -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 +126 -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 +76 -13
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +73 -12
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +53 -5
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +49 -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 +90 -19
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +49 -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/index.d.ts +790 -0
- package/dist/unstable/cluster/index.d.ts.map +1 -1
- package/dist/unstable/cluster/index.js +790 -0
- package/dist/unstable/cluster/index.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/devtools/index.d.ts +58 -0
- package/dist/unstable/devtools/index.d.ts.map +1 -1
- package/dist/unstable/devtools/index.js +58 -0
- package/dist/unstable/devtools/index.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/encoding/index.d.ts +49 -0
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +49 -0
- package/dist/unstable/encoding/index.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 +150 -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/eventlog/index.d.ts +240 -0
- package/dist/unstable/eventlog/index.d.ts.map +1 -1
- package/dist/unstable/eventlog/index.js +240 -0
- package/dist/unstable/eventlog/index.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 +204 -96
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +85 -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 +48 -7
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +45 -6
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +38 -6
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +27 -2
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +38 -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 +209 -62
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +136 -41
- 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 +93 -10
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +85 -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 +391 -67
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +205 -33
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +24 -8
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +24 -8
- 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 +179 -28
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +131 -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 -1
- 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 +70 -56
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +35 -21
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +237 -51
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +120 -25
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +452 -0
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +452 -0
- package/dist/unstable/http/index.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 +54 -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 +57 -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 +113 -22
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +49 -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 +86 -38
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +59 -35
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +73 -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 +4 -3
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +23 -3
- 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/httpapi/index.d.ts +310 -25
- package/dist/unstable/httpapi/index.d.ts.map +1 -1
- package/dist/unstable/httpapi/index.js +310 -25
- package/dist/unstable/httpapi/index.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 +15 -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 +17 -5
- 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 +19 -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 +36 -16
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +9 -7
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/observability/index.d.ts +160 -3
- package/dist/unstable/observability/index.d.ts.map +1 -1
- package/dist/unstable/observability/index.js +160 -3
- 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 +98 -16
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +91 -14
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +101 -21
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +85 -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/persistence/index.d.ts +147 -0
- package/dist/unstable/persistence/index.d.ts.map +1 -1
- package/dist/unstable/persistence/index.js +147 -0
- package/dist/unstable/persistence/index.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 +25 -18
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +23 -12
- 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 +198 -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 +544 -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 +94 -13
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +60 -7
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/reactivity/index.d.ts +167 -0
- package/dist/unstable/reactivity/index.d.ts.map +1 -1
- package/dist/unstable/reactivity/index.js +167 -0
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +254 -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 +80 -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 +39 -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 +10 -0
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.js +10 -0
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/rpc/index.d.ts +272 -0
- package/dist/unstable/rpc/index.d.ts.map +1 -1
- package/dist/unstable/rpc/index.js +272 -0
- package/dist/unstable/rpc/index.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +192 -59
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +122 -38
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +101 -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/schema/index.d.ts +37 -0
- package/dist/unstable/schema/index.d.ts.map +1 -1
- package/dist/unstable/schema/index.js +37 -0
- package/dist/unstable/schema/index.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +168 -34
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +124 -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/socket/index.d.ts +44 -0
- package/dist/unstable/socket/index.d.ts.map +1 -1
- package/dist/unstable/socket/index.js +44 -0
- package/dist/unstable/socket/index.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts +40 -9
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +45 -5
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +38 -2
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +40 -1
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +34 -3
- 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 +117 -0
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +131 -0
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +25 -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 +4 -0
- package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
- package/dist/unstable/sql/SqlStream.js +24 -0
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +151 -24
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +91 -6
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.d.ts +179 -1
- package/dist/unstable/sql/index.d.ts.map +1 -1
- package/dist/unstable/sql/index.js +179 -1
- package/dist/unstable/sql/index.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +72 -20
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +57 -14
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +61 -8
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +44 -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 +81 -1
- package/dist/unstable/workers/index.d.ts.map +1 -1
- package/dist/unstable/workers/index.js +81 -1
- package/dist/unstable/workers/index.js.map +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 +128 -31
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +77 -13
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +33 -8
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +26 -6
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +102 -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 +40 -12
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js +8 -12
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts +37 -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/dist/unstable/workflow/index.d.ts +160 -0
- package/dist/unstable/workflow/index.d.ts.map +1 -1
- package/dist/unstable/workflow/index.js +160 -0
- package/dist/unstable/workflow/index.js.map +1 -1
- package/package.json +11 -11
- package/src/Array.ts +151 -106
- package/src/BigDecimal.ts +620 -553
- package/src/BigInt.ts +342 -274
- package/src/Boolean.ts +189 -156
- package/src/Brand.ts +30 -5
- package/src/Cache.ts +334 -167
- package/src/Cause.ts +84 -73
- package/src/Channel.ts +1639 -667
- package/src/ChannelSchema.ts +137 -12
- package/src/Chunk.ts +575 -429
- package/src/Clock.ts +16 -9
- package/src/Combiner.ts +11 -5
- package/src/Config.ts +80 -68
- package/src/ConfigProvider.ts +33 -32
- package/src/Console.ts +88 -58
- package/src/Context.ts +401 -190
- package/src/Cron.ts +109 -48
- package/src/Crypto.ts +327 -0
- package/src/Data.ts +9 -3
- package/src/DateTime.ts +893 -464
- package/src/Deferred.ts +367 -175
- package/src/Differ.ts +44 -2
- package/src/Duration.ts +333 -186
- package/src/Effect.ts +2201 -2289
- package/src/Effectable.ts +38 -3
- package/src/Encoding.ts +78 -28
- package/src/Equal.ts +4 -3
- package/src/Equivalence.ts +18 -24
- package/src/ErrorReporter.ts +66 -82
- package/src/ExecutionPlan.ts +106 -12
- package/src/Exit.ts +6 -5
- package/src/Fiber.ts +71 -40
- package/src/FiberHandle.ts +157 -57
- package/src/FiberMap.ts +328 -163
- package/src/FiberSet.ts +130 -52
- package/src/FileSystem.ts +104 -74
- package/src/Filter.ts +166 -88
- package/src/Formatter.ts +4 -70
- package/src/Function.ts +218 -151
- package/src/Graph.ts +714 -415
- package/src/HKT.ts +29 -13
- package/src/Hash.ts +35 -24
- package/src/HashMap.ts +540 -388
- package/src/HashRing.ts +111 -34
- package/src/HashSet.ts +239 -153
- package/src/Inspectable.ts +30 -17
- package/src/Iterable.ts +336 -222
- package/src/JsonPatch.ts +13 -10
- package/src/JsonPointer.ts +13 -11
- package/src/JsonSchema.ts +16 -0
- package/src/Latch.ts +97 -26
- package/src/Layer.ts +547 -445
- package/src/LayerMap.ts +99 -26
- package/src/LogLevel.ts +92 -131
- package/src/Logger.ts +365 -297
- package/src/ManagedRuntime.ts +78 -19
- package/src/Match.ts +135 -161
- package/src/Metric.ts +362 -313
- package/src/MutableHashMap.ts +202 -127
- package/src/MutableHashSet.ts +120 -52
- package/src/MutableList.ts +157 -100
- package/src/MutableRef.ts +129 -90
- package/src/Newtype.ts +15 -2
- package/src/NonEmptyIterable.ts +38 -48
- package/src/Number.ts +261 -205
- package/src/Optic.ts +6 -7
- package/src/Option.ts +133 -156
- package/src/Order.ts +6 -6
- package/src/Ordering.ts +56 -45
- package/src/PartitionedSemaphore.ts +225 -40
- package/src/Path.ts +77 -13
- package/src/Pipeable.ts +82 -24
- package/src/PlatformError.ts +74 -6
- package/src/Pool.ts +94 -31
- package/src/Predicate.ts +17 -24
- package/src/PrimaryKey.ts +11 -3
- package/src/PubSub.ts +385 -309
- package/src/Pull.ts +94 -25
- package/src/Queue.ts +303 -184
- package/src/Random.ts +69 -93
- package/src/RcMap.ts +151 -141
- package/src/RcRef.ts +68 -32
- package/src/Record.ts +282 -137
- package/src/Redactable.ts +7 -5
- package/src/Redacted.ts +63 -34
- package/src/Reducer.ts +3 -1
- package/src/Ref.ts +173 -134
- package/src/References.ts +73 -31
- package/src/RegExp.ts +12 -6
- package/src/Request.ts +159 -34
- package/src/RequestResolver.ts +278 -121
- package/src/Resource.ts +45 -7
- package/src/Result.ts +137 -153
- package/src/Runtime.ts +42 -21
- package/src/Schedule.ts +585 -613
- package/src/Scheduler.ts +44 -7
- package/src/Schema.ts +1309 -615
- package/src/SchemaAST.ts +123 -93
- package/src/SchemaGetter.ts +52 -37
- package/src/SchemaIssue.ts +19 -24
- package/src/SchemaParser.ts +306 -85
- package/src/SchemaRepresentation.ts +89 -77
- package/src/SchemaTransformation.ts +97 -46
- package/src/SchemaUtils.ts +24 -1
- package/src/Scope.ts +107 -65
- package/src/ScopedCache.ts +195 -59
- package/src/ScopedRef.ts +28 -8
- package/src/Semaphore.ts +61 -37
- package/src/Sink.ts +461 -206
- package/src/Stdio.ts +43 -6
- package/src/Stream.ts +2361 -1613
- package/src/String.ts +174 -97
- package/src/Struct.ts +20 -18
- package/src/SubscriptionRef.ts +309 -204
- 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 +233 -59
- package/src/Trie.ts +280 -245
- package/src/Tuple.ts +34 -32
- package/src/TxChunk.ts +200 -155
- package/src/TxDeferred.ts +43 -29
- package/src/TxHashMap.ts +370 -231
- package/src/TxHashSet.ts +253 -159
- package/src/TxPriorityQueue.ts +97 -65
- package/src/TxPubSub.ts +77 -49
- package/src/TxQueue.ts +277 -242
- package/src/TxReentrantLock.ts +70 -47
- package/src/TxRef.ts +69 -40
- package/src/TxSemaphore.ts +101 -115
- package/src/TxSubscriptionRef.ts +74 -50
- package/src/Types.ts +31 -34
- package/src/UndefinedOr.ts +62 -25
- package/src/Unify.ts +72 -117
- package/src/Utils.ts +5 -2
- package/src/index.ts +1976 -420
- package/src/internal/schema/schema.ts +1 -1
- package/src/testing/FastCheck.ts +9 -6
- package/src/testing/TestClock.ts +63 -35
- package/src/testing/TestConsole.ts +54 -36
- package/src/testing/TestSchema.ts +10 -8
- package/src/testing/index.ts +34 -0
- package/src/unstable/ai/AiError.ts +195 -137
- package/src/unstable/ai/AnthropicStructuredOutput.ts +2 -2
- package/src/unstable/ai/Chat.ts +68 -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 +342 -119
- package/src/unstable/ai/McpServer.ts +79 -20
- package/src/unstable/ai/Model.ts +10 -12
- package/src/unstable/ai/OpenAiStructuredOutput.ts +2 -2
- package/src/unstable/ai/Prompt.ts +216 -192
- package/src/unstable/ai/Response.ts +179 -167
- package/src/unstable/ai/ResponseIdTracker.ts +43 -4
- package/src/unstable/ai/Telemetry.ts +43 -33
- package/src/unstable/ai/Tokenizer.ts +14 -9
- package/src/unstable/ai/Tool.ts +168 -97
- package/src/unstable/ai/Toolkit.ts +51 -46
- package/src/unstable/ai/index.ts +121 -29
- package/src/unstable/cli/Argument.ts +226 -134
- package/src/unstable/cli/CliError.ts +96 -26
- package/src/unstable/cli/CliOutput.ts +48 -19
- package/src/unstable/cli/Command.ts +196 -115
- 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 +39 -14
- package/src/unstable/cli/Param.ts +395 -260
- package/src/unstable/cli/Primitive.ts +79 -42
- package/src/unstable/cli/Prompt.ts +207 -59
- package/src/unstable/cli/index.ts +205 -6
- 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/cli/internal/parser.ts +0 -1
- 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 +106 -16
- package/src/unstable/cluster/EntityAddress.ts +30 -2
- package/src/unstable/cluster/EntityId.ts +18 -3
- package/src/unstable/cluster/EntityProxy.ts +42 -14
- package/src/unstable/cluster/EntityProxyServer.ts +45 -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 +126 -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 +76 -13
- package/src/unstable/cluster/ShardId.ts +53 -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 +90 -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/index.ts +790 -0
- 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/devtools/index.ts +58 -0
- 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/encoding/index.ts +49 -0
- 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 +150 -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/eventlog/index.ts +240 -0
- 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 +204 -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 +48 -7
- package/src/unstable/http/HttpMethod.ts +38 -6
- package/src/unstable/http/HttpMiddleware.ts +60 -11
- package/src/unstable/http/HttpPlatform.ts +34 -3
- package/src/unstable/http/HttpRouter.ts +232 -69
- package/src/unstable/http/HttpServer.ts +151 -22
- package/src/unstable/http/HttpServerError.ts +93 -10
- package/src/unstable/http/HttpServerRequest.ts +125 -21
- package/src/unstable/http/HttpServerRespondable.ts +49 -6
- package/src/unstable/http/HttpServerResponse.ts +391 -67
- package/src/unstable/http/HttpStaticServer.ts +24 -8
- package/src/unstable/http/HttpTraceContext.ts +53 -6
- package/src/unstable/http/Multipart.ts +179 -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 -1
- package/src/unstable/http/Url.ts +70 -56
- package/src/unstable/http/UrlParams.ts +237 -51
- package/src/unstable/http/index.ts +452 -0
- package/src/unstable/httpapi/HttpApi.ts +49 -14
- package/src/unstable/httpapi/HttpApiBuilder.ts +81 -16
- package/src/unstable/httpapi/HttpApiClient.ts +78 -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 +113 -22
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -4
- package/src/unstable/httpapi/HttpApiSchema.ts +86 -38
- package/src/unstable/httpapi/HttpApiSecurity.ts +73 -17
- package/src/unstable/httpapi/HttpApiSwagger.ts +23 -3
- package/src/unstable/httpapi/HttpApiTest.ts +26 -1
- package/src/unstable/httpapi/OpenApi.ts +115 -15
- package/src/unstable/httpapi/index.ts +310 -25
- package/src/unstable/observability/Otlp.ts +33 -3
- package/src/unstable/observability/OtlpExporter.ts +32 -1
- package/src/unstable/observability/OtlpLogger.ts +32 -2
- package/src/unstable/observability/OtlpMetrics.ts +39 -5
- package/src/unstable/observability/OtlpResource.ts +68 -12
- package/src/unstable/observability/OtlpSerialization.ts +28 -3
- package/src/unstable/observability/OtlpTracer.ts +41 -2
- package/src/unstable/observability/PrometheusMetrics.ts +36 -16
- package/src/unstable/observability/index.ts +160 -3
- 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 +98 -16
- package/src/unstable/persistence/RateLimiter.ts +101 -21
- package/src/unstable/persistence/Redis.ts +42 -5
- package/src/unstable/persistence/index.ts +147 -0
- package/src/unstable/process/ChildProcess.ts +90 -66
- package/src/unstable/process/ChildProcessSpawner.ts +23 -12
- package/src/unstable/process/index.ts +2 -1
- package/src/unstable/reactivity/AsyncResult.ts +204 -61
- package/src/unstable/reactivity/Atom.ts +598 -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 +94 -13
- package/src/unstable/reactivity/index.ts +167 -0
- package/src/unstable/rpc/Rpc.ts +254 -56
- package/src/unstable/rpc/RpcClient.ts +106 -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 +39 -6
- package/src/unstable/rpc/Utils.ts +33 -0
- package/src/unstable/rpc/index.ts +272 -0
- package/src/unstable/schema/Model.ts +245 -61
- package/src/unstable/schema/VariantSchema.ts +101 -24
- package/src/unstable/schema/index.ts +37 -0
- package/src/unstable/socket/Socket.ts +168 -34
- package/src/unstable/socket/SocketServer.ts +58 -10
- package/src/unstable/socket/index.ts +44 -0
- package/src/unstable/sql/Migrator.ts +61 -9
- package/src/unstable/sql/SqlClient.ts +59 -2
- package/src/unstable/sql/SqlConnection.ts +34 -3
- package/src/unstable/sql/SqlError.ts +135 -0
- package/src/unstable/sql/SqlModel.ts +25 -5
- package/src/unstable/sql/SqlResolver.ts +56 -13
- package/src/unstable/sql/SqlSchema.ts +29 -8
- package/src/unstable/sql/SqlStream.ts +24 -0
- package/src/unstable/sql/Statement.ts +168 -24
- package/src/unstable/sql/index.ts +179 -1
- package/src/unstable/workers/Transferable.ts +72 -20
- package/src/unstable/workers/Worker.ts +61 -8
- package/src/unstable/workers/WorkerError.ts +50 -9
- package/src/unstable/workers/WorkerRunner.ts +32 -3
- package/src/unstable/workers/index.ts +81 -1
- package/src/unstable/workflow/Activity.ts +61 -10
- package/src/unstable/workflow/DurableClock.ts +26 -3
- package/src/unstable/workflow/DurableDeferred.ts +148 -31
- package/src/unstable/workflow/DurableQueue.ts +33 -8
- package/src/unstable/workflow/Workflow.ts +123 -31
- package/src/unstable/workflow/WorkflowEngine.ts +40 -5
- package/src/unstable/workflow/WorkflowProxy.ts +40 -12
- package/src/unstable/workflow/WorkflowProxyServer.ts +41 -6
- package/src/unstable/workflow/index.ts +160 -0
package/dist/TxHashMap.d.ts
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* The `TxHashMap` module provides a transactional hash map for storing and
|
|
3
|
+
* updating key-value pairs inside Effect transactions. It is useful when
|
|
4
|
+
* multiple fibers need to coordinate shared map state and each read-modify-write
|
|
5
|
+
* sequence must be committed atomically.
|
|
6
|
+
*
|
|
7
|
+
* A `TxHashMap<K, V>` has the familiar shape of a `HashMap<K, V>`, but every
|
|
8
|
+
* operation returns an `Effect` and participates in transaction semantics
|
|
9
|
+
* through `TxRef`. Use it for concurrent registries, caches, counters, indexes,
|
|
10
|
+
* and other mutable maps whose updates should compose safely with other
|
|
11
|
+
* transactional references.
|
|
12
|
+
*
|
|
13
|
+
* **Common tasks**
|
|
14
|
+
*
|
|
15
|
+
* - Create maps with {@link empty}, {@link fromIterable}, or {@link make}
|
|
16
|
+
* - Read entries with {@link get}, {@link has}, {@link keys}, {@link values}, and {@link entries}
|
|
17
|
+
* - Update entries with {@link set}, {@link modify}, {@link modifyAt}, and {@link remove}
|
|
18
|
+
* - Inspect aggregate state with {@link size}, {@link isEmpty}, and {@link reduce}
|
|
19
|
+
*
|
|
20
|
+
* **Gotchas**
|
|
21
|
+
*
|
|
22
|
+
* - Operations are effectful; run them in `Effect.gen` and wrap multi-step
|
|
23
|
+
* transactions with `Effect.tx` when the whole sequence must commit together.
|
|
24
|
+
* - Reads that may be absent return `Option`, so handle both `Some` and `None`
|
|
25
|
+
* instead of assuming a key exists.
|
|
26
|
+
*
|
|
2
27
|
* @since 2.0.0
|
|
3
28
|
*/
|
|
4
29
|
import * as Effect from "./Effect.ts";
|
|
@@ -14,7 +39,8 @@ declare const TypeId = "~effect/transactions/TxHashMap";
|
|
|
14
39
|
* on key-value pairs within Effect transactions. It uses an immutable HashMap internally
|
|
15
40
|
* with TxRef for transactional semantics, ensuring all operations are performed atomically.
|
|
16
41
|
*
|
|
17
|
-
*
|
|
42
|
+
* **Example** (Using transactional hash maps)
|
|
43
|
+
*
|
|
18
44
|
* ```ts
|
|
19
45
|
* import { Effect, TxHashMap } from "effect"
|
|
20
46
|
*
|
|
@@ -43,8 +69,8 @@ declare const TypeId = "~effect/transactions/TxHashMap";
|
|
|
43
69
|
* })
|
|
44
70
|
* ```
|
|
45
71
|
*
|
|
46
|
-
* @since 2.0.0
|
|
47
72
|
* @category models
|
|
73
|
+
* @since 4.0.0
|
|
48
74
|
*/
|
|
49
75
|
export interface TxHashMap<in out K, in out V> extends Inspectable, Pipeable {
|
|
50
76
|
readonly [TypeId]: typeof TypeId;
|
|
@@ -54,7 +80,8 @@ export interface TxHashMap<in out K, in out V> extends Inspectable, Pipeable {
|
|
|
54
80
|
* The TxHashMap namespace contains type-level utilities and helper types
|
|
55
81
|
* for working with TxHashMap instances.
|
|
56
82
|
*
|
|
57
|
-
*
|
|
83
|
+
* **Example** (Reusing extracted TxHashMap types)
|
|
84
|
+
*
|
|
58
85
|
* ```ts
|
|
59
86
|
* import { Effect, TxHashMap } from "effect"
|
|
60
87
|
*
|
|
@@ -82,14 +109,14 @@ export interface TxHashMap<in out K, in out V> extends Inspectable, Pipeable {
|
|
|
82
109
|
* })
|
|
83
110
|
* ```
|
|
84
111
|
*
|
|
85
|
-
* @since
|
|
86
|
-
* @category models
|
|
112
|
+
* @since 4.0.0
|
|
87
113
|
*/
|
|
88
114
|
export declare namespace TxHashMap {
|
|
89
115
|
/**
|
|
90
116
|
* Extracts the key type from a TxHashMap type.
|
|
91
117
|
*
|
|
92
|
-
*
|
|
118
|
+
* **Example** (Extracting key types)
|
|
119
|
+
*
|
|
93
120
|
* ```ts
|
|
94
121
|
* import { Effect, TxHashMap } from "effect"
|
|
95
122
|
*
|
|
@@ -109,14 +136,15 @@ export declare namespace TxHashMap {
|
|
|
109
136
|
* })
|
|
110
137
|
* ```
|
|
111
138
|
*
|
|
112
|
-
* @since 2.0.0
|
|
113
139
|
* @category type-level
|
|
140
|
+
* @since 4.0.0
|
|
114
141
|
*/
|
|
115
142
|
type Key<T extends TxHashMap<any, any>> = T extends TxHashMap<infer K, any> ? K : never;
|
|
116
143
|
/**
|
|
117
144
|
* Extracts the value type from a TxHashMap type.
|
|
118
145
|
*
|
|
119
|
-
*
|
|
146
|
+
* **Example** (Extracting value types)
|
|
147
|
+
*
|
|
120
148
|
* ```ts
|
|
121
149
|
* import { Effect, TxHashMap } from "effect"
|
|
122
150
|
*
|
|
@@ -140,14 +168,15 @@ export declare namespace TxHashMap {
|
|
|
140
168
|
* })
|
|
141
169
|
* ```
|
|
142
170
|
*
|
|
143
|
-
* @since 2.0.0
|
|
144
171
|
* @category type-level
|
|
172
|
+
* @since 4.0.0
|
|
145
173
|
*/
|
|
146
174
|
type Value<T extends TxHashMap<any, any>> = T extends TxHashMap<any, infer V> ? V : never;
|
|
147
175
|
/**
|
|
148
176
|
* Extracts the entry type from a TxHashMap type.
|
|
149
177
|
*
|
|
150
|
-
*
|
|
178
|
+
* **Example** (Extracting entry types)
|
|
179
|
+
*
|
|
151
180
|
* ```ts
|
|
152
181
|
* import { Effect, TxHashMap } from "effect"
|
|
153
182
|
*
|
|
@@ -174,15 +203,16 @@ export declare namespace TxHashMap {
|
|
|
174
203
|
* })
|
|
175
204
|
* ```
|
|
176
205
|
*
|
|
177
|
-
* @since 2.0.0
|
|
178
206
|
* @category type-level
|
|
207
|
+
* @since 4.0.0
|
|
179
208
|
*/
|
|
180
209
|
type Entry<T extends TxHashMap<any, any>> = T extends TxHashMap<infer K, infer V> ? readonly [K, V] : never;
|
|
181
210
|
}
|
|
182
211
|
/**
|
|
183
212
|
* Creates an empty TxHashMap.
|
|
184
213
|
*
|
|
185
|
-
*
|
|
214
|
+
* **Example** (Creating an empty map)
|
|
215
|
+
*
|
|
186
216
|
* ```ts
|
|
187
217
|
* import { Effect, TxHashMap } from "effect"
|
|
188
218
|
*
|
|
@@ -204,14 +234,15 @@ export declare namespace TxHashMap {
|
|
|
204
234
|
* })
|
|
205
235
|
* ```
|
|
206
236
|
*
|
|
207
|
-
* @since 2.0.0
|
|
208
237
|
* @category constructors
|
|
238
|
+
* @since 2.0.0
|
|
209
239
|
*/
|
|
210
240
|
export declare const empty: <K, V>() => Effect.Effect<TxHashMap<K, V>>;
|
|
211
241
|
/**
|
|
212
242
|
* Creates a TxHashMap from the provided key-value pairs.
|
|
213
243
|
*
|
|
214
|
-
*
|
|
244
|
+
* **Example** (Creating a map from entries)
|
|
245
|
+
*
|
|
215
246
|
* ```ts
|
|
216
247
|
* import { Effect, TxHashMap } from "effect"
|
|
217
248
|
*
|
|
@@ -236,14 +267,15 @@ export declare const empty: <K, V>() => Effect.Effect<TxHashMap<K, V>>;
|
|
|
236
267
|
* })
|
|
237
268
|
* ```
|
|
238
269
|
*
|
|
239
|
-
* @since 2.0.0
|
|
240
270
|
* @category constructors
|
|
271
|
+
* @since 2.0.0
|
|
241
272
|
*/
|
|
242
273
|
export declare const make: <K, V>(...entries: Array<readonly [K, V]>) => Effect.Effect<TxHashMap<K, V>>;
|
|
243
274
|
/**
|
|
244
275
|
* Creates a TxHashMap from an iterable of key-value pairs.
|
|
245
276
|
*
|
|
246
|
-
*
|
|
277
|
+
* **Example** (Creating a map from an iterable)
|
|
278
|
+
*
|
|
247
279
|
* ```ts
|
|
248
280
|
* import { Effect, TxHashMap } from "effect"
|
|
249
281
|
*
|
|
@@ -271,14 +303,15 @@ export declare const make: <K, V>(...entries: Array<readonly [K, V]>) => Effect.
|
|
|
271
303
|
* })
|
|
272
304
|
* ```
|
|
273
305
|
*
|
|
274
|
-
* @since 2.0.0
|
|
275
306
|
* @category constructors
|
|
307
|
+
* @since 2.0.0
|
|
276
308
|
*/
|
|
277
309
|
export declare const fromIterable: <K, V>(entries: Iterable<readonly [K, V]>) => Effect.Effect<TxHashMap<K, V>>;
|
|
278
310
|
/**
|
|
279
311
|
* Safely lookup the value for the specified key in the TxHashMap.
|
|
280
312
|
*
|
|
281
|
-
*
|
|
313
|
+
* **Example** (Looking up values safely)
|
|
314
|
+
*
|
|
282
315
|
* ```ts
|
|
283
316
|
* import { Effect, Option, TxHashMap } from "effect"
|
|
284
317
|
*
|
|
@@ -303,14 +336,15 @@ export declare const fromIterable: <K, V>(entries: Iterable<readonly [K, V]>) =>
|
|
|
303
336
|
* })
|
|
304
337
|
* ```
|
|
305
338
|
*
|
|
306
|
-
* @since 2.0.0
|
|
307
339
|
* @category combinators
|
|
340
|
+
* @since 2.0.0
|
|
308
341
|
*/
|
|
309
342
|
export declare const get: {
|
|
310
343
|
/**
|
|
311
344
|
* Safely lookup the value for the specified key in the TxHashMap.
|
|
312
345
|
*
|
|
313
|
-
*
|
|
346
|
+
* **Example** (Looking up values safely)
|
|
347
|
+
*
|
|
314
348
|
* ```ts
|
|
315
349
|
* import { Effect, Option, TxHashMap } from "effect"
|
|
316
350
|
*
|
|
@@ -335,14 +369,15 @@ export declare const get: {
|
|
|
335
369
|
* })
|
|
336
370
|
* ```
|
|
337
371
|
*
|
|
338
|
-
* @since 2.0.0
|
|
339
372
|
* @category combinators
|
|
373
|
+
* @since 2.0.0
|
|
340
374
|
*/
|
|
341
375
|
<K1 extends K, K>(key: K1): <V>(self: TxHashMap<K, V>) => Effect.Effect<Option.Option<V>>;
|
|
342
376
|
/**
|
|
343
377
|
* Safely lookup the value for the specified key in the TxHashMap.
|
|
344
378
|
*
|
|
345
|
-
*
|
|
379
|
+
* **Example** (Looking up values safely)
|
|
380
|
+
*
|
|
346
381
|
* ```ts
|
|
347
382
|
* import { Effect, Option, TxHashMap } from "effect"
|
|
348
383
|
*
|
|
@@ -367,8 +402,8 @@ export declare const get: {
|
|
|
367
402
|
* })
|
|
368
403
|
* ```
|
|
369
404
|
*
|
|
370
|
-
* @since 2.0.0
|
|
371
405
|
* @category combinators
|
|
406
|
+
* @since 2.0.0
|
|
372
407
|
*/
|
|
373
408
|
<K1 extends K, K, V>(self: TxHashMap<K, V>, key: K1): Effect.Effect<Option.Option<V>>;
|
|
374
409
|
};
|
|
@@ -378,7 +413,8 @@ export declare const get: {
|
|
|
378
413
|
* **Mutation behavior**: This function mutates the original TxHashMap by updating
|
|
379
414
|
* its internal state. It does not return a new TxHashMap reference.
|
|
380
415
|
*
|
|
381
|
-
*
|
|
416
|
+
* **Example** (Setting values)
|
|
417
|
+
*
|
|
382
418
|
* ```ts
|
|
383
419
|
* import { Effect, TxHashMap } from "effect"
|
|
384
420
|
*
|
|
@@ -403,8 +439,8 @@ export declare const get: {
|
|
|
403
439
|
* })
|
|
404
440
|
* ```
|
|
405
441
|
*
|
|
406
|
-
* @since 2.0.0
|
|
407
442
|
* @category combinators
|
|
443
|
+
* @since 2.0.0
|
|
408
444
|
*/
|
|
409
445
|
export declare const set: {
|
|
410
446
|
/**
|
|
@@ -413,7 +449,8 @@ export declare const set: {
|
|
|
413
449
|
* **Mutation behavior**: This function mutates the original TxHashMap by updating
|
|
414
450
|
* its internal state. It does not return a new TxHashMap reference.
|
|
415
451
|
*
|
|
416
|
-
*
|
|
452
|
+
* **Example** (Setting values)
|
|
453
|
+
*
|
|
417
454
|
* ```ts
|
|
418
455
|
* import { Effect, TxHashMap } from "effect"
|
|
419
456
|
*
|
|
@@ -438,8 +475,8 @@ export declare const set: {
|
|
|
438
475
|
* })
|
|
439
476
|
* ```
|
|
440
477
|
*
|
|
441
|
-
* @since 2.0.0
|
|
442
478
|
* @category combinators
|
|
479
|
+
* @since 2.0.0
|
|
443
480
|
*/
|
|
444
481
|
<K, V>(key: K, value: V): (self: TxHashMap<K, V>) => Effect.Effect<void>;
|
|
445
482
|
/**
|
|
@@ -448,7 +485,8 @@ export declare const set: {
|
|
|
448
485
|
* **Mutation behavior**: This function mutates the original TxHashMap by updating
|
|
449
486
|
* its internal state. It does not return a new TxHashMap reference.
|
|
450
487
|
*
|
|
451
|
-
*
|
|
488
|
+
* **Example** (Setting values)
|
|
489
|
+
*
|
|
452
490
|
* ```ts
|
|
453
491
|
* import { Effect, TxHashMap } from "effect"
|
|
454
492
|
*
|
|
@@ -473,15 +511,16 @@ export declare const set: {
|
|
|
473
511
|
* })
|
|
474
512
|
* ```
|
|
475
513
|
*
|
|
476
|
-
* @since 2.0.0
|
|
477
514
|
* @category combinators
|
|
515
|
+
* @since 2.0.0
|
|
478
516
|
*/
|
|
479
517
|
<K, V>(self: TxHashMap<K, V>, key: K, value: V): Effect.Effect<void>;
|
|
480
518
|
};
|
|
481
519
|
/**
|
|
482
520
|
* Checks if the specified key exists in the TxHashMap.
|
|
483
521
|
*
|
|
484
|
-
*
|
|
522
|
+
* **Example** (Checking for keys)
|
|
523
|
+
*
|
|
485
524
|
* ```ts
|
|
486
525
|
* import { Effect, TxHashMap } from "effect"
|
|
487
526
|
*
|
|
@@ -505,14 +544,15 @@ export declare const set: {
|
|
|
505
544
|
* })
|
|
506
545
|
* ```
|
|
507
546
|
*
|
|
508
|
-
* @since 2.0.0
|
|
509
547
|
* @category combinators
|
|
548
|
+
* @since 2.0.0
|
|
510
549
|
*/
|
|
511
550
|
export declare const has: {
|
|
512
551
|
/**
|
|
513
552
|
* Checks if the specified key exists in the TxHashMap.
|
|
514
553
|
*
|
|
515
|
-
*
|
|
554
|
+
* **Example** (Checking for keys)
|
|
555
|
+
*
|
|
516
556
|
* ```ts
|
|
517
557
|
* import { Effect, TxHashMap } from "effect"
|
|
518
558
|
*
|
|
@@ -536,14 +576,15 @@ export declare const has: {
|
|
|
536
576
|
* })
|
|
537
577
|
* ```
|
|
538
578
|
*
|
|
539
|
-
* @since 2.0.0
|
|
540
579
|
* @category combinators
|
|
580
|
+
* @since 2.0.0
|
|
541
581
|
*/
|
|
542
582
|
<K1 extends K, K>(key: K1): <V>(self: TxHashMap<K, V>) => Effect.Effect<boolean>;
|
|
543
583
|
/**
|
|
544
584
|
* Checks if the specified key exists in the TxHashMap.
|
|
545
585
|
*
|
|
546
|
-
*
|
|
586
|
+
* **Example** (Checking for keys)
|
|
587
|
+
*
|
|
547
588
|
* ```ts
|
|
548
589
|
* import { Effect, TxHashMap } from "effect"
|
|
549
590
|
*
|
|
@@ -567,8 +608,8 @@ export declare const has: {
|
|
|
567
608
|
* })
|
|
568
609
|
* ```
|
|
569
610
|
*
|
|
570
|
-
* @since 2.0.0
|
|
571
611
|
* @category combinators
|
|
612
|
+
* @since 2.0.0
|
|
572
613
|
*/
|
|
573
614
|
<K1 extends K, K, V>(self: TxHashMap<K, V>, key: K1): Effect.Effect<boolean>;
|
|
574
615
|
};
|
|
@@ -578,7 +619,8 @@ export declare const has: {
|
|
|
578
619
|
* **Mutation behavior**: This function mutates the original TxHashMap by removing
|
|
579
620
|
* the specified key-value pair. It does not return a new TxHashMap reference.
|
|
580
621
|
*
|
|
581
|
-
*
|
|
622
|
+
* **Example** (Removing keys)
|
|
623
|
+
*
|
|
582
624
|
* ```ts
|
|
583
625
|
* import { Effect, TxHashMap } from "effect"
|
|
584
626
|
*
|
|
@@ -606,8 +648,8 @@ export declare const has: {
|
|
|
606
648
|
* })
|
|
607
649
|
* ```
|
|
608
650
|
*
|
|
609
|
-
* @since 2.0.0
|
|
610
651
|
* @category combinators
|
|
652
|
+
* @since 2.0.0
|
|
611
653
|
*/
|
|
612
654
|
export declare const remove: {
|
|
613
655
|
/**
|
|
@@ -616,7 +658,8 @@ export declare const remove: {
|
|
|
616
658
|
* **Mutation behavior**: This function mutates the original TxHashMap by removing
|
|
617
659
|
* the specified key-value pair. It does not return a new TxHashMap reference.
|
|
618
660
|
*
|
|
619
|
-
*
|
|
661
|
+
* **Example** (Removing keys)
|
|
662
|
+
*
|
|
620
663
|
* ```ts
|
|
621
664
|
* import { Effect, TxHashMap } from "effect"
|
|
622
665
|
*
|
|
@@ -644,8 +687,8 @@ export declare const remove: {
|
|
|
644
687
|
* })
|
|
645
688
|
* ```
|
|
646
689
|
*
|
|
647
|
-
* @since 2.0.0
|
|
648
690
|
* @category combinators
|
|
691
|
+
* @since 2.0.0
|
|
649
692
|
*/
|
|
650
693
|
<K1 extends K, K>(key: K1): <V>(self: TxHashMap<K, V>) => Effect.Effect<boolean>;
|
|
651
694
|
/**
|
|
@@ -654,7 +697,8 @@ export declare const remove: {
|
|
|
654
697
|
* **Mutation behavior**: This function mutates the original TxHashMap by removing
|
|
655
698
|
* the specified key-value pair. It does not return a new TxHashMap reference.
|
|
656
699
|
*
|
|
657
|
-
*
|
|
700
|
+
* **Example** (Removing keys)
|
|
701
|
+
*
|
|
658
702
|
* ```ts
|
|
659
703
|
* import { Effect, TxHashMap } from "effect"
|
|
660
704
|
*
|
|
@@ -682,8 +726,8 @@ export declare const remove: {
|
|
|
682
726
|
* })
|
|
683
727
|
* ```
|
|
684
728
|
*
|
|
685
|
-
* @since 2.0.0
|
|
686
729
|
* @category combinators
|
|
730
|
+
* @since 2.0.0
|
|
687
731
|
*/
|
|
688
732
|
<K1 extends K, K, V>(self: TxHashMap<K, V>, key: K1): Effect.Effect<boolean>;
|
|
689
733
|
};
|
|
@@ -693,7 +737,8 @@ export declare const remove: {
|
|
|
693
737
|
* **Mutation behavior**: This function mutates the original TxHashMap by clearing
|
|
694
738
|
* all key-value pairs. It does not return a new TxHashMap reference.
|
|
695
739
|
*
|
|
696
|
-
*
|
|
740
|
+
* **Example** (Clearing all entries)
|
|
741
|
+
*
|
|
697
742
|
* ```ts
|
|
698
743
|
* import { Effect, TxHashMap } from "effect"
|
|
699
744
|
*
|
|
@@ -720,14 +765,15 @@ export declare const remove: {
|
|
|
720
765
|
* })
|
|
721
766
|
* ```
|
|
722
767
|
*
|
|
723
|
-
* @since 2.0.0
|
|
724
768
|
* @category combinators
|
|
769
|
+
* @since 4.0.0
|
|
725
770
|
*/
|
|
726
771
|
export declare const clear: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<void>;
|
|
727
772
|
/**
|
|
728
773
|
* Returns the number of entries in the TxHashMap.
|
|
729
774
|
*
|
|
730
|
-
*
|
|
775
|
+
* **Example** (Counting entries)
|
|
776
|
+
*
|
|
731
777
|
* ```ts
|
|
732
778
|
* import { Effect, TxHashMap } from "effect"
|
|
733
779
|
*
|
|
@@ -753,14 +799,15 @@ export declare const clear: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<void>
|
|
|
753
799
|
* })
|
|
754
800
|
* ```
|
|
755
801
|
*
|
|
756
|
-
* @since 2.0.0
|
|
757
802
|
* @category combinators
|
|
803
|
+
* @since 2.0.0
|
|
758
804
|
*/
|
|
759
805
|
export declare const size: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<number>;
|
|
760
806
|
/**
|
|
761
807
|
* Checks if the TxHashMap is empty.
|
|
762
808
|
*
|
|
763
|
-
*
|
|
809
|
+
* **Example** (Checking for an empty map)
|
|
810
|
+
*
|
|
764
811
|
* ```ts
|
|
765
812
|
* import { Effect, TxHashMap } from "effect"
|
|
766
813
|
*
|
|
@@ -782,14 +829,15 @@ export declare const size: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<number
|
|
|
782
829
|
* })
|
|
783
830
|
* ```
|
|
784
831
|
*
|
|
785
|
-
* @since 2.0.0
|
|
786
832
|
* @category combinators
|
|
833
|
+
* @since 2.0.0
|
|
787
834
|
*/
|
|
788
835
|
export declare const isEmpty: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<boolean>;
|
|
789
836
|
/**
|
|
790
837
|
* Checks if the TxHashMap is non-empty.
|
|
791
838
|
*
|
|
792
|
-
*
|
|
839
|
+
* **Example** (Checking for a non-empty map)
|
|
840
|
+
*
|
|
793
841
|
* ```ts
|
|
794
842
|
* import { Effect, TxHashMap } from "effect"
|
|
795
843
|
*
|
|
@@ -806,17 +854,21 @@ export declare const isEmpty: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<boo
|
|
|
806
854
|
* })
|
|
807
855
|
* ```
|
|
808
856
|
*
|
|
809
|
-
* @since 2.0.0
|
|
810
857
|
* @category combinators
|
|
858
|
+
* @since 4.0.0
|
|
811
859
|
*/
|
|
812
860
|
export declare const isNonEmpty: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<boolean>;
|
|
813
861
|
/**
|
|
814
|
-
* Updates the value for the specified key if it exists
|
|
862
|
+
* Updates the value for the specified key if it exists, returning the previous
|
|
863
|
+
* value in `Some`.
|
|
864
|
+
*
|
|
865
|
+
* Returns `None` and leaves the map unchanged when the key is absent.
|
|
815
866
|
*
|
|
816
867
|
* **Mutation behavior**: This function mutates the original TxHashMap by updating
|
|
817
868
|
* the value at the specified key. It does not return a new TxHashMap reference.
|
|
818
869
|
*
|
|
819
|
-
*
|
|
870
|
+
* **Example** (Updating existing values)
|
|
871
|
+
*
|
|
820
872
|
* ```ts
|
|
821
873
|
* import { Effect, TxHashMap } from "effect"
|
|
822
874
|
*
|
|
@@ -850,17 +902,21 @@ export declare const isNonEmpty: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<
|
|
|
850
902
|
* })
|
|
851
903
|
* ```
|
|
852
904
|
*
|
|
853
|
-
* @since 2.0.0
|
|
854
905
|
* @category combinators
|
|
906
|
+
* @since 4.0.0
|
|
855
907
|
*/
|
|
856
908
|
export declare const modify: {
|
|
857
909
|
/**
|
|
858
|
-
* Updates the value for the specified key if it exists
|
|
910
|
+
* Updates the value for the specified key if it exists, returning the previous
|
|
911
|
+
* value in `Some`.
|
|
912
|
+
*
|
|
913
|
+
* Returns `None` and leaves the map unchanged when the key is absent.
|
|
859
914
|
*
|
|
860
915
|
* **Mutation behavior**: This function mutates the original TxHashMap by updating
|
|
861
916
|
* the value at the specified key. It does not return a new TxHashMap reference.
|
|
862
917
|
*
|
|
863
|
-
*
|
|
918
|
+
* **Example** (Updating existing values)
|
|
919
|
+
*
|
|
864
920
|
* ```ts
|
|
865
921
|
* import { Effect, TxHashMap } from "effect"
|
|
866
922
|
*
|
|
@@ -894,17 +950,21 @@ export declare const modify: {
|
|
|
894
950
|
* })
|
|
895
951
|
* ```
|
|
896
952
|
*
|
|
897
|
-
* @since 2.0.0
|
|
898
953
|
* @category combinators
|
|
954
|
+
* @since 4.0.0
|
|
899
955
|
*/
|
|
900
956
|
<K, V>(key: K, f: (value: V) => V): (self: TxHashMap<K, V>) => Effect.Effect<Option.Option<V>>;
|
|
901
957
|
/**
|
|
902
|
-
* Updates the value for the specified key if it exists
|
|
958
|
+
* Updates the value for the specified key if it exists, returning the previous
|
|
959
|
+
* value in `Some`.
|
|
960
|
+
*
|
|
961
|
+
* Returns `None` and leaves the map unchanged when the key is absent.
|
|
903
962
|
*
|
|
904
963
|
* **Mutation behavior**: This function mutates the original TxHashMap by updating
|
|
905
964
|
* the value at the specified key. It does not return a new TxHashMap reference.
|
|
906
965
|
*
|
|
907
|
-
*
|
|
966
|
+
* **Example** (Updating existing values)
|
|
967
|
+
*
|
|
908
968
|
* ```ts
|
|
909
969
|
* import { Effect, TxHashMap } from "effect"
|
|
910
970
|
*
|
|
@@ -938,8 +998,8 @@ export declare const modify: {
|
|
|
938
998
|
* })
|
|
939
999
|
* ```
|
|
940
1000
|
*
|
|
941
|
-
* @since 2.0.0
|
|
942
1001
|
* @category combinators
|
|
1002
|
+
* @since 4.0.0
|
|
943
1003
|
*/
|
|
944
1004
|
<K, V>(self: TxHashMap<K, V>, key: K, f: (value: V) => V): Effect.Effect<Option.Option<V>>;
|
|
945
1005
|
};
|
|
@@ -950,7 +1010,8 @@ export declare const modify: {
|
|
|
950
1010
|
* adding, or removing the key-value pair based on the function result. It does not
|
|
951
1011
|
* return a new TxHashMap reference.
|
|
952
1012
|
*
|
|
953
|
-
*
|
|
1013
|
+
* **Example** (Updating values with Option)
|
|
1014
|
+
*
|
|
954
1015
|
* ```ts
|
|
955
1016
|
* import { Effect, TxHashMap } from "effect"
|
|
956
1017
|
*
|
|
@@ -989,8 +1050,8 @@ export declare const modify: {
|
|
|
989
1050
|
* })
|
|
990
1051
|
* ```
|
|
991
1052
|
*
|
|
992
|
-
* @since 2.0.0
|
|
993
1053
|
* @category combinators
|
|
1054
|
+
* @since 4.0.0
|
|
994
1055
|
*/
|
|
995
1056
|
export declare const modifyAt: {
|
|
996
1057
|
/**
|
|
@@ -1000,7 +1061,8 @@ export declare const modifyAt: {
|
|
|
1000
1061
|
* adding, or removing the key-value pair based on the function result. It does not
|
|
1001
1062
|
* return a new TxHashMap reference.
|
|
1002
1063
|
*
|
|
1003
|
-
*
|
|
1064
|
+
* **Example** (Updating values with Option)
|
|
1065
|
+
*
|
|
1004
1066
|
* ```ts
|
|
1005
1067
|
* import { Effect, TxHashMap } from "effect"
|
|
1006
1068
|
*
|
|
@@ -1039,8 +1101,8 @@ export declare const modifyAt: {
|
|
|
1039
1101
|
* })
|
|
1040
1102
|
* ```
|
|
1041
1103
|
*
|
|
1042
|
-
* @since 2.0.0
|
|
1043
1104
|
* @category combinators
|
|
1105
|
+
* @since 4.0.0
|
|
1044
1106
|
*/
|
|
1045
1107
|
<K, V>(key: K, f: (value: Option.Option<V>) => Option.Option<V>): (self: TxHashMap<K, V>) => Effect.Effect<void>;
|
|
1046
1108
|
/**
|
|
@@ -1050,7 +1112,8 @@ export declare const modifyAt: {
|
|
|
1050
1112
|
* adding, or removing the key-value pair based on the function result. It does not
|
|
1051
1113
|
* return a new TxHashMap reference.
|
|
1052
1114
|
*
|
|
1053
|
-
*
|
|
1115
|
+
* **Example** (Updating values with Option)
|
|
1116
|
+
*
|
|
1054
1117
|
* ```ts
|
|
1055
1118
|
* import { Effect, TxHashMap } from "effect"
|
|
1056
1119
|
*
|
|
@@ -1089,15 +1152,16 @@ export declare const modifyAt: {
|
|
|
1089
1152
|
* })
|
|
1090
1153
|
* ```
|
|
1091
1154
|
*
|
|
1092
|
-
* @since 2.0.0
|
|
1093
1155
|
* @category combinators
|
|
1156
|
+
* @since 4.0.0
|
|
1094
1157
|
*/
|
|
1095
1158
|
<K, V>(self: TxHashMap<K, V>, key: K, f: (value: Option.Option<V>) => Option.Option<V>): Effect.Effect<void>;
|
|
1096
1159
|
};
|
|
1097
1160
|
/**
|
|
1098
1161
|
* Returns an array of all keys in the TxHashMap.
|
|
1099
1162
|
*
|
|
1100
|
-
*
|
|
1163
|
+
* **Example** (Reading keys)
|
|
1164
|
+
*
|
|
1101
1165
|
* ```ts
|
|
1102
1166
|
* import { Effect, Option, TxHashMap } from "effect"
|
|
1103
1167
|
*
|
|
@@ -1121,14 +1185,15 @@ export declare const modifyAt: {
|
|
|
1121
1185
|
* })
|
|
1122
1186
|
* ```
|
|
1123
1187
|
*
|
|
1124
|
-
* @since 2.0.0
|
|
1125
1188
|
* @category combinators
|
|
1189
|
+
* @since 2.0.0
|
|
1126
1190
|
*/
|
|
1127
1191
|
export declare const keys: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Array<K>>;
|
|
1128
1192
|
/**
|
|
1129
1193
|
* Returns an array of all values in the TxHashMap.
|
|
1130
1194
|
*
|
|
1131
|
-
*
|
|
1195
|
+
* **Example** (Reading values)
|
|
1196
|
+
*
|
|
1132
1197
|
* ```ts
|
|
1133
1198
|
* import { Effect, TxHashMap } from "effect"
|
|
1134
1199
|
*
|
|
@@ -1140,12 +1205,12 @@ export declare const keys: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Array<
|
|
|
1140
1205
|
* )
|
|
1141
1206
|
*
|
|
1142
1207
|
* const allScores = yield* TxHashMap.values(scores)
|
|
1143
|
-
* console.log(allScores.sort()) // [87, 92, 95]
|
|
1208
|
+
* console.log(allScores.sort((a, b) => a - b)) // [87, 92, 95]
|
|
1144
1209
|
*
|
|
1145
1210
|
* // Calculate average
|
|
1146
1211
|
* const average = allScores.reduce((sum, score) => sum + score, 0) /
|
|
1147
1212
|
* allScores.length
|
|
1148
|
-
* console.log(average) // 91.33
|
|
1213
|
+
* console.log(average.toFixed(2)) // "91.33"
|
|
1149
1214
|
*
|
|
1150
1215
|
* // Find maximum
|
|
1151
1216
|
* const maxScore = Math.max(...allScores)
|
|
@@ -1153,14 +1218,15 @@ export declare const keys: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Array<
|
|
|
1153
1218
|
* })
|
|
1154
1219
|
* ```
|
|
1155
1220
|
*
|
|
1156
|
-
* @since 2.0.0
|
|
1157
1221
|
* @category combinators
|
|
1222
|
+
* @since 2.0.0
|
|
1158
1223
|
*/
|
|
1159
1224
|
export declare const values: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Array<V>>;
|
|
1160
1225
|
/**
|
|
1161
1226
|
* Returns an array of all key-value pairs in the TxHashMap.
|
|
1162
1227
|
*
|
|
1163
|
-
*
|
|
1228
|
+
* **Example** (Reading entries)
|
|
1229
|
+
*
|
|
1164
1230
|
* ```ts
|
|
1165
1231
|
* import { Effect, TxHashMap } from "effect"
|
|
1166
1232
|
*
|
|
@@ -1172,11 +1238,12 @@ export declare const values: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Arra
|
|
|
1172
1238
|
* )
|
|
1173
1239
|
*
|
|
1174
1240
|
* const allEntries = yield* TxHashMap.entries(config)
|
|
1175
|
-
*
|
|
1241
|
+
* const sortedEntries = allEntries.toSorted(([left], [right]) => left.localeCompare(right))
|
|
1242
|
+
* console.log(sortedEntries)
|
|
1176
1243
|
* // [["host", "localhost"], ["port", "3000"], ["ssl", "false"]]
|
|
1177
1244
|
*
|
|
1178
1245
|
* // Process configuration entries
|
|
1179
|
-
* for (const [key, value] of
|
|
1246
|
+
* for (const [key, value] of sortedEntries) {
|
|
1180
1247
|
* console.log(`${key}=${value}`)
|
|
1181
1248
|
* }
|
|
1182
1249
|
* // host=localhost
|
|
@@ -1185,14 +1252,15 @@ export declare const values: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Arra
|
|
|
1185
1252
|
* })
|
|
1186
1253
|
* ```
|
|
1187
1254
|
*
|
|
1188
|
-
* @since 2.0.0
|
|
1189
1255
|
* @category combinators
|
|
1256
|
+
* @since 4.0.0
|
|
1190
1257
|
*/
|
|
1191
1258
|
export declare const entries: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Array<readonly [K, V]>>;
|
|
1192
1259
|
/**
|
|
1193
1260
|
* Returns an immutable snapshot of the current TxHashMap state.
|
|
1194
1261
|
*
|
|
1195
|
-
*
|
|
1262
|
+
* **Example** (Taking immutable snapshots)
|
|
1263
|
+
*
|
|
1196
1264
|
* ```ts
|
|
1197
1265
|
* import { Effect, HashMap, TxHashMap } from "effect"
|
|
1198
1266
|
*
|
|
@@ -1220,8 +1288,8 @@ export declare const entries: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Arr
|
|
|
1220
1288
|
* })
|
|
1221
1289
|
* ```
|
|
1222
1290
|
*
|
|
1223
|
-
* @since 2.0.0
|
|
1224
1291
|
* @category combinators
|
|
1292
|
+
* @since 4.0.0
|
|
1225
1293
|
*/
|
|
1226
1294
|
export declare const snapshot: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<HashMap.HashMap<K, V>>;
|
|
1227
1295
|
/**
|
|
@@ -1231,7 +1299,8 @@ export declare const snapshot: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Ha
|
|
|
1231
1299
|
* **Mutation behavior**: This function mutates the original TxHashMap by merging
|
|
1232
1300
|
* the provided HashMap into it. It does not return a new TxHashMap reference.
|
|
1233
1301
|
*
|
|
1234
|
-
*
|
|
1302
|
+
* **Example** (Merging HashMaps)
|
|
1303
|
+
*
|
|
1235
1304
|
* ```ts
|
|
1236
1305
|
* import { Effect, HashMap, TxHashMap } from "effect"
|
|
1237
1306
|
*
|
|
@@ -1268,8 +1337,8 @@ export declare const snapshot: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Ha
|
|
|
1268
1337
|
* })
|
|
1269
1338
|
* ```
|
|
1270
1339
|
*
|
|
1271
|
-
* @since 2.0.0
|
|
1272
1340
|
* @category combinators
|
|
1341
|
+
* @since 4.0.0
|
|
1273
1342
|
*/
|
|
1274
1343
|
export declare const union: {
|
|
1275
1344
|
/**
|
|
@@ -1279,7 +1348,8 @@ export declare const union: {
|
|
|
1279
1348
|
* **Mutation behavior**: This function mutates the original TxHashMap by merging
|
|
1280
1349
|
* the provided HashMap into it. It does not return a new TxHashMap reference.
|
|
1281
1350
|
*
|
|
1282
|
-
*
|
|
1351
|
+
* **Example** (Merging HashMaps)
|
|
1352
|
+
*
|
|
1283
1353
|
* ```ts
|
|
1284
1354
|
* import { Effect, HashMap, TxHashMap } from "effect"
|
|
1285
1355
|
*
|
|
@@ -1316,8 +1386,8 @@ export declare const union: {
|
|
|
1316
1386
|
* })
|
|
1317
1387
|
* ```
|
|
1318
1388
|
*
|
|
1319
|
-
* @since 2.0.0
|
|
1320
1389
|
* @category combinators
|
|
1390
|
+
* @since 4.0.0
|
|
1321
1391
|
*/
|
|
1322
1392
|
<K1 extends K, K, V1 extends V, V>(other: HashMap.HashMap<K1, V1>): (self: TxHashMap<K, V>) => Effect.Effect<void>;
|
|
1323
1393
|
/**
|
|
@@ -1327,7 +1397,8 @@ export declare const union: {
|
|
|
1327
1397
|
* **Mutation behavior**: This function mutates the original TxHashMap by merging
|
|
1328
1398
|
* the provided HashMap into it. It does not return a new TxHashMap reference.
|
|
1329
1399
|
*
|
|
1330
|
-
*
|
|
1400
|
+
* **Example** (Merging HashMaps)
|
|
1401
|
+
*
|
|
1331
1402
|
* ```ts
|
|
1332
1403
|
* import { Effect, HashMap, TxHashMap } from "effect"
|
|
1333
1404
|
*
|
|
@@ -1364,8 +1435,8 @@ export declare const union: {
|
|
|
1364
1435
|
* })
|
|
1365
1436
|
* ```
|
|
1366
1437
|
*
|
|
1367
|
-
* @since 2.0.0
|
|
1368
1438
|
* @category combinators
|
|
1439
|
+
* @since 4.0.0
|
|
1369
1440
|
*/
|
|
1370
1441
|
<K1 extends K, K, V1 extends V, V>(self: TxHashMap<K, V>, other: HashMap.HashMap<K1, V1>): Effect.Effect<void>;
|
|
1371
1442
|
};
|
|
@@ -1375,7 +1446,8 @@ export declare const union: {
|
|
|
1375
1446
|
* **Mutation behavior**: This function mutates the original TxHashMap by removing
|
|
1376
1447
|
* all specified keys. It does not return a new TxHashMap reference.
|
|
1377
1448
|
*
|
|
1378
|
-
*
|
|
1449
|
+
* **Example** (Removing multiple keys)
|
|
1450
|
+
*
|
|
1379
1451
|
* ```ts
|
|
1380
1452
|
* import { Effect, TxHashMap } from "effect"
|
|
1381
1453
|
*
|
|
@@ -1408,8 +1480,8 @@ export declare const union: {
|
|
|
1408
1480
|
* })
|
|
1409
1481
|
* ```
|
|
1410
1482
|
*
|
|
1411
|
-
* @since 2.0.0
|
|
1412
1483
|
* @category combinators
|
|
1484
|
+
* @since 4.0.0
|
|
1413
1485
|
*/
|
|
1414
1486
|
export declare const removeMany: {
|
|
1415
1487
|
/**
|
|
@@ -1418,7 +1490,8 @@ export declare const removeMany: {
|
|
|
1418
1490
|
* **Mutation behavior**: This function mutates the original TxHashMap by removing
|
|
1419
1491
|
* all specified keys. It does not return a new TxHashMap reference.
|
|
1420
1492
|
*
|
|
1421
|
-
*
|
|
1493
|
+
* **Example** (Removing multiple keys)
|
|
1494
|
+
*
|
|
1422
1495
|
* ```ts
|
|
1423
1496
|
* import { Effect, TxHashMap } from "effect"
|
|
1424
1497
|
*
|
|
@@ -1451,8 +1524,8 @@ export declare const removeMany: {
|
|
|
1451
1524
|
* })
|
|
1452
1525
|
* ```
|
|
1453
1526
|
*
|
|
1454
|
-
* @since 2.0.0
|
|
1455
1527
|
* @category combinators
|
|
1528
|
+
* @since 4.0.0
|
|
1456
1529
|
*/
|
|
1457
1530
|
<K1 extends K, K>(keys: Iterable<K1>): <V>(self: TxHashMap<K, V>) => Effect.Effect<void>;
|
|
1458
1531
|
/**
|
|
@@ -1461,7 +1534,8 @@ export declare const removeMany: {
|
|
|
1461
1534
|
* **Mutation behavior**: This function mutates the original TxHashMap by removing
|
|
1462
1535
|
* all specified keys. It does not return a new TxHashMap reference.
|
|
1463
1536
|
*
|
|
1464
|
-
*
|
|
1537
|
+
* **Example** (Removing multiple keys)
|
|
1538
|
+
*
|
|
1465
1539
|
* ```ts
|
|
1466
1540
|
* import { Effect, TxHashMap } from "effect"
|
|
1467
1541
|
*
|
|
@@ -1494,8 +1568,8 @@ export declare const removeMany: {
|
|
|
1494
1568
|
* })
|
|
1495
1569
|
* ```
|
|
1496
1570
|
*
|
|
1497
|
-
* @since 2.0.0
|
|
1498
1571
|
* @category combinators
|
|
1572
|
+
* @since 4.0.0
|
|
1499
1573
|
*/
|
|
1500
1574
|
<K1 extends K, K, V>(self: TxHashMap<K, V>, keys: Iterable<K1>): Effect.Effect<void>;
|
|
1501
1575
|
};
|
|
@@ -1505,7 +1579,8 @@ export declare const removeMany: {
|
|
|
1505
1579
|
* **Mutation behavior**: This function mutates the original TxHashMap by setting
|
|
1506
1580
|
* all provided key-value pairs. It does not return a new TxHashMap reference.
|
|
1507
1581
|
*
|
|
1508
|
-
*
|
|
1582
|
+
* **Example** (Setting multiple entries)
|
|
1583
|
+
*
|
|
1509
1584
|
* ```ts
|
|
1510
1585
|
* import { Effect, TxHashMap } from "effect"
|
|
1511
1586
|
*
|
|
@@ -1553,8 +1628,8 @@ export declare const removeMany: {
|
|
|
1553
1628
|
* })
|
|
1554
1629
|
* ```
|
|
1555
1630
|
*
|
|
1556
|
-
* @since 2.0.0
|
|
1557
1631
|
* @category combinators
|
|
1632
|
+
* @since 4.0.0
|
|
1558
1633
|
*/
|
|
1559
1634
|
export declare const setMany: {
|
|
1560
1635
|
/**
|
|
@@ -1563,7 +1638,8 @@ export declare const setMany: {
|
|
|
1563
1638
|
* **Mutation behavior**: This function mutates the original TxHashMap by setting
|
|
1564
1639
|
* all provided key-value pairs. It does not return a new TxHashMap reference.
|
|
1565
1640
|
*
|
|
1566
|
-
*
|
|
1641
|
+
* **Example** (Setting multiple entries)
|
|
1642
|
+
*
|
|
1567
1643
|
* ```ts
|
|
1568
1644
|
* import { Effect, TxHashMap } from "effect"
|
|
1569
1645
|
*
|
|
@@ -1611,8 +1687,8 @@ export declare const setMany: {
|
|
|
1611
1687
|
* })
|
|
1612
1688
|
* ```
|
|
1613
1689
|
*
|
|
1614
|
-
* @since 2.0.0
|
|
1615
1690
|
* @category combinators
|
|
1691
|
+
* @since 4.0.0
|
|
1616
1692
|
*/
|
|
1617
1693
|
<K1 extends K, K, V1 extends V, V>(entries: Iterable<readonly [K1, V1]>): (self: TxHashMap<K, V>) => Effect.Effect<void>;
|
|
1618
1694
|
/**
|
|
@@ -1621,7 +1697,8 @@ export declare const setMany: {
|
|
|
1621
1697
|
* **Mutation behavior**: This function mutates the original TxHashMap by setting
|
|
1622
1698
|
* all provided key-value pairs. It does not return a new TxHashMap reference.
|
|
1623
1699
|
*
|
|
1624
|
-
*
|
|
1700
|
+
* **Example** (Setting multiple entries)
|
|
1701
|
+
*
|
|
1625
1702
|
* ```ts
|
|
1626
1703
|
* import { Effect, TxHashMap } from "effect"
|
|
1627
1704
|
*
|
|
@@ -1669,15 +1746,16 @@ export declare const setMany: {
|
|
|
1669
1746
|
* })
|
|
1670
1747
|
* ```
|
|
1671
1748
|
*
|
|
1672
|
-
* @since 2.0.0
|
|
1673
1749
|
* @category combinators
|
|
1750
|
+
* @since 4.0.0
|
|
1674
1751
|
*/
|
|
1675
1752
|
<K1 extends K, K, V1 extends V, V>(self: TxHashMap<K, V>, entries: Iterable<readonly [K1, V1]>): Effect.Effect<void>;
|
|
1676
1753
|
};
|
|
1677
1754
|
/**
|
|
1678
1755
|
* Returns `true` if the specified value is a `TxHashMap`, `false` otherwise.
|
|
1679
1756
|
*
|
|
1680
|
-
*
|
|
1757
|
+
* **Example** (Checking TxHashMap values)
|
|
1758
|
+
*
|
|
1681
1759
|
* ```ts
|
|
1682
1760
|
* import { Effect, TxHashMap } from "effect"
|
|
1683
1761
|
*
|
|
@@ -1700,23 +1778,27 @@ export declare const setMany: {
|
|
|
1700
1778
|
* })
|
|
1701
1779
|
* ```
|
|
1702
1780
|
*
|
|
1703
|
-
* @since 2.0.0
|
|
1704
1781
|
* @category guards
|
|
1782
|
+
* @since 4.0.0
|
|
1705
1783
|
*/
|
|
1706
1784
|
export declare const isTxHashMap: <K, V>(value: unknown) => value is TxHashMap<K, V>;
|
|
1707
1785
|
/**
|
|
1708
|
-
*
|
|
1709
|
-
*
|
|
1786
|
+
* Looks up the value for the specified key using a caller-supplied hash.
|
|
1787
|
+
*
|
|
1788
|
+
* The supplied hash must be the hash for the same key, such as a precomputed
|
|
1789
|
+
* `Hash.hash(key)` value. If the hash does not match the key, an existing entry
|
|
1790
|
+
* may not be found.
|
|
1791
|
+
*
|
|
1792
|
+
* **Example** (Looking up values with precomputed hashes)
|
|
1710
1793
|
*
|
|
1711
|
-
* @example
|
|
1712
1794
|
* ```ts
|
|
1713
1795
|
* import { Effect, Hash, TxHashMap } from "effect"
|
|
1714
1796
|
*
|
|
1715
1797
|
* const program = Effect.gen(function*() {
|
|
1716
1798
|
* // Create a cache with user sessions
|
|
1717
1799
|
* const cache = yield* TxHashMap.make(
|
|
1718
|
-
* ["session_abc123", { userId: "user1", lastActive:
|
|
1719
|
-
* ["session_def456", { userId: "user2", lastActive:
|
|
1800
|
+
* ["session_abc123", { userId: "user1", lastActive: 1_700_000_000_000 }],
|
|
1801
|
+
* ["session_def456", { userId: "user2", lastActive: 1_700_000_060_000 }]
|
|
1720
1802
|
* )
|
|
1721
1803
|
*
|
|
1722
1804
|
* // When you have precomputed hash (e.g., from another lookup)
|
|
@@ -1737,23 +1819,27 @@ export declare const isTxHashMap: <K, V>(value: unknown) => value is TxHashMap<K
|
|
|
1737
1819
|
* })
|
|
1738
1820
|
* ```
|
|
1739
1821
|
*
|
|
1740
|
-
* @since 2.0.0
|
|
1741
1822
|
* @category combinators
|
|
1823
|
+
* @since 4.0.0
|
|
1742
1824
|
*/
|
|
1743
1825
|
export declare const getHash: {
|
|
1744
1826
|
/**
|
|
1745
|
-
*
|
|
1746
|
-
*
|
|
1827
|
+
* Looks up the value for the specified key using a caller-supplied hash.
|
|
1828
|
+
*
|
|
1829
|
+
* The supplied hash must be the hash for the same key, such as a precomputed
|
|
1830
|
+
* `Hash.hash(key)` value. If the hash does not match the key, an existing entry
|
|
1831
|
+
* may not be found.
|
|
1832
|
+
*
|
|
1833
|
+
* **Example** (Looking up values with precomputed hashes)
|
|
1747
1834
|
*
|
|
1748
|
-
* @example
|
|
1749
1835
|
* ```ts
|
|
1750
1836
|
* import { Effect, Hash, TxHashMap } from "effect"
|
|
1751
1837
|
*
|
|
1752
1838
|
* const program = Effect.gen(function*() {
|
|
1753
1839
|
* // Create a cache with user sessions
|
|
1754
1840
|
* const cache = yield* TxHashMap.make(
|
|
1755
|
-
* ["session_abc123", { userId: "user1", lastActive:
|
|
1756
|
-
* ["session_def456", { userId: "user2", lastActive:
|
|
1841
|
+
* ["session_abc123", { userId: "user1", lastActive: 1_700_000_000_000 }],
|
|
1842
|
+
* ["session_def456", { userId: "user2", lastActive: 1_700_000_060_000 }]
|
|
1757
1843
|
* )
|
|
1758
1844
|
*
|
|
1759
1845
|
* // When you have precomputed hash (e.g., from another lookup)
|
|
@@ -1774,23 +1860,27 @@ export declare const getHash: {
|
|
|
1774
1860
|
* })
|
|
1775
1861
|
* ```
|
|
1776
1862
|
*
|
|
1777
|
-
* @since 2.0.0
|
|
1778
1863
|
* @category combinators
|
|
1864
|
+
* @since 4.0.0
|
|
1779
1865
|
*/
|
|
1780
1866
|
<K1 extends K, K>(key: K1, hash: number): <V>(self: TxHashMap<K, V>) => Effect.Effect<Option.Option<V>>;
|
|
1781
1867
|
/**
|
|
1782
|
-
*
|
|
1783
|
-
*
|
|
1868
|
+
* Looks up the value for the specified key using a caller-supplied hash.
|
|
1869
|
+
*
|
|
1870
|
+
* The supplied hash must be the hash for the same key, such as a precomputed
|
|
1871
|
+
* `Hash.hash(key)` value. If the hash does not match the key, an existing entry
|
|
1872
|
+
* may not be found.
|
|
1873
|
+
*
|
|
1874
|
+
* **Example** (Looking up values with precomputed hashes)
|
|
1784
1875
|
*
|
|
1785
|
-
* @example
|
|
1786
1876
|
* ```ts
|
|
1787
1877
|
* import { Effect, Hash, TxHashMap } from "effect"
|
|
1788
1878
|
*
|
|
1789
1879
|
* const program = Effect.gen(function*() {
|
|
1790
1880
|
* // Create a cache with user sessions
|
|
1791
1881
|
* const cache = yield* TxHashMap.make(
|
|
1792
|
-
* ["session_abc123", { userId: "user1", lastActive:
|
|
1793
|
-
* ["session_def456", { userId: "user2", lastActive:
|
|
1882
|
+
* ["session_abc123", { userId: "user1", lastActive: 1_700_000_000_000 }],
|
|
1883
|
+
* ["session_def456", { userId: "user2", lastActive: 1_700_000_060_000 }]
|
|
1794
1884
|
* )
|
|
1795
1885
|
*
|
|
1796
1886
|
* // When you have precomputed hash (e.g., from another lookup)
|
|
@@ -1811,16 +1901,20 @@ export declare const getHash: {
|
|
|
1811
1901
|
* })
|
|
1812
1902
|
* ```
|
|
1813
1903
|
*
|
|
1814
|
-
* @since 2.0.0
|
|
1815
1904
|
* @category combinators
|
|
1905
|
+
* @since 4.0.0
|
|
1816
1906
|
*/
|
|
1817
1907
|
<K1 extends K, K, V>(self: TxHashMap<K, V>, key: K1, hash: number): Effect.Effect<Option.Option<V>>;
|
|
1818
1908
|
};
|
|
1819
1909
|
/**
|
|
1820
|
-
* Checks
|
|
1821
|
-
*
|
|
1910
|
+
* Checks whether the specified key has an entry using a caller-supplied hash.
|
|
1911
|
+
*
|
|
1912
|
+
* The supplied hash must be the hash for the same key, such as a precomputed
|
|
1913
|
+
* `Hash.hash(key)` value. If the hash does not match the key, an existing entry
|
|
1914
|
+
* may not be found.
|
|
1915
|
+
*
|
|
1916
|
+
* **Example** (Checking keys with precomputed hashes)
|
|
1822
1917
|
*
|
|
1823
|
-
* @example
|
|
1824
1918
|
* ```ts
|
|
1825
1919
|
* import { Effect, Hash, TxHashMap } from "effect"
|
|
1826
1920
|
*
|
|
@@ -1858,15 +1952,19 @@ export declare const getHash: {
|
|
|
1858
1952
|
* })
|
|
1859
1953
|
* ```
|
|
1860
1954
|
*
|
|
1861
|
-
* @since 2.0.0
|
|
1862
1955
|
* @category combinators
|
|
1956
|
+
* @since 4.0.0
|
|
1863
1957
|
*/
|
|
1864
1958
|
export declare const hasHash: {
|
|
1865
1959
|
/**
|
|
1866
|
-
* Checks
|
|
1867
|
-
*
|
|
1960
|
+
* Checks whether the specified key has an entry using a caller-supplied hash.
|
|
1961
|
+
*
|
|
1962
|
+
* The supplied hash must be the hash for the same key, such as a precomputed
|
|
1963
|
+
* `Hash.hash(key)` value. If the hash does not match the key, an existing entry
|
|
1964
|
+
* may not be found.
|
|
1965
|
+
*
|
|
1966
|
+
* **Example** (Checking keys with precomputed hashes)
|
|
1868
1967
|
*
|
|
1869
|
-
* @example
|
|
1870
1968
|
* ```ts
|
|
1871
1969
|
* import { Effect, Hash, TxHashMap } from "effect"
|
|
1872
1970
|
*
|
|
@@ -1904,15 +2002,19 @@ export declare const hasHash: {
|
|
|
1904
2002
|
* })
|
|
1905
2003
|
* ```
|
|
1906
2004
|
*
|
|
1907
|
-
* @since 2.0.0
|
|
1908
2005
|
* @category combinators
|
|
2006
|
+
* @since 4.0.0
|
|
1909
2007
|
*/
|
|
1910
2008
|
<K1 extends K, K>(key: K1, hash: number): <V>(self: TxHashMap<K, V>) => Effect.Effect<boolean>;
|
|
1911
2009
|
/**
|
|
1912
|
-
* Checks
|
|
1913
|
-
*
|
|
2010
|
+
* Checks whether the specified key has an entry using a caller-supplied hash.
|
|
2011
|
+
*
|
|
2012
|
+
* The supplied hash must be the hash for the same key, such as a precomputed
|
|
2013
|
+
* `Hash.hash(key)` value. If the hash does not match the key, an existing entry
|
|
2014
|
+
* may not be found.
|
|
2015
|
+
*
|
|
2016
|
+
* **Example** (Checking keys with precomputed hashes)
|
|
1914
2017
|
*
|
|
1915
|
-
* @example
|
|
1916
2018
|
* ```ts
|
|
1917
2019
|
* import { Effect, Hash, TxHashMap } from "effect"
|
|
1918
2020
|
*
|
|
@@ -1950,8 +2052,8 @@ export declare const hasHash: {
|
|
|
1950
2052
|
* })
|
|
1951
2053
|
* ```
|
|
1952
2054
|
*
|
|
1953
|
-
* @since 2.0.0
|
|
1954
2055
|
* @category combinators
|
|
2056
|
+
* @since 4.0.0
|
|
1955
2057
|
*/
|
|
1956
2058
|
<K1 extends K, K, V>(self: TxHashMap<K, V>, key: K1, hash: number): Effect.Effect<boolean>;
|
|
1957
2059
|
};
|
|
@@ -1961,7 +2063,8 @@ export declare const hasHash: {
|
|
|
1961
2063
|
* **Return behavior**: This function returns a new TxHashMap reference with the
|
|
1962
2064
|
* transformed values. The original TxHashMap is not modified.
|
|
1963
2065
|
*
|
|
1964
|
-
*
|
|
2066
|
+
* **Example** (Mapping values)
|
|
2067
|
+
*
|
|
1965
2068
|
* ```ts
|
|
1966
2069
|
* import { Effect, TxHashMap } from "effect"
|
|
1967
2070
|
*
|
|
@@ -1997,8 +2100,8 @@ export declare const hasHash: {
|
|
|
1997
2100
|
* })
|
|
1998
2101
|
* ```
|
|
1999
2102
|
*
|
|
2000
|
-
* @since 2.0.0
|
|
2001
2103
|
* @category combinators
|
|
2104
|
+
* @since 4.0.0
|
|
2002
2105
|
*/
|
|
2003
2106
|
export declare const map: {
|
|
2004
2107
|
/**
|
|
@@ -2007,7 +2110,8 @@ export declare const map: {
|
|
|
2007
2110
|
* **Return behavior**: This function returns a new TxHashMap reference with the
|
|
2008
2111
|
* transformed values. The original TxHashMap is not modified.
|
|
2009
2112
|
*
|
|
2010
|
-
*
|
|
2113
|
+
* **Example** (Mapping values)
|
|
2114
|
+
*
|
|
2011
2115
|
* ```ts
|
|
2012
2116
|
* import { Effect, TxHashMap } from "effect"
|
|
2013
2117
|
*
|
|
@@ -2043,8 +2147,8 @@ export declare const map: {
|
|
|
2043
2147
|
* })
|
|
2044
2148
|
* ```
|
|
2045
2149
|
*
|
|
2046
|
-
* @since 2.0.0
|
|
2047
2150
|
* @category combinators
|
|
2151
|
+
* @since 4.0.0
|
|
2048
2152
|
*/
|
|
2049
2153
|
<A, V, K>(f: (value: V, key: K) => A): (self: TxHashMap<K, V>) => Effect.Effect<TxHashMap<K, A>>;
|
|
2050
2154
|
/**
|
|
@@ -2053,7 +2157,8 @@ export declare const map: {
|
|
|
2053
2157
|
* **Return behavior**: This function returns a new TxHashMap reference with the
|
|
2054
2158
|
* transformed values. The original TxHashMap is not modified.
|
|
2055
2159
|
*
|
|
2056
|
-
*
|
|
2160
|
+
* **Example** (Mapping values)
|
|
2161
|
+
*
|
|
2057
2162
|
* ```ts
|
|
2058
2163
|
* import { Effect, TxHashMap } from "effect"
|
|
2059
2164
|
*
|
|
@@ -2089,8 +2194,8 @@ export declare const map: {
|
|
|
2089
2194
|
* })
|
|
2090
2195
|
* ```
|
|
2091
2196
|
*
|
|
2092
|
-
* @since 2.0.0
|
|
2093
2197
|
* @category combinators
|
|
2198
|
+
* @since 4.0.0
|
|
2094
2199
|
*/
|
|
2095
2200
|
<K, V, A>(self: TxHashMap<K, V>, f: (value: V, key: K) => A): Effect.Effect<TxHashMap<K, A>>;
|
|
2096
2201
|
};
|
|
@@ -2100,7 +2205,8 @@ export declare const map: {
|
|
|
2100
2205
|
* **Return behavior**: This function returns a new TxHashMap reference containing
|
|
2101
2206
|
* only the entries that match the condition. The original TxHashMap is not modified.
|
|
2102
2207
|
*
|
|
2103
|
-
*
|
|
2208
|
+
* **Example** (Filtering entries)
|
|
2209
|
+
*
|
|
2104
2210
|
* ```ts
|
|
2105
2211
|
* import { Effect, TxHashMap } from "effect"
|
|
2106
2212
|
*
|
|
@@ -2139,8 +2245,8 @@ export declare const map: {
|
|
|
2139
2245
|
* })
|
|
2140
2246
|
* ```
|
|
2141
2247
|
*
|
|
2142
|
-
* @since 2.0.0
|
|
2143
2248
|
* @category combinators
|
|
2249
|
+
* @since 4.0.0
|
|
2144
2250
|
*/
|
|
2145
2251
|
export declare const filter: {
|
|
2146
2252
|
/**
|
|
@@ -2149,7 +2255,8 @@ export declare const filter: {
|
|
|
2149
2255
|
* **Return behavior**: This function returns a new TxHashMap reference containing
|
|
2150
2256
|
* only the entries that match the condition. The original TxHashMap is not modified.
|
|
2151
2257
|
*
|
|
2152
|
-
*
|
|
2258
|
+
* **Example** (Filtering entries)
|
|
2259
|
+
*
|
|
2153
2260
|
* ```ts
|
|
2154
2261
|
* import { Effect, TxHashMap } from "effect"
|
|
2155
2262
|
*
|
|
@@ -2188,8 +2295,8 @@ export declare const filter: {
|
|
|
2188
2295
|
* })
|
|
2189
2296
|
* ```
|
|
2190
2297
|
*
|
|
2191
|
-
* @since 2.0.0
|
|
2192
2298
|
* @category combinators
|
|
2299
|
+
* @since 4.0.0
|
|
2193
2300
|
*/
|
|
2194
2301
|
<K, V, B extends V>(predicate: (value: V, key: K) => value is B): (self: TxHashMap<K, V>) => Effect.Effect<TxHashMap<K, B>>;
|
|
2195
2302
|
/**
|
|
@@ -2198,7 +2305,8 @@ export declare const filter: {
|
|
|
2198
2305
|
* **Return behavior**: This function returns a new TxHashMap reference containing
|
|
2199
2306
|
* only the entries that match the condition. The original TxHashMap is not modified.
|
|
2200
2307
|
*
|
|
2201
|
-
*
|
|
2308
|
+
* **Example** (Filtering entries)
|
|
2309
|
+
*
|
|
2202
2310
|
* ```ts
|
|
2203
2311
|
* import { Effect, TxHashMap } from "effect"
|
|
2204
2312
|
*
|
|
@@ -2237,8 +2345,8 @@ export declare const filter: {
|
|
|
2237
2345
|
* })
|
|
2238
2346
|
* ```
|
|
2239
2347
|
*
|
|
2240
|
-
* @since 2.0.0
|
|
2241
2348
|
* @category combinators
|
|
2349
|
+
* @since 4.0.0
|
|
2242
2350
|
*/
|
|
2243
2351
|
<K, V>(predicate: (value: V, key: K) => boolean): (self: TxHashMap<K, V>) => Effect.Effect<TxHashMap<K, V>>;
|
|
2244
2352
|
/**
|
|
@@ -2247,7 +2355,8 @@ export declare const filter: {
|
|
|
2247
2355
|
* **Return behavior**: This function returns a new TxHashMap reference containing
|
|
2248
2356
|
* only the entries that match the condition. The original TxHashMap is not modified.
|
|
2249
2357
|
*
|
|
2250
|
-
*
|
|
2358
|
+
* **Example** (Filtering entries)
|
|
2359
|
+
*
|
|
2251
2360
|
* ```ts
|
|
2252
2361
|
* import { Effect, TxHashMap } from "effect"
|
|
2253
2362
|
*
|
|
@@ -2286,8 +2395,8 @@ export declare const filter: {
|
|
|
2286
2395
|
* })
|
|
2287
2396
|
* ```
|
|
2288
2397
|
*
|
|
2289
|
-
* @since 2.0.0
|
|
2290
2398
|
* @category combinators
|
|
2399
|
+
* @since 4.0.0
|
|
2291
2400
|
*/
|
|
2292
2401
|
<K, V, B extends V>(self: TxHashMap<K, V>, predicate: (value: V, key: K) => value is B): Effect.Effect<TxHashMap<K, B>>;
|
|
2293
2402
|
/**
|
|
@@ -2296,7 +2405,8 @@ export declare const filter: {
|
|
|
2296
2405
|
* **Return behavior**: This function returns a new TxHashMap reference containing
|
|
2297
2406
|
* only the entries that match the condition. The original TxHashMap is not modified.
|
|
2298
2407
|
*
|
|
2299
|
-
*
|
|
2408
|
+
* **Example** (Filtering entries)
|
|
2409
|
+
*
|
|
2300
2410
|
* ```ts
|
|
2301
2411
|
* import { Effect, TxHashMap } from "effect"
|
|
2302
2412
|
*
|
|
@@ -2335,8 +2445,8 @@ export declare const filter: {
|
|
|
2335
2445
|
* })
|
|
2336
2446
|
* ```
|
|
2337
2447
|
*
|
|
2338
|
-
* @since 2.0.0
|
|
2339
2448
|
* @category combinators
|
|
2449
|
+
* @since 4.0.0
|
|
2340
2450
|
*/
|
|
2341
2451
|
<K, V>(self: TxHashMap<K, V>, predicate: (value: V, key: K) => boolean): Effect.Effect<TxHashMap<K, V>>;
|
|
2342
2452
|
};
|
|
@@ -2344,7 +2454,8 @@ export declare const filter: {
|
|
|
2344
2454
|
* Reduces the TxHashMap entries to a single value by applying a reducer function.
|
|
2345
2455
|
* Iterates over all key-value pairs and accumulates them into a final result.
|
|
2346
2456
|
*
|
|
2347
|
-
*
|
|
2457
|
+
* **Example** (Reducing entries)
|
|
2458
|
+
*
|
|
2348
2459
|
* ```ts
|
|
2349
2460
|
* import { Effect, TxHashMap } from "effect"
|
|
2350
2461
|
*
|
|
@@ -2391,15 +2502,16 @@ export declare const filter: {
|
|
|
2391
2502
|
* })
|
|
2392
2503
|
* ```
|
|
2393
2504
|
*
|
|
2394
|
-
* @since 2.0.0
|
|
2395
2505
|
* @category combinators
|
|
2506
|
+
* @since 2.0.0
|
|
2396
2507
|
*/
|
|
2397
2508
|
export declare const reduce: {
|
|
2398
2509
|
/**
|
|
2399
2510
|
* Reduces the TxHashMap entries to a single value by applying a reducer function.
|
|
2400
2511
|
* Iterates over all key-value pairs and accumulates them into a final result.
|
|
2401
2512
|
*
|
|
2402
|
-
*
|
|
2513
|
+
* **Example** (Reducing entries)
|
|
2514
|
+
*
|
|
2403
2515
|
* ```ts
|
|
2404
2516
|
* import { Effect, TxHashMap } from "effect"
|
|
2405
2517
|
*
|
|
@@ -2446,15 +2558,16 @@ export declare const reduce: {
|
|
|
2446
2558
|
* })
|
|
2447
2559
|
* ```
|
|
2448
2560
|
*
|
|
2449
|
-
* @since 2.0.0
|
|
2450
2561
|
* @category combinators
|
|
2562
|
+
* @since 2.0.0
|
|
2451
2563
|
*/
|
|
2452
2564
|
<A, V, K>(zero: A, f: (accumulator: A, value: V, key: K) => A): (self: TxHashMap<K, V>) => Effect.Effect<A>;
|
|
2453
2565
|
/**
|
|
2454
2566
|
* Reduces the TxHashMap entries to a single value by applying a reducer function.
|
|
2455
2567
|
* Iterates over all key-value pairs and accumulates them into a final result.
|
|
2456
2568
|
*
|
|
2457
|
-
*
|
|
2569
|
+
* **Example** (Reducing entries)
|
|
2570
|
+
*
|
|
2458
2571
|
* ```ts
|
|
2459
2572
|
* import { Effect, TxHashMap } from "effect"
|
|
2460
2573
|
*
|
|
@@ -2501,8 +2614,8 @@ export declare const reduce: {
|
|
|
2501
2614
|
* })
|
|
2502
2615
|
* ```
|
|
2503
2616
|
*
|
|
2504
|
-
* @since 2.0.0
|
|
2505
2617
|
* @category combinators
|
|
2618
|
+
* @since 2.0.0
|
|
2506
2619
|
*/
|
|
2507
2620
|
<K, V, A>(self: TxHashMap<K, V>, zero: A, f: (accumulator: A, value: V, key: K) => A): Effect.Effect<A>;
|
|
2508
2621
|
};
|
|
@@ -2513,7 +2626,8 @@ export declare const reduce: {
|
|
|
2513
2626
|
* **Return behavior**: This function returns a new TxHashMap reference containing
|
|
2514
2627
|
* only the transformed entries that succeeded. The original TxHashMap is not modified.
|
|
2515
2628
|
*
|
|
2516
|
-
*
|
|
2629
|
+
* **Example** (Filtering and mapping entries)
|
|
2630
|
+
*
|
|
2517
2631
|
* ```ts
|
|
2518
2632
|
* import { Effect, Option, Result, TxHashMap } from "effect"
|
|
2519
2633
|
*
|
|
@@ -2560,8 +2674,8 @@ export declare const reduce: {
|
|
|
2560
2674
|
* })
|
|
2561
2675
|
* ```
|
|
2562
2676
|
*
|
|
2563
|
-
* @since 2.0.0
|
|
2564
2677
|
* @category combinators
|
|
2678
|
+
* @since 4.0.0
|
|
2565
2679
|
*/
|
|
2566
2680
|
export declare const filterMap: {
|
|
2567
2681
|
/**
|
|
@@ -2571,7 +2685,8 @@ export declare const filterMap: {
|
|
|
2571
2685
|
* **Return behavior**: This function returns a new TxHashMap reference containing
|
|
2572
2686
|
* only the transformed entries that succeeded. The original TxHashMap is not modified.
|
|
2573
2687
|
*
|
|
2574
|
-
*
|
|
2688
|
+
* **Example** (Filtering and mapping entries)
|
|
2689
|
+
*
|
|
2575
2690
|
* ```ts
|
|
2576
2691
|
* import { Effect, Option, Result, TxHashMap } from "effect"
|
|
2577
2692
|
*
|
|
@@ -2618,8 +2733,8 @@ export declare const filterMap: {
|
|
|
2618
2733
|
* })
|
|
2619
2734
|
* ```
|
|
2620
2735
|
*
|
|
2621
|
-
* @since 2.0.0
|
|
2622
2736
|
* @category combinators
|
|
2737
|
+
* @since 4.0.0
|
|
2623
2738
|
*/
|
|
2624
2739
|
<V, K, A, X>(f: (input: V, key: K) => Result<A, X>): (self: TxHashMap<K, V>) => Effect.Effect<TxHashMap<K, A>>;
|
|
2625
2740
|
/**
|
|
@@ -2629,7 +2744,8 @@ export declare const filterMap: {
|
|
|
2629
2744
|
* **Return behavior**: This function returns a new TxHashMap reference containing
|
|
2630
2745
|
* only the transformed entries that succeeded. The original TxHashMap is not modified.
|
|
2631
2746
|
*
|
|
2632
|
-
*
|
|
2747
|
+
* **Example** (Filtering and mapping entries)
|
|
2748
|
+
*
|
|
2633
2749
|
* ```ts
|
|
2634
2750
|
* import { Effect, Option, Result, TxHashMap } from "effect"
|
|
2635
2751
|
*
|
|
@@ -2676,24 +2792,26 @@ export declare const filterMap: {
|
|
|
2676
2792
|
* })
|
|
2677
2793
|
* ```
|
|
2678
2794
|
*
|
|
2679
|
-
* @since 2.0.0
|
|
2680
2795
|
* @category combinators
|
|
2796
|
+
* @since 4.0.0
|
|
2681
2797
|
*/
|
|
2682
2798
|
<K, V, A, X>(self: TxHashMap<K, V>, f: (input: V, key: K) => Result<A, X>): Effect.Effect<TxHashMap<K, A>>;
|
|
2683
2799
|
};
|
|
2684
2800
|
/**
|
|
2685
2801
|
* Checks if any entry in the TxHashMap matches the given predicate.
|
|
2686
2802
|
*
|
|
2687
|
-
*
|
|
2803
|
+
* **Example** (Checking entries with a predicate)
|
|
2804
|
+
*
|
|
2688
2805
|
* ```ts
|
|
2689
2806
|
* import { Effect, TxHashMap } from "effect"
|
|
2690
2807
|
*
|
|
2691
2808
|
* const program = Effect.gen(function*() {
|
|
2692
2809
|
* // Create a user status map
|
|
2810
|
+
* const currentTime = 1_700_000_000_000
|
|
2693
2811
|
* const userStatuses = yield* TxHashMap.make(
|
|
2694
|
-
* ["alice", { status: "online", lastSeen:
|
|
2695
|
-
* ["bob", { status: "offline", lastSeen:
|
|
2696
|
-
* ["charlie", { status: "online", lastSeen:
|
|
2812
|
+
* ["alice", { status: "online", lastSeen: currentTime }],
|
|
2813
|
+
* ["bob", { status: "offline", lastSeen: currentTime - 3_600_000 }],
|
|
2814
|
+
* ["charlie", { status: "online", lastSeen: currentTime }]
|
|
2697
2815
|
* )
|
|
2698
2816
|
*
|
|
2699
2817
|
* // Check if any users are online
|
|
@@ -2712,29 +2830,31 @@ export declare const filterMap: {
|
|
|
2712
2830
|
*
|
|
2713
2831
|
* // Data-last usage with pipe
|
|
2714
2832
|
* const hasRecentActivity = yield* userStatuses.pipe(
|
|
2715
|
-
* TxHashMap.hasBy((user) =>
|
|
2833
|
+
* TxHashMap.hasBy((user) => currentTime - user.lastSeen < 1_800_000) // 30 minutes
|
|
2716
2834
|
* )
|
|
2717
2835
|
* console.log(hasRecentActivity) // true
|
|
2718
2836
|
* })
|
|
2719
2837
|
* ```
|
|
2720
2838
|
*
|
|
2721
|
-
* @since 2.0.0
|
|
2722
2839
|
* @category combinators
|
|
2840
|
+
* @since 4.0.0
|
|
2723
2841
|
*/
|
|
2724
2842
|
export declare const hasBy: {
|
|
2725
2843
|
/**
|
|
2726
2844
|
* Checks if any entry in the TxHashMap matches the given predicate.
|
|
2727
2845
|
*
|
|
2728
|
-
*
|
|
2846
|
+
* **Example** (Checking entries with a predicate)
|
|
2847
|
+
*
|
|
2729
2848
|
* ```ts
|
|
2730
2849
|
* import { Effect, TxHashMap } from "effect"
|
|
2731
2850
|
*
|
|
2732
2851
|
* const program = Effect.gen(function*() {
|
|
2733
2852
|
* // Create a user status map
|
|
2853
|
+
* const currentTime = 1_700_000_000_000
|
|
2734
2854
|
* const userStatuses = yield* TxHashMap.make(
|
|
2735
|
-
* ["alice", { status: "online", lastSeen:
|
|
2736
|
-
* ["bob", { status: "offline", lastSeen:
|
|
2737
|
-
* ["charlie", { status: "online", lastSeen:
|
|
2855
|
+
* ["alice", { status: "online", lastSeen: currentTime }],
|
|
2856
|
+
* ["bob", { status: "offline", lastSeen: currentTime - 3_600_000 }],
|
|
2857
|
+
* ["charlie", { status: "online", lastSeen: currentTime }]
|
|
2738
2858
|
* )
|
|
2739
2859
|
*
|
|
2740
2860
|
* // Check if any users are online
|
|
@@ -2753,29 +2873,31 @@ export declare const hasBy: {
|
|
|
2753
2873
|
*
|
|
2754
2874
|
* // Data-last usage with pipe
|
|
2755
2875
|
* const hasRecentActivity = yield* userStatuses.pipe(
|
|
2756
|
-
* TxHashMap.hasBy((user) =>
|
|
2876
|
+
* TxHashMap.hasBy((user) => currentTime - user.lastSeen < 1_800_000) // 30 minutes
|
|
2757
2877
|
* )
|
|
2758
2878
|
* console.log(hasRecentActivity) // true
|
|
2759
2879
|
* })
|
|
2760
2880
|
* ```
|
|
2761
2881
|
*
|
|
2762
|
-
* @since 2.0.0
|
|
2763
2882
|
* @category combinators
|
|
2883
|
+
* @since 4.0.0
|
|
2764
2884
|
*/
|
|
2765
2885
|
<K, V>(predicate: (value: V, key: K) => boolean): (self: TxHashMap<K, V>) => Effect.Effect<boolean>;
|
|
2766
2886
|
/**
|
|
2767
2887
|
* Checks if any entry in the TxHashMap matches the given predicate.
|
|
2768
2888
|
*
|
|
2769
|
-
*
|
|
2889
|
+
* **Example** (Checking entries with a predicate)
|
|
2890
|
+
*
|
|
2770
2891
|
* ```ts
|
|
2771
2892
|
* import { Effect, TxHashMap } from "effect"
|
|
2772
2893
|
*
|
|
2773
2894
|
* const program = Effect.gen(function*() {
|
|
2774
2895
|
* // Create a user status map
|
|
2896
|
+
* const currentTime = 1_700_000_000_000
|
|
2775
2897
|
* const userStatuses = yield* TxHashMap.make(
|
|
2776
|
-
* ["alice", { status: "online", lastSeen:
|
|
2777
|
-
* ["bob", { status: "offline", lastSeen:
|
|
2778
|
-
* ["charlie", { status: "online", lastSeen:
|
|
2898
|
+
* ["alice", { status: "online", lastSeen: currentTime }],
|
|
2899
|
+
* ["bob", { status: "offline", lastSeen: currentTime - 3_600_000 }],
|
|
2900
|
+
* ["charlie", { status: "online", lastSeen: currentTime }]
|
|
2779
2901
|
* )
|
|
2780
2902
|
*
|
|
2781
2903
|
* // Check if any users are online
|
|
@@ -2794,14 +2916,14 @@ export declare const hasBy: {
|
|
|
2794
2916
|
*
|
|
2795
2917
|
* // Data-last usage with pipe
|
|
2796
2918
|
* const hasRecentActivity = yield* userStatuses.pipe(
|
|
2797
|
-
* TxHashMap.hasBy((user) =>
|
|
2919
|
+
* TxHashMap.hasBy((user) => currentTime - user.lastSeen < 1_800_000) // 30 minutes
|
|
2798
2920
|
* )
|
|
2799
2921
|
* console.log(hasRecentActivity) // true
|
|
2800
2922
|
* })
|
|
2801
2923
|
* ```
|
|
2802
2924
|
*
|
|
2803
|
-
* @since 2.0.0
|
|
2804
2925
|
* @category combinators
|
|
2926
|
+
* @since 4.0.0
|
|
2805
2927
|
*/
|
|
2806
2928
|
<K, V>(self: TxHashMap<K, V>, predicate: (value: V, key: K) => boolean): Effect.Effect<boolean>;
|
|
2807
2929
|
};
|
|
@@ -2809,7 +2931,8 @@ export declare const hasBy: {
|
|
|
2809
2931
|
* Finds the first entry in the TxHashMap that matches the given predicate.
|
|
2810
2932
|
* Returns the key-value pair as a tuple wrapped in an Option.
|
|
2811
2933
|
*
|
|
2812
|
-
*
|
|
2934
|
+
* **Example** (Finding the first matching entry)
|
|
2935
|
+
*
|
|
2813
2936
|
* ```ts
|
|
2814
2937
|
* import { Effect, TxHashMap } from "effect"
|
|
2815
2938
|
*
|
|
@@ -2844,15 +2967,16 @@ export declare const hasBy: {
|
|
|
2844
2967
|
* })
|
|
2845
2968
|
* ```
|
|
2846
2969
|
*
|
|
2847
|
-
* @since 2.0.0
|
|
2848
2970
|
* @category combinators
|
|
2971
|
+
* @since 4.0.0
|
|
2849
2972
|
*/
|
|
2850
2973
|
export declare const findFirst: {
|
|
2851
2974
|
/**
|
|
2852
2975
|
* Finds the first entry in the TxHashMap that matches the given predicate.
|
|
2853
2976
|
* Returns the key-value pair as a tuple wrapped in an Option.
|
|
2854
2977
|
*
|
|
2855
|
-
*
|
|
2978
|
+
* **Example** (Finding the first matching entry)
|
|
2979
|
+
*
|
|
2856
2980
|
* ```ts
|
|
2857
2981
|
* import { Effect, TxHashMap } from "effect"
|
|
2858
2982
|
*
|
|
@@ -2887,15 +3011,16 @@ export declare const findFirst: {
|
|
|
2887
3011
|
* })
|
|
2888
3012
|
* ```
|
|
2889
3013
|
*
|
|
2890
|
-
* @since 2.0.0
|
|
2891
3014
|
* @category combinators
|
|
3015
|
+
* @since 4.0.0
|
|
2892
3016
|
*/
|
|
2893
3017
|
<K, V>(predicate: (value: V, key: K) => boolean): (self: TxHashMap<K, V>) => Effect.Effect<Option.Option<[K, V]>>;
|
|
2894
3018
|
/**
|
|
2895
3019
|
* Finds the first entry in the TxHashMap that matches the given predicate.
|
|
2896
3020
|
* Returns the key-value pair as a tuple wrapped in an Option.
|
|
2897
3021
|
*
|
|
2898
|
-
*
|
|
3022
|
+
* **Example** (Finding the first matching entry)
|
|
3023
|
+
*
|
|
2899
3024
|
* ```ts
|
|
2900
3025
|
* import { Effect, TxHashMap } from "effect"
|
|
2901
3026
|
*
|
|
@@ -2930,15 +3055,16 @@ export declare const findFirst: {
|
|
|
2930
3055
|
* })
|
|
2931
3056
|
* ```
|
|
2932
3057
|
*
|
|
2933
|
-
* @since 2.0.0
|
|
2934
3058
|
* @category combinators
|
|
3059
|
+
* @since 4.0.0
|
|
2935
3060
|
*/
|
|
2936
3061
|
<K, V>(self: TxHashMap<K, V>, predicate: (value: V, key: K) => boolean): Effect.Effect<Option.Option<[K, V]>>;
|
|
2937
3062
|
};
|
|
2938
3063
|
/**
|
|
2939
3064
|
* Checks if at least one entry in the TxHashMap satisfies the given predicate.
|
|
2940
3065
|
*
|
|
2941
|
-
*
|
|
3066
|
+
* **Example** (Checking whether some entries match)
|
|
3067
|
+
*
|
|
2942
3068
|
* ```ts
|
|
2943
3069
|
* import { Effect, TxHashMap } from "effect"
|
|
2944
3070
|
*
|
|
@@ -2972,14 +3098,15 @@ export declare const findFirst: {
|
|
|
2972
3098
|
* })
|
|
2973
3099
|
* ```
|
|
2974
3100
|
*
|
|
2975
|
-
* @since 2.0.0
|
|
2976
3101
|
* @category combinators
|
|
3102
|
+
* @since 4.0.0
|
|
2977
3103
|
*/
|
|
2978
3104
|
export declare const some: {
|
|
2979
3105
|
/**
|
|
2980
3106
|
* Checks if at least one entry in the TxHashMap satisfies the given predicate.
|
|
2981
3107
|
*
|
|
2982
|
-
*
|
|
3108
|
+
* **Example** (Checking whether some entries match)
|
|
3109
|
+
*
|
|
2983
3110
|
* ```ts
|
|
2984
3111
|
* import { Effect, TxHashMap } from "effect"
|
|
2985
3112
|
*
|
|
@@ -3013,14 +3140,15 @@ export declare const some: {
|
|
|
3013
3140
|
* })
|
|
3014
3141
|
* ```
|
|
3015
3142
|
*
|
|
3016
|
-
* @since 2.0.0
|
|
3017
3143
|
* @category combinators
|
|
3144
|
+
* @since 4.0.0
|
|
3018
3145
|
*/
|
|
3019
3146
|
<K, V>(predicate: (value: V, key: K) => boolean): (self: TxHashMap<K, V>) => Effect.Effect<boolean>;
|
|
3020
3147
|
/**
|
|
3021
3148
|
* Checks if at least one entry in the TxHashMap satisfies the given predicate.
|
|
3022
3149
|
*
|
|
3023
|
-
*
|
|
3150
|
+
* **Example** (Checking whether some entries match)
|
|
3151
|
+
*
|
|
3024
3152
|
* ```ts
|
|
3025
3153
|
* import { Effect, TxHashMap } from "effect"
|
|
3026
3154
|
*
|
|
@@ -3054,15 +3182,16 @@ export declare const some: {
|
|
|
3054
3182
|
* })
|
|
3055
3183
|
* ```
|
|
3056
3184
|
*
|
|
3057
|
-
* @since 2.0.0
|
|
3058
3185
|
* @category combinators
|
|
3186
|
+
* @since 4.0.0
|
|
3059
3187
|
*/
|
|
3060
3188
|
<K, V>(self: TxHashMap<K, V>, predicate: (value: V, key: K) => boolean): Effect.Effect<boolean>;
|
|
3061
3189
|
};
|
|
3062
3190
|
/**
|
|
3063
3191
|
* Checks if all entries in the TxHashMap satisfy the given predicate.
|
|
3064
3192
|
*
|
|
3065
|
-
*
|
|
3193
|
+
* **Example** (Checking whether every entry matches)
|
|
3194
|
+
*
|
|
3066
3195
|
* ```ts
|
|
3067
3196
|
* import { Effect, TxHashMap } from "effect"
|
|
3068
3197
|
*
|
|
@@ -3096,14 +3225,15 @@ export declare const some: {
|
|
|
3096
3225
|
* })
|
|
3097
3226
|
* ```
|
|
3098
3227
|
*
|
|
3099
|
-
* @since 2.0.0
|
|
3100
3228
|
* @category combinators
|
|
3229
|
+
* @since 4.0.0
|
|
3101
3230
|
*/
|
|
3102
3231
|
export declare const every: {
|
|
3103
3232
|
/**
|
|
3104
3233
|
* Checks if all entries in the TxHashMap satisfy the given predicate.
|
|
3105
3234
|
*
|
|
3106
|
-
*
|
|
3235
|
+
* **Example** (Checking whether every entry matches)
|
|
3236
|
+
*
|
|
3107
3237
|
* ```ts
|
|
3108
3238
|
* import { Effect, TxHashMap } from "effect"
|
|
3109
3239
|
*
|
|
@@ -3137,14 +3267,15 @@ export declare const every: {
|
|
|
3137
3267
|
* })
|
|
3138
3268
|
* ```
|
|
3139
3269
|
*
|
|
3140
|
-
* @since 2.0.0
|
|
3141
3270
|
* @category combinators
|
|
3271
|
+
* @since 4.0.0
|
|
3142
3272
|
*/
|
|
3143
3273
|
<K, V>(predicate: (value: V, key: K) => boolean): (self: TxHashMap<K, V>) => Effect.Effect<boolean>;
|
|
3144
3274
|
/**
|
|
3145
3275
|
* Checks if all entries in the TxHashMap satisfy the given predicate.
|
|
3146
3276
|
*
|
|
3147
|
-
*
|
|
3277
|
+
* **Example** (Checking whether every entry matches)
|
|
3278
|
+
*
|
|
3148
3279
|
* ```ts
|
|
3149
3280
|
* import { Effect, TxHashMap } from "effect"
|
|
3150
3281
|
*
|
|
@@ -3178,8 +3309,8 @@ export declare const every: {
|
|
|
3178
3309
|
* })
|
|
3179
3310
|
* ```
|
|
3180
3311
|
*
|
|
3181
|
-
* @since 2.0.0
|
|
3182
3312
|
* @category combinators
|
|
3313
|
+
* @since 4.0.0
|
|
3183
3314
|
*/
|
|
3184
3315
|
<K, V>(self: TxHashMap<K, V>, predicate: (value: V, key: K) => boolean): Effect.Effect<boolean>;
|
|
3185
3316
|
};
|
|
@@ -3187,7 +3318,8 @@ export declare const every: {
|
|
|
3187
3318
|
* Executes a side-effect function for each entry in the TxHashMap.
|
|
3188
3319
|
* The function receives the value and key as parameters and can perform effects.
|
|
3189
3320
|
*
|
|
3190
|
-
*
|
|
3321
|
+
* **Example** (Running effects for each entry)
|
|
3322
|
+
*
|
|
3191
3323
|
* ```ts
|
|
3192
3324
|
* import { Console, Effect, TxHashMap } from "effect"
|
|
3193
3325
|
*
|
|
@@ -3221,15 +3353,16 @@ export declare const every: {
|
|
|
3221
3353
|
* })
|
|
3222
3354
|
* ```
|
|
3223
3355
|
*
|
|
3224
|
-
* @since 2.0.0
|
|
3225
3356
|
* @category combinators
|
|
3357
|
+
* @since 2.0.0
|
|
3226
3358
|
*/
|
|
3227
3359
|
export declare const forEach: {
|
|
3228
3360
|
/**
|
|
3229
3361
|
* Executes a side-effect function for each entry in the TxHashMap.
|
|
3230
3362
|
* The function receives the value and key as parameters and can perform effects.
|
|
3231
3363
|
*
|
|
3232
|
-
*
|
|
3364
|
+
* **Example** (Running effects for each entry)
|
|
3365
|
+
*
|
|
3233
3366
|
* ```ts
|
|
3234
3367
|
* import { Console, Effect, TxHashMap } from "effect"
|
|
3235
3368
|
*
|
|
@@ -3263,15 +3396,16 @@ export declare const forEach: {
|
|
|
3263
3396
|
* })
|
|
3264
3397
|
* ```
|
|
3265
3398
|
*
|
|
3266
|
-
* @since 2.0.0
|
|
3267
3399
|
* @category combinators
|
|
3400
|
+
* @since 2.0.0
|
|
3268
3401
|
*/
|
|
3269
3402
|
<V, K, R, E>(f: (value: V, key: K) => Effect.Effect<void, E, R>): (self: TxHashMap<K, V>) => Effect.Effect<void, E, R>;
|
|
3270
3403
|
/**
|
|
3271
3404
|
* Executes a side-effect function for each entry in the TxHashMap.
|
|
3272
3405
|
* The function receives the value and key as parameters and can perform effects.
|
|
3273
3406
|
*
|
|
3274
|
-
*
|
|
3407
|
+
* **Example** (Running effects for each entry)
|
|
3408
|
+
*
|
|
3275
3409
|
* ```ts
|
|
3276
3410
|
* import { Console, Effect, TxHashMap } from "effect"
|
|
3277
3411
|
*
|
|
@@ -3305,19 +3439,19 @@ export declare const forEach: {
|
|
|
3305
3439
|
* })
|
|
3306
3440
|
* ```
|
|
3307
3441
|
*
|
|
3308
|
-
* @since 2.0.0
|
|
3309
3442
|
* @category combinators
|
|
3443
|
+
* @since 2.0.0
|
|
3310
3444
|
*/
|
|
3311
3445
|
<K, V, R, E>(self: TxHashMap<K, V>, f: (value: V, key: K) => Effect.Effect<void, E, R>): Effect.Effect<void, E, R>;
|
|
3312
3446
|
};
|
|
3313
3447
|
/**
|
|
3314
|
-
*
|
|
3315
|
-
* then flattening the results. Useful for complex transformations that require creating new maps.
|
|
3448
|
+
* Effectfully maps each entry to a `TxHashMap` and flattens the produced maps.
|
|
3316
3449
|
*
|
|
3317
3450
|
* **Return behavior**: This function returns a new TxHashMap reference with the
|
|
3318
3451
|
* flattened results. The original TxHashMap is not modified.
|
|
3319
3452
|
*
|
|
3320
|
-
*
|
|
3453
|
+
* **Example** (Flat mapping entries)
|
|
3454
|
+
*
|
|
3321
3455
|
* ```ts
|
|
3322
3456
|
* import { Effect, TxHashMap } from "effect"
|
|
3323
3457
|
*
|
|
@@ -3358,18 +3492,18 @@ export declare const forEach: {
|
|
|
3358
3492
|
* })
|
|
3359
3493
|
* ```
|
|
3360
3494
|
*
|
|
3361
|
-
* @since 2.0.0
|
|
3362
3495
|
* @category combinators
|
|
3496
|
+
* @since 4.0.0
|
|
3363
3497
|
*/
|
|
3364
3498
|
export declare const flatMap: {
|
|
3365
3499
|
/**
|
|
3366
|
-
*
|
|
3367
|
-
* then flattening the results. Useful for complex transformations that require creating new maps.
|
|
3500
|
+
* Effectfully maps each entry to a `TxHashMap` and flattens the produced maps.
|
|
3368
3501
|
*
|
|
3369
3502
|
* **Return behavior**: This function returns a new TxHashMap reference with the
|
|
3370
3503
|
* flattened results. The original TxHashMap is not modified.
|
|
3371
3504
|
*
|
|
3372
|
-
*
|
|
3505
|
+
* **Example** (Flat mapping entries)
|
|
3506
|
+
*
|
|
3373
3507
|
* ```ts
|
|
3374
3508
|
* import { Effect, TxHashMap } from "effect"
|
|
3375
3509
|
*
|
|
@@ -3410,18 +3544,18 @@ export declare const flatMap: {
|
|
|
3410
3544
|
* })
|
|
3411
3545
|
* ```
|
|
3412
3546
|
*
|
|
3413
|
-
* @since 2.0.0
|
|
3414
3547
|
* @category combinators
|
|
3548
|
+
* @since 4.0.0
|
|
3415
3549
|
*/
|
|
3416
3550
|
<A, V, K>(f: (value: V, key: K) => Effect.Effect<TxHashMap<K, A>>): (self: TxHashMap<K, V>) => Effect.Effect<TxHashMap<K, A>>;
|
|
3417
3551
|
/**
|
|
3418
|
-
*
|
|
3419
|
-
* then flattening the results. Useful for complex transformations that require creating new maps.
|
|
3552
|
+
* Effectfully maps each entry to a `TxHashMap` and flattens the produced maps.
|
|
3420
3553
|
*
|
|
3421
3554
|
* **Return behavior**: This function returns a new TxHashMap reference with the
|
|
3422
3555
|
* flattened results. The original TxHashMap is not modified.
|
|
3423
3556
|
*
|
|
3424
|
-
*
|
|
3557
|
+
* **Example** (Flat mapping entries)
|
|
3558
|
+
*
|
|
3425
3559
|
* ```ts
|
|
3426
3560
|
* import { Effect, TxHashMap } from "effect"
|
|
3427
3561
|
*
|
|
@@ -3462,8 +3596,8 @@ export declare const flatMap: {
|
|
|
3462
3596
|
* })
|
|
3463
3597
|
* ```
|
|
3464
3598
|
*
|
|
3465
|
-
* @since 2.0.0
|
|
3466
3599
|
* @category combinators
|
|
3600
|
+
* @since 4.0.0
|
|
3467
3601
|
*/
|
|
3468
3602
|
<K, V, A>(self: TxHashMap<K, V>, f: (value: V, key: K) => Effect.Effect<TxHashMap<K, A>>): Effect.Effect<TxHashMap<K, A>>;
|
|
3469
3603
|
};
|
|
@@ -3473,7 +3607,8 @@ export declare const flatMap: {
|
|
|
3473
3607
|
* **Return behavior**: This function returns a new TxHashMap reference with only
|
|
3474
3608
|
* the Some values unwrapped. The original TxHashMap is not modified.
|
|
3475
3609
|
*
|
|
3476
|
-
*
|
|
3610
|
+
* **Example** (Compacting optional values)
|
|
3611
|
+
*
|
|
3477
3612
|
* ```ts
|
|
3478
3613
|
* import { Effect, Option, TxHashMap } from "effect"
|
|
3479
3614
|
*
|
|
@@ -3505,19 +3640,21 @@ export declare const flatMap: {
|
|
|
3505
3640
|
* // Useful for cleaning up optional data processing results
|
|
3506
3641
|
* const userAges = yield* TxHashMap.map(validUsers, (user) => user.age)
|
|
3507
3642
|
* const ageEntries = yield* TxHashMap.entries(userAges)
|
|
3508
|
-
*
|
|
3643
|
+
* const sortedAgeEntries = ageEntries.toSorted(([left], [right]) => left.localeCompare(right))
|
|
3644
|
+
* console.log(sortedAgeEntries) // [["alice", 30], ["charlie", 25], ["eve", 28]]
|
|
3509
3645
|
* })
|
|
3510
3646
|
* ```
|
|
3511
3647
|
*
|
|
3512
|
-
* @since 2.0.0
|
|
3513
3648
|
* @category combinators
|
|
3649
|
+
* @since 4.0.0
|
|
3514
3650
|
*/
|
|
3515
3651
|
export declare const compact: <K, A>(self: TxHashMap<K, Option.Option<A>>) => Effect.Effect<TxHashMap<K, A>>;
|
|
3516
3652
|
/**
|
|
3517
3653
|
* Returns an array of all key-value pairs in the TxHashMap.
|
|
3518
3654
|
* This is an alias for the `entries` function, providing API consistency with HashMap.
|
|
3519
3655
|
*
|
|
3520
|
-
*
|
|
3656
|
+
* **Example** (Converting to entries)
|
|
3657
|
+
*
|
|
3521
3658
|
* ```ts
|
|
3522
3659
|
* import { Effect, TxHashMap } from "effect"
|
|
3523
3660
|
*
|
|
@@ -3530,29 +3667,32 @@ export declare const compact: <K, A>(self: TxHashMap<K, Option.Option<A>>) => Ef
|
|
|
3530
3667
|
*
|
|
3531
3668
|
* // Get all entries as an array
|
|
3532
3669
|
* const allEntries = yield* TxHashMap.toEntries(settings)
|
|
3533
|
-
*
|
|
3534
|
-
*
|
|
3670
|
+
* const sortedEntries = allEntries.toSorted(([left], [right]) => left.localeCompare(right))
|
|
3671
|
+
* console.log(sortedEntries)
|
|
3672
|
+
* // [["language", "en-US"], ["theme", "dark"], ["timezone", "UTC"]]
|
|
3535
3673
|
*
|
|
3536
3674
|
* // Process entries
|
|
3537
|
-
* for (const [setting, value] of
|
|
3675
|
+
* for (const [setting, value] of sortedEntries) {
|
|
3538
3676
|
* console.log(`${setting}: ${value}`)
|
|
3539
3677
|
* }
|
|
3540
3678
|
*
|
|
3541
3679
|
* // Convert to object for JSON serialization
|
|
3542
|
-
* const settingsObj = Object.fromEntries(
|
|
3680
|
+
* const settingsObj = Object.fromEntries(sortedEntries)
|
|
3543
3681
|
* console.log(JSON.stringify(settingsObj))
|
|
3682
|
+
* // {"language":"en-US","theme":"dark","timezone":"UTC"}
|
|
3544
3683
|
* })
|
|
3545
3684
|
* ```
|
|
3546
3685
|
*
|
|
3547
|
-
* @since 2.0.0
|
|
3548
3686
|
* @category combinators
|
|
3687
|
+
* @since 4.0.0
|
|
3549
3688
|
*/
|
|
3550
3689
|
export declare const toEntries: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Array<readonly [K, V]>>;
|
|
3551
3690
|
/**
|
|
3552
3691
|
* Returns an array of all values in the TxHashMap.
|
|
3553
3692
|
* This is an alias for the `values` function, providing API consistency with HashMap.
|
|
3554
3693
|
*
|
|
3555
|
-
*
|
|
3694
|
+
* **Example** (Converting to values)
|
|
3695
|
+
*
|
|
3556
3696
|
* ```ts
|
|
3557
3697
|
* import { Effect, TxHashMap } from "effect"
|
|
3558
3698
|
*
|
|
@@ -3565,24 +3705,23 @@ export declare const toEntries: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<A
|
|
|
3565
3705
|
*
|
|
3566
3706
|
* // Get all product information
|
|
3567
3707
|
* const products = yield* TxHashMap.toValues(inventory)
|
|
3568
|
-
* console.log(products)
|
|
3569
|
-
* // [{ price: 999, stock: 5 }, { price: 29, stock: 50 }, { price: 79, stock: 20 }]
|
|
3708
|
+
* console.log(products.length) // 3
|
|
3570
3709
|
*
|
|
3571
3710
|
* // Calculate total inventory value
|
|
3572
3711
|
* const totalValue = products.reduce(
|
|
3573
3712
|
* (sum, product) => sum + (product.price * product.stock),
|
|
3574
3713
|
* 0
|
|
3575
3714
|
* )
|
|
3576
|
-
* console.log(`Total inventory value: $${totalValue}`) // $
|
|
3715
|
+
* console.log(`Total inventory value: $${totalValue}`) // Total inventory value: $8025
|
|
3577
3716
|
*
|
|
3578
3717
|
* // Find products with low stock
|
|
3579
3718
|
* const lowStockProducts = products.filter((product) => product.stock < 10)
|
|
3580
|
-
* console.log(`${lowStockProducts.length}
|
|
3719
|
+
* console.log(`${lowStockProducts.length} product with low stock`) // 1 product with low stock
|
|
3581
3720
|
* })
|
|
3582
3721
|
* ```
|
|
3583
3722
|
*
|
|
3584
|
-
* @since 2.0.0
|
|
3585
3723
|
* @category combinators
|
|
3724
|
+
* @since 4.0.0
|
|
3586
3725
|
*/
|
|
3587
3726
|
export declare const toValues: <K, V>(self: TxHashMap<K, V>) => Effect.Effect<Array<V>>;
|
|
3588
3727
|
export {};
|