effect 4.0.0-beta.102 → 4.0.0-beta.104
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 +971 -1037
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +381 -407
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +433 -756
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +200 -325
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +207 -267
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +107 -135
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +146 -188
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +64 -84
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +405 -254
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +167 -102
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +167 -277
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +122 -176
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +730 -769
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +514 -440
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +1 -1
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +834 -1173
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +326 -439
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +180 -49
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +96 -31
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +20 -33
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +18 -30
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +225 -173
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +357 -265
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +194 -68
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +117 -81
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +233 -33
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +232 -32
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +153 -276
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +171 -214
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +68 -77
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +57 -66
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +13 -15
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +22 -15
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +60 -80
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +16 -23
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +562 -660
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +307 -362
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +253 -256
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +104 -96
- package/dist/Deferred.js.map +1 -1
- package/dist/Duration.d.ts +216 -308
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +144 -187
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +2993 -3281
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +1360 -1546
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +22 -40
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +22 -40
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +33 -37
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +39 -23
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +103 -105
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +77 -79
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +51 -27
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +50 -26
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +86 -55
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +8 -29
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +116 -192
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +82 -130
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +82 -146
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +48 -87
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +152 -105
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +106 -73
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +213 -168
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +114 -89
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +123 -81
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +86 -60
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +154 -265
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +42 -147
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +61 -33
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +26 -15
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +25 -33
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +48 -49
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +80 -148
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +45 -62
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +360 -714
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +168 -297
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +12 -6
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +47 -83
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +46 -68
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +319 -411
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +122 -166
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +1 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +177 -284
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +68 -109
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +12 -12
- package/dist/Inspectable.js +8 -8
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +620 -786
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +239 -316
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +11 -13
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +44 -102
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +8 -8
- package/dist/JsonPointer.js +8 -8
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +98 -44
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +297 -234
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +23 -35
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +16 -28
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +359 -260
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +202 -180
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +42 -29
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +31 -21
- package/dist/LayerMap.js.map +1 -1
- package/dist/LayerRef.d.ts +6 -2
- package/dist/LayerRef.d.ts.map +1 -1
- package/dist/LayerRef.js +6 -2
- package/dist/LayerRef.js.map +1 -1
- package/dist/LogLevel.d.ts +114 -214
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +41 -76
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +218 -467
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +204 -450
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +7 -5
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +7 -5
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +217 -252
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +150 -183
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +442 -993
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +198 -642
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +144 -173
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +68 -79
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +84 -89
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +44 -47
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +71 -370
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +59 -284
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +420 -243
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +209 -120
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +21 -14
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +15 -13
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +7 -137
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +5 -93
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +196 -233
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +90 -109
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +97 -189
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +187 -290
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +447 -812
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +211 -392
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +109 -109
- package/dist/Order.js +91 -91
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +20 -23
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +8 -9
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +38 -41
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +3 -4
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +6 -5
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +2 -2
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +4 -4
- package/dist/PlatformError.js +3 -3
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +4 -2
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +4 -2
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +200 -181
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +100 -108
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +7 -7
- package/dist/PrimaryKey.js +5 -5
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +425 -494
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +373 -362
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +24 -18
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +11 -9
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +200 -159
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +162 -132
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +49 -74
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +35 -54
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +121 -63
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +42 -21
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +24 -13
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +15 -9
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +291 -488
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +111 -202
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +6 -2
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +7 -2
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +25 -25
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +19 -20
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +8 -15
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +6 -12
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +95 -165
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +75 -122
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +102 -168
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +102 -168
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +10 -14
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +10 -14
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +31 -21
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +16 -13
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +201 -90
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +87 -41
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +302 -470
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +133 -217
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +50 -75
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +39 -60
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +292 -1638
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +164 -805
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +5 -5
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +18 -6
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +676 -674
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +513 -544
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +30 -53
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +404 -301
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaError.d.ts +7 -6
- package/dist/SchemaError.d.ts.map +1 -1
- package/dist/SchemaError.js +7 -6
- package/dist/SchemaError.js.map +1 -1
- package/dist/SchemaGetter.d.ts +217 -174
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +218 -185
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +62 -190
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +73 -265
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +2 -2
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +137 -107
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +22 -36
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +20 -26
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +114 -74
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +120 -85
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Scope.d.ts +123 -151
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +72 -92
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.js +1 -1
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +3 -3
- package/dist/ScopedRef.js +2 -2
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +96 -10
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +78 -39
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +118 -108
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +107 -100
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +1 -1
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +2442 -2953
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +1105 -1383
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +262 -308
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +184 -215
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +109 -114
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +41 -50
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +282 -250
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +104 -92
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +3 -3
- package/dist/Symbol.js +3 -3
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.js +1 -1
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +2 -2
- package/dist/Terminal.js +2 -2
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +100 -54
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +41 -24
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +287 -679
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +109 -251
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +98 -131
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +42 -57
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +201 -121
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +85 -56
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +62 -46
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +30 -22
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +631 -779
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +268 -330
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +297 -236
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +130 -100
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +126 -95
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +74 -56
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +101 -88
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +87 -66
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +200 -180
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +160 -136
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +89 -114
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +75 -53
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +51 -32
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +23 -15
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +129 -95
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +85 -70
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +97 -70
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +44 -34
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +126 -67
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +45 -65
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +6 -9
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +23 -16
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +3 -7
- package/dist/Utils.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/array.js.map +1 -1
- package/dist/internal/core.js +1 -1
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/dateTime.js +5 -1
- package/dist/internal/dateTime.js.map +1 -1
- package/dist/internal/doNotation.js.map +1 -1
- package/dist/internal/effect.js +77 -40
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/equal.js.map +1 -1
- package/dist/internal/errors.js.map +1 -1
- package/dist/internal/executionPlan.js +51 -3
- package/dist/internal/executionPlan.js.map +1 -1
- package/dist/internal/hashMap.js +12 -8
- package/dist/internal/hashMap.js.map +1 -1
- package/dist/internal/hashSet.js.map +1 -1
- package/dist/internal/layer.js.map +1 -1
- package/dist/internal/matcher.js +1 -1
- package/dist/internal/matcher.js.map +1 -1
- package/dist/internal/metric.js.map +1 -1
- package/dist/internal/option.js.map +1 -1
- package/dist/internal/persistence.d.ts +2 -0
- package/dist/internal/persistence.d.ts.map +1 -0
- package/dist/internal/persistence.js +3 -0
- package/dist/internal/persistence.js.map +1 -0
- package/dist/internal/random.js.map +1 -1
- package/dist/internal/rcRef.js.map +1 -1
- package/dist/internal/record.js.map +1 -1
- package/dist/internal/redacted.js.map +1 -1
- package/dist/internal/references.js +3 -0
- package/dist/internal/references.js.map +1 -1
- package/dist/internal/request.js.map +1 -1
- package/dist/internal/result.js.map +1 -1
- package/dist/internal/schedule.js.map +1 -1
- package/dist/internal/schema/annotations.js +2 -0
- package/dist/internal/schema/annotations.js.map +1 -1
- package/dist/internal/schema/cause.js.map +1 -1
- package/dist/internal/schema/fromJsonSchemaDocument.js +13 -11
- package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/fromRepresentation.js +8 -15
- package/dist/internal/schema/fromRepresentation.js.map +1 -1
- package/dist/internal/schema/parser.d.ts +14 -0
- package/dist/internal/schema/parser.d.ts.map +1 -0
- package/dist/internal/schema/parser.js +13 -0
- package/dist/internal/schema/parser.js.map +1 -0
- package/dist/internal/schema/schema.js.map +1 -1
- package/dist/internal/schema/toArbitrary.js +1 -1
- package/dist/internal/schema/toArbitrary.js.map +1 -1
- package/dist/internal/schema/toCodeDocument.js.map +1 -1
- package/dist/internal/schema/toEquivalence.js.map +1 -1
- package/dist/internal/schema/toJsonSchemaDocument.js +48 -6
- package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/toRepresentation.js +87 -107
- package/dist/internal/schema/toRepresentation.js.map +1 -1
- package/dist/internal/stackTraceLimit.js.map +1 -1
- package/dist/internal/stream.js.map +1 -1
- package/dist/internal/tracer.js.map +1 -1
- package/dist/internal/trie.js +24 -10
- package/dist/internal/trie.js.map +1 -1
- package/dist/testing/FastCheck.d.ts +8 -7
- package/dist/testing/FastCheck.d.ts.map +1 -1
- package/dist/testing/FastCheck.js +8 -7
- package/dist/testing/FastCheck.js.map +1 -1
- package/dist/testing/TestClock.d.ts +57 -28
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +61 -19
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +32 -31
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +24 -22
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +30 -30
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +25 -25
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +95 -118
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +113 -136
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +132 -97
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +56 -52
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +32 -28
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +26 -21
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +107 -67
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +108 -66
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpProtocol.d.ts +30 -0
- package/dist/unstable/ai/McpProtocol.d.ts.map +1 -0
- package/dist/unstable/ai/McpProtocol.js +20 -0
- package/dist/unstable/ai/McpProtocol.js.map +1 -0
- package/dist/unstable/ai/McpSchema.d.ts +251 -185
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +66 -58
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +68 -59
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +695 -242
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +8 -19
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +9 -20
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +127 -41
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +59 -20
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +28 -14
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +9 -4
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +46 -13
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +18 -7
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +14 -3
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +10 -2
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +59 -44
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +48 -39
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +26 -8
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +18 -4
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +4 -0
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +4 -0
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/ai/internal/codec-transformer.js.map +1 -1
- package/dist/unstable/ai/internal/mcpProtocol.d.ts +21 -0
- package/dist/unstable/ai/internal/mcpProtocol.d.ts.map +1 -0
- package/dist/unstable/ai/internal/mcpProtocol.js +22 -0
- package/dist/unstable/ai/internal/mcpProtocol.js.map +1 -0
- package/dist/unstable/ai/internal/mcpProtocolRegistry.d.ts +2 -0
- package/dist/unstable/ai/internal/mcpProtocolRegistry.d.ts.map +1 -0
- package/dist/unstable/ai/internal/mcpProtocolRegistry.js +32 -0
- package/dist/unstable/ai/internal/mcpProtocolRegistry.js.map +1 -0
- package/dist/unstable/ai/internal/structured-output.js +14 -15
- package/dist/unstable/ai/internal/structured-output.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +273 -69
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +111 -33
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliConfig.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +70 -77
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +66 -70
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts +35 -54
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +26 -42
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +713 -115
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +245 -47
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +418 -138
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +197 -71
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +1 -1
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +12 -4
- package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
- package/dist/unstable/cli/Param.d.ts +299 -83
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +143 -57
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +370 -149
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +375 -160
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +23 -14
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +54 -31
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/index.js.map +1 -1
- package/dist/unstable/cli/internal/ansi.js +2 -2
- package/dist/unstable/cli/internal/ansi.js.map +1 -1
- package/dist/unstable/cli/internal/auto-suggest.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +2 -2
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +10 -9
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/bash.js +69 -9
- package/dist/unstable/cli/internal/completions/bash.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +24 -18
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/completions/fish.js +5 -5
- package/dist/unstable/cli/internal/completions/fish.js.map +1 -1
- package/dist/unstable/cli/internal/completions/zsh.js.map +1 -1
- package/dist/unstable/cli/internal/config.js.map +1 -1
- package/dist/unstable/cli/internal/help.d.ts.map +1 -1
- package/dist/unstable/cli/internal/help.js +4 -2
- package/dist/unstable/cli/internal/help.js.map +1 -1
- package/dist/unstable/cli/internal/lexer.js +17 -7
- package/dist/unstable/cli/internal/lexer.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +5 -5
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cli/internal/wizard.js +2 -2
- package/dist/unstable/cli/internal/wizard.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterError.js +7 -7
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -8
- package/dist/unstable/cluster/ClusterSchema.js +8 -8
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +6 -2
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +10 -10
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +8 -8
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +4 -2
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +4 -2
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +2 -2
- package/dist/unstable/cluster/EntityResource.js +2 -2
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +3 -3
- package/dist/unstable/cluster/Envelope.js +3 -3
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +6 -4
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +9 -9
- package/dist/unstable/cluster/Message.js +6 -6
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +15 -15
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +13 -6
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +8 -0
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +16 -4
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +1 -1
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +2 -1
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +18 -16
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +3 -4
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +8 -7
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +6 -6
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +19 -10
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +25 -6
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +3 -3
- package/dist/unstable/cluster/ShardingConfig.js +3 -3
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +8 -8
- package/dist/unstable/cluster/Snowflake.js +8 -8
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +20 -5
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/index.js.map +1 -1
- package/dist/unstable/cluster/internal/entityManager.js +6 -6
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/cluster/internal/entityReaper.js.map +1 -1
- package/dist/unstable/cluster/internal/hash.js.map +1 -1
- package/dist/unstable/cluster/internal/interruptors.js.map +1 -1
- package/dist/unstable/cluster/internal/resourceMap.js +2 -2
- package/dist/unstable/cluster/internal/resourceMap.js.map +1 -1
- package/dist/unstable/cluster/internal/resourceRef.js +17 -0
- package/dist/unstable/cluster/internal/resourceRef.js.map +1 -1
- package/dist/unstable/cluster/internal/shardLock.js.map +1 -1
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +7 -2
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/devtools/index.js.map +1 -1
- package/dist/unstable/encoding/Ini.d.ts +20 -0
- package/dist/unstable/encoding/Ini.d.ts.map +1 -0
- package/dist/unstable/encoding/Ini.js +153 -0
- package/dist/unstable/encoding/Ini.js.map +1 -0
- package/dist/unstable/encoding/Msgpack.d.ts +2 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +27 -15
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +7 -1
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +72 -8
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +72 -31
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/encoding/Toml.d.ts +19 -0
- package/dist/unstable/encoding/Toml.d.ts.map +1 -0
- package/dist/unstable/encoding/Toml.js +434 -0
- package/dist/unstable/encoding/Toml.js.map +1 -0
- package/dist/unstable/encoding/Yaml.d.ts +19 -0
- package/dist/unstable/encoding/Yaml.d.ts.map +1 -0
- package/dist/unstable/encoding/Yaml.js +461 -0
- package/dist/unstable/encoding/Yaml.js.map +1 -0
- package/dist/unstable/encoding/index.d.ts +12 -0
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +12 -0
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +20 -20
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +4 -4
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +16 -16
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +26 -18
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +3 -3
- package/dist/unstable/eventlog/EventLog.js +3 -3
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +2 -2
- package/dist/unstable/eventlog/EventLogMessage.js +2 -2
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +15 -15
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +11 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +45 -21
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +4 -4
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +13 -5
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +5 -5
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +15 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +1 -4
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/index.js.map +1 -1
- package/dist/unstable/eventlog/internal/identityRootSecretDerivation.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +2 -2
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +30 -18
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/FindMyWay/internal/queryString.d.ts +11 -0
- package/dist/unstable/http/FindMyWay/internal/queryString.d.ts.map +1 -0
- package/dist/unstable/http/FindMyWay/internal/queryString.js +259 -0
- package/dist/unstable/http/FindMyWay/internal/queryString.js.map +1 -0
- package/dist/unstable/http/FindMyWay/internal/router.d.ts +2 -0
- package/dist/unstable/http/FindMyWay/internal/router.d.ts.map +1 -0
- package/dist/unstable/http/FindMyWay/internal/router.js +665 -0
- package/dist/unstable/http/FindMyWay/internal/router.js.map +1 -0
- package/dist/unstable/http/FindMyWay.d.ts +33 -8
- package/dist/unstable/http/FindMyWay.d.ts.map +1 -1
- package/dist/unstable/http/FindMyWay.js +4 -7
- package/dist/unstable/http/FindMyWay.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +2 -2
- package/dist/unstable/http/Headers.js +2 -2
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +5 -3
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +11 -5
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +51 -44
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +46 -17
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.js +1 -1
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +2 -12
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +4 -4
- package/dist/unstable/http/HttpClientResponse.js +3 -18
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +6 -6
- package/dist/unstable/http/HttpEffect.js +3 -3
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +6 -9
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +6 -9
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +75 -9
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +164 -39
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +76 -0
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +53 -3
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +88 -89
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +78 -79
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +13 -13
- package/dist/unstable/http/HttpServer.js +6 -6
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +2 -2
- package/dist/unstable/http/HttpServerError.js +2 -2
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +4 -4
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +11 -10
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +22 -0
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +17 -5
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +35 -7
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +35 -7
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +7 -7
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +14 -7
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/MultipartParser/HeadersParser.d.ts +53 -0
- package/dist/unstable/http/MultipartParser/HeadersParser.d.ts.map +1 -0
- package/dist/unstable/http/MultipartParser/HeadersParser.js +14 -0
- package/dist/unstable/http/MultipartParser/HeadersParser.js.map +1 -0
- package/dist/unstable/http/MultipartParser/Search.d.ts +11 -0
- package/dist/unstable/http/MultipartParser/Search.d.ts.map +1 -0
- package/dist/unstable/http/MultipartParser/Search.js +14 -0
- package/dist/unstable/http/MultipartParser/Search.js.map +1 -0
- package/dist/unstable/http/MultipartParser/internal/contentType.d.ts +5 -0
- package/dist/unstable/http/MultipartParser/internal/contentType.d.ts.map +1 -0
- package/dist/unstable/http/MultipartParser/internal/contentType.js +82 -0
- package/dist/unstable/http/MultipartParser/internal/contentType.js.map +1 -0
- package/dist/unstable/http/MultipartParser/internal/headers.d.ts +3 -0
- package/dist/unstable/http/MultipartParser/internal/headers.d.ts.map +1 -0
- package/dist/unstable/http/MultipartParser/internal/headers.js +194 -0
- package/dist/unstable/http/MultipartParser/internal/headers.js.map +1 -0
- package/dist/unstable/http/MultipartParser/internal/multipart.d.ts +8 -0
- package/dist/unstable/http/MultipartParser/internal/multipart.d.ts.map +1 -0
- package/dist/unstable/http/MultipartParser/internal/multipart.js +226 -0
- package/dist/unstable/http/MultipartParser/internal/multipart.js.map +1 -0
- package/dist/unstable/http/MultipartParser/internal/search.d.ts +5 -0
- package/dist/unstable/http/MultipartParser/internal/search.d.ts.map +1 -0
- package/dist/unstable/http/MultipartParser/internal/search.js +120 -0
- package/dist/unstable/http/MultipartParser/internal/search.js.map +1 -0
- package/dist/unstable/http/MultipartParser.d.ts +98 -0
- package/dist/unstable/http/MultipartParser.d.ts.map +1 -0
- package/dist/unstable/http/MultipartParser.js +23 -0
- package/dist/unstable/http/MultipartParser.js.map +1 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +2 -2
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +33 -63
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +14 -28
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +10 -18
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +9 -17
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +1 -1
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +1 -1
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/http/internal/compression.d.ts +2 -0
- package/dist/unstable/http/internal/compression.d.ts.map +1 -0
- package/dist/unstable/http/internal/compression.js +155 -0
- package/dist/unstable/http/internal/compression.js.map +1 -0
- package/dist/unstable/http/internal/httpBody.d.ts +2 -0
- package/dist/unstable/http/internal/httpBody.d.ts.map +1 -0
- package/dist/unstable/http/internal/httpBody.js +10 -0
- package/dist/unstable/http/internal/httpBody.js.map +1 -0
- package/dist/unstable/http/internal/preResponseHandler.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +5 -5
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +78 -26
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts +4 -5
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +76 -38
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +48 -46
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +73 -16
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +18 -18
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +30 -30
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +15 -15
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +71 -24
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +57 -10
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +0 -12
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +225 -6
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +174 -4
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +21 -13
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +58 -31
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/httpapi/index.js.map +1 -1
- package/dist/unstable/httpapi/internal/html.js.map +1 -1
- package/dist/unstable/httpapi/internal/httpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/internal/httpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/internal/mediaType.js.map +1 -1
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +13 -15
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +19 -5
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +2 -2
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +6 -3
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +28 -15
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +16 -7
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +21 -12
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +1 -1
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +13 -4
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +10 -3
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.js +1 -1
- package/dist/unstable/observability/internal/otlpEnv.js.map +1 -1
- package/dist/unstable/observability/internal/otlpProtobuf.js.map +1 -1
- package/dist/unstable/observability/internal/protobuf.js +3 -0
- package/dist/unstable/observability/internal/protobuf.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +8 -3
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +22 -13
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +8 -8
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +6 -6
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +15 -15
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +3 -3
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +108 -22
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +45 -24
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +29 -45
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +2 -2
- package/dist/unstable/persistence/Redis.js +2 -2
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/persistence/index.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +64 -21
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +14 -5
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +21 -10
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/process/index.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +8 -8
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +10 -10
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +25 -22
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +14 -13
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +4 -1
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +24 -3
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +4 -1
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +1 -1
- package/dist/unstable/reactivity/Hydration.js +1 -1
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +35 -33
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +4 -2
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +26 -12
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +30 -20
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +2 -2
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +8 -8
- package/dist/unstable/rpc/RpcGroup.js +1 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +31 -30
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +6 -6
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +10 -10
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +4 -4
- package/dist/unstable/rpc/RpcSchema.js +3 -3
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +58 -7
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +177 -96
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +13 -13
- package/dist/unstable/rpc/RpcServer.js +17 -13
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +5 -5
- package/dist/unstable/rpc/RpcWorker.js +4 -4
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/rpc/index.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +53 -51
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +35 -33
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +10 -10
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js +19 -11
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/schema/index.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +11 -3
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +37 -16
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.js.map +1 -1
- package/dist/unstable/socket/index.js.map +1 -1
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +8 -4
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.js.map +1 -1
- package/dist/unstable/sql/SqlError.js +13 -13
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +2 -2
- package/dist/unstable/sql/SqlModel.js +2 -2
- package/dist/unstable/sql/SqlModel.js.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +5 -5
- package/dist/unstable/sql/SqlResolver.js +10 -8
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +6 -6
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +23 -21
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +2 -2
- package/dist/unstable/workers/Worker.js +2 -2
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +7 -7
- package/dist/unstable/workers/WorkerError.js +11 -11
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +1 -1
- package/dist/unstable/workers/WorkerRunner.js +1 -1
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workers/index.js.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +2 -2
- package/dist/unstable/workflow/Activity.js +2 -2
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +1 -1
- package/dist/unstable/workflow/DurableClock.js +1 -1
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +10 -10
- package/dist/unstable/workflow/DurableDeferred.js +5 -5
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +22 -20
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +22 -20
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +21 -21
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +13 -14
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +2 -2
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +3 -3
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.d.ts +4 -2
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js +4 -2
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
- package/dist/unstable/workflow/index.js.map +1 -1
- package/dist/unstable/workflow/internal/crypto.js.map +1 -1
- package/package.json +6 -13
- package/src/Array.ts +982 -1045
- package/src/BigDecimal.ts +433 -756
- package/src/BigInt.ts +213 -269
- package/src/Boolean.ts +146 -188
- package/src/Cache.ts +410 -256
- package/src/Cause.ts +167 -277
- package/src/Channel.ts +892 -817
- package/src/ChannelSchema.ts +1 -1
- package/src/Chunk.ts +841 -1181
- package/src/Clock.ts +181 -49
- package/src/Combiner.ts +20 -33
- package/src/Config.ts +636 -332
- package/src/ConfigProvider.ts +218 -121
- package/src/Console.ts +289 -39
- package/src/Context.ts +322 -381
- package/src/Cron.ts +68 -77
- package/src/Crypto.ts +30 -23
- package/src/Data.ts +60 -80
- package/src/DateTime.ts +564 -660
- package/src/Deferred.ts +253 -256
- package/src/Duration.ts +232 -310
- package/src/Effect.ts +3034 -3296
- package/src/Encoding.ts +22 -40
- package/src/Equal.ts +59 -41
- package/src/Equivalence.ts +103 -105
- package/src/ErrorReporter.ts +51 -27
- package/src/ExecutionPlan.ts +91 -56
- package/src/Exit.ts +116 -192
- package/src/Fiber.ts +81 -148
- package/src/FiberHandle.ts +152 -105
- package/src/FiberMap.ts +225 -174
- package/src/FiberSet.ts +125 -83
- package/src/FileSystem.ts +156 -264
- package/src/Filter.ts +61 -33
- package/src/Formatter.ts +54 -56
- package/src/Function.ts +82 -151
- package/src/Graph.ts +416 -770
- package/src/HKT.ts +12 -6
- package/src/Hash.ts +52 -83
- package/src/HashMap.ts +319 -411
- package/src/HashRing.ts +1 -0
- package/src/HashSet.ts +177 -284
- package/src/Inspectable.ts +12 -12
- package/src/Iterable.ts +631 -796
- package/src/JsonPatch.ts +58 -112
- package/src/JsonPointer.ts +8 -8
- package/src/JsonSchema.ts +402 -244
- package/src/Latch.ts +23 -35
- package/src/Layer.ts +366 -265
- package/src/LayerMap.ts +49 -29
- package/src/LayerRef.ts +6 -2
- package/src/LogLevel.ts +114 -214
- package/src/Logger.ts +344 -697
- package/src/ManagedRuntime.ts +7 -5
- package/src/Match.ts +217 -252
- package/src/Metric.ts +516 -1089
- package/src/MutableHashMap.ts +218 -255
- package/src/MutableHashSet.ts +84 -89
- package/src/MutableList.ts +73 -370
- package/src/MutableRef.ts +420 -243
- package/src/Newtype.ts +21 -14
- package/src/NonEmptyIterable.ts +7 -137
- package/src/Number.ts +196 -233
- package/src/Optic.ts +243 -383
- package/src/Option.ts +447 -812
- package/src/Order.ts +109 -109
- package/src/Ordering.ts +20 -23
- package/src/Path.ts +38 -41
- package/src/Pipeable.ts +6 -5
- package/src/PlatformError.ts +4 -4
- package/src/Pool.ts +4 -2
- package/src/Predicate.ts +200 -181
- package/src/PrimaryKey.ts +7 -7
- package/src/PubSub.ts +526 -552
- package/src/Pull.ts +24 -18
- package/src/Queue.ts +200 -159
- package/src/Random.ts +49 -74
- package/src/RcMap.ts +121 -63
- package/src/RcRef.ts +24 -13
- package/src/Record.ts +291 -488
- package/src/Redactable.ts +10 -3
- package/src/Redacted.ts +25 -25
- package/src/Reducer.ts +8 -15
- package/src/Ref.ts +221 -361
- package/src/References.ts +102 -168
- package/src/RegExp.ts +10 -14
- package/src/Request.ts +31 -21
- package/src/RequestResolver.ts +202 -91
- package/src/Result.ts +312 -484
- package/src/Runtime.ts +50 -75
- package/src/Schedule.ts +311 -1737
- package/src/Scheduler.ts +20 -7
- package/src/Schema.ts +766 -786
- package/src/SchemaAST.ts +522 -382
- package/src/SchemaError.ts +7 -6
- package/src/SchemaGetter.ts +242 -190
- package/src/SchemaIssue.ts +89 -275
- package/src/SchemaParser.ts +217 -124
- package/src/SchemaRepresentation.ts +22 -40
- package/src/SchemaTransformation.ts +129 -88
- package/src/Scope.ts +123 -151
- package/src/ScopedCache.ts +1 -1
- package/src/ScopedRef.ts +4 -4
- package/src/Semaphore.ts +152 -51
- package/src/Sink.ts +129 -114
- package/src/Stdio.ts +1 -1
- package/src/Stream.ts +2679 -3133
- package/src/String.ts +275 -312
- package/src/Struct.ts +109 -114
- package/src/SubscriptionRef.ts +284 -252
- package/src/Symbol.ts +3 -3
- package/src/SynchronizedRef.ts +1 -1
- package/src/Terminal.ts +3 -3
- package/src/Tracer.ts +102 -55
- package/src/Trie.ts +287 -679
- package/src/Tuple.ts +99 -131
- package/src/TxChunk.ts +201 -121
- package/src/TxDeferred.ts +62 -46
- package/src/TxHashMap.ts +645 -799
- package/src/TxHashSet.ts +443 -356
- package/src/TxPriorityQueue.ts +130 -98
- package/src/TxPubSub.ts +107 -80
- package/src/TxQueue.ts +214 -183
- package/src/TxReentrantLock.ts +136 -101
- package/src/TxRef.ts +51 -32
- package/src/TxSemaphore.ts +129 -95
- package/src/TxSubscriptionRef.ts +97 -70
- package/src/Types.ts +126 -67
- package/src/Unify.ts +45 -65
- package/src/Utils.ts +23 -16
- package/src/internal/core.ts +2 -2
- package/src/internal/dateTime.ts +7 -1
- package/src/internal/effect.ts +93 -48
- package/src/internal/executionPlan.ts +105 -10
- package/src/internal/hashMap.ts +20 -14
- package/src/internal/matcher.ts +2 -2
- package/src/internal/persistence.ts +2 -0
- package/src/internal/references.ts +3 -2
- package/src/internal/schedule.ts +4 -4
- package/src/internal/schema/annotations.ts +3 -0
- package/src/internal/schema/fromJsonSchemaDocument.ts +15 -13
- package/src/internal/schema/fromRepresentation.ts +10 -16
- package/src/internal/schema/parser.ts +22 -0
- package/src/internal/schema/toArbitrary.ts +3 -1
- package/src/internal/schema/toJsonSchemaDocument.ts +60 -6
- package/src/internal/schema/toRepresentation.ts +104 -119
- package/src/internal/trie.ts +21 -12
- package/src/testing/FastCheck.ts +8 -7
- package/src/testing/TestClock.ts +85 -31
- package/src/testing/TestConsole.ts +32 -31
- package/src/testing/TestSchema.ts +30 -30
- package/src/unstable/ai/AiError.ts +114 -137
- package/src/unstable/ai/AnthropicStructuredOutput.ts +1 -1
- package/src/unstable/ai/Chat.ts +133 -98
- package/src/unstable/ai/IdGenerator.ts +32 -28
- package/src/unstable/ai/LanguageModel.ts +111 -69
- package/src/unstable/ai/McpProtocol.ts +48 -0
- package/src/unstable/ai/McpSchema.ts +77 -66
- package/src/unstable/ai/McpServer.ts +931 -305
- package/src/unstable/ai/Model.ts +9 -20
- package/src/unstable/ai/OpenAiStructuredOutput.ts +1 -1
- package/src/unstable/ai/Prompt.ts +166 -49
- package/src/unstable/ai/Response.ts +28 -14
- package/src/unstable/ai/Telemetry.ts +46 -13
- package/src/unstable/ai/Tokenizer.ts +14 -3
- package/src/unstable/ai/Tool.ts +59 -44
- package/src/unstable/ai/Toolkit.ts +26 -8
- package/src/unstable/ai/index.ts +5 -0
- package/src/unstable/ai/internal/mcpProtocol.ts +85 -0
- package/src/unstable/ai/internal/mcpProtocolRegistry.ts +70 -0
- package/src/unstable/ai/internal/structured-output.ts +13 -18
- package/src/unstable/cli/Argument.ts +273 -69
- package/src/unstable/cli/CliError.ts +79 -86
- package/src/unstable/cli/CliOutput.ts +44 -58
- package/src/unstable/cli/Command.ts +716 -116
- package/src/unstable/cli/Flag.ts +418 -138
- package/src/unstable/cli/GlobalFlag.ts +1 -1
- package/src/unstable/cli/HelpDoc.ts +12 -4
- package/src/unstable/cli/Param.ts +333 -97
- package/src/unstable/cli/Primitive.ts +381 -154
- package/src/unstable/cli/Prompt.ts +64 -34
- package/src/unstable/cli/internal/ansi.ts +2 -2
- package/src/unstable/cli/internal/command.ts +15 -10
- package/src/unstable/cli/internal/completions/bash.ts +59 -9
- package/src/unstable/cli/internal/completions/descriptor.ts +14 -20
- package/src/unstable/cli/internal/completions/fish.ts +5 -7
- package/src/unstable/cli/internal/help.ts +4 -2
- package/src/unstable/cli/internal/lexer.ts +8 -2
- package/src/unstable/cli/internal/parser.ts +5 -5
- package/src/unstable/cli/internal/wizard.ts +2 -2
- package/src/unstable/cluster/ClusterError.ts +7 -7
- package/src/unstable/cluster/ClusterSchema.ts +8 -8
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +9 -2
- package/src/unstable/cluster/Entity.ts +15 -16
- package/src/unstable/cluster/EntityProxy.ts +4 -2
- package/src/unstable/cluster/EntityResource.ts +2 -2
- package/src/unstable/cluster/Envelope.ts +3 -3
- package/src/unstable/cluster/HttpRunner.ts +6 -4
- package/src/unstable/cluster/Message.ts +9 -9
- package/src/unstable/cluster/MessageStorage.ts +24 -20
- package/src/unstable/cluster/Reply.ts +25 -6
- package/src/unstable/cluster/RunnerHealth.ts +1 -1
- package/src/unstable/cluster/RunnerServer.ts +35 -8
- package/src/unstable/cluster/RunnerStorage.ts +11 -9
- package/src/unstable/cluster/Runners.ts +23 -12
- package/src/unstable/cluster/Sharding.ts +42 -15
- package/src/unstable/cluster/ShardingConfig.ts +3 -3
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +8 -8
- package/src/unstable/cluster/SqlMessageStorage.ts +1 -1
- package/src/unstable/cluster/SqlRunnerStorage.ts +21 -5
- package/src/unstable/cluster/internal/entityManager.ts +12 -16
- package/src/unstable/cluster/internal/resourceMap.ts +5 -2
- package/src/unstable/cluster/internal/resourceRef.ts +27 -5
- package/src/unstable/devtools/DevToolsClient.ts +3 -2
- package/src/unstable/encoding/Ini.ts +174 -0
- package/src/unstable/encoding/Msgpack.ts +53 -36
- package/src/unstable/encoding/Ndjson.ts +9 -1
- package/src/unstable/encoding/Sse.ts +109 -37
- package/src/unstable/encoding/Toml.ts +504 -0
- package/src/unstable/encoding/Yaml.ts +541 -0
- package/src/unstable/encoding/index.ts +15 -0
- package/src/unstable/eventlog/Event.ts +20 -20
- package/src/unstable/eventlog/EventGroup.ts +4 -4
- package/src/unstable/eventlog/EventJournal.ts +29 -21
- package/src/unstable/eventlog/EventLog.ts +3 -3
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogMessage.ts +3 -3
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServer.ts +41 -7
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +13 -5
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +15 -7
- package/src/unstable/eventlog/EventLogSessionAuth.ts +1 -1
- package/src/unstable/eventlog/SqlEventJournal.ts +6 -4
- package/src/unstable/http/Cookies.ts +35 -21
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +3 -1
- package/src/unstable/http/FindMyWay/internal/queryString.ts +420 -0
- package/src/unstable/http/FindMyWay/internal/router.ts +950 -0
- package/src/unstable/http/FindMyWay.ts +65 -6
- package/src/unstable/http/Headers.ts +2 -2
- package/src/unstable/http/HttpBody.ts +20 -5
- package/src/unstable/http/HttpClient.ts +83 -55
- package/src/unstable/http/HttpClientError.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -12
- package/src/unstable/http/HttpClientResponse.ts +5 -21
- package/src/unstable/http/HttpEffect.ts +8 -8
- package/src/unstable/http/HttpMethod.ts +6 -9
- package/src/unstable/http/HttpMiddleware.ts +202 -39
- package/src/unstable/http/HttpPlatform.ts +129 -6
- package/src/unstable/http/HttpRouter.ts +102 -98
- package/src/unstable/http/HttpServer.ts +13 -13
- package/src/unstable/http/HttpServerError.ts +2 -2
- package/src/unstable/http/HttpServerRequest.ts +18 -10
- package/src/unstable/http/HttpServerResponse.ts +38 -6
- package/src/unstable/http/HttpStaticServer.ts +35 -7
- package/src/unstable/http/Multipart.ts +15 -8
- package/src/unstable/http/MultipartParser/HeadersParser.ts +68 -0
- package/src/unstable/http/MultipartParser/Search.ts +17 -0
- package/src/unstable/http/MultipartParser/internal/contentType.ts +103 -0
- package/src/unstable/http/MultipartParser/internal/headers.ts +615 -0
- package/src/unstable/http/MultipartParser/internal/multipart.ts +262 -0
- package/src/unstable/http/MultipartParser/internal/search.ts +167 -0
- package/src/unstable/http/MultipartParser.ts +115 -0
- package/src/unstable/http/Template.ts +6 -5
- package/src/unstable/http/Url.ts +33 -63
- package/src/unstable/http/UrlParams.ts +10 -18
- package/src/unstable/http/index.ts +1 -1
- package/src/unstable/http/internal/compression.ts +196 -0
- package/src/unstable/http/internal/httpBody.ts +15 -0
- package/src/unstable/httpapi/HttpApi.ts +6 -7
- package/src/unstable/httpapi/HttpApiBuilder.ts +129 -30
- package/src/unstable/httpapi/HttpApiClient.ts +117 -54
- package/src/unstable/httpapi/HttpApiEndpoint.ts +159 -71
- package/src/unstable/httpapi/HttpApiError.ts +46 -52
- package/src/unstable/httpapi/HttpApiGroup.ts +15 -15
- package/src/unstable/httpapi/HttpApiMiddleware.ts +71 -24
- package/src/unstable/httpapi/HttpApiScalar.ts +0 -12
- package/src/unstable/httpapi/HttpApiSchema.ts +359 -6
- package/src/unstable/httpapi/OpenApi.ts +83 -33
- package/src/unstable/observability/OtlpExporter.ts +35 -21
- package/src/unstable/observability/OtlpLogger.ts +3 -1
- package/src/unstable/observability/OtlpMetrics.ts +36 -19
- package/src/unstable/observability/OtlpResource.ts +26 -17
- package/src/unstable/observability/OtlpTracer.ts +1 -1
- package/src/unstable/observability/PrometheusMetrics.ts +13 -4
- package/src/unstable/observability/internal/otlpEnv.ts +1 -1
- package/src/unstable/observability/internal/protobuf.ts +3 -0
- package/src/unstable/persistence/KeyValueStore.ts +72 -49
- package/src/unstable/persistence/Persistable.ts +8 -8
- package/src/unstable/persistence/PersistedQueue.ts +18 -15
- package/src/unstable/persistence/Persistence.ts +153 -26
- package/src/unstable/persistence/RateLimiter.ts +77 -43
- package/src/unstable/persistence/Redis.ts +3 -3
- package/src/unstable/process/ChildProcess.ts +64 -21
- package/src/unstable/process/ChildProcessSpawner.ts +21 -10
- package/src/unstable/reactivity/AsyncResult.ts +12 -13
- package/src/unstable/reactivity/Atom.ts +28 -25
- package/src/unstable/reactivity/AtomHttpApi.ts +5 -4
- package/src/unstable/reactivity/AtomRegistry.ts +24 -3
- package/src/unstable/reactivity/AtomRpc.ts +5 -4
- package/src/unstable/reactivity/Hydration.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +35 -33
- package/src/unstable/rpc/RpcClient.ts +54 -27
- package/src/unstable/rpc/RpcClientError.ts +2 -2
- package/src/unstable/rpc/RpcGroup.ts +8 -8
- package/src/unstable/rpc/RpcMessage.ts +31 -30
- package/src/unstable/rpc/RpcMiddleware.ts +10 -10
- package/src/unstable/rpc/RpcSchema.ts +4 -4
- package/src/unstable/rpc/RpcSerialization.ts +167 -68
- package/src/unstable/rpc/RpcServer.ts +18 -15
- package/src/unstable/rpc/RpcWorker.ts +5 -5
- package/src/unstable/schema/Model.ts +52 -50
- package/src/unstable/schema/VariantSchema.ts +41 -23
- package/src/unstable/socket/Socket.ts +41 -18
- package/src/unstable/sql/SqlClient.ts +64 -56
- package/src/unstable/sql/SqlError.ts +13 -13
- package/src/unstable/sql/SqlModel.ts +2 -2
- package/src/unstable/sql/SqlResolver.ts +13 -11
- package/src/unstable/sql/Statement.ts +37 -31
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +2 -2
- package/src/unstable/workers/WorkerError.ts +12 -12
- package/src/unstable/workers/WorkerRunner.ts +1 -1
- package/src/unstable/workflow/Activity.ts +2 -2
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +10 -10
- package/src/unstable/workflow/DurableQueue.ts +22 -20
- package/src/unstable/workflow/Workflow.ts +23 -23
- package/src/unstable/workflow/WorkflowEngine.ts +9 -4
- package/src/unstable/workflow/WorkflowProxy.ts +4 -2
- package/dist/internal/version.d.ts +0 -3
- package/dist/internal/version.d.ts.map +0 -1
- package/dist/internal/version.js +0 -2
- package/dist/internal/version.js.map +0 -1
- package/dist/unstable/http/Multipasta/HeadersParser.d.ts +0 -14
- package/dist/unstable/http/Multipasta/HeadersParser.d.ts.map +0 -1
- package/dist/unstable/http/Multipasta/HeadersParser.js +0 -14
- package/dist/unstable/http/Multipasta/HeadersParser.js.map +0 -1
- package/dist/unstable/http/Multipasta/Node.d.ts +0 -14
- package/dist/unstable/http/Multipasta/Node.d.ts.map +0 -1
- package/dist/unstable/http/Multipasta/Node.js +0 -14
- package/dist/unstable/http/Multipasta/Node.js.map +0 -1
- package/dist/unstable/http/Multipasta/Search.d.ts +0 -14
- package/dist/unstable/http/Multipasta/Search.d.ts.map +0 -1
- package/dist/unstable/http/Multipasta/Search.js +0 -14
- package/dist/unstable/http/Multipasta/Search.js.map +0 -1
- package/dist/unstable/http/Multipasta/Web.d.ts +0 -14
- package/dist/unstable/http/Multipasta/Web.d.ts.map +0 -1
- package/dist/unstable/http/Multipasta/Web.js +0 -14
- package/dist/unstable/http/Multipasta/Web.js.map +0 -1
- package/dist/unstable/http/Multipasta.d.ts +0 -15
- package/dist/unstable/http/Multipasta.d.ts.map +0 -1
- package/dist/unstable/http/Multipasta.js +0 -15
- package/dist/unstable/http/Multipasta.js.map +0 -1
- package/src/internal/version.ts +0 -2
- package/src/unstable/http/Multipasta/HeadersParser.ts +0 -14
- package/src/unstable/http/Multipasta/Node.ts +0 -14
- package/src/unstable/http/Multipasta/Search.ts +0 -14
- package/src/unstable/http/Multipasta/Web.ts +0 -14
- package/src/unstable/http/Multipasta.ts +0 -15
package/src/String.ts
CHANGED
|
@@ -46,12 +46,11 @@ export const String = globalThis.String
|
|
|
46
46
|
*
|
|
47
47
|
* **Example** (Checking for strings)
|
|
48
48
|
*
|
|
49
|
-
* ```ts
|
|
49
|
+
* ```ts import.meta.vitest
|
|
50
50
|
* import { String } from "effect"
|
|
51
|
-
* import * as assert from "node:assert"
|
|
52
51
|
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* String.isString("a") // => true
|
|
53
|
+
* String.isString(1) // => false
|
|
55
54
|
* ```
|
|
56
55
|
*
|
|
57
56
|
* @category guards
|
|
@@ -65,12 +64,12 @@ export const isString: Refinement<unknown, string> = predicate.isString
|
|
|
65
64
|
*
|
|
66
65
|
* **Example** (Comparing strings lexicographically)
|
|
67
66
|
*
|
|
68
|
-
* ```ts
|
|
67
|
+
* ```ts import.meta.vitest
|
|
69
68
|
* import { String } from "effect"
|
|
70
69
|
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
70
|
+
* String.Order("apple", "banana") // => -1
|
|
71
|
+
* String.Order("banana", "apple") // => 1
|
|
72
|
+
* String.Order("apple", "apple") // => 0
|
|
74
73
|
* ```
|
|
75
74
|
*
|
|
76
75
|
* @category instances
|
|
@@ -83,11 +82,11 @@ export const Order: order.Order<string> = order.String
|
|
|
83
82
|
*
|
|
84
83
|
* **Example** (Comparing strings for equality)
|
|
85
84
|
*
|
|
86
|
-
* ```ts
|
|
85
|
+
* ```ts import.meta.vitest
|
|
87
86
|
* import { String } from "effect"
|
|
88
87
|
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
88
|
+
* String.Equivalence("hello", "hello") // => true
|
|
89
|
+
* String.Equivalence("hello", "world") // => false
|
|
91
90
|
* ```
|
|
92
91
|
*
|
|
93
92
|
* @category instances
|
|
@@ -104,11 +103,11 @@ export const Equivalence: Equ.Equivalence<string> = Equ.String
|
|
|
104
103
|
*
|
|
105
104
|
* **Example** (Referencing the empty string)
|
|
106
105
|
*
|
|
107
|
-
* ```ts
|
|
106
|
+
* ```ts import.meta.vitest
|
|
108
107
|
* import { String } from "effect"
|
|
109
108
|
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
109
|
+
* String.empty // => ""
|
|
110
|
+
* String.isEmpty(String.empty) // => true
|
|
112
111
|
* ```
|
|
113
112
|
*
|
|
114
113
|
* @category constants
|
|
@@ -121,11 +120,13 @@ export const empty: "" = "" as const
|
|
|
121
120
|
*
|
|
122
121
|
* **Example** (Concatenating string literal types)
|
|
123
122
|
*
|
|
124
|
-
* ```ts
|
|
123
|
+
* ```ts import.meta.vitest
|
|
125
124
|
* import type { String } from "effect"
|
|
126
125
|
*
|
|
127
126
|
* // Type-level concatenation
|
|
128
127
|
* type Result = String.Concat<"hello", "world"> // "helloworld"
|
|
128
|
+
*
|
|
129
|
+
* const witness: Result = "helloworld"
|
|
129
130
|
* ```
|
|
130
131
|
*
|
|
131
132
|
* @category models
|
|
@@ -138,14 +139,11 @@ export type Concat<A extends string, B extends string> = `${A}${B}`
|
|
|
138
139
|
*
|
|
139
140
|
* **Example** (Concatenating strings)
|
|
140
141
|
*
|
|
141
|
-
* ```ts
|
|
142
|
+
* ```ts import.meta.vitest
|
|
142
143
|
* import { pipe, String } from "effect"
|
|
143
144
|
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* const result2 = pipe("hello", String.concat("world"))
|
|
148
|
-
* console.log(result2) // "helloworld"
|
|
145
|
+
* String.concat("hello", "world") // => "helloworld"
|
|
146
|
+
* pipe("hello", String.concat("world")) // => "helloworld"
|
|
149
147
|
* ```
|
|
150
148
|
*
|
|
151
149
|
* @category combining
|
|
@@ -157,14 +155,11 @@ export const concat: {
|
|
|
157
155
|
*
|
|
158
156
|
* **Example** (Concatenating strings)
|
|
159
157
|
*
|
|
160
|
-
* ```ts
|
|
158
|
+
* ```ts import.meta.vitest
|
|
161
159
|
* import { pipe, String } from "effect"
|
|
162
160
|
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
* const result2 = pipe("hello", String.concat("world"))
|
|
167
|
-
* console.log(result2) // "helloworld"
|
|
161
|
+
* String.concat("hello", "world") // => "helloworld"
|
|
162
|
+
* pipe("hello", String.concat("world")) // => "helloworld"
|
|
168
163
|
* ```
|
|
169
164
|
*
|
|
170
165
|
* @category combining
|
|
@@ -176,14 +171,11 @@ export const concat: {
|
|
|
176
171
|
*
|
|
177
172
|
* **Example** (Concatenating strings)
|
|
178
173
|
*
|
|
179
|
-
* ```ts
|
|
174
|
+
* ```ts import.meta.vitest
|
|
180
175
|
* import { pipe, String } from "effect"
|
|
181
176
|
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* const result2 = pipe("hello", String.concat("world"))
|
|
186
|
-
* console.log(result2) // "helloworld"
|
|
177
|
+
* String.concat("hello", "world") // => "helloworld"
|
|
178
|
+
* pipe("hello", String.concat("world")) // => "helloworld"
|
|
187
179
|
* ```
|
|
188
180
|
*
|
|
189
181
|
* @category combining
|
|
@@ -197,12 +189,11 @@ export const concat: {
|
|
|
197
189
|
*
|
|
198
190
|
* **Example** (Converting strings to uppercase)
|
|
199
191
|
*
|
|
200
|
-
* ```ts
|
|
192
|
+
* ```ts import.meta.vitest
|
|
201
193
|
* import { pipe, String } from "effect"
|
|
202
|
-
* import * as assert from "node:assert"
|
|
203
194
|
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
195
|
+
* pipe("a", String.toUpperCase) // => "A"
|
|
196
|
+
* String.toUpperCase("hello") // => "HELLO"
|
|
206
197
|
* ```
|
|
207
198
|
*
|
|
208
199
|
* @category transforming
|
|
@@ -215,12 +206,11 @@ export const toUpperCase = <S extends string>(self: S): Uppercase<S> => self.toU
|
|
|
215
206
|
*
|
|
216
207
|
* **Example** (Converting strings to lowercase)
|
|
217
208
|
*
|
|
218
|
-
* ```ts
|
|
209
|
+
* ```ts import.meta.vitest
|
|
219
210
|
* import { pipe, String } from "effect"
|
|
220
|
-
* import * as assert from "node:assert"
|
|
221
211
|
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
212
|
+
* pipe("A", String.toLowerCase) // => "a"
|
|
213
|
+
* String.toLowerCase("HELLO") // => "hello"
|
|
224
214
|
* ```
|
|
225
215
|
*
|
|
226
216
|
* @category transforming
|
|
@@ -233,12 +223,11 @@ export const toLowerCase = <T extends string>(self: T): Lowercase<T> => self.toL
|
|
|
233
223
|
*
|
|
234
224
|
* **Example** (Capitalizing a string)
|
|
235
225
|
*
|
|
236
|
-
* ```ts
|
|
226
|
+
* ```ts import.meta.vitest
|
|
237
227
|
* import { pipe, String } from "effect"
|
|
238
|
-
* import * as assert from "node:assert"
|
|
239
228
|
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
229
|
+
* pipe("abc", String.capitalize) // => "Abc"
|
|
230
|
+
* String.capitalize("hello") // => "Hello"
|
|
242
231
|
* ```
|
|
243
232
|
*
|
|
244
233
|
* @category transforming
|
|
@@ -255,12 +244,11 @@ export const capitalize = <T extends string>(self: T): Capitalize<T> => {
|
|
|
255
244
|
*
|
|
256
245
|
* **Example** (Uncapitalizing a string)
|
|
257
246
|
*
|
|
258
|
-
* ```ts
|
|
247
|
+
* ```ts import.meta.vitest
|
|
259
248
|
* import { pipe, String } from "effect"
|
|
260
|
-
* import * as assert from "node:assert"
|
|
261
249
|
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
250
|
+
* pipe("ABC", String.uncapitalize) // => "aBC"
|
|
251
|
+
* String.uncapitalize("Hello") // => "hello"
|
|
264
252
|
* ```
|
|
265
253
|
*
|
|
266
254
|
* @category transforming
|
|
@@ -282,15 +270,11 @@ export const uncapitalize = <T extends string>(self: T): Uncapitalize<T> => {
|
|
|
282
270
|
*
|
|
283
271
|
* **Example** (Replacing a substring)
|
|
284
272
|
*
|
|
285
|
-
* ```ts
|
|
273
|
+
* ```ts import.meta.vitest
|
|
286
274
|
* import { pipe, String } from "effect"
|
|
287
|
-
* import * as assert from "node:assert"
|
|
288
275
|
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
* pipe("hello world", String.replace("world", "Effect")),
|
|
292
|
-
* "hello Effect"
|
|
293
|
-
* )
|
|
276
|
+
* pipe("abc", String.replace("b", "d")) // => "adc"
|
|
277
|
+
* pipe("hello world", String.replace("world", "Effect")) // => "hello Effect"
|
|
294
278
|
* ```
|
|
295
279
|
*
|
|
296
280
|
* @category transforming
|
|
@@ -304,10 +288,12 @@ export const replace = (searchValue: string | RegExp, replaceValue: string) => (
|
|
|
304
288
|
*
|
|
305
289
|
* **Example** (Trimming whitespace at the type level)
|
|
306
290
|
*
|
|
307
|
-
* ```ts
|
|
291
|
+
* ```ts import.meta.vitest
|
|
308
292
|
* import type { String } from "effect"
|
|
309
293
|
*
|
|
310
294
|
* type Result = String.Trim<" hello "> // "hello"
|
|
295
|
+
*
|
|
296
|
+
* const witness: Result = "hello"
|
|
311
297
|
* ```
|
|
312
298
|
*
|
|
313
299
|
* @category models
|
|
@@ -320,12 +306,11 @@ export type Trim<A extends string> = TrimEnd<TrimStart<A>>
|
|
|
320
306
|
*
|
|
321
307
|
* **Example** (Trimming whitespace)
|
|
322
308
|
*
|
|
323
|
-
* ```ts
|
|
309
|
+
* ```ts import.meta.vitest
|
|
324
310
|
* import { String } from "effect"
|
|
325
|
-
* import * as assert from "node:assert"
|
|
326
311
|
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
312
|
+
* String.trim(" a ") // => "a"
|
|
313
|
+
* String.trim(" hello world ") // => "hello world"
|
|
329
314
|
* ```
|
|
330
315
|
*
|
|
331
316
|
* @category transforming
|
|
@@ -338,10 +323,12 @@ export const trim = <A extends string>(self: A): Trim<A> => self.trim() as Trim<
|
|
|
338
323
|
*
|
|
339
324
|
* **Example** (Trimming leading whitespace at the type level)
|
|
340
325
|
*
|
|
341
|
-
* ```ts
|
|
326
|
+
* ```ts import.meta.vitest
|
|
342
327
|
* import type { String } from "effect"
|
|
343
328
|
*
|
|
344
329
|
* type Result = String.TrimStart<" hello"> // "hello"
|
|
330
|
+
*
|
|
331
|
+
* const witness: Result = "hello"
|
|
345
332
|
* ```
|
|
346
333
|
*
|
|
347
334
|
* @category models
|
|
@@ -354,12 +341,11 @@ export type TrimStart<A extends string> = A extends `${" " | "\n" | "\t" | "\r"}
|
|
|
354
341
|
*
|
|
355
342
|
* **Example** (Trimming leading whitespace)
|
|
356
343
|
*
|
|
357
|
-
* ```ts
|
|
344
|
+
* ```ts import.meta.vitest
|
|
358
345
|
* import { String } from "effect"
|
|
359
|
-
* import * as assert from "node:assert"
|
|
360
346
|
*
|
|
361
|
-
*
|
|
362
|
-
*
|
|
347
|
+
* String.trimStart(" a ") // => "a "
|
|
348
|
+
* String.trimStart(" hello world") // => "hello world"
|
|
363
349
|
* ```
|
|
364
350
|
*
|
|
365
351
|
* @category transforming
|
|
@@ -372,10 +358,12 @@ export const trimStart = <A extends string>(self: A): TrimStart<A> => self.trimS
|
|
|
372
358
|
*
|
|
373
359
|
* **Example** (Trimming trailing whitespace at the type level)
|
|
374
360
|
*
|
|
375
|
-
* ```ts
|
|
361
|
+
* ```ts import.meta.vitest
|
|
376
362
|
* import type { String } from "effect"
|
|
377
363
|
*
|
|
378
364
|
* type Result = String.TrimEnd<"hello "> // "hello"
|
|
365
|
+
*
|
|
366
|
+
* const witness: Result = "hello"
|
|
379
367
|
* ```
|
|
380
368
|
*
|
|
381
369
|
* @category models
|
|
@@ -388,12 +376,11 @@ export type TrimEnd<A extends string> = A extends `${infer B}${" " | "\n" | "\t"
|
|
|
388
376
|
*
|
|
389
377
|
* **Example** (Trimming trailing whitespace)
|
|
390
378
|
*
|
|
391
|
-
* ```ts
|
|
379
|
+
* ```ts import.meta.vitest
|
|
392
380
|
* import { String } from "effect"
|
|
393
|
-
* import * as assert from "node:assert"
|
|
394
381
|
*
|
|
395
|
-
*
|
|
396
|
-
*
|
|
382
|
+
* String.trimEnd(" a ") // => " a"
|
|
383
|
+
* String.trimEnd("hello world ") // => "hello world"
|
|
397
384
|
* ```
|
|
398
385
|
*
|
|
399
386
|
* @category transforming
|
|
@@ -406,12 +393,11 @@ export const trimEnd = <A extends string>(self: A): TrimEnd<A> => self.trimEnd()
|
|
|
406
393
|
*
|
|
407
394
|
* **Example** (Slicing strings)
|
|
408
395
|
*
|
|
409
|
-
* ```ts
|
|
396
|
+
* ```ts import.meta.vitest
|
|
410
397
|
* import { pipe, String } from "effect"
|
|
411
|
-
* import * as assert from "node:assert"
|
|
412
398
|
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
399
|
+
* pipe("abcd", String.slice(1, 3)) // => "bc"
|
|
400
|
+
* pipe("hello world", String.slice(0, 5)) // => "hello"
|
|
415
401
|
* ```
|
|
416
402
|
*
|
|
417
403
|
* @category transforming
|
|
@@ -424,15 +410,14 @@ export const slice = (start?: number, end?: number) => (self: string): string =>
|
|
|
424
410
|
*
|
|
425
411
|
* **Example** (Checking for empty strings)
|
|
426
412
|
*
|
|
427
|
-
* ```ts
|
|
413
|
+
* ```ts import.meta.vitest
|
|
428
414
|
* import { String } from "effect"
|
|
429
|
-
* import * as assert from "node:assert"
|
|
430
415
|
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
416
|
+
* String.isEmpty("") // => true
|
|
417
|
+
* String.isEmpty("a") // => false
|
|
433
418
|
* ```
|
|
434
419
|
*
|
|
435
|
-
* @category
|
|
420
|
+
* @category guards
|
|
436
421
|
* @since 2.0.0
|
|
437
422
|
*/
|
|
438
423
|
export const isEmpty = (self: string): self is "" => self.length === 0
|
|
@@ -442,15 +427,14 @@ export const isEmpty = (self: string): self is "" => self.length === 0
|
|
|
442
427
|
*
|
|
443
428
|
* **Example** (Checking for non-empty strings)
|
|
444
429
|
*
|
|
445
|
-
* ```ts
|
|
430
|
+
* ```ts import.meta.vitest
|
|
446
431
|
* import { String } from "effect"
|
|
447
|
-
* import * as assert from "node:assert"
|
|
448
432
|
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
433
|
+
* String.isNonEmpty("") // => false
|
|
434
|
+
* String.isNonEmpty("a") // => true
|
|
451
435
|
* ```
|
|
452
436
|
*
|
|
453
|
-
* @category
|
|
437
|
+
* @category predicates
|
|
454
438
|
* @since 2.0.0
|
|
455
439
|
*/
|
|
456
440
|
export const isNonEmpty = (self: string): boolean => self.length > 0
|
|
@@ -460,11 +444,10 @@ export const isNonEmpty = (self: string): boolean => self.length > 0
|
|
|
460
444
|
*
|
|
461
445
|
* **Example** (Getting string length)
|
|
462
446
|
*
|
|
463
|
-
* ```ts
|
|
447
|
+
* ```ts import.meta.vitest
|
|
464
448
|
* import { String } from "effect"
|
|
465
|
-
* import * as assert from "node:assert"
|
|
466
449
|
*
|
|
467
|
-
*
|
|
450
|
+
* String.length("abc") // => 3
|
|
468
451
|
* ```
|
|
469
452
|
*
|
|
470
453
|
* @category getters
|
|
@@ -477,13 +460,12 @@ export const length = (self: string): number => self.length
|
|
|
477
460
|
*
|
|
478
461
|
* **Example** (Splitting strings)
|
|
479
462
|
*
|
|
480
|
-
* ```ts
|
|
463
|
+
* ```ts import.meta.vitest
|
|
481
464
|
* import { pipe, String } from "effect"
|
|
482
|
-
* import * as assert from "node:assert"
|
|
483
465
|
*
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
*
|
|
466
|
+
* pipe("abc", String.split("")) // => ["a", "b", "c"]
|
|
467
|
+
* pipe("", String.split("")) // => [""]
|
|
468
|
+
* String.split("hello,world", ",") // => ["hello", "world"]
|
|
487
469
|
* ```
|
|
488
470
|
*
|
|
489
471
|
* @category transforming
|
|
@@ -495,13 +477,12 @@ export const split: {
|
|
|
495
477
|
*
|
|
496
478
|
* **Example** (Splitting strings)
|
|
497
479
|
*
|
|
498
|
-
* ```ts
|
|
480
|
+
* ```ts import.meta.vitest
|
|
499
481
|
* import { pipe, String } from "effect"
|
|
500
|
-
* import * as assert from "node:assert"
|
|
501
482
|
*
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
483
|
+
* pipe("abc", String.split("")) // => ["a", "b", "c"]
|
|
484
|
+
* pipe("", String.split("")) // => [""]
|
|
485
|
+
* String.split("hello,world", ",") // => ["hello", "world"]
|
|
505
486
|
* ```
|
|
506
487
|
*
|
|
507
488
|
* @category transforming
|
|
@@ -513,13 +494,12 @@ export const split: {
|
|
|
513
494
|
*
|
|
514
495
|
* **Example** (Splitting strings)
|
|
515
496
|
*
|
|
516
|
-
* ```ts
|
|
497
|
+
* ```ts import.meta.vitest
|
|
517
498
|
* import { pipe, String } from "effect"
|
|
518
|
-
* import * as assert from "node:assert"
|
|
519
499
|
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
*
|
|
500
|
+
* pipe("abc", String.split("")) // => ["a", "b", "c"]
|
|
501
|
+
* pipe("", String.split("")) // => [""]
|
|
502
|
+
* String.split("hello,world", ",") // => ["hello", "world"]
|
|
523
503
|
* ```
|
|
524
504
|
*
|
|
525
505
|
* @category transforming
|
|
@@ -537,12 +517,11 @@ export const split: {
|
|
|
537
517
|
*
|
|
538
518
|
* **Example** (Checking for substrings)
|
|
539
519
|
*
|
|
540
|
-
* ```ts
|
|
520
|
+
* ```ts import.meta.vitest
|
|
541
521
|
* import { pipe, String } from "effect"
|
|
542
|
-
* import * as assert from "node:assert"
|
|
543
522
|
*
|
|
544
|
-
*
|
|
545
|
-
*
|
|
523
|
+
* pipe("hello world", String.includes("world")) // => true
|
|
524
|
+
* pipe("hello world", String.includes("foo")) // => false
|
|
546
525
|
* ```
|
|
547
526
|
*
|
|
548
527
|
* @category predicates
|
|
@@ -556,12 +535,11 @@ export const includes = (searchString: string, position?: number) => (self: stri
|
|
|
556
535
|
*
|
|
557
536
|
* **Example** (Checking string prefixes)
|
|
558
537
|
*
|
|
559
|
-
* ```ts
|
|
538
|
+
* ```ts import.meta.vitest
|
|
560
539
|
* import { pipe, String } from "effect"
|
|
561
|
-
* import * as assert from "node:assert"
|
|
562
540
|
*
|
|
563
|
-
*
|
|
564
|
-
*
|
|
541
|
+
* pipe("hello world", String.startsWith("hello")) // => true
|
|
542
|
+
* pipe("hello world", String.startsWith("world")) // => false
|
|
565
543
|
* ```
|
|
566
544
|
*
|
|
567
545
|
* @category predicates
|
|
@@ -575,12 +553,11 @@ export const startsWith = (searchString: string, position?: number) => (self: st
|
|
|
575
553
|
*
|
|
576
554
|
* **Example** (Checking string suffixes)
|
|
577
555
|
*
|
|
578
|
-
* ```ts
|
|
556
|
+
* ```ts import.meta.vitest
|
|
579
557
|
* import { pipe, String } from "effect"
|
|
580
|
-
* import * as assert from "node:assert"
|
|
581
558
|
*
|
|
582
|
-
*
|
|
583
|
-
*
|
|
559
|
+
* pipe("hello world", String.endsWith("world")) // => true
|
|
560
|
+
* pipe("hello world", String.endsWith("hello")) // => false
|
|
584
561
|
* ```
|
|
585
562
|
*
|
|
586
563
|
* @category predicates
|
|
@@ -594,14 +571,14 @@ export const endsWith = (searchString: string, position?: number) => (self: stri
|
|
|
594
571
|
*
|
|
595
572
|
* **Example** (Reading character codes)
|
|
596
573
|
*
|
|
597
|
-
* ```ts
|
|
598
|
-
* import { String } from "effect"
|
|
574
|
+
* ```ts import.meta.vitest
|
|
575
|
+
* import { Option, String } from "effect"
|
|
599
576
|
*
|
|
600
|
-
* String.charCodeAt("abc", 1) // Option.some(98)
|
|
601
|
-
* String.charCodeAt("abc", 4) // Option.none()
|
|
577
|
+
* String.charCodeAt("abc", 1) // => Option.some(98)
|
|
578
|
+
* String.charCodeAt("abc", 4) // => Option.none()
|
|
602
579
|
* ```
|
|
603
580
|
*
|
|
604
|
-
* @category
|
|
581
|
+
* @category getters
|
|
605
582
|
* @since 2.0.0
|
|
606
583
|
*/
|
|
607
584
|
export const charCodeAt: {
|
|
@@ -610,14 +587,14 @@ export const charCodeAt: {
|
|
|
610
587
|
*
|
|
611
588
|
* **Example** (Reading character codes)
|
|
612
589
|
*
|
|
613
|
-
* ```ts
|
|
614
|
-
* import { String } from "effect"
|
|
590
|
+
* ```ts import.meta.vitest
|
|
591
|
+
* import { Option, String } from "effect"
|
|
615
592
|
*
|
|
616
|
-
* String.charCodeAt("abc", 1) // Option.some(98)
|
|
617
|
-
* String.charCodeAt("abc", 4) // Option.none()
|
|
593
|
+
* String.charCodeAt("abc", 1) // => Option.some(98)
|
|
594
|
+
* String.charCodeAt("abc", 4) // => Option.none()
|
|
618
595
|
* ```
|
|
619
596
|
*
|
|
620
|
-
* @category
|
|
597
|
+
* @category getters
|
|
621
598
|
* @since 2.0.0
|
|
622
599
|
*/
|
|
623
600
|
(index: number): (self: string) => Option.Option<number>
|
|
@@ -626,14 +603,14 @@ export const charCodeAt: {
|
|
|
626
603
|
*
|
|
627
604
|
* **Example** (Reading character codes)
|
|
628
605
|
*
|
|
629
|
-
* ```ts
|
|
630
|
-
* import { String } from "effect"
|
|
606
|
+
* ```ts import.meta.vitest
|
|
607
|
+
* import { Option, String } from "effect"
|
|
631
608
|
*
|
|
632
|
-
* String.charCodeAt("abc", 1) // Option.some(98)
|
|
633
|
-
* String.charCodeAt("abc", 4) // Option.none()
|
|
609
|
+
* String.charCodeAt("abc", 1) // => Option.some(98)
|
|
610
|
+
* String.charCodeAt("abc", 4) // => Option.none()
|
|
634
611
|
* ```
|
|
635
612
|
*
|
|
636
|
-
* @category
|
|
613
|
+
* @category getters
|
|
637
614
|
* @since 2.0.0
|
|
638
615
|
*/
|
|
639
616
|
(self: string, index: number): Option.Option<number>
|
|
@@ -648,11 +625,11 @@ export const charCodeAt: {
|
|
|
648
625
|
*
|
|
649
626
|
* **Example** (Extracting substrings)
|
|
650
627
|
*
|
|
651
|
-
* ```ts
|
|
628
|
+
* ```ts import.meta.vitest
|
|
652
629
|
* import { pipe, String } from "effect"
|
|
653
630
|
*
|
|
654
|
-
* pipe("abcd", String.substring(1)) // "bcd"
|
|
655
|
-
* pipe("abcd", String.substring(1, 3)) // "bc"
|
|
631
|
+
* pipe("abcd", String.substring(1)) // => "bcd"
|
|
632
|
+
* pipe("abcd", String.substring(1, 3)) // => "bc"
|
|
656
633
|
* ```
|
|
657
634
|
*
|
|
658
635
|
* @category transforming
|
|
@@ -665,14 +642,14 @@ export const substring = (start: number, end?: number) => (self: string): string
|
|
|
665
642
|
*
|
|
666
643
|
* **Example** (Accessing characters safely)
|
|
667
644
|
*
|
|
668
|
-
* ```ts
|
|
669
|
-
* import { pipe, String } from "effect"
|
|
645
|
+
* ```ts import.meta.vitest
|
|
646
|
+
* import { Option, pipe, String } from "effect"
|
|
670
647
|
*
|
|
671
|
-
* pipe("abc", String.at(1)) // Option.some("b")
|
|
672
|
-
* pipe("abc", String.at(4)) // Option.none()
|
|
648
|
+
* pipe("abc", String.at(1)) // => Option.some("b")
|
|
649
|
+
* pipe("abc", String.at(4)) // => Option.none()
|
|
673
650
|
* ```
|
|
674
651
|
*
|
|
675
|
-
* @category
|
|
652
|
+
* @category getters
|
|
676
653
|
* @since 2.0.0
|
|
677
654
|
*/
|
|
678
655
|
export const at: {
|
|
@@ -681,14 +658,14 @@ export const at: {
|
|
|
681
658
|
*
|
|
682
659
|
* **Example** (Accessing characters safely)
|
|
683
660
|
*
|
|
684
|
-
* ```ts
|
|
685
|
-
* import { pipe, String } from "effect"
|
|
661
|
+
* ```ts import.meta.vitest
|
|
662
|
+
* import { Option, pipe, String } from "effect"
|
|
686
663
|
*
|
|
687
|
-
* pipe("abc", String.at(1)) // Option.some("b")
|
|
688
|
-
* pipe("abc", String.at(4)) // Option.none()
|
|
664
|
+
* pipe("abc", String.at(1)) // => Option.some("b")
|
|
665
|
+
* pipe("abc", String.at(4)) // => Option.none()
|
|
689
666
|
* ```
|
|
690
667
|
*
|
|
691
|
-
* @category
|
|
668
|
+
* @category getters
|
|
692
669
|
* @since 2.0.0
|
|
693
670
|
*/
|
|
694
671
|
(index: number): (self: string) => Option.Option<string>
|
|
@@ -697,14 +674,14 @@ export const at: {
|
|
|
697
674
|
*
|
|
698
675
|
* **Example** (Accessing characters safely)
|
|
699
676
|
*
|
|
700
|
-
* ```ts
|
|
701
|
-
* import { pipe, String } from "effect"
|
|
677
|
+
* ```ts import.meta.vitest
|
|
678
|
+
* import { Option, pipe, String } from "effect"
|
|
702
679
|
*
|
|
703
|
-
* pipe("abc", String.at(1)) // Option.some("b")
|
|
704
|
-
* pipe("abc", String.at(4)) // Option.none()
|
|
680
|
+
* pipe("abc", String.at(1)) // => Option.some("b")
|
|
681
|
+
* pipe("abc", String.at(4)) // => Option.none()
|
|
705
682
|
* ```
|
|
706
683
|
*
|
|
707
|
-
* @category
|
|
684
|
+
* @category getters
|
|
708
685
|
* @since 2.0.0
|
|
709
686
|
*/
|
|
710
687
|
(self: string, index: number): Option.Option<string>
|
|
@@ -715,14 +692,14 @@ export const at: {
|
|
|
715
692
|
*
|
|
716
693
|
* **Example** (Reading characters safely)
|
|
717
694
|
*
|
|
718
|
-
* ```ts
|
|
719
|
-
* import { pipe, String } from "effect"
|
|
695
|
+
* ```ts import.meta.vitest
|
|
696
|
+
* import { Option, pipe, String } from "effect"
|
|
720
697
|
*
|
|
721
|
-
* pipe("abc", String.charAt(1)) // Option.some("b")
|
|
722
|
-
* pipe("abc", String.charAt(4)) // Option.none()
|
|
698
|
+
* pipe("abc", String.charAt(1)) // => Option.some("b")
|
|
699
|
+
* pipe("abc", String.charAt(4)) // => Option.none()
|
|
723
700
|
* ```
|
|
724
701
|
*
|
|
725
|
-
* @category
|
|
702
|
+
* @category getters
|
|
726
703
|
* @since 2.0.0
|
|
727
704
|
*/
|
|
728
705
|
export const charAt: {
|
|
@@ -731,14 +708,14 @@ export const charAt: {
|
|
|
731
708
|
*
|
|
732
709
|
* **Example** (Reading characters safely)
|
|
733
710
|
*
|
|
734
|
-
* ```ts
|
|
735
|
-
* import { pipe, String } from "effect"
|
|
711
|
+
* ```ts import.meta.vitest
|
|
712
|
+
* import { Option, pipe, String } from "effect"
|
|
736
713
|
*
|
|
737
|
-
* pipe("abc", String.charAt(1)) // Option.some("b")
|
|
738
|
-
* pipe("abc", String.charAt(4)) // Option.none()
|
|
714
|
+
* pipe("abc", String.charAt(1)) // => Option.some("b")
|
|
715
|
+
* pipe("abc", String.charAt(4)) // => Option.none()
|
|
739
716
|
* ```
|
|
740
717
|
*
|
|
741
|
-
* @category
|
|
718
|
+
* @category getters
|
|
742
719
|
* @since 2.0.0
|
|
743
720
|
*/
|
|
744
721
|
(index: number): (self: string) => Option.Option<string>
|
|
@@ -747,14 +724,14 @@ export const charAt: {
|
|
|
747
724
|
*
|
|
748
725
|
* **Example** (Reading characters safely)
|
|
749
726
|
*
|
|
750
|
-
* ```ts
|
|
751
|
-
* import { pipe, String } from "effect"
|
|
727
|
+
* ```ts import.meta.vitest
|
|
728
|
+
* import { Option, pipe, String } from "effect"
|
|
752
729
|
*
|
|
753
|
-
* pipe("abc", String.charAt(1)) // Option.some("b")
|
|
754
|
-
* pipe("abc", String.charAt(4)) // Option.none()
|
|
730
|
+
* pipe("abc", String.charAt(1)) // => Option.some("b")
|
|
731
|
+
* pipe("abc", String.charAt(4)) // => Option.none()
|
|
755
732
|
* ```
|
|
756
733
|
*
|
|
757
|
-
* @category
|
|
734
|
+
* @category getters
|
|
758
735
|
* @since 2.0.0
|
|
759
736
|
*/
|
|
760
737
|
(self: string, index: number): Option.Option<string>
|
|
@@ -768,14 +745,14 @@ export const charAt: {
|
|
|
768
745
|
*
|
|
769
746
|
* **Example** (Reading code points)
|
|
770
747
|
*
|
|
771
|
-
* ```ts
|
|
772
|
-
* import { pipe, String } from "effect"
|
|
748
|
+
* ```ts import.meta.vitest
|
|
749
|
+
* import { Option, pipe, String } from "effect"
|
|
773
750
|
*
|
|
774
|
-
* pipe("abc", String.codePointAt(1)) // Option.some(98)
|
|
775
|
-
* pipe("abc", String.codePointAt(10)) // Option.none()
|
|
751
|
+
* pipe("abc", String.codePointAt(1)) // => Option.some(98)
|
|
752
|
+
* pipe("abc", String.codePointAt(10)) // => Option.none()
|
|
776
753
|
* ```
|
|
777
754
|
*
|
|
778
|
-
* @category
|
|
755
|
+
* @category getters
|
|
779
756
|
* @since 2.0.0
|
|
780
757
|
*/
|
|
781
758
|
export const codePointAt: {
|
|
@@ -784,14 +761,14 @@ export const codePointAt: {
|
|
|
784
761
|
*
|
|
785
762
|
* **Example** (Reading code points)
|
|
786
763
|
*
|
|
787
|
-
* ```ts
|
|
788
|
-
* import { pipe, String } from "effect"
|
|
764
|
+
* ```ts import.meta.vitest
|
|
765
|
+
* import { Option, pipe, String } from "effect"
|
|
789
766
|
*
|
|
790
|
-
* pipe("abc", String.codePointAt(1)) // Option.some(98)
|
|
791
|
-
* pipe("abc", String.codePointAt(10)) // Option.none()
|
|
767
|
+
* pipe("abc", String.codePointAt(1)) // => Option.some(98)
|
|
768
|
+
* pipe("abc", String.codePointAt(10)) // => Option.none()
|
|
792
769
|
* ```
|
|
793
770
|
*
|
|
794
|
-
* @category
|
|
771
|
+
* @category getters
|
|
795
772
|
* @since 2.0.0
|
|
796
773
|
*/
|
|
797
774
|
(index: number): (self: string) => Option.Option<number>
|
|
@@ -800,14 +777,14 @@ export const codePointAt: {
|
|
|
800
777
|
*
|
|
801
778
|
* **Example** (Reading code points)
|
|
802
779
|
*
|
|
803
|
-
* ```ts
|
|
804
|
-
* import { pipe, String } from "effect"
|
|
780
|
+
* ```ts import.meta.vitest
|
|
781
|
+
* import { Option, pipe, String } from "effect"
|
|
805
782
|
*
|
|
806
|
-
* pipe("abc", String.codePointAt(1)) // Option.some(98)
|
|
807
|
-
* pipe("abc", String.codePointAt(10)) // Option.none()
|
|
783
|
+
* pipe("abc", String.codePointAt(1)) // => Option.some(98)
|
|
784
|
+
* pipe("abc", String.codePointAt(10)) // => Option.none()
|
|
808
785
|
* ```
|
|
809
786
|
*
|
|
810
|
-
* @category
|
|
787
|
+
* @category getters
|
|
811
788
|
* @since 2.0.0
|
|
812
789
|
*/
|
|
813
790
|
(self: string, index: number): Option.Option<number>
|
|
@@ -818,11 +795,11 @@ export const codePointAt: {
|
|
|
818
795
|
*
|
|
819
796
|
* **Example** (Finding the first substring index)
|
|
820
797
|
*
|
|
821
|
-
* ```ts
|
|
822
|
-
* import { pipe, String } from "effect"
|
|
798
|
+
* ```ts import.meta.vitest
|
|
799
|
+
* import { Option, pipe, String } from "effect"
|
|
823
800
|
*
|
|
824
|
-
* pipe("abbbc", String.indexOf("b")) // Option.some(1)
|
|
825
|
-
* pipe("abbbc", String.indexOf("z")) // Option.none()
|
|
801
|
+
* pipe("abbbc", String.indexOf("b")) // => Option.some(1)
|
|
802
|
+
* pipe("abbbc", String.indexOf("z")) // => Option.none()
|
|
826
803
|
* ```
|
|
827
804
|
*
|
|
828
805
|
* @category searching
|
|
@@ -836,11 +813,11 @@ export const indexOf = (searchString: string) => (self: string): Option.Option<n
|
|
|
836
813
|
*
|
|
837
814
|
* **Example** (Finding the last substring index)
|
|
838
815
|
*
|
|
839
|
-
* ```ts
|
|
840
|
-
* import { pipe, String } from "effect"
|
|
816
|
+
* ```ts import.meta.vitest
|
|
817
|
+
* import { Option, pipe, String } from "effect"
|
|
841
818
|
*
|
|
842
|
-
* pipe("abbbc", String.lastIndexOf("b")) // Option.some(3)
|
|
843
|
-
* pipe("abbbc", String.lastIndexOf("d")) // Option.none()
|
|
819
|
+
* pipe("abbbc", String.lastIndexOf("b")) // => Option.some(3)
|
|
820
|
+
* pipe("abbbc", String.lastIndexOf("d")) // => Option.none()
|
|
844
821
|
* ```
|
|
845
822
|
*
|
|
846
823
|
* @category searching
|
|
@@ -856,16 +833,15 @@ export const lastIndexOf = (searchString: string) => (self: string): Option.Opti
|
|
|
856
833
|
*
|
|
857
834
|
* **Example** (Comparing strings by locale)
|
|
858
835
|
*
|
|
859
|
-
* ```ts
|
|
836
|
+
* ```ts import.meta.vitest
|
|
860
837
|
* import { pipe, String } from "effect"
|
|
861
|
-
* import * as assert from "node:assert"
|
|
862
838
|
*
|
|
863
|
-
*
|
|
864
|
-
*
|
|
865
|
-
*
|
|
839
|
+
* pipe("a", String.localeCompare("b")) // => -1
|
|
840
|
+
* pipe("b", String.localeCompare("a")) // => 1
|
|
841
|
+
* pipe("a", String.localeCompare("a")) // => 0
|
|
866
842
|
* ```
|
|
867
843
|
*
|
|
868
|
-
* @category
|
|
844
|
+
* @category comparisons
|
|
869
845
|
* @since 2.0.0
|
|
870
846
|
*/
|
|
871
847
|
export const localeCompare =
|
|
@@ -878,16 +854,15 @@ export const localeCompare =
|
|
|
878
854
|
*
|
|
879
855
|
* **Example** (Matching regular expressions)
|
|
880
856
|
*
|
|
881
|
-
* ```ts
|
|
857
|
+
* ```ts import.meta.vitest
|
|
882
858
|
* import { Option, pipe, String } from "effect"
|
|
883
859
|
*
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
* console.log(Option.isNone(pipe("hello", String.match(/x/)))) // true
|
|
860
|
+
* pipe(
|
|
861
|
+
* "hello",
|
|
862
|
+
* String.match(/l+/),
|
|
863
|
+
* Option.map((match) => [match[0], match.index])
|
|
864
|
+
* ) // => Option.some(["ll", 2])
|
|
865
|
+
* pipe("hello", String.match(/x/)) // => Option.none()
|
|
891
866
|
* ```
|
|
892
867
|
*
|
|
893
868
|
* @category searching
|
|
@@ -902,13 +877,12 @@ export const match = (regExp: RegExp | string) => (self: string): Option.Option<
|
|
|
902
877
|
*
|
|
903
878
|
* **Example** (Iterating regular expression matches)
|
|
904
879
|
*
|
|
905
|
-
* ```ts
|
|
880
|
+
* ```ts import.meta.vitest
|
|
906
881
|
* import { pipe, String } from "effect"
|
|
907
882
|
*
|
|
908
883
|
* const matches = pipe("hello world", String.matchAll(/l/g))
|
|
909
|
-
*
|
|
910
|
-
*
|
|
911
|
-
* ) // "l@2, l@3, l@9"
|
|
884
|
+
*
|
|
885
|
+
* Array.from(matches, (match) => [match[0], match.index]) // => [["l", 2], ["l", 3], ["l", 9]]
|
|
912
886
|
* ```
|
|
913
887
|
*
|
|
914
888
|
* @category searching
|
|
@@ -921,19 +895,21 @@ export const matchAll = (regExp: RegExp) => (self: string): IterableIterator<Reg
|
|
|
921
895
|
*
|
|
922
896
|
* **Example** (Normalizing Unicode strings)
|
|
923
897
|
*
|
|
924
|
-
* ```ts
|
|
898
|
+
* ```ts import.meta.vitest
|
|
925
899
|
* import { pipe, String } from "effect"
|
|
926
|
-
* import * as assert from "node:assert"
|
|
927
900
|
*
|
|
928
901
|
* const str = "\u1E9B\u0323"
|
|
929
|
-
*
|
|
930
|
-
*
|
|
931
|
-
*
|
|
932
|
-
*
|
|
933
|
-
*
|
|
902
|
+
* Array.from(pipe(str, String.normalize()), (character) => character.codePointAt(0)) // => [0x1e9b, 0x323]
|
|
903
|
+
* Array.from(pipe(str, String.normalize("NFC")), (character) => character.codePointAt(0)) // => [0x1e9b, 0x323]
|
|
904
|
+
* Array.from(
|
|
905
|
+
* pipe(str, String.normalize("NFD")),
|
|
906
|
+
* (character) => character.codePointAt(0)
|
|
907
|
+
* ) // => [0x17f, 0x323, 0x307]
|
|
908
|
+
* Array.from(pipe(str, String.normalize("NFKC")), (character) => character.codePointAt(0)) // => [0x1e69]
|
|
909
|
+
* Array.from(
|
|
934
910
|
* pipe(str, String.normalize("NFKD")),
|
|
935
|
-
*
|
|
936
|
-
* )
|
|
911
|
+
* (character) => character.codePointAt(0)
|
|
912
|
+
* ) // => [0x73, 0x323, 0x307]
|
|
937
913
|
* ```
|
|
938
914
|
*
|
|
939
915
|
* @category transforming
|
|
@@ -946,12 +922,11 @@ export const normalize = (form?: "NFC" | "NFD" | "NFKC" | "NFKD") => (self: stri
|
|
|
946
922
|
*
|
|
947
923
|
* **Example** (Padding strings at the end)
|
|
948
924
|
*
|
|
949
|
-
* ```ts
|
|
925
|
+
* ```ts import.meta.vitest
|
|
950
926
|
* import { pipe, String } from "effect"
|
|
951
|
-
* import * as assert from "node:assert"
|
|
952
927
|
*
|
|
953
|
-
*
|
|
954
|
-
*
|
|
928
|
+
* pipe("a", String.padEnd(5)) // => "a "
|
|
929
|
+
* pipe("a", String.padEnd(5, "_")) // => "a____"
|
|
955
930
|
* ```
|
|
956
931
|
*
|
|
957
932
|
* @category transforming
|
|
@@ -965,12 +940,11 @@ export const padEnd = (maxLength: number, fillString?: string) => (self: string)
|
|
|
965
940
|
*
|
|
966
941
|
* **Example** (Padding strings at the start)
|
|
967
942
|
*
|
|
968
|
-
* ```ts
|
|
943
|
+
* ```ts import.meta.vitest
|
|
969
944
|
* import { pipe, String } from "effect"
|
|
970
|
-
* import * as assert from "node:assert"
|
|
971
945
|
*
|
|
972
|
-
*
|
|
973
|
-
*
|
|
946
|
+
* pipe("a", String.padStart(5)) // => " a"
|
|
947
|
+
* pipe("a", String.padStart(5, "_")) // => "____a"
|
|
974
948
|
* ```
|
|
975
949
|
*
|
|
976
950
|
* @category transforming
|
|
@@ -984,12 +958,11 @@ export const padStart = (maxLength: number, fillString?: string) => (self: strin
|
|
|
984
958
|
*
|
|
985
959
|
* **Example** (Repeating strings)
|
|
986
960
|
*
|
|
987
|
-
* ```ts
|
|
961
|
+
* ```ts import.meta.vitest
|
|
988
962
|
* import { pipe, String } from "effect"
|
|
989
|
-
* import * as assert from "node:assert"
|
|
990
963
|
*
|
|
991
|
-
*
|
|
992
|
-
*
|
|
964
|
+
* pipe("a", String.repeat(5)) // => "aaaaa"
|
|
965
|
+
* pipe("hello", String.repeat(3)) // => "hellohellohello"
|
|
993
966
|
* ```
|
|
994
967
|
*
|
|
995
968
|
* @category transforming
|
|
@@ -1002,12 +975,11 @@ export const repeat = (count: number) => (self: string): string => self.repeat(c
|
|
|
1002
975
|
*
|
|
1003
976
|
* **Example** (Replacing all matches)
|
|
1004
977
|
*
|
|
1005
|
-
* ```ts
|
|
978
|
+
* ```ts import.meta.vitest
|
|
1006
979
|
* import { pipe, String } from "effect"
|
|
1007
|
-
* import * as assert from "node:assert"
|
|
1008
980
|
*
|
|
1009
|
-
*
|
|
1010
|
-
*
|
|
981
|
+
* pipe("ababb", String.replaceAll("b", "c")) // => "acacc"
|
|
982
|
+
* pipe("ababb", String.replaceAll(/ba/g, "cc")) // => "accbb"
|
|
1011
983
|
* ```
|
|
1012
984
|
*
|
|
1013
985
|
* @category transforming
|
|
@@ -1022,12 +994,12 @@ export const replaceAll = (searchValue: string | RegExp, replaceValue: string) =
|
|
|
1022
994
|
*
|
|
1023
995
|
* **Example** (Searching strings)
|
|
1024
996
|
*
|
|
1025
|
-
* ```ts
|
|
1026
|
-
* import { String } from "effect"
|
|
997
|
+
* ```ts import.meta.vitest
|
|
998
|
+
* import { Option, String } from "effect"
|
|
1027
999
|
*
|
|
1028
|
-
* String.search("ababb", "b") // Option.some(1)
|
|
1029
|
-
* String.search("ababb", /abb/) // Option.some(2)
|
|
1030
|
-
* String.search("ababb", "d") // Option.none()
|
|
1000
|
+
* String.search("ababb", "b") // => Option.some(1)
|
|
1001
|
+
* String.search("ababb", /abb/) // => Option.some(2)
|
|
1002
|
+
* String.search("ababb", "d") // => Option.none()
|
|
1031
1003
|
* ```
|
|
1032
1004
|
*
|
|
1033
1005
|
* @category searching
|
|
@@ -1040,12 +1012,12 @@ export const search: {
|
|
|
1040
1012
|
*
|
|
1041
1013
|
* **Example** (Searching strings)
|
|
1042
1014
|
*
|
|
1043
|
-
* ```ts
|
|
1044
|
-
* import { String } from "effect"
|
|
1015
|
+
* ```ts import.meta.vitest
|
|
1016
|
+
* import { Option, String } from "effect"
|
|
1045
1017
|
*
|
|
1046
|
-
* String.search("ababb", "b") // Option.some(1)
|
|
1047
|
-
* String.search("ababb", /abb/) // Option.some(2)
|
|
1048
|
-
* String.search("ababb", "d") // Option.none()
|
|
1018
|
+
* String.search("ababb", "b") // => Option.some(1)
|
|
1019
|
+
* String.search("ababb", /abb/) // => Option.some(2)
|
|
1020
|
+
* String.search("ababb", "d") // => Option.none()
|
|
1049
1021
|
* ```
|
|
1050
1022
|
*
|
|
1051
1023
|
* @category searching
|
|
@@ -1058,12 +1030,12 @@ export const search: {
|
|
|
1058
1030
|
*
|
|
1059
1031
|
* **Example** (Searching strings)
|
|
1060
1032
|
*
|
|
1061
|
-
* ```ts
|
|
1062
|
-
* import { String } from "effect"
|
|
1033
|
+
* ```ts import.meta.vitest
|
|
1034
|
+
* import { Option, String } from "effect"
|
|
1063
1035
|
*
|
|
1064
|
-
* String.search("ababb", "b") // Option.some(1)
|
|
1065
|
-
* String.search("ababb", /abb/) // Option.some(2)
|
|
1066
|
-
* String.search("ababb", "d") // Option.none()
|
|
1036
|
+
* String.search("ababb", "b") // => Option.some(1)
|
|
1037
|
+
* String.search("ababb", /abb/) // => Option.some(2)
|
|
1038
|
+
* String.search("ababb", "d") // => Option.none()
|
|
1067
1039
|
* ```
|
|
1068
1040
|
*
|
|
1069
1041
|
* @category searching
|
|
@@ -1081,12 +1053,11 @@ export const search: {
|
|
|
1081
1053
|
*
|
|
1082
1054
|
* **Example** (Lowercasing strings by locale)
|
|
1083
1055
|
*
|
|
1084
|
-
* ```ts
|
|
1056
|
+
* ```ts import.meta.vitest
|
|
1085
1057
|
* import { pipe, String } from "effect"
|
|
1086
|
-
* import * as assert from "node:assert"
|
|
1087
1058
|
*
|
|
1088
1059
|
* const str = "\u0130"
|
|
1089
|
-
*
|
|
1060
|
+
* pipe(str, String.toLocaleLowerCase("tr")) // => "i"
|
|
1090
1061
|
* ```
|
|
1091
1062
|
*
|
|
1092
1063
|
* @category transforming
|
|
@@ -1100,12 +1071,11 @@ export const toLocaleLowerCase = (locale?: string | Array<string>) => (self: str
|
|
|
1100
1071
|
*
|
|
1101
1072
|
* **Example** (Uppercasing strings by locale)
|
|
1102
1073
|
*
|
|
1103
|
-
* ```ts
|
|
1074
|
+
* ```ts import.meta.vitest
|
|
1104
1075
|
* import { pipe, String } from "effect"
|
|
1105
|
-
* import * as assert from "node:assert"
|
|
1106
1076
|
*
|
|
1107
1077
|
* const str = "i\u0307"
|
|
1108
|
-
*
|
|
1078
|
+
* pipe(str, String.toLocaleUpperCase("lt-LT")) // => "I"
|
|
1109
1079
|
* ```
|
|
1110
1080
|
*
|
|
1111
1081
|
* @category transforming
|
|
@@ -1128,11 +1098,10 @@ export const toLocaleUpperCase = (locale?: string | Array<string>) => (self: str
|
|
|
1128
1098
|
*
|
|
1129
1099
|
* **Example** (Taking characters from the start)
|
|
1130
1100
|
*
|
|
1131
|
-
* ```ts
|
|
1101
|
+
* ```ts import.meta.vitest
|
|
1132
1102
|
* import { String } from "effect"
|
|
1133
|
-
* import * as assert from "node:assert"
|
|
1134
1103
|
*
|
|
1135
|
-
*
|
|
1104
|
+
* String.takeLeft("Hello World", 5) // => "Hello"
|
|
1136
1105
|
* ```
|
|
1137
1106
|
*
|
|
1138
1107
|
* @category transforming
|
|
@@ -1153,11 +1122,10 @@ export const takeLeft: {
|
|
|
1153
1122
|
*
|
|
1154
1123
|
* **Example** (Taking characters from the start)
|
|
1155
1124
|
*
|
|
1156
|
-
* ```ts
|
|
1125
|
+
* ```ts import.meta.vitest
|
|
1157
1126
|
* import { String } from "effect"
|
|
1158
|
-
* import * as assert from "node:assert"
|
|
1159
1127
|
*
|
|
1160
|
-
*
|
|
1128
|
+
* String.takeLeft("Hello World", 5) // => "Hello"
|
|
1161
1129
|
* ```
|
|
1162
1130
|
*
|
|
1163
1131
|
* @category transforming
|
|
@@ -1178,11 +1146,10 @@ export const takeLeft: {
|
|
|
1178
1146
|
*
|
|
1179
1147
|
* **Example** (Taking characters from the start)
|
|
1180
1148
|
*
|
|
1181
|
-
* ```ts
|
|
1149
|
+
* ```ts import.meta.vitest
|
|
1182
1150
|
* import { String } from "effect"
|
|
1183
|
-
* import * as assert from "node:assert"
|
|
1184
1151
|
*
|
|
1185
|
-
*
|
|
1152
|
+
* String.takeLeft("Hello World", 5) // => "Hello"
|
|
1186
1153
|
* ```
|
|
1187
1154
|
*
|
|
1188
1155
|
* @category transforming
|
|
@@ -1205,11 +1172,10 @@ export const takeLeft: {
|
|
|
1205
1172
|
*
|
|
1206
1173
|
* **Example** (Taking characters from the end)
|
|
1207
1174
|
*
|
|
1208
|
-
* ```ts
|
|
1175
|
+
* ```ts import.meta.vitest
|
|
1209
1176
|
* import { String } from "effect"
|
|
1210
|
-
* import * as assert from "node:assert"
|
|
1211
1177
|
*
|
|
1212
|
-
*
|
|
1178
|
+
* String.takeRight("Hello World", 5) // => "World"
|
|
1213
1179
|
* ```
|
|
1214
1180
|
*
|
|
1215
1181
|
* @category transforming
|
|
@@ -1230,11 +1196,10 @@ export const takeRight: {
|
|
|
1230
1196
|
*
|
|
1231
1197
|
* **Example** (Taking characters from the end)
|
|
1232
1198
|
*
|
|
1233
|
-
* ```ts
|
|
1199
|
+
* ```ts import.meta.vitest
|
|
1234
1200
|
* import { String } from "effect"
|
|
1235
|
-
* import * as assert from "node:assert"
|
|
1236
1201
|
*
|
|
1237
|
-
*
|
|
1202
|
+
* String.takeRight("Hello World", 5) // => "World"
|
|
1238
1203
|
* ```
|
|
1239
1204
|
*
|
|
1240
1205
|
* @category transforming
|
|
@@ -1255,11 +1220,10 @@ export const takeRight: {
|
|
|
1255
1220
|
*
|
|
1256
1221
|
* **Example** (Taking characters from the end)
|
|
1257
1222
|
*
|
|
1258
|
-
* ```ts
|
|
1223
|
+
* ```ts import.meta.vitest
|
|
1259
1224
|
* import { String } from "effect"
|
|
1260
|
-
* import * as assert from "node:assert"
|
|
1261
1225
|
*
|
|
1262
|
-
*
|
|
1226
|
+
* String.takeRight("Hello World", 5) // => "World"
|
|
1263
1227
|
* ```
|
|
1264
1228
|
*
|
|
1265
1229
|
* @category transforming
|
|
@@ -1280,11 +1244,10 @@ const LF = 0x0a
|
|
|
1280
1244
|
*
|
|
1281
1245
|
* **Example** (Iterating lines without separators)
|
|
1282
1246
|
*
|
|
1283
|
-
* ```ts
|
|
1247
|
+
* ```ts import.meta.vitest
|
|
1284
1248
|
* import { String } from "effect"
|
|
1285
1249
|
*
|
|
1286
|
-
*
|
|
1287
|
-
* console.log(Array.from(lines)) // ["hello", "world"]
|
|
1250
|
+
* Array.from(String.linesIterator("hello\nworld\n")) // => ["hello", "world"]
|
|
1288
1251
|
* ```
|
|
1289
1252
|
*
|
|
1290
1253
|
* @category splitting
|
|
@@ -1298,11 +1261,10 @@ export const linesIterator = (self: string): LinesIterator => linesSeparated(sel
|
|
|
1298
1261
|
*
|
|
1299
1262
|
* **Example** (Iterating lines with separators)
|
|
1300
1263
|
*
|
|
1301
|
-
* ```ts
|
|
1264
|
+
* ```ts import.meta.vitest
|
|
1302
1265
|
* import { String } from "effect"
|
|
1303
1266
|
*
|
|
1304
|
-
*
|
|
1305
|
-
* console.log(Array.from(lines)) // ["hello\n", "world\n"]
|
|
1267
|
+
* Array.from(String.linesWithSeparators("hello\nworld\n")) // => ["hello\n", "world\n"]
|
|
1306
1268
|
* ```
|
|
1307
1269
|
*
|
|
1308
1270
|
* @category splitting
|
|
@@ -1316,12 +1278,10 @@ export const linesWithSeparators = (s: string): LinesIterator => linesSeparated(
|
|
|
1316
1278
|
*
|
|
1317
1279
|
* **Example** (Stripping custom margins)
|
|
1318
1280
|
*
|
|
1319
|
-
* ```ts
|
|
1281
|
+
* ```ts import.meta.vitest
|
|
1320
1282
|
* import { String } from "effect"
|
|
1321
1283
|
*
|
|
1322
|
-
*
|
|
1323
|
-
* const result = String.stripMarginWith(text, "|")
|
|
1324
|
-
* console.log(result) // "hello\nworld"
|
|
1284
|
+
* String.stripMarginWith(" |hello\n |world", "|") // => "hello\nworld"
|
|
1325
1285
|
* ```
|
|
1326
1286
|
*
|
|
1327
1287
|
* @category transforming
|
|
@@ -1334,12 +1294,10 @@ export const stripMarginWith: {
|
|
|
1334
1294
|
*
|
|
1335
1295
|
* **Example** (Stripping custom margins)
|
|
1336
1296
|
*
|
|
1337
|
-
* ```ts
|
|
1297
|
+
* ```ts import.meta.vitest
|
|
1338
1298
|
* import { String } from "effect"
|
|
1339
1299
|
*
|
|
1340
|
-
*
|
|
1341
|
-
* const result = String.stripMarginWith(text, "|")
|
|
1342
|
-
* console.log(result) // "hello\nworld"
|
|
1300
|
+
* String.stripMarginWith(" |hello\n |world", "|") // => "hello\nworld"
|
|
1343
1301
|
* ```
|
|
1344
1302
|
*
|
|
1345
1303
|
* @category transforming
|
|
@@ -1352,12 +1310,10 @@ export const stripMarginWith: {
|
|
|
1352
1310
|
*
|
|
1353
1311
|
* **Example** (Stripping custom margins)
|
|
1354
1312
|
*
|
|
1355
|
-
* ```ts
|
|
1313
|
+
* ```ts import.meta.vitest
|
|
1356
1314
|
* import { String } from "effect"
|
|
1357
1315
|
*
|
|
1358
|
-
*
|
|
1359
|
-
* const result = String.stripMarginWith(text, "|")
|
|
1360
|
-
* console.log(result) // "hello\nworld"
|
|
1316
|
+
* String.stripMarginWith(" |hello\n |world", "|") // => "hello\nworld"
|
|
1361
1317
|
* ```
|
|
1362
1318
|
*
|
|
1363
1319
|
* @category transforming
|
|
@@ -1389,12 +1345,10 @@ export const stripMarginWith: {
|
|
|
1389
1345
|
*
|
|
1390
1346
|
* **Example** (Stripping pipe margins)
|
|
1391
1347
|
*
|
|
1392
|
-
* ```ts
|
|
1348
|
+
* ```ts import.meta.vitest
|
|
1393
1349
|
* import { String } from "effect"
|
|
1394
1350
|
*
|
|
1395
|
-
*
|
|
1396
|
-
* const result = String.stripMargin(text)
|
|
1397
|
-
* console.log(result) // "hello\nworld"
|
|
1351
|
+
* String.stripMargin(" |hello\n |world") // => "hello\nworld"
|
|
1398
1352
|
* ```
|
|
1399
1353
|
*
|
|
1400
1354
|
* @category transforming
|
|
@@ -1407,17 +1361,18 @@ export const stripMargin = (self: string): string => stripMarginWith(self, "|")
|
|
|
1407
1361
|
*
|
|
1408
1362
|
* **Example** (Converting snake_case to camelCase)
|
|
1409
1363
|
*
|
|
1410
|
-
* ```ts
|
|
1364
|
+
* ```ts import.meta.vitest
|
|
1411
1365
|
* import { String } from "effect"
|
|
1412
1366
|
*
|
|
1413
|
-
*
|
|
1414
|
-
*
|
|
1367
|
+
* String.snakeToCamel("hello_world") // => "helloWorld"
|
|
1368
|
+
* String.snakeToCamel("foo_bar_baz") // => "fooBarBaz"
|
|
1415
1369
|
* ```
|
|
1416
1370
|
*
|
|
1417
1371
|
* @category transforming
|
|
1418
1372
|
* @since 2.0.0
|
|
1419
1373
|
*/
|
|
1420
1374
|
export const snakeToCamel = (self: string): string => {
|
|
1375
|
+
if (self.length === 0) return self
|
|
1421
1376
|
let str = self[0]
|
|
1422
1377
|
for (let i = 1; i < self.length; i++) {
|
|
1423
1378
|
str += self[i] === "_" ? self[++i].toUpperCase() : self[i]
|
|
@@ -1430,17 +1385,18 @@ export const snakeToCamel = (self: string): string => {
|
|
|
1430
1385
|
*
|
|
1431
1386
|
* **Example** (Converting snake_case to PascalCase)
|
|
1432
1387
|
*
|
|
1433
|
-
* ```ts
|
|
1388
|
+
* ```ts import.meta.vitest
|
|
1434
1389
|
* import { String } from "effect"
|
|
1435
1390
|
*
|
|
1436
|
-
*
|
|
1437
|
-
*
|
|
1391
|
+
* String.snakeToPascal("hello_world") // => "HelloWorld"
|
|
1392
|
+
* String.snakeToPascal("foo_bar_baz") // => "FooBarBaz"
|
|
1438
1393
|
* ```
|
|
1439
1394
|
*
|
|
1440
1395
|
* @category transforming
|
|
1441
1396
|
* @since 2.0.0
|
|
1442
1397
|
*/
|
|
1443
1398
|
export const snakeToPascal = (self: string): string => {
|
|
1399
|
+
if (self.length === 0) return self
|
|
1444
1400
|
let str = self[0].toUpperCase()
|
|
1445
1401
|
for (let i = 1; i < self.length; i++) {
|
|
1446
1402
|
str += self[i] === "_" ? self[++i].toUpperCase() : self[i]
|
|
@@ -1453,11 +1409,11 @@ export const snakeToPascal = (self: string): string => {
|
|
|
1453
1409
|
*
|
|
1454
1410
|
* **Example** (Converting snake_case to kebab-case)
|
|
1455
1411
|
*
|
|
1456
|
-
* ```ts
|
|
1412
|
+
* ```ts import.meta.vitest
|
|
1457
1413
|
* import { String } from "effect"
|
|
1458
1414
|
*
|
|
1459
|
-
*
|
|
1460
|
-
*
|
|
1415
|
+
* String.snakeToKebab("hello_world") // => "hello-world"
|
|
1416
|
+
* String.snakeToKebab("foo_bar_baz") // => "foo-bar-baz"
|
|
1461
1417
|
* ```
|
|
1462
1418
|
*
|
|
1463
1419
|
* @category transforming
|
|
@@ -1470,11 +1426,11 @@ export const snakeToKebab = (self: string): string => self.replace(/_/g, "-")
|
|
|
1470
1426
|
*
|
|
1471
1427
|
* **Example** (Converting camelCase to snake_case)
|
|
1472
1428
|
*
|
|
1473
|
-
* ```ts
|
|
1429
|
+
* ```ts import.meta.vitest
|
|
1474
1430
|
* import { String } from "effect"
|
|
1475
1431
|
*
|
|
1476
|
-
*
|
|
1477
|
-
*
|
|
1432
|
+
* String.camelToSnake("helloWorld") // => "hello_world"
|
|
1433
|
+
* String.camelToSnake("fooBarBaz") // => "foo_bar_baz"
|
|
1478
1434
|
* ```
|
|
1479
1435
|
*
|
|
1480
1436
|
* @category transforming
|
|
@@ -1487,11 +1443,11 @@ export const camelToSnake = (self: string): string => self.replace(/([A-Z])/g, "
|
|
|
1487
1443
|
*
|
|
1488
1444
|
* **Example** (Converting PascalCase to snake_case)
|
|
1489
1445
|
*
|
|
1490
|
-
* ```ts
|
|
1446
|
+
* ```ts import.meta.vitest
|
|
1491
1447
|
* import { String } from "effect"
|
|
1492
1448
|
*
|
|
1493
|
-
*
|
|
1494
|
-
*
|
|
1449
|
+
* String.pascalToSnake("HelloWorld") // => "hello_world"
|
|
1450
|
+
* String.pascalToSnake("FooBarBaz") // => "foo_bar_baz"
|
|
1495
1451
|
* ```
|
|
1496
1452
|
*
|
|
1497
1453
|
* @category transforming
|
|
@@ -1505,11 +1461,11 @@ export const pascalToSnake = (self: string): string =>
|
|
|
1505
1461
|
*
|
|
1506
1462
|
* **Example** (Converting kebab-case to snake_case)
|
|
1507
1463
|
*
|
|
1508
|
-
* ```ts
|
|
1464
|
+
* ```ts import.meta.vitest
|
|
1509
1465
|
* import { String } from "effect"
|
|
1510
1466
|
*
|
|
1511
|
-
*
|
|
1512
|
-
*
|
|
1467
|
+
* String.kebabToSnake("hello-world") // => "hello_world"
|
|
1468
|
+
* String.kebabToSnake("foo-bar-baz") // => "foo_bar_baz"
|
|
1513
1469
|
* ```
|
|
1514
1470
|
*
|
|
1515
1471
|
* @category transforming
|
|
@@ -1659,15 +1615,20 @@ export const noCase: {
|
|
|
1659
1615
|
readonly delimiter?: string | undefined
|
|
1660
1616
|
readonly transform?: (part: string, index: number, parts: ReadonlyArray<string>) => string
|
|
1661
1617
|
}): string => {
|
|
1618
|
+
const splitRegExp = toRegExpArray(options?.splitRegExp ?? SPLIT_REGEXP)
|
|
1619
|
+
const stripRegExp = toRegExpArray(options?.stripRegExp ?? STRIP_REGEXP)
|
|
1662
1620
|
const delimiter = options?.delimiter ?? " "
|
|
1663
1621
|
const transform = options?.transform ?? toLowerCase
|
|
1664
|
-
return normalizeCase(input,
|
|
1622
|
+
return normalizeCase(input, splitRegExp, stripRegExp, delimiter, transform)
|
|
1665
1623
|
})
|
|
1666
1624
|
|
|
1625
|
+
const toRegExpArray = (regexp: RegExp | ReadonlyArray<RegExp>): ReadonlyArray<RegExp> =>
|
|
1626
|
+
predicate.isRegExp(regexp) ? [regexp] : regexp
|
|
1627
|
+
|
|
1667
1628
|
const normalizeCase = (
|
|
1668
1629
|
input: string,
|
|
1669
1630
|
splitRegExp: ReadonlyArray<RegExp>,
|
|
1670
|
-
stripRegExp: RegExp
|
|
1631
|
+
stripRegExp: ReadonlyArray<RegExp>,
|
|
1671
1632
|
delimiter: string,
|
|
1672
1633
|
transform: (part: string, index: number, parts: ReadonlyArray<string>) => string
|
|
1673
1634
|
): string => {
|
|
@@ -1675,7 +1636,9 @@ const normalizeCase = (
|
|
|
1675
1636
|
for (const regexp of splitRegExp) {
|
|
1676
1637
|
result = result.replace(regexp, "$1\0$2")
|
|
1677
1638
|
}
|
|
1678
|
-
|
|
1639
|
+
for (const regexp of stripRegExp) {
|
|
1640
|
+
result = result.replace(regexp, "\0")
|
|
1641
|
+
}
|
|
1679
1642
|
let start = 0
|
|
1680
1643
|
let end = result.length
|
|
1681
1644
|
// Trim the delimiter from around the output string.
|
|
@@ -1795,7 +1758,7 @@ export const constantCase: (self: string) => string = noCase({
|
|
|
1795
1758
|
* @since 4.0.0
|
|
1796
1759
|
*/
|
|
1797
1760
|
export const configCase: (self: string) => string = (self) =>
|
|
1798
|
-
normalizeCase(self, CONFIG_SPLIT_REGEXP, STRIP_REGEXP, "_", toUpperCase)
|
|
1761
|
+
normalizeCase(self, CONFIG_SPLIT_REGEXP, [STRIP_REGEXP], "_", toUpperCase)
|
|
1799
1762
|
|
|
1800
1763
|
/**
|
|
1801
1764
|
* Converts a string to kebab-case (lowercase with hyphens).
|