effect 4.0.0-beta.71 → 4.0.0-beta.73
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 +6 -6
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +9 -8
- 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 +4 -5
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- 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/HttpApiSecurity.d.ts +27 -5
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
- package/dist/unstable/httpapi/HttpApiSecurity.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 +9 -3
- 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 +13 -10
- 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 +5 -6
- package/src/unstable/httpapi/HttpApiError.ts +2 -2
- package/src/unstable/httpapi/HttpApiSchema.ts +4 -7
- package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
- package/src/unstable/httpapi/HttpApiTest.ts +1 -1
- package/src/unstable/httpapi/OpenApi.ts +9 -3
- 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/Order.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import * as Reducer from "./Reducer.ts";
|
|
|
12
12
|
*
|
|
13
13
|
* **Details**
|
|
14
14
|
*
|
|
15
|
-
* - Pure function: does not mutate inputs or have side effects
|
|
16
15
|
* - Returns `-1` if the first value is less than the second
|
|
17
16
|
* - Returns `0` if the values are equal according to this ordering
|
|
18
17
|
* - Returns `1` if the first value is greater than the second
|
|
@@ -72,7 +71,6 @@ export interface OrderTypeLambda extends TypeLambda {
|
|
|
72
71
|
*
|
|
73
72
|
* **Details**
|
|
74
73
|
*
|
|
75
|
-
* - Pure function: does not mutate inputs
|
|
76
74
|
* - Uses reference equality (`===`) as a shortcut: if `self === that`, returns `0` without calling the comparison function
|
|
77
75
|
* - The comparison function should return `-1`, `0`, or `1` based on the comparison result
|
|
78
76
|
* - The returned order satisfies total ordering laws if the comparison function does
|
|
@@ -99,7 +97,7 @@ export interface OrderTypeLambda extends TypeLambda {
|
|
|
99
97
|
*/
|
|
100
98
|
export declare function make<A>(compare: (self: A, that: A) => -1 | 0 | 1): Order<A>;
|
|
101
99
|
/**
|
|
102
|
-
*
|
|
100
|
+
* Order instance for strings that compares them lexicographically using JavaScript's `<` operator.
|
|
103
101
|
*
|
|
104
102
|
* **When to use**
|
|
105
103
|
*
|
|
@@ -109,7 +107,6 @@ export declare function make<A>(compare: (self: A, that: A) => -1 | 0 | 1): Orde
|
|
|
109
107
|
*
|
|
110
108
|
* **Details**
|
|
111
109
|
*
|
|
112
|
-
* - Pure function: does not mutate inputs
|
|
113
110
|
* - Uses lexicographic (dictionary) ordering
|
|
114
111
|
* - Empty string is less than any non-empty string
|
|
115
112
|
* - Comparison is case-sensitive
|
|
@@ -131,7 +128,7 @@ export declare function make<A>(compare: (self: A, that: A) => -1 | 0 | 1): Orde
|
|
|
131
128
|
*/
|
|
132
129
|
export declare const String: Order<string>;
|
|
133
130
|
/**
|
|
134
|
-
*
|
|
131
|
+
* Order instance for numbers that compares them numerically.
|
|
135
132
|
*
|
|
136
133
|
* **When to use**
|
|
137
134
|
*
|
|
@@ -141,7 +138,6 @@ export declare const String: Order<string>;
|
|
|
141
138
|
*
|
|
142
139
|
* **Details**
|
|
143
140
|
*
|
|
144
|
-
* - Pure function: does not mutate inputs
|
|
145
141
|
* - `0` is considered equal to `-0`
|
|
146
142
|
* - All `NaN` values are considered equal to each other
|
|
147
143
|
* - Any `NaN` is considered less than any non-NaN number
|
|
@@ -167,7 +163,7 @@ export declare const String: Order<string>;
|
|
|
167
163
|
*/
|
|
168
164
|
export declare const Number: Order<number>;
|
|
169
165
|
/**
|
|
170
|
-
*
|
|
166
|
+
* Order instance for booleans where `false` is considered less than `true`.
|
|
171
167
|
*
|
|
172
168
|
* **When to use**
|
|
173
169
|
*
|
|
@@ -177,7 +173,6 @@ export declare const Number: Order<number>;
|
|
|
177
173
|
*
|
|
178
174
|
* **Details**
|
|
179
175
|
*
|
|
180
|
-
* - Pure function: does not mutate inputs
|
|
181
176
|
* - `false` is less than `true`
|
|
182
177
|
* - Equal values return `0`
|
|
183
178
|
*
|
|
@@ -197,7 +192,7 @@ export declare const Number: Order<number>;
|
|
|
197
192
|
*/
|
|
198
193
|
export declare const Boolean: Order<boolean>;
|
|
199
194
|
/**
|
|
200
|
-
*
|
|
195
|
+
* Order instance for bigints that compares them numerically.
|
|
201
196
|
*
|
|
202
197
|
* **When to use**
|
|
203
198
|
*
|
|
@@ -207,7 +202,6 @@ export declare const Boolean: Order<boolean>;
|
|
|
207
202
|
*
|
|
208
203
|
* **Details**
|
|
209
204
|
*
|
|
210
|
-
* - Pure function: does not mutate inputs
|
|
211
205
|
* - Uses standard numeric comparison for bigint values
|
|
212
206
|
* - Handles arbitrarily large integers
|
|
213
207
|
*
|
|
@@ -238,7 +232,6 @@ export declare const BigInt: Order<bigint>;
|
|
|
238
232
|
*
|
|
239
233
|
* **Details**
|
|
240
234
|
*
|
|
241
|
-
* - Pure function: does not mutate inputs
|
|
242
235
|
* - Returns a new order that swaps the arguments before comparison
|
|
243
236
|
* - If the original order returns `-1`, the flipped order returns `1`, and vice versa
|
|
244
237
|
* - Equal comparisons remain `0`
|
|
@@ -272,7 +265,6 @@ export declare function flip<A>(O: Order<A>): Order<A>;
|
|
|
272
265
|
*
|
|
273
266
|
* **Details**
|
|
274
267
|
*
|
|
275
|
-
* - Pure function: does not mutate inputs
|
|
276
268
|
* - First applies the first order; if the result is non-zero, returns that result
|
|
277
269
|
* - If the first order returns `0` (equal), applies the second order
|
|
278
270
|
* - Returns the first non-zero result, or `0` if both orders return `0`
|
|
@@ -318,7 +310,6 @@ export declare const combine: {
|
|
|
318
310
|
*
|
|
319
311
|
* **Details**
|
|
320
312
|
*
|
|
321
|
-
* - Pure function: does not mutate inputs
|
|
322
313
|
* - First applies the first order; if the result is non-zero, returns that result
|
|
323
314
|
* - If the first order returns `0` (equal), applies the second order
|
|
324
315
|
* - Returns the first non-zero result, or `0` if both orders return `0`
|
|
@@ -364,7 +355,6 @@ export declare const combine: {
|
|
|
364
355
|
*
|
|
365
356
|
* **Details**
|
|
366
357
|
*
|
|
367
|
-
* - Pure function: does not mutate inputs
|
|
368
358
|
* - First applies the first order; if the result is non-zero, returns that result
|
|
369
359
|
* - If the first order returns `0` (equal), applies the second order
|
|
370
360
|
* - Returns the first non-zero result, or `0` if both orders return `0`
|
|
@@ -410,7 +400,6 @@ export declare const combine: {
|
|
|
410
400
|
*
|
|
411
401
|
* **Details**
|
|
412
402
|
*
|
|
413
|
-
* - Pure function: does not mutate inputs
|
|
414
403
|
* - Always returns `0` regardless of input values
|
|
415
404
|
* - Useful as a neutral element in order composition
|
|
416
405
|
*
|
|
@@ -443,7 +432,6 @@ export declare function alwaysEqual<A>(): Order<A>;
|
|
|
443
432
|
*
|
|
444
433
|
* **Details**
|
|
445
434
|
*
|
|
446
|
-
* - Pure function: does not mutate inputs
|
|
447
435
|
* - Applies orders in iteration order
|
|
448
436
|
* - Returns the first non-zero result from any order
|
|
449
437
|
* - Returns `0` only if all orders return `0`
|
|
@@ -489,7 +477,6 @@ export declare function combineAll<A>(collection: Iterable<Order<A>>): Order<A>;
|
|
|
489
477
|
*
|
|
490
478
|
* **Details**
|
|
491
479
|
*
|
|
492
|
-
* - Pure function: does not mutate inputs
|
|
493
480
|
* - Applies the mapping function to both values before comparison
|
|
494
481
|
* - The mapping function should be pure and not have side effects
|
|
495
482
|
* - Preserves the ordering properties of the original order
|
|
@@ -524,7 +511,6 @@ export declare const mapInput: {
|
|
|
524
511
|
*
|
|
525
512
|
* **Details**
|
|
526
513
|
*
|
|
527
|
-
* - Pure function: does not mutate inputs
|
|
528
514
|
* - Applies the mapping function to both values before comparison
|
|
529
515
|
* - The mapping function should be pure and not have side effects
|
|
530
516
|
* - Preserves the ordering properties of the original order
|
|
@@ -559,7 +545,6 @@ export declare const mapInput: {
|
|
|
559
545
|
*
|
|
560
546
|
* **Details**
|
|
561
547
|
*
|
|
562
|
-
* - Pure function: does not mutate inputs
|
|
563
548
|
* - Applies the mapping function to both values before comparison
|
|
564
549
|
* - The mapping function should be pure and not have side effects
|
|
565
550
|
* - Preserves the ordering properties of the original order
|
|
@@ -584,7 +569,7 @@ export declare const mapInput: {
|
|
|
584
569
|
<A, B>(self: Order<A>, f: (b: B) => A): Order<B>;
|
|
585
570
|
};
|
|
586
571
|
/**
|
|
587
|
-
*
|
|
572
|
+
* Order instance for `Date` objects that compares them chronologically by their timestamp.
|
|
588
573
|
*
|
|
589
574
|
* **When to use**
|
|
590
575
|
*
|
|
@@ -594,7 +579,6 @@ export declare const mapInput: {
|
|
|
594
579
|
*
|
|
595
580
|
* **Details**
|
|
596
581
|
*
|
|
597
|
-
* - Pure function: does not mutate inputs
|
|
598
582
|
* - Compares dates by their underlying timestamp (milliseconds since epoch)
|
|
599
583
|
* - Earlier dates are less than later dates
|
|
600
584
|
* - Invalid dates are compared as if they were valid (uses `getTime()` result)
|
|
@@ -628,7 +612,6 @@ export declare const Date: Order<Date>;
|
|
|
628
612
|
*
|
|
629
613
|
* **Details**
|
|
630
614
|
*
|
|
631
|
-
* - Pure function: does not mutate inputs
|
|
632
615
|
* - Compares tuples element-by-element using the corresponding order
|
|
633
616
|
* - Stops at the first non-zero comparison result
|
|
634
617
|
* - Requires tuples to have the same length as the order collection
|
|
@@ -669,7 +652,6 @@ export {
|
|
|
669
652
|
*
|
|
670
653
|
* **Details**
|
|
671
654
|
*
|
|
672
|
-
* - Pure function: does not mutate inputs
|
|
673
655
|
* - Compares arrays element-by-element using the provided order
|
|
674
656
|
* - Stops at the first non-zero comparison result
|
|
675
657
|
* - If all elements are equal, shorter arrays are less than longer arrays
|
|
@@ -704,7 +686,6 @@ Array_ as Array };
|
|
|
704
686
|
*
|
|
705
687
|
* **Details**
|
|
706
688
|
*
|
|
707
|
-
* - Pure function: does not mutate inputs
|
|
708
689
|
* - Compares structs field-by-field in the order of keys in the fields object
|
|
709
690
|
* - Stops at the first non-zero comparison result
|
|
710
691
|
* - Returns `0` only if all fields are equal
|
|
@@ -740,7 +721,7 @@ export declare function Struct<const R extends {
|
|
|
740
721
|
[K in keyof R]: [R[K]] extends [Order<infer A>] ? A : never;
|
|
741
722
|
}>;
|
|
742
723
|
/**
|
|
743
|
-
*
|
|
724
|
+
* Checks whether one value is strictly less than another according to the given order.
|
|
744
725
|
*
|
|
745
726
|
* **When to use**
|
|
746
727
|
*
|
|
@@ -750,7 +731,6 @@ export declare function Struct<const R extends {
|
|
|
750
731
|
*
|
|
751
732
|
* **Details**
|
|
752
733
|
*
|
|
753
|
-
* - Pure function: does not mutate inputs
|
|
754
734
|
* - Returns `true` if the order returns `-1` (first value is less than second)
|
|
755
735
|
* - Returns `false` for equal or greater values
|
|
756
736
|
* - Supports curried and uncurried call styles
|
|
@@ -777,7 +757,7 @@ export declare const isLessThan: <A>(O: Order<A>) => {
|
|
|
777
757
|
(self: A, that: A): boolean;
|
|
778
758
|
};
|
|
779
759
|
/**
|
|
780
|
-
*
|
|
760
|
+
* Checks whether one value is strictly greater than another according to the given order.
|
|
781
761
|
*
|
|
782
762
|
* **When to use**
|
|
783
763
|
*
|
|
@@ -787,7 +767,6 @@ export declare const isLessThan: <A>(O: Order<A>) => {
|
|
|
787
767
|
*
|
|
788
768
|
* **Details**
|
|
789
769
|
*
|
|
790
|
-
* - Pure function: does not mutate inputs
|
|
791
770
|
* - Returns `true` if the order returns `1` (first value is greater than second)
|
|
792
771
|
* - Returns `false` for equal or lesser values
|
|
793
772
|
* - Supports curried and uncurried call styles
|
|
@@ -814,7 +793,7 @@ export declare const isGreaterThan: <A>(O: Order<A>) => {
|
|
|
814
793
|
(self: A, that: A): boolean;
|
|
815
794
|
};
|
|
816
795
|
/**
|
|
817
|
-
*
|
|
796
|
+
* Checks whether one value is less than or equal to another according to the given order.
|
|
818
797
|
*
|
|
819
798
|
* **When to use**
|
|
820
799
|
*
|
|
@@ -824,7 +803,6 @@ export declare const isGreaterThan: <A>(O: Order<A>) => {
|
|
|
824
803
|
*
|
|
825
804
|
* **Details**
|
|
826
805
|
*
|
|
827
|
-
* - Pure function: does not mutate inputs
|
|
828
806
|
* - Returns `true` if the order returns `-1` or `0` (less than or equal)
|
|
829
807
|
* - Returns `false` only if the order returns `1` (greater than)
|
|
830
808
|
* - Supports curried and uncurried call styles
|
|
@@ -851,7 +829,7 @@ export declare const isLessThanOrEqualTo: <A>(O: Order<A>) => {
|
|
|
851
829
|
(self: A, that: A): boolean;
|
|
852
830
|
};
|
|
853
831
|
/**
|
|
854
|
-
*
|
|
832
|
+
* Checks whether one value is greater than or equal to another according to the given order.
|
|
855
833
|
*
|
|
856
834
|
* **When to use**
|
|
857
835
|
*
|
|
@@ -861,7 +839,6 @@ export declare const isLessThanOrEqualTo: <A>(O: Order<A>) => {
|
|
|
861
839
|
*
|
|
862
840
|
* **Details**
|
|
863
841
|
*
|
|
864
|
-
* - Pure function: does not mutate inputs
|
|
865
842
|
* - Returns `true` if the order returns `1` or `0` (greater than or equal)
|
|
866
843
|
* - Returns `false` only if the order returns `-1` (less than)
|
|
867
844
|
* - Supports curried and uncurried call styles
|
|
@@ -898,7 +875,6 @@ export declare const isGreaterThanOrEqualTo: <A>(O: Order<A>) => {
|
|
|
898
875
|
*
|
|
899
876
|
* **Details**
|
|
900
877
|
*
|
|
901
|
-
* - Pure function: does not mutate inputs
|
|
902
878
|
* - Returns the value that compares as less than or equal to the other
|
|
903
879
|
* - If values are equal, returns the first argument
|
|
904
880
|
* - Supports curried and uncurried call styles
|
|
@@ -935,7 +911,6 @@ export declare const min: <A>(O: Order<A>) => {
|
|
|
935
911
|
*
|
|
936
912
|
* **Details**
|
|
937
913
|
*
|
|
938
|
-
* - Pure function: does not mutate inputs
|
|
939
914
|
* - Returns the value that compares as greater than or equal to the other
|
|
940
915
|
* - If values are equal, returns the first argument
|
|
941
916
|
* - Supports curried and uncurried call styles
|
|
@@ -962,7 +937,7 @@ export declare const max: <A>(O: Order<A>) => {
|
|
|
962
937
|
(self: A, that: A): A;
|
|
963
938
|
};
|
|
964
939
|
/**
|
|
965
|
-
*
|
|
940
|
+
* Restricts a value between a minimum and a maximum according to the given order.
|
|
966
941
|
*
|
|
967
942
|
* **When to use**
|
|
968
943
|
*
|
|
@@ -972,7 +947,6 @@ export declare const max: <A>(O: Order<A>) => {
|
|
|
972
947
|
*
|
|
973
948
|
* **Details**
|
|
974
949
|
*
|
|
975
|
-
* - Pure function: does not mutate inputs
|
|
976
950
|
* - Returns the value if it's between minimum and maximum (inclusive)
|
|
977
951
|
* - Returns minimum if the value is less than minimum
|
|
978
952
|
* - Returns maximum if the value is greater than maximum
|
|
@@ -1008,7 +982,7 @@ export declare const clamp: <A>(O: Order<A>) => {
|
|
|
1008
982
|
}): A;
|
|
1009
983
|
};
|
|
1010
984
|
/**
|
|
1011
|
-
*
|
|
985
|
+
* Checks whether a value is between a minimum and a maximum (inclusive) according to the given order.
|
|
1012
986
|
*
|
|
1013
987
|
* **When to use**
|
|
1014
988
|
*
|
|
@@ -1018,7 +992,6 @@ export declare const clamp: <A>(O: Order<A>) => {
|
|
|
1018
992
|
*
|
|
1019
993
|
* **Details**
|
|
1020
994
|
*
|
|
1021
|
-
* - Pure function: does not mutate inputs
|
|
1022
995
|
* - Returns `true` if the value is greater than or equal to minimum and less than or equal to maximum
|
|
1023
996
|
* - Returns `false` if the value is outside the range
|
|
1024
997
|
* - Supports curried and uncurried call styles
|
package/dist/Order.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../src/Order.ts"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../src/Order.ts"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,KAAK,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAA;CAC7B;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,IAAI,CAAC,CAAC,EACpB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GACxC,KAAK,CAAC,CAAC,CAAC,CAEV;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,MAAM,CAA8C,CAAA;AAE/E;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CAAC,CAAA;IAClB,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE;QACjB,OAAO,EAAE,CAAC,CAAA;QACV,OAAO,EAAE,CAAC,CAAA;KACX,GAAG,CAAC,CAAA;CAQJ,CAAA;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,KAAG;IACzC,CAAC,OAAO,EAAE;QACR,OAAO,EAAE,CAAC,CAAA;QACV,OAAO,EAAE,CAAC,CAAA;KACX,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAA;IACxB,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE;QACjB,OAAO,EAAE,CAAC,CAAA;QACV,OAAO,EAAE,CAAC,CAAA;KACX,GAAG,OAAO,CAAA;CAQV,CAAA;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,WAAW,CAAC,CAAC,+BAM5B"}
|
package/dist/Order.js
CHANGED
|
@@ -91,7 +91,6 @@ import * as Reducer from "./Reducer.js";
|
|
|
91
91
|
*
|
|
92
92
|
* **Details**
|
|
93
93
|
*
|
|
94
|
-
* - Pure function: does not mutate inputs
|
|
95
94
|
* - Uses reference equality (`===`) as a shortcut: if `self === that`, returns `0` without calling the comparison function
|
|
96
95
|
* - The comparison function should return `-1`, `0`, or `1` based on the comparison result
|
|
97
96
|
* - The returned order satisfies total ordering laws if the comparison function does
|
|
@@ -120,7 +119,7 @@ export function make(compare) {
|
|
|
120
119
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
121
120
|
}
|
|
122
121
|
/**
|
|
123
|
-
*
|
|
122
|
+
* Order instance for strings that compares them lexicographically using JavaScript's `<` operator.
|
|
124
123
|
*
|
|
125
124
|
* **When to use**
|
|
126
125
|
*
|
|
@@ -130,7 +129,6 @@ export function make(compare) {
|
|
|
130
129
|
*
|
|
131
130
|
* **Details**
|
|
132
131
|
*
|
|
133
|
-
* - Pure function: does not mutate inputs
|
|
134
132
|
* - Uses lexicographic (dictionary) ordering
|
|
135
133
|
* - Empty string is less than any non-empty string
|
|
136
134
|
* - Comparison is case-sensitive
|
|
@@ -152,7 +150,7 @@ export function make(compare) {
|
|
|
152
150
|
*/
|
|
153
151
|
export const String = /*#__PURE__*/make((self, that) => self < that ? -1 : 1);
|
|
154
152
|
/**
|
|
155
|
-
*
|
|
153
|
+
* Order instance for numbers that compares them numerically.
|
|
156
154
|
*
|
|
157
155
|
* **When to use**
|
|
158
156
|
*
|
|
@@ -162,7 +160,6 @@ export const String = /*#__PURE__*/make((self, that) => self < that ? -1 : 1);
|
|
|
162
160
|
*
|
|
163
161
|
* **Details**
|
|
164
162
|
*
|
|
165
|
-
* - Pure function: does not mutate inputs
|
|
166
163
|
* - `0` is considered equal to `-0`
|
|
167
164
|
* - All `NaN` values are considered equal to each other
|
|
168
165
|
* - Any `NaN` is considered less than any non-NaN number
|
|
@@ -193,7 +190,7 @@ export const Number = /*#__PURE__*/make((self, that) => {
|
|
|
193
190
|
return self < that ? -1 : 1;
|
|
194
191
|
});
|
|
195
192
|
/**
|
|
196
|
-
*
|
|
193
|
+
* Order instance for booleans where `false` is considered less than `true`.
|
|
197
194
|
*
|
|
198
195
|
* **When to use**
|
|
199
196
|
*
|
|
@@ -203,7 +200,6 @@ export const Number = /*#__PURE__*/make((self, that) => {
|
|
|
203
200
|
*
|
|
204
201
|
* **Details**
|
|
205
202
|
*
|
|
206
|
-
* - Pure function: does not mutate inputs
|
|
207
203
|
* - `false` is less than `true`
|
|
208
204
|
* - Equal values return `0`
|
|
209
205
|
*
|
|
@@ -223,7 +219,7 @@ export const Number = /*#__PURE__*/make((self, that) => {
|
|
|
223
219
|
*/
|
|
224
220
|
export const Boolean = /*#__PURE__*/make((self, that) => self < that ? -1 : 1);
|
|
225
221
|
/**
|
|
226
|
-
*
|
|
222
|
+
* Order instance for bigints that compares them numerically.
|
|
227
223
|
*
|
|
228
224
|
* **When to use**
|
|
229
225
|
*
|
|
@@ -233,7 +229,6 @@ export const Boolean = /*#__PURE__*/make((self, that) => self < that ? -1 : 1);
|
|
|
233
229
|
*
|
|
234
230
|
* **Details**
|
|
235
231
|
*
|
|
236
|
-
* - Pure function: does not mutate inputs
|
|
237
232
|
* - Uses standard numeric comparison for bigint values
|
|
238
233
|
* - Handles arbitrarily large integers
|
|
239
234
|
*
|
|
@@ -264,7 +259,6 @@ export const BigInt = /*#__PURE__*/make((self, that) => self < that ? -1 : 1);
|
|
|
264
259
|
*
|
|
265
260
|
* **Details**
|
|
266
261
|
*
|
|
267
|
-
* - Pure function: does not mutate inputs
|
|
268
262
|
* - Returns a new order that swaps the arguments before comparison
|
|
269
263
|
* - If the original order returns `-1`, the flipped order returns `1`, and vice versa
|
|
270
264
|
* - Equal comparisons remain `0`
|
|
@@ -300,7 +294,6 @@ export function flip(O) {
|
|
|
300
294
|
*
|
|
301
295
|
* **Details**
|
|
302
296
|
*
|
|
303
|
-
* - Pure function: does not mutate inputs
|
|
304
297
|
* - First applies the first order; if the result is non-zero, returns that result
|
|
305
298
|
* - If the first order returns `0` (equal), applies the second order
|
|
306
299
|
* - Returns the first non-zero result, or `0` if both orders return `0`
|
|
@@ -351,7 +344,6 @@ export const combine = /*#__PURE__*/dual(2, (self, that) => make((a1, a2) => {
|
|
|
351
344
|
*
|
|
352
345
|
* **Details**
|
|
353
346
|
*
|
|
354
|
-
* - Pure function: does not mutate inputs
|
|
355
347
|
* - Always returns `0` regardless of input values
|
|
356
348
|
* - Useful as a neutral element in order composition
|
|
357
349
|
*
|
|
@@ -386,7 +378,6 @@ export function alwaysEqual() {
|
|
|
386
378
|
*
|
|
387
379
|
* **Details**
|
|
388
380
|
*
|
|
389
|
-
* - Pure function: does not mutate inputs
|
|
390
381
|
* - Applies orders in iteration order
|
|
391
382
|
* - Returns the first non-zero result from any order
|
|
392
383
|
* - Returns `0` only if all orders return `0`
|
|
@@ -443,7 +434,6 @@ export function combineAll(collection) {
|
|
|
443
434
|
*
|
|
444
435
|
* **Details**
|
|
445
436
|
*
|
|
446
|
-
* - Pure function: does not mutate inputs
|
|
447
437
|
* - Applies the mapping function to both values before comparison
|
|
448
438
|
* - The mapping function should be pure and not have side effects
|
|
449
439
|
* - Preserves the ordering properties of the original order
|
|
@@ -467,7 +457,7 @@ export function combineAll(collection) {
|
|
|
467
457
|
*/
|
|
468
458
|
export const mapInput = /*#__PURE__*/dual(2, (self, f) => make((b1, b2) => self(f(b1), f(b2))));
|
|
469
459
|
/**
|
|
470
|
-
*
|
|
460
|
+
* Order instance for `Date` objects that compares them chronologically by their timestamp.
|
|
471
461
|
*
|
|
472
462
|
* **When to use**
|
|
473
463
|
*
|
|
@@ -477,7 +467,6 @@ export const mapInput = /*#__PURE__*/dual(2, (self, f) => make((b1, b2) => self(
|
|
|
477
467
|
*
|
|
478
468
|
* **Details**
|
|
479
469
|
*
|
|
480
|
-
* - Pure function: does not mutate inputs
|
|
481
470
|
* - Compares dates by their underlying timestamp (milliseconds since epoch)
|
|
482
471
|
* - Earlier dates are less than later dates
|
|
483
472
|
* - Invalid dates are compared as if they were valid (uses `getTime()` result)
|
|
@@ -511,7 +500,6 @@ export const Date = /*#__PURE__*/mapInput(Number, date => date.getTime());
|
|
|
511
500
|
*
|
|
512
501
|
* **Details**
|
|
513
502
|
*
|
|
514
|
-
* - Pure function: does not mutate inputs
|
|
515
503
|
* - Compares tuples element-by-element using the corresponding order
|
|
516
504
|
* - Stops at the first non-zero comparison result
|
|
517
505
|
* - Requires tuples to have the same length as the order collection
|
|
@@ -574,7 +562,6 @@ export {
|
|
|
574
562
|
*
|
|
575
563
|
* **Details**
|
|
576
564
|
*
|
|
577
|
-
* - Pure function: does not mutate inputs
|
|
578
565
|
* - Compares arrays element-by-element using the provided order
|
|
579
566
|
* - Stops at the first non-zero comparison result
|
|
580
567
|
* - If all elements are equal, shorter arrays are less than longer arrays
|
|
@@ -609,7 +596,6 @@ Array_ as Array };
|
|
|
609
596
|
*
|
|
610
597
|
* **Details**
|
|
611
598
|
*
|
|
612
|
-
* - Pure function: does not mutate inputs
|
|
613
599
|
* - Compares structs field-by-field in the order of keys in the fields object
|
|
614
600
|
* - Stops at the first non-zero comparison result
|
|
615
601
|
* - Returns `0` only if all fields are equal
|
|
@@ -652,7 +638,7 @@ export function Struct(fields) {
|
|
|
652
638
|
});
|
|
653
639
|
}
|
|
654
640
|
/**
|
|
655
|
-
*
|
|
641
|
+
* Checks whether one value is strictly less than another according to the given order.
|
|
656
642
|
*
|
|
657
643
|
* **When to use**
|
|
658
644
|
*
|
|
@@ -662,7 +648,6 @@ export function Struct(fields) {
|
|
|
662
648
|
*
|
|
663
649
|
* **Details**
|
|
664
650
|
*
|
|
665
|
-
* - Pure function: does not mutate inputs
|
|
666
651
|
* - Returns `true` if the order returns `-1` (first value is less than second)
|
|
667
652
|
* - Returns `false` for equal or greater values
|
|
668
653
|
* - Supports curried and uncurried call styles
|
|
@@ -686,7 +671,7 @@ export function Struct(fields) {
|
|
|
686
671
|
*/
|
|
687
672
|
export const isLessThan = O => dual(2, (self, that) => O(self, that) === -1);
|
|
688
673
|
/**
|
|
689
|
-
*
|
|
674
|
+
* Checks whether one value is strictly greater than another according to the given order.
|
|
690
675
|
*
|
|
691
676
|
* **When to use**
|
|
692
677
|
*
|
|
@@ -696,7 +681,6 @@ export const isLessThan = O => dual(2, (self, that) => O(self, that) === -1);
|
|
|
696
681
|
*
|
|
697
682
|
* **Details**
|
|
698
683
|
*
|
|
699
|
-
* - Pure function: does not mutate inputs
|
|
700
684
|
* - Returns `true` if the order returns `1` (first value is greater than second)
|
|
701
685
|
* - Returns `false` for equal or lesser values
|
|
702
686
|
* - Supports curried and uncurried call styles
|
|
@@ -720,7 +704,7 @@ export const isLessThan = O => dual(2, (self, that) => O(self, that) === -1);
|
|
|
720
704
|
*/
|
|
721
705
|
export const isGreaterThan = O => dual(2, (self, that) => O(self, that) === 1);
|
|
722
706
|
/**
|
|
723
|
-
*
|
|
707
|
+
* Checks whether one value is less than or equal to another according to the given order.
|
|
724
708
|
*
|
|
725
709
|
* **When to use**
|
|
726
710
|
*
|
|
@@ -730,7 +714,6 @@ export const isGreaterThan = O => dual(2, (self, that) => O(self, that) === 1);
|
|
|
730
714
|
*
|
|
731
715
|
* **Details**
|
|
732
716
|
*
|
|
733
|
-
* - Pure function: does not mutate inputs
|
|
734
717
|
* - Returns `true` if the order returns `-1` or `0` (less than or equal)
|
|
735
718
|
* - Returns `false` only if the order returns `1` (greater than)
|
|
736
719
|
* - Supports curried and uncurried call styles
|
|
@@ -754,7 +737,7 @@ export const isGreaterThan = O => dual(2, (self, that) => O(self, that) === 1);
|
|
|
754
737
|
*/
|
|
755
738
|
export const isLessThanOrEqualTo = O => dual(2, (self, that) => O(self, that) !== 1);
|
|
756
739
|
/**
|
|
757
|
-
*
|
|
740
|
+
* Checks whether one value is greater than or equal to another according to the given order.
|
|
758
741
|
*
|
|
759
742
|
* **When to use**
|
|
760
743
|
*
|
|
@@ -764,7 +747,6 @@ export const isLessThanOrEqualTo = O => dual(2, (self, that) => O(self, that) !=
|
|
|
764
747
|
*
|
|
765
748
|
* **Details**
|
|
766
749
|
*
|
|
767
|
-
* - Pure function: does not mutate inputs
|
|
768
750
|
* - Returns `true` if the order returns `1` or `0` (greater than or equal)
|
|
769
751
|
* - Returns `false` only if the order returns `-1` (less than)
|
|
770
752
|
* - Supports curried and uncurried call styles
|
|
@@ -798,7 +780,6 @@ export const isGreaterThanOrEqualTo = O => dual(2, (self, that) => O(self, that)
|
|
|
798
780
|
*
|
|
799
781
|
* **Details**
|
|
800
782
|
*
|
|
801
|
-
* - Pure function: does not mutate inputs
|
|
802
783
|
* - Returns the value that compares as less than or equal to the other
|
|
803
784
|
* - If values are equal, returns the first argument
|
|
804
785
|
* - Supports curried and uncurried call styles
|
|
@@ -832,7 +813,6 @@ export const min = O => dual(2, (self, that) => self === that || O(self, that) <
|
|
|
832
813
|
*
|
|
833
814
|
* **Details**
|
|
834
815
|
*
|
|
835
|
-
* - Pure function: does not mutate inputs
|
|
836
816
|
* - Returns the value that compares as greater than or equal to the other
|
|
837
817
|
* - If values are equal, returns the first argument
|
|
838
818
|
* - Supports curried and uncurried call styles
|
|
@@ -856,7 +836,7 @@ export const min = O => dual(2, (self, that) => self === that || O(self, that) <
|
|
|
856
836
|
*/
|
|
857
837
|
export const max = O => dual(2, (self, that) => self === that || O(self, that) > -1 ? self : that);
|
|
858
838
|
/**
|
|
859
|
-
*
|
|
839
|
+
* Restricts a value between a minimum and a maximum according to the given order.
|
|
860
840
|
*
|
|
861
841
|
* **When to use**
|
|
862
842
|
*
|
|
@@ -866,7 +846,6 @@ export const max = O => dual(2, (self, that) => self === that || O(self, that) >
|
|
|
866
846
|
*
|
|
867
847
|
* **Details**
|
|
868
848
|
*
|
|
869
|
-
* - Pure function: does not mutate inputs
|
|
870
849
|
* - Returns the value if it's between minimum and maximum (inclusive)
|
|
871
850
|
* - Returns minimum if the value is less than minimum
|
|
872
851
|
* - Returns maximum if the value is greater than maximum
|
|
@@ -893,7 +872,7 @@ export const max = O => dual(2, (self, that) => self === that || O(self, that) >
|
|
|
893
872
|
*/
|
|
894
873
|
export const clamp = O => dual(2, (self, options) => min(O)(options.maximum, max(O)(options.minimum, self)));
|
|
895
874
|
/**
|
|
896
|
-
*
|
|
875
|
+
* Checks whether a value is between a minimum and a maximum (inclusive) according to the given order.
|
|
897
876
|
*
|
|
898
877
|
* **When to use**
|
|
899
878
|
*
|
|
@@ -903,7 +882,6 @@ export const clamp = O => dual(2, (self, options) => min(O)(options.maximum, max
|
|
|
903
882
|
*
|
|
904
883
|
* **Details**
|
|
905
884
|
*
|
|
906
|
-
* - Pure function: does not mutate inputs
|
|
907
885
|
* - Returns `true` if the value is greater than or equal to minimum and less than or equal to maximum
|
|
908
886
|
* - Returns `false` if the value is outside the range
|
|
909
887
|
* - Supports curried and uncurried call styles
|
package/dist/Order.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Order.js","names":["dual","Reducer","make","compare","self","that","String","Number","globalThis","isNaN","Boolean","BigInt","flip","O","combine","a1","a2","out","alwaysEqual","combineAll","collection","mapInput","f","b1","b2","Date","date","getTime","Tuple","elements","len","length","i","o","Array_","aLen","bLen","Math","min","Array","Struct","fields","keys","Object","key","isLessThan","isGreaterThan","isLessThanOrEqualTo","isGreaterThanOrEqualTo","max","clamp","options","maximum","minimum","isBetween","makeReducer"],"sources":["../src/Order.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,SAASA,IAAI,QAAQ,eAAe;AAGpC,OAAO,KAAKC,OAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"Order.js","names":["dual","Reducer","make","compare","self","that","String","Number","globalThis","isNaN","Boolean","BigInt","flip","O","combine","a1","a2","out","alwaysEqual","combineAll","collection","mapInput","f","b1","b2","Date","date","getTime","Tuple","elements","len","length","i","o","Array_","aLen","bLen","Math","min","Array","Struct","fields","keys","Object","key","isLessThan","isGreaterThan","isLessThanOrEqualTo","isGreaterThanOrEqualTo","max","clamp","options","maximum","minimum","isBetween","makeReducer"],"sources":["../src/Order.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,SAASA,IAAI,QAAQ,eAAe;AAGpC,OAAO,KAAKC,OAAO,MAAM,cAAc;AA+DvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,OAAM,SAAUC,IAAIA,CAClBC,OAAyC;EAEzC,OAAO,CAACC,IAAI,EAAEC,IAAI,KAAKD,IAAI,KAAKC,IAAI,GAAG,CAAC,GAAGF,OAAO,CAACC,IAAI,EAAEC,IA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CAACT,IAAI,EAAE+C,OAAO,CAACE,OAAO,CAAC,IAAI,CAACP,aAAa,CAACjC,CAAC,CAAC,CAACT,IAAI,EAAE+C,OAAO,CAACC,OAAO,CAAC,CACjG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAM,SAAUG,WAAWA,CAAA;EACzB,OAAOtD,OAAO,CAACC,IAAI,CACjBY,OAAO,EACP,MAAM,CAAC,EACPK,UAAU,CACX;AACH","ignoreList":[]}
|
package/dist/Ordering.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ import * as Reducer_ from "./Reducer.ts";
|
|
|
76
76
|
*/
|
|
77
77
|
export type Ordering = -1 | 0 | 1;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Reverses the ordering of the input Ordering.
|
|
80
80
|
* This is useful for creating descending sort orders from ascending ones.
|
|
81
81
|
*
|
|
82
82
|
* **When to use**
|
|
@@ -117,7 +117,7 @@ export type Ordering = -1 | 0 | 1;
|
|
|
117
117
|
*/
|
|
118
118
|
export declare const reverse: (o: Ordering) => Ordering;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Matches an `Ordering` value and returns the branch selected by that ordering.
|
|
121
121
|
*
|
|
122
122
|
* **When to use**
|
|
123
123
|
*
|
|
@@ -145,7 +145,7 @@ export declare const reverse: (o: Ordering) => Ordering;
|
|
|
145
145
|
*/
|
|
146
146
|
export declare const match: {
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Matches an `Ordering` value and returns the branch selected by that ordering.
|
|
149
149
|
*
|
|
150
150
|
* **When to use**
|
|
151
151
|
*
|
|
@@ -177,7 +177,7 @@ export declare const match: {
|
|
|
177
177
|
readonly onGreaterThan: LazyArg<C>;
|
|
178
178
|
}): (self: Ordering) => A | B | C;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* Matches an `Ordering` value and returns the branch selected by that ordering.
|
|
181
181
|
*
|
|
182
182
|
* **When to use**
|
|
183
183
|
*
|
|
@@ -210,7 +210,7 @@ export declare const match: {
|
|
|
210
210
|
}): A | B | C;
|
|
211
211
|
};
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
213
|
+
* Reducer for combining `Ordering`s.
|
|
214
214
|
*
|
|
215
215
|
* **When to use**
|
|
216
216
|
*
|