effect 4.0.0-beta.71 → 4.0.0-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Array.d.ts +65 -111
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +28 -44
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +66 -58
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +30 -26
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +21 -19
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +17 -15
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +15 -17
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +13 -13
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +2 -3
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +2 -3
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +9 -9
- package/dist/Cache.js +3 -3
- package/dist/Cause.d.ts +35 -39
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +31 -33
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +141 -99
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +56 -42
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +3 -3
- package/dist/ChannelSchema.js +1 -1
- package/dist/Chunk.d.ts +67 -54
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +33 -22
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +3 -3
- package/dist/Clock.js +1 -1
- package/dist/Combiner.d.ts +6 -10
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +6 -10
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +9 -10
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +7 -8
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +4 -4
- package/dist/ConfigProvider.js +4 -4
- package/dist/Console.d.ts +11 -7
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +11 -7
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +35 -35
- package/dist/Context.js +13 -13
- package/dist/Cron.d.ts +7 -6
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +7 -6
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +1 -1
- package/dist/Crypto.js +1 -1
- package/dist/Data.d.ts +26 -32
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +9 -8
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +164 -122
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +86 -66
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +6 -6
- package/dist/Deferred.js +4 -4
- package/dist/Duration.d.ts +39 -39
- package/dist/Duration.js +21 -21
- package/dist/Effect.d.ts +220 -309
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +115 -140
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +2 -2
- package/dist/Effectable.js +2 -2
- package/dist/Encoding.d.ts +13 -10
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +12 -9
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +3 -4
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +2 -3
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +5 -19
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +5 -14
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +14 -13
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +10 -9
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +7 -2
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +7 -2
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +25 -23
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +13 -13
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +4 -4
- package/dist/Fiber.js +2 -2
- package/dist/FiberHandle.d.ts +6 -6
- package/dist/FiberHandle.js +4 -4
- package/dist/FiberMap.d.ts +18 -18
- package/dist/FiberMap.js +8 -8
- package/dist/FiberSet.d.ts +21 -13
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -9
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +13 -9
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +11 -7
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +2 -2
- package/dist/Filter.js +2 -2
- package/dist/Formatter.d.ts +1 -3
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +1 -3
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +12 -12
- package/dist/Function.js +12 -12
- package/dist/Graph.d.ts +22 -22
- package/dist/Graph.js +12 -12
- package/dist/HKT.d.ts +5 -4
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +3 -3
- package/dist/Hash.js +3 -3
- package/dist/HashMap.d.ts +33 -35
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +11 -13
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +7 -9
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +3 -5
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +16 -16
- package/dist/HashSet.js +6 -6
- package/dist/Inspectable.d.ts +4 -4
- package/dist/Inspectable.js +4 -4
- package/dist/Iterable.d.ts +82 -56
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +28 -20
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +1 -1
- package/dist/JsonPatch.js +1 -1
- package/dist/JsonPointer.d.ts +3 -3
- package/dist/JsonPointer.js +3 -3
- package/dist/JsonSchema.d.ts +13 -23
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +13 -23
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +2 -2
- package/dist/Latch.js +2 -2
- package/dist/Layer.d.ts +47 -27
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +23 -15
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +1 -2
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +1 -2
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +3 -3
- package/dist/LogLevel.js +3 -3
- package/dist/Logger.d.ts +2 -2
- package/dist/Logger.js +2 -2
- package/dist/ManagedRuntime.d.ts +1 -1
- package/dist/ManagedRuntime.js +1 -1
- package/dist/Match.d.ts +32 -37
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +32 -37
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +35 -21
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +34 -20
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +13 -19
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +5 -7
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +4 -4
- package/dist/MutableHashSet.js +2 -2
- package/dist/MutableList.d.ts +16 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +15 -5
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +5 -4
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +3 -2
- package/dist/MutableRef.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +3 -3
- package/dist/NonEmptyIterable.js +1 -1
- package/dist/Number.d.ts +20 -18
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +16 -14
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +11 -18
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +7 -14
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +21 -24
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +9 -10
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +11 -38
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +11 -33
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +5 -5
- package/dist/Ordering.js +3 -3
- package/dist/PartitionedSemaphore.d.ts +4 -8
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +3 -7
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +4 -7
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +3 -6
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +2 -2
- package/dist/Pipeable.js +2 -2
- package/dist/PlatformError.d.ts +1 -1
- package/dist/PlatformError.js +1 -1
- package/dist/Predicate.d.ts +2 -81
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +2 -47
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +3 -3
- package/dist/PrimaryKey.js +1 -1
- package/dist/PubSub.d.ts +147 -46
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +93 -32
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +1 -1
- package/dist/Pull.js +1 -1
- package/dist/Queue.d.ts +40 -24
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +36 -20
- package/dist/Queue.js.map +1 -1
- package/dist/RcMap.d.ts +3 -3
- package/dist/RcMap.js +1 -1
- package/dist/Record.d.ts +79 -52
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +33 -22
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +7 -7
- package/dist/Redactable.js +7 -7
- package/dist/Reducer.d.ts +0 -2
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +0 -2
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +12 -12
- package/dist/Ref.js +10 -10
- package/dist/References.d.ts +20 -20
- package/dist/References.js +20 -20
- package/dist/RegExp.d.ts +2 -2
- package/dist/RegExp.js +2 -2
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +3 -3
- package/dist/RequestResolver.d.ts +11 -14
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +5 -6
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Result.d.ts +52 -34
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +44 -20
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +1 -1
- package/dist/Runtime.js +1 -1
- package/dist/Schedule.d.ts +20 -24
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +12 -12
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +3 -3
- package/dist/Scheduler.js +3 -3
- package/dist/Schema.d.ts +480 -210
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +410 -172
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +40 -32
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +40 -32
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +4 -6
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +4 -6
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +35 -47
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +31 -42
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +16 -12
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +16 -12
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +47 -62
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +44 -58
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +16 -18
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +13 -15
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Scope.d.ts +51 -14
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +29 -8
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +12 -12
- package/dist/ScopedCache.js +4 -4
- package/dist/ScopedRef.d.ts +2 -2
- package/dist/ScopedRef.js +2 -2
- package/dist/Semaphore.d.ts +1 -1
- package/dist/Semaphore.js +1 -1
- package/dist/Sink.d.ts +36 -41
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +21 -24
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +5 -4
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +4 -3
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +264 -165
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +103 -62
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +48 -47
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +32 -29
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +35 -100
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +13 -38
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +268 -91
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +90 -31
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +1 -1
- package/dist/Symbol.js +1 -1
- package/dist/SynchronizedRef.d.ts +27 -27
- package/dist/SynchronizedRef.js +9 -9
- package/dist/Terminal.d.ts +8 -3
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +8 -3
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +25 -7
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +25 -7
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +21 -23
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +7 -7
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +26 -73
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +10 -31
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +2 -2
- package/dist/TxChunk.js +2 -2
- package/dist/TxHashMap.d.ts +20 -20
- package/dist/TxHashMap.js +8 -8
- package/dist/TxHashSet.d.ts +14 -14
- package/dist/TxHashSet.js +6 -6
- package/dist/TxPriorityQueue.d.ts +14 -6
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +12 -4
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +4 -4
- package/dist/TxPubSub.js +4 -4
- package/dist/TxQueue.d.ts +10 -10
- package/dist/TxQueue.js +10 -10
- package/dist/TxReentrantLock.d.ts +48 -12
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +38 -10
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +1 -1
- package/dist/TxRef.js +1 -1
- package/dist/TxSubscriptionRef.d.ts +1 -1
- package/dist/TxSubscriptionRef.js +1 -1
- package/dist/Types.d.ts +8 -7
- package/dist/Types.d.ts.map +1 -1
- package/dist/Unify.d.ts +19 -19
- package/dist/Utils.d.ts +1 -2
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +1 -2
- package/dist/Utils.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +3 -11
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +3 -11
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +10 -5
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +10 -5
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +20 -5
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +20 -5
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +5 -4
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +4 -3
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +7 -2
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +7 -2
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +10 -5
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +10 -5
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +291 -169
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +270 -147
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +49 -13
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +21 -9
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +1 -1
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Response.d.ts +1 -1
- package/dist/unstable/ai/Response.js +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +7 -2
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +7 -2
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +3 -3
- package/dist/unstable/ai/Tool.js +3 -3
- package/dist/unstable/cli/CliError.d.ts +3 -3
- package/dist/unstable/cli/CliError.js +3 -3
- package/dist/unstable/cli/CliOutput.d.ts +1 -1
- package/dist/unstable/cli/Command.d.ts +3 -3
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Flag.d.ts +9 -9
- package/dist/unstable/cli/Flag.js +3 -3
- package/dist/unstable/cli/GlobalFlag.d.ts +13 -6
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +13 -6
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +2 -2
- package/dist/unstable/cli/Param.js +2 -2
- package/dist/unstable/cli/Primitive.d.ts +1 -1
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -6
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +26 -9
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +5 -5
- package/dist/unstable/cluster/ClusterMetrics.js +5 -5
- package/dist/unstable/cluster/ClusterSchema.d.ts +11 -2
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +11 -2
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +49 -10
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +6 -1
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js +6 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +15 -5
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +15 -5
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +5 -6
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +4 -5
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +11 -11
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +11 -11
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -8
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -8
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +10 -10
- package/dist/unstable/cluster/Message.js +10 -10
- package/dist/unstable/cluster/MessageStorage.d.ts +7 -7
- package/dist/unstable/cluster/MessageStorage.js +6 -6
- package/dist/unstable/cluster/Reply.d.ts +18 -8
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +18 -8
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +1 -1
- package/dist/unstable/cluster/Runner.js +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +7 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +7 -1
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +4 -4
- package/dist/unstable/cluster/RunnerHealth.js +4 -4
- package/dist/unstable/cluster/RunnerServer.d.ts +4 -3
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +4 -3
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +2 -2
- package/dist/unstable/cluster/ShardId.js +2 -2
- package/dist/unstable/cluster/Sharding.d.ts +8 -3
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +8 -3
- 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/ShardingRegistrationEvent.d.ts +1 -2
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +1 -2
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
- package/dist/unstable/cluster/SingleRunner.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +6 -5
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +6 -5
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +6 -1
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +6 -1
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +1 -1
- package/dist/unstable/cluster/TestRunner.js +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +2 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +2 -1
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +3 -3
- package/dist/unstable/encoding/Sse.js +3 -3
- package/dist/unstable/eventlog/EventGroup.d.ts +1 -1
- package/dist/unstable/eventlog/EventGroup.js +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
- package/dist/unstable/eventlog/EventJournal.js +5 -5
- package/dist/unstable/eventlog/EventLog.d.ts +11 -10
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +9 -8
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +28 -28
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +27 -27
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +14 -4
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +14 -4
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +7 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +7 -2
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +7 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +7 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +37 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +37 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +33 -7
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +33 -7
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +40 -39
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -17
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +6 -1
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +6 -1
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +8 -7
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +6 -5
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +6 -2
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +6 -2
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +29 -9
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +15 -5
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +15 -14
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +12 -11
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +1 -1
- package/dist/unstable/http/HttpClientRequest.js +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +3 -3
- package/dist/unstable/http/HttpEffect.js +3 -3
- package/dist/unstable/http/HttpMethod.d.ts +16 -5
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +16 -5
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +18 -13
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +14 -9
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +4 -4
- package/dist/unstable/http/HttpServer.js +4 -4
- package/dist/unstable/http/HttpServerError.d.ts +9 -9
- package/dist/unstable/http/HttpServerError.js +7 -7
- package/dist/unstable/http/HttpServerRequest.d.ts +20 -5
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +20 -5
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +24 -24
- package/dist/unstable/http/HttpServerResponse.js +8 -8
- package/dist/unstable/http/HttpTraceContext.d.ts +4 -4
- package/dist/unstable/http/HttpTraceContext.js +4 -4
- package/dist/unstable/http/Multipart.d.ts +2 -2
- package/dist/unstable/http/Multipart.js +2 -2
- package/dist/unstable/http/Url.d.ts +14 -17
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +5 -6
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +10 -10
- package/dist/unstable/http/UrlParams.js +6 -6
- package/dist/unstable/httpapi/HttpApi.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApi.js +2 -2
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +3 -3
- package/dist/unstable/httpapi/HttpApiBuilder.js +2 -2
- package/dist/unstable/httpapi/HttpApiError.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApiError.js +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +4 -7
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +3 -6
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +7 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +7 -1
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +1 -1
- package/dist/unstable/observability/OtlpLogger.js +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +2 -2
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- 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 +6 -1
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +8 -3
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +8 -3
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +10 -5
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +9 -4
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +20 -10
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +19 -9
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +14 -14
- package/dist/unstable/process/ChildProcess.js +7 -7
- package/dist/unstable/process/ChildProcessSpawner.d.ts +2 -2
- package/dist/unstable/process/ChildProcessSpawner.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +36 -5
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +14 -3
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +45 -13
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +34 -10
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +7 -2
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +7 -2
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +6 -1
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +6 -1
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +6 -1
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +18 -14
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +15 -11
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +27 -12
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +27 -12
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
- package/dist/unstable/rpc/RpcClientError.js +2 -2
- package/dist/unstable/rpc/RpcMessage.d.ts +5 -5
- package/dist/unstable/rpc/RpcMessage.js +4 -4
- package/dist/unstable/rpc/RpcSchema.d.ts +1 -1
- package/dist/unstable/rpc/RpcSchema.js +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +19 -12
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +19 -12
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +22 -17
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +22 -17
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +32 -33
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +25 -26
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -1
- package/dist/unstable/schema/VariantSchema.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +8 -2
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +8 -2
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +2 -2
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +7 -2
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +7 -2
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/SqlError.d.ts +2 -2
- package/dist/unstable/sql/SqlError.js +2 -2
- package/dist/unstable/sql/SqlResolver.d.ts +3 -3
- package/dist/unstable/sql/SqlResolver.js +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +19 -4
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +19 -4
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +3 -6
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +3 -6
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +2 -2
- package/dist/unstable/workflow/DurableClock.js +2 -2
- package/dist/unstable/workflow/DurableDeferred.d.ts +12 -12
- package/dist/unstable/workflow/DurableDeferred.js +7 -7
- package/dist/unstable/workflow/DurableQueue.d.ts +3 -3
- package/dist/unstable/workflow/DurableQueue.js +3 -3
- package/dist/unstable/workflow/Workflow.d.ts +22 -23
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +17 -18
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +26 -8
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +25 -7
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +65 -113
- package/src/BigDecimal.ts +66 -58
- package/src/BigInt.ts +21 -19
- package/src/Boolean.ts +15 -17
- package/src/Brand.ts +2 -3
- package/src/Cache.ts +9 -9
- package/src/Cause.ts +35 -39
- package/src/Channel.ts +149 -107
- package/src/ChannelSchema.ts +3 -3
- package/src/Chunk.ts +67 -54
- package/src/Clock.ts +3 -3
- package/src/Combiner.ts +6 -10
- package/src/Config.ts +9 -10
- package/src/ConfigProvider.ts +4 -4
- package/src/Console.ts +11 -7
- package/src/Context.ts +36 -36
- package/src/Cron.ts +7 -6
- package/src/Crypto.ts +1 -1
- package/src/Data.ts +26 -32
- package/src/DateTime.ts +164 -122
- package/src/Deferred.ts +6 -6
- package/src/Duration.ts +39 -39
- package/src/Effect.ts +220 -309
- package/src/Effectable.ts +2 -2
- package/src/Encoding.ts +13 -10
- package/src/Equal.ts +3 -4
- package/src/Equivalence.ts +5 -19
- package/src/ErrorReporter.ts +14 -13
- package/src/ExecutionPlan.ts +7 -2
- package/src/Exit.ts +25 -23
- package/src/Fiber.ts +4 -4
- package/src/FiberHandle.ts +6 -6
- package/src/FiberMap.ts +20 -20
- package/src/FiberSet.ts +21 -13
- package/src/FileSystem.ts +13 -9
- package/src/Filter.ts +2 -2
- package/src/Formatter.ts +1 -3
- package/src/Function.ts +12 -12
- package/src/Graph.ts +22 -22
- package/src/HKT.ts +5 -4
- package/src/Hash.ts +3 -3
- package/src/HashMap.ts +33 -35
- package/src/HashRing.ts +7 -9
- package/src/HashSet.ts +16 -16
- package/src/Inspectable.ts +4 -4
- package/src/Iterable.ts +82 -56
- package/src/JsonPatch.ts +1 -1
- package/src/JsonPointer.ts +3 -3
- package/src/JsonSchema.ts +13 -23
- package/src/Latch.ts +2 -2
- package/src/Layer.ts +47 -27
- package/src/LayerMap.ts +1 -2
- package/src/LogLevel.ts +3 -3
- package/src/Logger.ts +6 -6
- package/src/ManagedRuntime.ts +1 -1
- package/src/Match.ts +32 -37
- package/src/Metric.ts +35 -21
- package/src/MutableHashMap.ts +21 -31
- package/src/MutableHashSet.ts +4 -4
- package/src/MutableList.ts +16 -6
- package/src/MutableRef.ts +5 -4
- package/src/NonEmptyIterable.ts +3 -3
- package/src/Number.ts +20 -18
- package/src/Optic.ts +11 -18
- package/src/Option.ts +21 -24
- package/src/Order.ts +11 -38
- package/src/Ordering.ts +5 -5
- package/src/PartitionedSemaphore.ts +4 -8
- package/src/Path.ts +4 -7
- package/src/Pipeable.ts +2 -2
- package/src/PlatformError.ts +1 -1
- package/src/Predicate.ts +2 -81
- package/src/PrimaryKey.ts +3 -3
- package/src/PubSub.ts +147 -46
- package/src/Pull.ts +1 -1
- package/src/Queue.ts +40 -24
- package/src/RcMap.ts +3 -3
- package/src/Record.ts +79 -52
- package/src/Redactable.ts +7 -7
- package/src/Reducer.ts +0 -2
- package/src/Ref.ts +32 -32
- package/src/References.ts +20 -20
- package/src/RegExp.ts +2 -2
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +11 -14
- package/src/Result.ts +52 -34
- package/src/Runtime.ts +1 -1
- package/src/Schedule.ts +28 -36
- package/src/Scheduler.ts +3 -3
- package/src/Schema.ts +480 -210
- package/src/SchemaAST.ts +40 -32
- package/src/SchemaGetter.ts +4 -6
- package/src/SchemaIssue.ts +35 -47
- package/src/SchemaParser.ts +16 -12
- package/src/SchemaRepresentation.ts +47 -62
- package/src/SchemaTransformation.ts +16 -18
- package/src/Scope.ts +51 -14
- package/src/ScopedCache.ts +14 -14
- package/src/ScopedRef.ts +2 -2
- package/src/Semaphore.ts +1 -1
- package/src/Sink.ts +36 -41
- package/src/Stdio.ts +5 -4
- package/src/Stream.ts +275 -176
- package/src/String.ts +50 -49
- package/src/Struct.ts +35 -100
- package/src/SubscriptionRef.ts +268 -91
- package/src/Symbol.ts +1 -1
- package/src/SynchronizedRef.ts +27 -27
- package/src/Terminal.ts +8 -3
- package/src/Tracer.ts +25 -7
- package/src/Trie.ts +21 -23
- package/src/Tuple.ts +26 -73
- package/src/TxChunk.ts +2 -2
- package/src/TxHashMap.ts +22 -22
- package/src/TxHashSet.ts +22 -22
- package/src/TxPriorityQueue.ts +14 -6
- package/src/TxPubSub.ts +4 -4
- package/src/TxQueue.ts +10 -10
- package/src/TxReentrantLock.ts +48 -12
- package/src/TxRef.ts +1 -1
- package/src/TxSubscriptionRef.ts +1 -1
- package/src/Types.ts +8 -7
- package/src/Unify.ts +19 -19
- package/src/Utils.ts +1 -2
- package/src/testing/TestSchema.ts +3 -11
- package/src/unstable/ai/AiError.ts +10 -5
- package/src/unstable/ai/Chat.ts +20 -5
- package/src/unstable/ai/EmbeddingModel.ts +5 -4
- package/src/unstable/ai/IdGenerator.ts +7 -2
- package/src/unstable/ai/LanguageModel.ts +10 -5
- package/src/unstable/ai/McpSchema.ts +291 -169
- package/src/unstable/ai/McpServer.ts +49 -13
- package/src/unstable/ai/Prompt.ts +1 -1
- package/src/unstable/ai/Response.ts +1 -1
- package/src/unstable/ai/Tokenizer.ts +7 -2
- package/src/unstable/ai/Tool.ts +3 -3
- package/src/unstable/cli/CliError.ts +3 -3
- package/src/unstable/cli/CliOutput.ts +1 -1
- package/src/unstable/cli/Command.ts +3 -3
- package/src/unstable/cli/Flag.ts +9 -9
- package/src/unstable/cli/GlobalFlag.ts +13 -6
- package/src/unstable/cli/Param.ts +2 -2
- package/src/unstable/cli/Primitive.ts +1 -1
- package/src/unstable/cli/Prompt.ts +37 -13
- package/src/unstable/cli/internal/parser.ts +1 -1
- package/src/unstable/cluster/ClusterMetrics.ts +5 -5
- package/src/unstable/cluster/ClusterSchema.ts +11 -2
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +63 -11
- package/src/unstable/cluster/DeliverAt.ts +6 -1
- package/src/unstable/cluster/Entity.ts +15 -5
- package/src/unstable/cluster/EntityResource.ts +5 -6
- package/src/unstable/cluster/Envelope.ts +11 -11
- package/src/unstable/cluster/HttpRunner.ts +16 -8
- package/src/unstable/cluster/Message.ts +10 -10
- package/src/unstable/cluster/MessageStorage.ts +7 -7
- package/src/unstable/cluster/Reply.ts +18 -8
- package/src/unstable/cluster/Runner.ts +1 -1
- package/src/unstable/cluster/RunnerAddress.ts +7 -1
- package/src/unstable/cluster/RunnerHealth.ts +4 -4
- package/src/unstable/cluster/RunnerServer.ts +4 -3
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/ShardId.ts +2 -2
- package/src/unstable/cluster/Sharding.ts +8 -3
- package/src/unstable/cluster/ShardingConfig.ts +3 -3
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +1 -2
- package/src/unstable/cluster/SingleRunner.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +6 -5
- package/src/unstable/cluster/SocketRunner.ts +6 -1
- package/src/unstable/cluster/TestRunner.ts +1 -1
- package/src/unstable/encoding/Msgpack.ts +2 -1
- package/src/unstable/encoding/Sse.ts +3 -3
- package/src/unstable/eventlog/EventGroup.ts +1 -1
- package/src/unstable/eventlog/EventJournal.ts +7 -7
- package/src/unstable/eventlog/EventLog.ts +11 -10
- package/src/unstable/eventlog/EventLogEncryption.ts +8 -3
- package/src/unstable/eventlog/EventLogMessage.ts +28 -28
- package/src/unstable/eventlog/EventLogRemote.ts +14 -4
- package/src/unstable/eventlog/EventLogServer.ts +7 -2
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +7 -2
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +37 -7
- package/src/unstable/eventlog/EventLogSessionAuth.ts +33 -7
- package/src/unstable/http/Cookies.ts +40 -39
- package/src/unstable/http/FetchHttpClient.ts +6 -1
- package/src/unstable/http/Headers.ts +10 -9
- package/src/unstable/http/HttpBody.ts +6 -2
- package/src/unstable/http/HttpClient.ts +29 -9
- package/src/unstable/http/HttpClientError.ts +15 -14
- package/src/unstable/http/HttpClientRequest.ts +1 -1
- package/src/unstable/http/HttpEffect.ts +3 -3
- package/src/unstable/http/HttpMethod.ts +16 -5
- package/src/unstable/http/HttpRouter.ts +18 -13
- package/src/unstable/http/HttpServer.ts +4 -4
- package/src/unstable/http/HttpServerError.ts +9 -9
- package/src/unstable/http/HttpServerRequest.ts +20 -5
- package/src/unstable/http/HttpServerResponse.ts +24 -24
- package/src/unstable/http/HttpTraceContext.ts +4 -4
- package/src/unstable/http/Multipart.ts +2 -2
- package/src/unstable/http/Url.ts +14 -17
- package/src/unstable/http/UrlParams.ts +10 -10
- package/src/unstable/httpapi/HttpApi.ts +2 -2
- package/src/unstable/httpapi/HttpApiBuilder.ts +3 -3
- package/src/unstable/httpapi/HttpApiError.ts +2 -2
- package/src/unstable/httpapi/HttpApiSchema.ts +4 -7
- package/src/unstable/httpapi/HttpApiTest.ts +1 -1
- package/src/unstable/httpapi/OpenApi.ts +7 -1
- package/src/unstable/observability/OtlpLogger.ts +1 -1
- package/src/unstable/observability/PrometheusMetrics.ts +2 -2
- package/src/unstable/persistence/KeyValueStore.ts +8 -3
- package/src/unstable/persistence/Persistable.ts +8 -3
- package/src/unstable/persistence/PersistedQueue.ts +10 -5
- package/src/unstable/persistence/RateLimiter.ts +20 -10
- package/src/unstable/process/ChildProcess.ts +14 -14
- package/src/unstable/process/ChildProcessSpawner.ts +2 -2
- package/src/unstable/reactivity/AsyncResult.ts +58 -7
- package/src/unstable/reactivity/Atom.ts +53 -13
- package/src/unstable/reactivity/AtomRegistry.ts +7 -2
- package/src/unstable/reactivity/Hydration.ts +6 -1
- package/src/unstable/reactivity/Reactivity.ts +6 -1
- package/src/unstable/rpc/Rpc.ts +18 -14
- package/src/unstable/rpc/RpcClient.ts +27 -12
- package/src/unstable/rpc/RpcClientError.ts +2 -2
- package/src/unstable/rpc/RpcMessage.ts +5 -5
- package/src/unstable/rpc/RpcSchema.ts +1 -1
- package/src/unstable/rpc/RpcSerialization.ts +19 -12
- package/src/unstable/rpc/RpcServer.ts +22 -17
- package/src/unstable/schema/Model.ts +32 -33
- package/src/unstable/schema/VariantSchema.ts +1 -1
- package/src/unstable/socket/Socket.ts +8 -2
- package/src/unstable/socket/SocketServer.ts +2 -2
- package/src/unstable/sql/SqlClient.ts +7 -2
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/SqlError.ts +2 -2
- package/src/unstable/sql/SqlResolver.ts +3 -3
- package/src/unstable/sql/SqlSchema.ts +19 -4
- package/src/unstable/workers/Transferable.ts +3 -6
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workers/WorkerError.ts +1 -1
- package/src/unstable/workflow/DurableClock.ts +2 -2
- package/src/unstable/workflow/DurableDeferred.ts +12 -12
- package/src/unstable/workflow/DurableQueue.ts +3 -3
- package/src/unstable/workflow/Workflow.ts +22 -23
- package/src/unstable/workflow/WorkflowEngine.ts +26 -8
package/dist/Tuple.d.ts
CHANGED
|
@@ -111,8 +111,7 @@ type Indices<T extends ReadonlyArray<unknown>> = Exclude<Partial<T>["length"], T
|
|
|
111
111
|
*
|
|
112
112
|
* **Details**
|
|
113
113
|
*
|
|
114
|
-
* The index is constrained to valid tuple positions at the type level
|
|
115
|
-
* input tuple is not mutated.
|
|
114
|
+
* The index is constrained to valid tuple positions at the type level.
|
|
116
115
|
*
|
|
117
116
|
* **Example** (Extracting an element by index)
|
|
118
117
|
*
|
|
@@ -138,8 +137,7 @@ export declare const get: {
|
|
|
138
137
|
*
|
|
139
138
|
* **Details**
|
|
140
139
|
*
|
|
141
|
-
* The index is constrained to valid tuple positions at the type level
|
|
142
|
-
* input tuple is not mutated.
|
|
140
|
+
* The index is constrained to valid tuple positions at the type level.
|
|
143
141
|
*
|
|
144
142
|
* **Example** (Extracting an element by index)
|
|
145
143
|
*
|
|
@@ -165,8 +163,7 @@ export declare const get: {
|
|
|
165
163
|
*
|
|
166
164
|
* **Details**
|
|
167
165
|
*
|
|
168
|
-
* The index is constrained to valid tuple positions at the type level
|
|
169
|
-
* input tuple is not mutated.
|
|
166
|
+
* The index is constrained to valid tuple positions at the type level.
|
|
170
167
|
*
|
|
171
168
|
* **Example** (Extracting an element by index)
|
|
172
169
|
*
|
|
@@ -198,8 +195,7 @@ type PickTuple<T extends ReadonlyArray<unknown>, K> = _BuildTuple<T, K>;
|
|
|
198
195
|
*
|
|
199
196
|
* **Details**
|
|
200
197
|
*
|
|
201
|
-
* The result order matches the order of the provided indices.
|
|
202
|
-
* not mutated; a fresh tuple is returned.
|
|
198
|
+
* The result order matches the order of the provided indices.
|
|
203
199
|
*
|
|
204
200
|
* **Example** (Selecting elements by index)
|
|
205
201
|
*
|
|
@@ -225,8 +221,7 @@ export declare const pick: {
|
|
|
225
221
|
*
|
|
226
222
|
* **Details**
|
|
227
223
|
*
|
|
228
|
-
* The result order matches the order of the provided indices.
|
|
229
|
-
* not mutated; a fresh tuple is returned.
|
|
224
|
+
* The result order matches the order of the provided indices.
|
|
230
225
|
*
|
|
231
226
|
* **Example** (Selecting elements by index)
|
|
232
227
|
*
|
|
@@ -252,8 +247,7 @@ export declare const pick: {
|
|
|
252
247
|
*
|
|
253
248
|
* **Details**
|
|
254
249
|
*
|
|
255
|
-
* The result order matches the order of the provided indices.
|
|
256
|
-
* not mutated; a fresh tuple is returned.
|
|
250
|
+
* The result order matches the order of the provided indices.
|
|
257
251
|
*
|
|
258
252
|
* **Example** (Selecting elements by index)
|
|
259
253
|
*
|
|
@@ -281,8 +275,7 @@ type OmitTuple<T extends ReadonlyArray<unknown>, K> = _BuildTuple<T, Exclude<Ind
|
|
|
281
275
|
*
|
|
282
276
|
* **Details**
|
|
283
277
|
*
|
|
284
|
-
* Elements not at the specified indices are kept in their original order.
|
|
285
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
278
|
+
* Elements not at the specified indices are kept in their original order.
|
|
286
279
|
*
|
|
287
280
|
* **Example** (Removing elements by index)
|
|
288
281
|
*
|
|
@@ -307,8 +300,7 @@ export declare const omit: {
|
|
|
307
300
|
*
|
|
308
301
|
* **Details**
|
|
309
302
|
*
|
|
310
|
-
* Elements not at the specified indices are kept in their original order.
|
|
311
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
303
|
+
* Elements not at the specified indices are kept in their original order.
|
|
312
304
|
*
|
|
313
305
|
* **Example** (Removing elements by index)
|
|
314
306
|
*
|
|
@@ -333,8 +325,7 @@ export declare const omit: {
|
|
|
333
325
|
*
|
|
334
326
|
* **Details**
|
|
335
327
|
*
|
|
336
|
-
* Elements not at the specified indices are kept in their original order.
|
|
337
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
328
|
+
* Elements not at the specified indices are kept in their original order.
|
|
338
329
|
*
|
|
339
330
|
* **Example** (Removing elements by index)
|
|
340
331
|
*
|
|
@@ -360,8 +351,7 @@ export declare const omit: {
|
|
|
360
351
|
*
|
|
361
352
|
* **Details**
|
|
362
353
|
*
|
|
363
|
-
* The result type is `[...T, E]`, preserving all existing element types.
|
|
364
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
354
|
+
* The result type is `[...T, E]`, preserving all existing element types.
|
|
365
355
|
*
|
|
366
356
|
* **Example** (Appending an element)
|
|
367
357
|
*
|
|
@@ -386,8 +376,7 @@ export declare const appendElement: {
|
|
|
386
376
|
*
|
|
387
377
|
* **Details**
|
|
388
378
|
*
|
|
389
|
-
* The result type is `[...T, E]`, preserving all existing element types.
|
|
390
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
379
|
+
* The result type is `[...T, E]`, preserving all existing element types.
|
|
391
380
|
*
|
|
392
381
|
* **Example** (Appending an element)
|
|
393
382
|
*
|
|
@@ -412,8 +401,7 @@ export declare const appendElement: {
|
|
|
412
401
|
*
|
|
413
402
|
* **Details**
|
|
414
403
|
*
|
|
415
|
-
* The result type is `[...T, E]`, preserving all existing element types.
|
|
416
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
404
|
+
* The result type is `[...T, E]`, preserving all existing element types.
|
|
417
405
|
*
|
|
418
406
|
* **Example** (Appending an element)
|
|
419
407
|
*
|
|
@@ -527,7 +515,7 @@ type Evolved<T, E> = {
|
|
|
527
515
|
* **Details**
|
|
528
516
|
*
|
|
529
517
|
* Each transform function receives the current value and can return a different
|
|
530
|
-
* type.
|
|
518
|
+
* type.
|
|
531
519
|
*
|
|
532
520
|
* **Example** (Transforming selected elements)
|
|
533
521
|
*
|
|
@@ -562,7 +550,7 @@ export declare const evolve: {
|
|
|
562
550
|
* **Details**
|
|
563
551
|
*
|
|
564
552
|
* Each transform function receives the current value and can return a different
|
|
565
|
-
* type.
|
|
553
|
+
* type.
|
|
566
554
|
*
|
|
567
555
|
* **Example** (Transforming selected elements)
|
|
568
556
|
*
|
|
@@ -597,7 +585,7 @@ export declare const evolve: {
|
|
|
597
585
|
* **Details**
|
|
598
586
|
*
|
|
599
587
|
* Each transform function receives the current value and can return a different
|
|
600
|
-
* type.
|
|
588
|
+
* type.
|
|
601
589
|
*
|
|
602
590
|
* **Example** (Transforming selected elements)
|
|
603
591
|
*
|
|
@@ -622,7 +610,7 @@ export declare const evolve: {
|
|
|
622
610
|
<const T extends ReadonlyArray<unknown>, const E extends Evolver<T>>(self: T, evolver: E): Evolved<T, E>;
|
|
623
611
|
};
|
|
624
612
|
/**
|
|
625
|
-
*
|
|
613
|
+
* Renames tuple indices by providing an array of stringified source
|
|
626
614
|
* indices. Each position in the array specifies which index to read from
|
|
627
615
|
* (e.g., `["2", "1", "0"]` reverses a 3-element tuple).
|
|
628
616
|
*
|
|
@@ -632,7 +620,7 @@ export declare const evolve: {
|
|
|
632
620
|
*
|
|
633
621
|
* **Details**
|
|
634
622
|
*
|
|
635
|
-
* The
|
|
623
|
+
* The mapping returns a tuple in the requested index order.
|
|
636
624
|
*
|
|
637
625
|
* **Gotchas**
|
|
638
626
|
*
|
|
@@ -656,7 +644,7 @@ export declare const evolve: {
|
|
|
656
644
|
*/
|
|
657
645
|
export declare const renameIndices: {
|
|
658
646
|
/**
|
|
659
|
-
*
|
|
647
|
+
* Renames tuple indices by providing an array of stringified source
|
|
660
648
|
* indices. Each position in the array specifies which index to read from
|
|
661
649
|
* (e.g., `["2", "1", "0"]` reverses a 3-element tuple).
|
|
662
650
|
*
|
|
@@ -666,7 +654,7 @@ export declare const renameIndices: {
|
|
|
666
654
|
*
|
|
667
655
|
* **Details**
|
|
668
656
|
*
|
|
669
|
-
* The
|
|
657
|
+
* The mapping returns a tuple in the requested index order.
|
|
670
658
|
*
|
|
671
659
|
* **Gotchas**
|
|
672
660
|
*
|
|
@@ -694,7 +682,7 @@ export declare const renameIndices: {
|
|
|
694
682
|
[I in keyof T]: I extends keyof M ? M[I] extends keyof T ? T[M[I]] : T[I] : T[I];
|
|
695
683
|
};
|
|
696
684
|
/**
|
|
697
|
-
*
|
|
685
|
+
* Renames tuple indices by providing an array of stringified source
|
|
698
686
|
* indices. Each position in the array specifies which index to read from
|
|
699
687
|
* (e.g., `["2", "1", "0"]` reverses a 3-element tuple).
|
|
700
688
|
*
|
|
@@ -704,7 +692,7 @@ export declare const renameIndices: {
|
|
|
704
692
|
*
|
|
705
693
|
* **Details**
|
|
706
694
|
*
|
|
707
|
-
* The
|
|
695
|
+
* The mapping returns a tuple in the requested index order.
|
|
708
696
|
*
|
|
709
697
|
* **Gotchas**
|
|
710
698
|
*
|
|
@@ -741,8 +729,7 @@ export declare const renameIndices: {
|
|
|
741
729
|
*
|
|
742
730
|
* **Details**
|
|
743
731
|
*
|
|
744
|
-
* The lambda lets the compiler track the output type for each element.
|
|
745
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
732
|
+
* The lambda lets the compiler track the output type for each element.
|
|
746
733
|
*
|
|
747
734
|
* **Gotchas**
|
|
748
735
|
*
|
|
@@ -780,8 +767,7 @@ export declare const map: {
|
|
|
780
767
|
*
|
|
781
768
|
* **Details**
|
|
782
769
|
*
|
|
783
|
-
* The lambda lets the compiler track the output type for each element.
|
|
784
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
770
|
+
* The lambda lets the compiler track the output type for each element.
|
|
785
771
|
*
|
|
786
772
|
* **Gotchas**
|
|
787
773
|
*
|
|
@@ -821,8 +807,7 @@ export declare const map: {
|
|
|
821
807
|
*
|
|
822
808
|
* **Details**
|
|
823
809
|
*
|
|
824
|
-
* The lambda lets the compiler track the output type for each element.
|
|
825
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
810
|
+
* The lambda lets the compiler track the output type for each element.
|
|
826
811
|
*
|
|
827
812
|
* **Gotchas**
|
|
828
813
|
*
|
|
@@ -863,10 +848,6 @@ export declare const map: {
|
|
|
863
848
|
* Use when you want to apply the same transformation to a subset of
|
|
864
849
|
* positions.
|
|
865
850
|
*
|
|
866
|
-
* **Details**
|
|
867
|
-
*
|
|
868
|
-
* The input tuple is not mutated; a fresh tuple is returned.
|
|
869
|
-
*
|
|
870
851
|
* **Example** (Wrapping only selected elements in arrays)
|
|
871
852
|
*
|
|
872
853
|
* ```ts
|
|
@@ -900,10 +881,6 @@ export declare const mapPick: {
|
|
|
900
881
|
* Use when you want to apply the same transformation to a subset of
|
|
901
882
|
* positions.
|
|
902
883
|
*
|
|
903
|
-
* **Details**
|
|
904
|
-
*
|
|
905
|
-
* The input tuple is not mutated; a fresh tuple is returned.
|
|
906
|
-
*
|
|
907
884
|
* **Example** (Wrapping only selected elements in arrays)
|
|
908
885
|
*
|
|
909
886
|
* ```ts
|
|
@@ -939,10 +916,6 @@ export declare const mapPick: {
|
|
|
939
916
|
* Use when you want to apply the same transformation to a subset of
|
|
940
917
|
* positions.
|
|
941
918
|
*
|
|
942
|
-
* **Details**
|
|
943
|
-
*
|
|
944
|
-
* The input tuple is not mutated; a fresh tuple is returned.
|
|
945
|
-
*
|
|
946
919
|
* **Example** (Wrapping only selected elements in arrays)
|
|
947
920
|
*
|
|
948
921
|
* ```ts
|
|
@@ -979,10 +952,6 @@ export declare const mapPick: {
|
|
|
979
952
|
* Use when most elements should be transformed but a few should be
|
|
980
953
|
* preserved.
|
|
981
954
|
*
|
|
982
|
-
* **Details**
|
|
983
|
-
*
|
|
984
|
-
* The input tuple is not mutated; a fresh tuple is returned.
|
|
985
|
-
*
|
|
986
955
|
* **Example** (Wrapping all elements except one in arrays)
|
|
987
956
|
*
|
|
988
957
|
* ```ts
|
|
@@ -1016,10 +985,6 @@ export declare const mapOmit: {
|
|
|
1016
985
|
* Use when most elements should be transformed but a few should be
|
|
1017
986
|
* preserved.
|
|
1018
987
|
*
|
|
1019
|
-
* **Details**
|
|
1020
|
-
*
|
|
1021
|
-
* The input tuple is not mutated; a fresh tuple is returned.
|
|
1022
|
-
*
|
|
1023
988
|
* **Example** (Wrapping all elements except one in arrays)
|
|
1024
989
|
*
|
|
1025
990
|
* ```ts
|
|
@@ -1055,10 +1020,6 @@ export declare const mapOmit: {
|
|
|
1055
1020
|
* Use when most elements should be transformed but a few should be
|
|
1056
1021
|
* preserved.
|
|
1057
1022
|
*
|
|
1058
|
-
* **Details**
|
|
1059
|
-
*
|
|
1060
|
-
* The input tuple is not mutated; a fresh tuple is returned.
|
|
1061
|
-
*
|
|
1062
1023
|
* **Example** (Wrapping all elements except one in arrays)
|
|
1063
1024
|
*
|
|
1064
1025
|
* ```ts
|
|
@@ -1149,7 +1110,7 @@ export declare const makeEquivalence: typeof Equivalence.Tuple;
|
|
|
1149
1110
|
export declare const makeOrder: typeof order.Tuple;
|
|
1150
1111
|
export {
|
|
1151
1112
|
/**
|
|
1152
|
-
* Checks
|
|
1113
|
+
* Checks whether an array has exactly `N` elements, narrowing the type to a
|
|
1153
1114
|
* fixed-length tuple.
|
|
1154
1115
|
*
|
|
1155
1116
|
* **When to use**
|
|
@@ -1183,7 +1144,7 @@ export {
|
|
|
1183
1144
|
*/
|
|
1184
1145
|
isTupleOf,
|
|
1185
1146
|
/**
|
|
1186
|
-
* Checks
|
|
1147
|
+
* Checks whether an array has at least `N` elements, narrowing the type to a
|
|
1187
1148
|
* tuple with a minimum length.
|
|
1188
1149
|
*
|
|
1189
1150
|
* **When to use**
|
|
@@ -1227,10 +1188,6 @@ isTupleOfAtLeast } from "./Predicate.ts";
|
|
|
1227
1188
|
* Use when you need to merge two tuples of the same shape, such as summing
|
|
1228
1189
|
* counters or concatenating strings.
|
|
1229
1190
|
*
|
|
1230
|
-
* **Details**
|
|
1231
|
-
*
|
|
1232
|
-
* The inputs are not mutated; a fresh tuple is returned.
|
|
1233
|
-
*
|
|
1234
1191
|
* **Example** (Combining tuple elements)
|
|
1235
1192
|
*
|
|
1236
1193
|
* ```ts
|
|
@@ -1262,10 +1219,6 @@ export declare function makeCombiner<A extends ReadonlyArray<unknown>>(combiners
|
|
|
1262
1219
|
*
|
|
1263
1220
|
* Use to fold a collection of tuples into a single summary tuple.
|
|
1264
1221
|
*
|
|
1265
|
-
* **Details**
|
|
1266
|
-
*
|
|
1267
|
-
* The inputs are not mutated; a fresh tuple is returned.
|
|
1268
|
-
*
|
|
1269
1222
|
* **Example** (Reducing a collection of tuples)
|
|
1270
1223
|
*
|
|
1271
1224
|
* ```ts
|
package/dist/Tuple.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tuple.d.ts","sourceRoot":"","sources":["../src/Tuple.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA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E,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAA;CAW5M,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,eAAe,0BAAoB,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,SAAS,oBAAc,CAAA;AAEpC,OAAO;AACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAS;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,gBAAgB,EACjB,MAAM,gBAAgB,CAAA;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,aAAa,CAAC,OAAO,CAAC,EAC3D,SAAS,EAAE;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC9D,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAQtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,aAAa,CAAC,OAAO,CAAC,EAC1D,QAAQ,EAAE;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC3D,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAOpB"}
|
package/dist/Tuple.js
CHANGED
|
@@ -110,8 +110,7 @@ export const make = (...elements) => elements;
|
|
|
110
110
|
*
|
|
111
111
|
* **Details**
|
|
112
112
|
*
|
|
113
|
-
* The index is constrained to valid tuple positions at the type level
|
|
114
|
-
* input tuple is not mutated.
|
|
113
|
+
* The index is constrained to valid tuple positions at the type level.
|
|
115
114
|
*
|
|
116
115
|
* **Example** (Extracting an element by index)
|
|
117
116
|
*
|
|
@@ -137,8 +136,7 @@ export const get = /*#__PURE__*/dual(2, (self, index) => self[index]);
|
|
|
137
136
|
*
|
|
138
137
|
* **Details**
|
|
139
138
|
*
|
|
140
|
-
* The result order matches the order of the provided indices.
|
|
141
|
-
* not mutated; a fresh tuple is returned.
|
|
139
|
+
* The result order matches the order of the provided indices.
|
|
142
140
|
*
|
|
143
141
|
* **Example** (Selecting elements by index)
|
|
144
142
|
*
|
|
@@ -166,8 +164,7 @@ export const pick = /*#__PURE__*/dual(2, (self, indices) => {
|
|
|
166
164
|
*
|
|
167
165
|
* **Details**
|
|
168
166
|
*
|
|
169
|
-
* Elements not at the specified indices are kept in their original order.
|
|
170
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
167
|
+
* Elements not at the specified indices are kept in their original order.
|
|
171
168
|
*
|
|
172
169
|
* **Example** (Removing elements by index)
|
|
173
170
|
*
|
|
@@ -195,8 +192,7 @@ export const omit = /*#__PURE__*/dual(2, (self, indices) => {
|
|
|
195
192
|
*
|
|
196
193
|
* **Details**
|
|
197
194
|
*
|
|
198
|
-
* The result type is `[...T, E]`, preserving all existing element types.
|
|
199
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
195
|
+
* The result type is `[...T, E]`, preserving all existing element types.
|
|
200
196
|
*
|
|
201
197
|
* **Example** (Appending an element)
|
|
202
198
|
*
|
|
@@ -250,7 +246,7 @@ export const appendElements = /*#__PURE__*/dual(2, (self, that) => [...self, ...
|
|
|
250
246
|
* **Details**
|
|
251
247
|
*
|
|
252
248
|
* Each transform function receives the current value and can return a different
|
|
253
|
-
* type.
|
|
249
|
+
* type.
|
|
254
250
|
*
|
|
255
251
|
* **Example** (Transforming selected elements)
|
|
256
252
|
*
|
|
@@ -276,7 +272,7 @@ export const evolve = /*#__PURE__*/dual(2, (self, evolver) => {
|
|
|
276
272
|
return self.map((e, i) => evolver[i] !== undefined ? evolver[i](e) : e);
|
|
277
273
|
});
|
|
278
274
|
/**
|
|
279
|
-
*
|
|
275
|
+
* Renames tuple indices by providing an array of stringified source
|
|
280
276
|
* indices. Each position in the array specifies which index to read from
|
|
281
277
|
* (e.g., `["2", "1", "0"]` reverses a 3-element tuple).
|
|
282
278
|
*
|
|
@@ -286,7 +282,7 @@ export const evolve = /*#__PURE__*/dual(2, (self, evolver) => {
|
|
|
286
282
|
*
|
|
287
283
|
* **Details**
|
|
288
284
|
*
|
|
289
|
-
* The
|
|
285
|
+
* The mapping returns a tuple in the requested index order.
|
|
290
286
|
*
|
|
291
287
|
* **Gotchas**
|
|
292
288
|
*
|
|
@@ -320,8 +316,7 @@ export const renameIndices = /*#__PURE__*/dual(2, (self, mapping) => {
|
|
|
320
316
|
*
|
|
321
317
|
* **Details**
|
|
322
318
|
*
|
|
323
|
-
* The lambda lets the compiler track the output type for each element.
|
|
324
|
-
* input tuple is not mutated; a fresh tuple is returned.
|
|
319
|
+
* The lambda lets the compiler track the output type for each element.
|
|
325
320
|
*
|
|
326
321
|
* **Gotchas**
|
|
327
322
|
*
|
|
@@ -361,10 +356,6 @@ export const map = /*#__PURE__*/dual(2, (self, lambda) => {
|
|
|
361
356
|
* Use when you want to apply the same transformation to a subset of
|
|
362
357
|
* positions.
|
|
363
358
|
*
|
|
364
|
-
* **Details**
|
|
365
|
-
*
|
|
366
|
-
* The input tuple is not mutated; a fresh tuple is returned.
|
|
367
|
-
*
|
|
368
359
|
* **Example** (Wrapping only selected elements in arrays)
|
|
369
360
|
*
|
|
370
361
|
* ```ts
|
|
@@ -401,10 +392,6 @@ export const mapPick = /*#__PURE__*/dual(3, (self, indices, lambda) => {
|
|
|
401
392
|
* Use when most elements should be transformed but a few should be
|
|
402
393
|
* preserved.
|
|
403
394
|
*
|
|
404
|
-
* **Details**
|
|
405
|
-
*
|
|
406
|
-
* The input tuple is not mutated; a fresh tuple is returned.
|
|
407
|
-
*
|
|
408
395
|
* **Example** (Wrapping all elements except one in arrays)
|
|
409
396
|
*
|
|
410
397
|
* ```ts
|
|
@@ -495,7 +482,7 @@ export const makeEquivalence = Equivalence.Tuple;
|
|
|
495
482
|
export const makeOrder = order.Tuple;
|
|
496
483
|
export {
|
|
497
484
|
/**
|
|
498
|
-
* Checks
|
|
485
|
+
* Checks whether an array has exactly `N` elements, narrowing the type to a
|
|
499
486
|
* fixed-length tuple.
|
|
500
487
|
*
|
|
501
488
|
* **When to use**
|
|
@@ -529,7 +516,7 @@ export {
|
|
|
529
516
|
*/
|
|
530
517
|
isTupleOf,
|
|
531
518
|
/**
|
|
532
|
-
* Checks
|
|
519
|
+
* Checks whether an array has at least `N` elements, narrowing the type to a
|
|
533
520
|
* tuple with a minimum length.
|
|
534
521
|
*
|
|
535
522
|
* **When to use**
|
|
@@ -573,10 +560,6 @@ isTupleOfAtLeast } from "./Predicate.js";
|
|
|
573
560
|
* Use when you need to merge two tuples of the same shape, such as summing
|
|
574
561
|
* counters or concatenating strings.
|
|
575
562
|
*
|
|
576
|
-
* **Details**
|
|
577
|
-
*
|
|
578
|
-
* The inputs are not mutated; a fresh tuple is returned.
|
|
579
|
-
*
|
|
580
563
|
* **Example** (Combining tuple elements)
|
|
581
564
|
*
|
|
582
565
|
* ```ts
|
|
@@ -614,10 +597,6 @@ export function makeCombiner(combiners) {
|
|
|
614
597
|
*
|
|
615
598
|
* Use to fold a collection of tuples into a single summary tuple.
|
|
616
599
|
*
|
|
617
|
-
* **Details**
|
|
618
|
-
*
|
|
619
|
-
* The inputs are not mutated; a fresh tuple is returned.
|
|
620
|
-
*
|
|
621
600
|
* **Example** (Reducing a collection of tuples)
|
|
622
601
|
*
|
|
623
602
|
* ```ts
|
package/dist/Tuple.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tuple.js","names":["Combiner","Equivalence","dual","order","Reducer","make","elements","get","self","index","pick","indices","map","i","omit","toDrop","Set","filter","_","has","appendElement","element","appendElements","that","evolve","evolver","e","undefined","renameIndices","mapping","lambda","mapPick","toPick","mapOmit","toOmit","makeEquivalence","Tuple","makeOrder","isTupleOf","isTupleOfAtLeast","makeCombiner","combiners","out","length","push","combine","makeReducer","reducers","initialValue"],"sources":["../src/Tuple.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAC/C,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAGvC;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,IAAI,GAAGA,CAA0C,GAAGC,QAAkB,KAAeA,QAAQ;AAI1G
|
|
1
|
+
{"version":3,"file":"Tuple.js","names":["Combiner","Equivalence","dual","order","Reducer","make","elements","get","self","index","pick","indices","map","i","omit","toDrop","Set","filter","_","has","appendElement","element","appendElements","that","evolve","evolver","e","undefined","renameIndices","mapping","lambda","mapPick","toPick","mapOmit","toOmit","makeEquivalence","Tuple","makeOrder","isTupleOf","isTupleOfAtLeast","makeCombiner","combiners","out","length","push","combine","makeReducer","reducers","initialValue"],"sources":["../src/Tuple.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAC/C,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAGvC;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,IAAI,GAAGA,C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CAACO,QAAQ,CAAC,CAACF,OAAO;EAC9C,MAAMG,YAAY,GAAG,EAAE;EACvB,KAAK,IAAInC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGkC,QAAQ,CAACJ,MAAM,EAAE9B,CAAC,EAAE,EAAE;IACxCmC,YAAY,CAACJ,IAAI,CAACG,QAAQ,CAAClC,CAAC,CAAC,CAACmC,YAAY,CAAC;EAC7C;EACA,OAAO5C,OAAO,CAACC,IAAI,CAACwC,OAAO,EAAEG,YAA4B,CAAC;AAC5D","ignoreList":[]}
|
package/dist/TxChunk.d.ts
CHANGED
|
@@ -713,7 +713,7 @@ export declare const prepend: {
|
|
|
713
713
|
*/
|
|
714
714
|
export declare const size: <A>(self: TxChunk<A>) => Effect.Effect<number>;
|
|
715
715
|
/**
|
|
716
|
-
* Checks
|
|
716
|
+
* Checks whether the `TxChunk` is empty.
|
|
717
717
|
*
|
|
718
718
|
* **Example** (Checking for an empty chunk)
|
|
719
719
|
*
|
|
@@ -738,7 +738,7 @@ export declare const size: <A>(self: TxChunk<A>) => Effect.Effect<number>;
|
|
|
738
738
|
*/
|
|
739
739
|
export declare const isEmpty: <A>(self: TxChunk<A>) => Effect.Effect<boolean>;
|
|
740
740
|
/**
|
|
741
|
-
* Checks
|
|
741
|
+
* Checks whether the `TxChunk` is non-empty.
|
|
742
742
|
*
|
|
743
743
|
* **Example** (Checking for a non-empty chunk)
|
|
744
744
|
*
|
package/dist/TxChunk.js
CHANGED
|
@@ -391,7 +391,7 @@ export const prepend = /*#__PURE__*/dual(2, (self, element) => update(self, curr
|
|
|
391
391
|
*/
|
|
392
392
|
export const size = self => modify(self, current => [Chunk.size(current), current]);
|
|
393
393
|
/**
|
|
394
|
-
* Checks
|
|
394
|
+
* Checks whether the `TxChunk` is empty.
|
|
395
395
|
*
|
|
396
396
|
* **Example** (Checking for an empty chunk)
|
|
397
397
|
*
|
|
@@ -416,7 +416,7 @@ export const size = self => modify(self, current => [Chunk.size(current), curren
|
|
|
416
416
|
*/
|
|
417
417
|
export const isEmpty = self => modify(self, current => [Chunk.isEmpty(current), current]);
|
|
418
418
|
/**
|
|
419
|
-
* Checks
|
|
419
|
+
* Checks whether the `TxChunk` is non-empty.
|
|
420
420
|
*
|
|
421
421
|
* **Example** (Checking for a non-empty chunk)
|
|
422
422
|
*
|