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/DateTime.js
CHANGED
|
@@ -24,7 +24,7 @@ const TimeZoneTypeId = Internal.TimeZoneTypeId;
|
|
|
24
24
|
*/
|
|
25
25
|
export const isDateTime = Internal.isDateTime;
|
|
26
26
|
/**
|
|
27
|
-
* Checks
|
|
27
|
+
* Checks whether a value is a `TimeZone`.
|
|
28
28
|
*
|
|
29
29
|
* **When to use**
|
|
30
30
|
*
|
|
@@ -39,7 +39,7 @@ export const isDateTime = Internal.isDateTime;
|
|
|
39
39
|
*/
|
|
40
40
|
export const isTimeZone = Internal.isTimeZone;
|
|
41
41
|
/**
|
|
42
|
-
* Checks
|
|
42
|
+
* Checks whether a value is an offset-based `TimeZone`.
|
|
43
43
|
*
|
|
44
44
|
* **When to use**
|
|
45
45
|
*
|
|
@@ -54,7 +54,7 @@ export const isTimeZone = Internal.isTimeZone;
|
|
|
54
54
|
*/
|
|
55
55
|
export const isTimeZoneOffset = Internal.isTimeZoneOffset;
|
|
56
56
|
/**
|
|
57
|
-
* Checks
|
|
57
|
+
* Checks whether a value is a named `TimeZone` (IANA time zone).
|
|
58
58
|
*
|
|
59
59
|
* **When to use**
|
|
60
60
|
*
|
|
@@ -69,7 +69,7 @@ export const isTimeZoneOffset = Internal.isTimeZoneOffset;
|
|
|
69
69
|
*/
|
|
70
70
|
export const isTimeZoneNamed = Internal.isTimeZoneNamed;
|
|
71
71
|
/**
|
|
72
|
-
* Checks
|
|
72
|
+
* Checks whether a `DateTime` is a UTC `DateTime` (no time zone information).
|
|
73
73
|
*
|
|
74
74
|
* **When to use**
|
|
75
75
|
*
|
|
@@ -84,7 +84,7 @@ export const isTimeZoneNamed = Internal.isTimeZoneNamed;
|
|
|
84
84
|
*/
|
|
85
85
|
export const isUtc = Internal.isUtc;
|
|
86
86
|
/**
|
|
87
|
-
* Checks
|
|
87
|
+
* Checks whether a `DateTime` is a zoned `DateTime` (has time zone information).
|
|
88
88
|
*
|
|
89
89
|
* **When to use**
|
|
90
90
|
*
|
|
@@ -102,7 +102,7 @@ export const isZoned = Internal.isZoned;
|
|
|
102
102
|
// instances
|
|
103
103
|
// =============================================================================
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Provides an `Equivalence` for comparing two `DateTime` values for equality.
|
|
106
106
|
*
|
|
107
107
|
* **Details**
|
|
108
108
|
*
|
|
@@ -127,7 +127,7 @@ export const isZoned = Internal.isZoned;
|
|
|
127
127
|
*/
|
|
128
128
|
export const Equivalence = Internal.Equivalence;
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
130
|
+
* Provides an `Order` for comparing and sorting `DateTime` values.
|
|
131
131
|
*
|
|
132
132
|
* **Details**
|
|
133
133
|
*
|
|
@@ -154,7 +154,7 @@ export const Equivalence = Internal.Equivalence;
|
|
|
154
154
|
*/
|
|
155
155
|
export const Order = Internal.Order;
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* Returns a `DateTime` constrained between a minimum and maximum value.
|
|
158
158
|
*
|
|
159
159
|
* **Details**
|
|
160
160
|
*
|
|
@@ -175,7 +175,7 @@ export const Order = Internal.Order;
|
|
|
175
175
|
* // clamped equals max (2024-12-31)
|
|
176
176
|
* ```
|
|
177
177
|
*
|
|
178
|
-
* @category
|
|
178
|
+
* @category ordering
|
|
179
179
|
* @since 3.6.0
|
|
180
180
|
*/
|
|
181
181
|
export const clamp = Internal.clamp;
|
|
@@ -270,7 +270,7 @@ export const makeUnsafe = Internal.makeUnsafe;
|
|
|
270
270
|
*/
|
|
271
271
|
export const makeZonedUnsafe = Internal.makeZonedUnsafe;
|
|
272
272
|
/**
|
|
273
|
-
* Creates a `DateTime.Zoned` from an input and a time zone.
|
|
273
|
+
* Creates a `DateTime.Zoned` safely from an input and a time zone.
|
|
274
274
|
*
|
|
275
275
|
* **Details**
|
|
276
276
|
*
|
|
@@ -310,7 +310,7 @@ export const makeZonedUnsafe = Internal.makeZonedUnsafe;
|
|
|
310
310
|
*/
|
|
311
311
|
export const makeZoned = Internal.makeZoned;
|
|
312
312
|
/**
|
|
313
|
-
* Creates a `DateTime` from supported input values.
|
|
313
|
+
* Creates a `DateTime` safely from supported input values.
|
|
314
314
|
*
|
|
315
315
|
* **Details**
|
|
316
316
|
*
|
|
@@ -350,7 +350,7 @@ export const makeZoned = Internal.makeZoned;
|
|
|
350
350
|
*/
|
|
351
351
|
export const make = Internal.make;
|
|
352
352
|
/**
|
|
353
|
-
* Parses an ISO zoned date-time string into a `DateTime.Zoned
|
|
353
|
+
* Parses an ISO zoned date-time string into a `DateTime.Zoned` safely.
|
|
354
354
|
*
|
|
355
355
|
* **Details**
|
|
356
356
|
*
|
|
@@ -381,7 +381,7 @@ export const make = Internal.make;
|
|
|
381
381
|
*/
|
|
382
382
|
export const makeZonedFromString = Internal.makeZonedFromString;
|
|
383
383
|
/**
|
|
384
|
-
*
|
|
384
|
+
* Gets the current time using the `Clock` service and convert it to a `DateTime`.
|
|
385
385
|
*
|
|
386
386
|
* **Example** (Getting the current DateTime)
|
|
387
387
|
*
|
|
@@ -417,7 +417,7 @@ export const now = Internal.now;
|
|
|
417
417
|
*/
|
|
418
418
|
export const nowAsDate = Internal.nowAsDate;
|
|
419
419
|
/**
|
|
420
|
-
*
|
|
420
|
+
* Gets the current time using `Date.now`.
|
|
421
421
|
*
|
|
422
422
|
* **Details**
|
|
423
423
|
*
|
|
@@ -441,7 +441,16 @@ export const nowUnsafe = Internal.nowUnsafe;
|
|
|
441
441
|
// time zones
|
|
442
442
|
// =============================================================================
|
|
443
443
|
/**
|
|
444
|
-
*
|
|
444
|
+
* Converts a `DateTime` to a UTC `DateTime`.
|
|
445
|
+
*
|
|
446
|
+
* **When to use**
|
|
447
|
+
*
|
|
448
|
+
* Use to represent the same instant in UTC instead of its current time zone.
|
|
449
|
+
*
|
|
450
|
+
* **Details**
|
|
451
|
+
*
|
|
452
|
+
* The returned value keeps the same epoch milliseconds and changes only the
|
|
453
|
+
* `DateTime` representation to UTC.
|
|
445
454
|
*
|
|
446
455
|
* **Example** (Converting DateTime values to UTC)
|
|
447
456
|
*
|
|
@@ -461,7 +470,7 @@ export const nowUnsafe = Internal.nowUnsafe;
|
|
|
461
470
|
*/
|
|
462
471
|
export const toUtc = Internal.toUtc;
|
|
463
472
|
/**
|
|
464
|
-
*
|
|
473
|
+
* Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
|
|
465
474
|
*
|
|
466
475
|
* **Example** (Setting time zones)
|
|
467
476
|
*
|
|
@@ -482,7 +491,7 @@ export const toUtc = Internal.toUtc;
|
|
|
482
491
|
*/
|
|
483
492
|
export const setZone = Internal.setZone;
|
|
484
493
|
/**
|
|
485
|
-
*
|
|
494
|
+
* Adds a fixed offset time zone to a `DateTime`.
|
|
486
495
|
*
|
|
487
496
|
* **Details**
|
|
488
497
|
*
|
|
@@ -506,7 +515,7 @@ export const setZone = Internal.setZone;
|
|
|
506
515
|
*/
|
|
507
516
|
export const setZoneOffset = Internal.setZoneOffset;
|
|
508
517
|
/**
|
|
509
|
-
*
|
|
518
|
+
* Attempts to create a named time zone from an IANA time zone identifier.
|
|
510
519
|
*
|
|
511
520
|
* **Details**
|
|
512
521
|
*
|
|
@@ -557,7 +566,7 @@ export const zoneMakeNamedUnsafe = Internal.zoneMakeNamedUnsafe;
|
|
|
557
566
|
*/
|
|
558
567
|
export const zoneMakeOffset = Internal.zoneMakeOffset;
|
|
559
568
|
/**
|
|
560
|
-
*
|
|
569
|
+
* Creates a named time zone safely from an IANA time zone identifier.
|
|
561
570
|
*
|
|
562
571
|
* **Details**
|
|
563
572
|
*
|
|
@@ -580,7 +589,7 @@ export const zoneMakeOffset = Internal.zoneMakeOffset;
|
|
|
580
589
|
*/
|
|
581
590
|
export const zoneMakeNamed = Internal.zoneMakeNamed;
|
|
582
591
|
/**
|
|
583
|
-
*
|
|
592
|
+
* Creates a named time zone effectfully from an IANA time zone identifier.
|
|
584
593
|
*
|
|
585
594
|
* **Details**
|
|
586
595
|
*
|
|
@@ -624,7 +633,7 @@ export const zoneMakeNamedEffect = Internal.zoneMakeNamedEffect;
|
|
|
624
633
|
*/
|
|
625
634
|
export const zoneMakeLocal = Internal.zoneMakeLocal;
|
|
626
635
|
/**
|
|
627
|
-
*
|
|
636
|
+
* Tries to parse a `TimeZone` from a string safely.
|
|
628
637
|
*
|
|
629
638
|
* **Details**
|
|
630
639
|
*
|
|
@@ -649,7 +658,7 @@ export const zoneMakeLocal = Internal.zoneMakeLocal;
|
|
|
649
658
|
*/
|
|
650
659
|
export const zoneFromString = Internal.zoneFromString;
|
|
651
660
|
/**
|
|
652
|
-
*
|
|
661
|
+
* Formats a `TimeZone` as a string.
|
|
653
662
|
*
|
|
654
663
|
* **Example** (Formatting time zones)
|
|
655
664
|
*
|
|
@@ -668,7 +677,7 @@ export const zoneFromString = Internal.zoneFromString;
|
|
|
668
677
|
*/
|
|
669
678
|
export const zoneToString = Internal.zoneToString;
|
|
670
679
|
/**
|
|
671
|
-
*
|
|
680
|
+
* Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
|
|
672
681
|
* time zone is invalid, `None` will be returned.
|
|
673
682
|
*
|
|
674
683
|
* **Example** (Setting named time zones safely)
|
|
@@ -688,7 +697,7 @@ export const zoneToString = Internal.zoneToString;
|
|
|
688
697
|
*/
|
|
689
698
|
export const setZoneNamed = Internal.setZoneNamed;
|
|
690
699
|
/**
|
|
691
|
-
*
|
|
700
|
+
* Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
|
|
692
701
|
* time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
693
702
|
*
|
|
694
703
|
* **Example** (Setting named time zones unsafely)
|
|
@@ -711,7 +720,7 @@ export const setZoneNamedUnsafe = Internal.setZoneNamedUnsafe;
|
|
|
711
720
|
// comparisons
|
|
712
721
|
// =============================================================================
|
|
713
722
|
/**
|
|
714
|
-
*
|
|
723
|
+
* Computes the difference between two `DateTime` values, returning a
|
|
715
724
|
* `Duration` representing the amount of time between them.
|
|
716
725
|
*
|
|
717
726
|
* **Details**
|
|
@@ -777,7 +786,7 @@ export const min = Internal.min;
|
|
|
777
786
|
*/
|
|
778
787
|
export const max = Internal.max;
|
|
779
788
|
/**
|
|
780
|
-
* Checks
|
|
789
|
+
* Checks whether the first `DateTime` is after the second `DateTime`.
|
|
781
790
|
*
|
|
782
791
|
* **Example** (Checking whether a DateTime is later)
|
|
783
792
|
*
|
|
@@ -796,7 +805,7 @@ export const max = Internal.max;
|
|
|
796
805
|
*/
|
|
797
806
|
export const isGreaterThan = Internal.isGreaterThan;
|
|
798
807
|
/**
|
|
799
|
-
* Checks
|
|
808
|
+
* Checks whether the first `DateTime` is after or equal to the second `DateTime`.
|
|
800
809
|
*
|
|
801
810
|
* **Example** (Checking whether a DateTime is later or equal)
|
|
802
811
|
*
|
|
@@ -817,7 +826,7 @@ export const isGreaterThan = Internal.isGreaterThan;
|
|
|
817
826
|
*/
|
|
818
827
|
export const isGreaterThanOrEqualTo = Internal.isGreaterThanOrEqualTo;
|
|
819
828
|
/**
|
|
820
|
-
* Checks
|
|
829
|
+
* Checks whether the first `DateTime` is before the second `DateTime`.
|
|
821
830
|
*
|
|
822
831
|
* **Example** (Checking whether a DateTime is earlier)
|
|
823
832
|
*
|
|
@@ -836,7 +845,7 @@ export const isGreaterThanOrEqualTo = Internal.isGreaterThanOrEqualTo;
|
|
|
836
845
|
*/
|
|
837
846
|
export const isLessThan = Internal.isLessThan;
|
|
838
847
|
/**
|
|
839
|
-
* Checks
|
|
848
|
+
* Checks whether the first `DateTime` is before or equal to the second `DateTime`.
|
|
840
849
|
*
|
|
841
850
|
* **Example** (Checking whether a DateTime is earlier or equal)
|
|
842
851
|
*
|
|
@@ -857,7 +866,7 @@ export const isLessThan = Internal.isLessThan;
|
|
|
857
866
|
*/
|
|
858
867
|
export const isLessThanOrEqualTo = Internal.isLessThanOrEqualTo;
|
|
859
868
|
/**
|
|
860
|
-
* Checks
|
|
869
|
+
* Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
|
|
861
870
|
*
|
|
862
871
|
* **Example** (Checking whether a DateTime is within bounds)
|
|
863
872
|
*
|
|
@@ -876,7 +885,7 @@ export const isLessThanOrEqualTo = Internal.isLessThanOrEqualTo;
|
|
|
876
885
|
*/
|
|
877
886
|
export const between = Internal.between;
|
|
878
887
|
/**
|
|
879
|
-
* Checks if a `DateTime` is in the future compared to the current time.
|
|
888
|
+
* Checks effectfully if a `DateTime` is in the future compared to the current time.
|
|
880
889
|
*
|
|
881
890
|
* **Details**
|
|
882
891
|
*
|
|
@@ -899,7 +908,7 @@ export const between = Internal.between;
|
|
|
899
908
|
*/
|
|
900
909
|
export const isFuture = Internal.isFuture;
|
|
901
910
|
/**
|
|
902
|
-
* Checks if a `DateTime` is in the future compared to the current time.
|
|
911
|
+
* Checks synchronously if a `DateTime` is in the future compared to the current time.
|
|
903
912
|
*
|
|
904
913
|
* **Details**
|
|
905
914
|
*
|
|
@@ -922,7 +931,7 @@ export const isFuture = Internal.isFuture;
|
|
|
922
931
|
*/
|
|
923
932
|
export const isFutureUnsafe = Internal.isFutureUnsafe;
|
|
924
933
|
/**
|
|
925
|
-
* Checks if a `DateTime` is in the past compared to the current time.
|
|
934
|
+
* Checks effectfully if a `DateTime` is in the past compared to the current time.
|
|
926
935
|
*
|
|
927
936
|
* **Details**
|
|
928
937
|
*
|
|
@@ -945,7 +954,7 @@ export const isFutureUnsafe = Internal.isFutureUnsafe;
|
|
|
945
954
|
*/
|
|
946
955
|
export const isPast = Internal.isPast;
|
|
947
956
|
/**
|
|
948
|
-
* Checks if a `DateTime` is in the past compared to the current time.
|
|
957
|
+
* Checks synchronously if a `DateTime` is in the past compared to the current time.
|
|
949
958
|
*
|
|
950
959
|
* **Details**
|
|
951
960
|
*
|
|
@@ -971,7 +980,7 @@ export const isPastUnsafe = Internal.isPastUnsafe;
|
|
|
971
980
|
// conversions
|
|
972
981
|
// =============================================================================
|
|
973
982
|
/**
|
|
974
|
-
*
|
|
983
|
+
* Gets the UTC `Date` of a `DateTime`.
|
|
975
984
|
*
|
|
976
985
|
* **Details**
|
|
977
986
|
*
|
|
@@ -995,7 +1004,7 @@ export const isPastUnsafe = Internal.isPastUnsafe;
|
|
|
995
1004
|
*/
|
|
996
1005
|
export const toDateUtc = Internal.toDateUtc;
|
|
997
1006
|
/**
|
|
998
|
-
*
|
|
1007
|
+
* Converts a `DateTime` to a `Date`, applying the time zone first.
|
|
999
1008
|
*
|
|
1000
1009
|
* **Details**
|
|
1001
1010
|
*
|
|
@@ -1021,7 +1030,7 @@ export const toDateUtc = Internal.toDateUtc;
|
|
|
1021
1030
|
*/
|
|
1022
1031
|
export const toDate = Internal.toDate;
|
|
1023
1032
|
/**
|
|
1024
|
-
*
|
|
1033
|
+
* Computes the time zone offset of a `DateTime.Zoned` in milliseconds.
|
|
1025
1034
|
*
|
|
1026
1035
|
* **Details**
|
|
1027
1036
|
*
|
|
@@ -1046,7 +1055,7 @@ export const toDate = Internal.toDate;
|
|
|
1046
1055
|
*/
|
|
1047
1056
|
export const zonedOffset = Internal.zonedOffset;
|
|
1048
1057
|
/**
|
|
1049
|
-
*
|
|
1058
|
+
* Formats the time zone offset of a `DateTime.Zoned` as an ISO string.
|
|
1050
1059
|
*
|
|
1051
1060
|
* **Details**
|
|
1052
1061
|
*
|
|
@@ -1070,7 +1079,7 @@ export const zonedOffset = Internal.zonedOffset;
|
|
|
1070
1079
|
*/
|
|
1071
1080
|
export const zonedOffsetIso = Internal.zonedOffsetIso;
|
|
1072
1081
|
/**
|
|
1073
|
-
*
|
|
1082
|
+
* Gets the milliseconds since the Unix epoch of a `DateTime`.
|
|
1074
1083
|
*
|
|
1075
1084
|
* **Details**
|
|
1076
1085
|
*
|
|
@@ -1092,7 +1101,7 @@ export const zonedOffsetIso = Internal.zonedOffsetIso;
|
|
|
1092
1101
|
*/
|
|
1093
1102
|
export const toEpochMillis = Internal.toEpochMillis;
|
|
1094
1103
|
/**
|
|
1095
|
-
*
|
|
1104
|
+
* Removes the time aspect of a `DateTime`, first adjusting for the time
|
|
1096
1105
|
* zone. It will return a `DateTime.Utc` only containing the date.
|
|
1097
1106
|
*
|
|
1098
1107
|
* **Example** (Removing time components)
|
|
@@ -1118,7 +1127,7 @@ export const removeTime = Internal.removeTime;
|
|
|
1118
1127
|
// parts
|
|
1119
1128
|
// =============================================================================
|
|
1120
1129
|
/**
|
|
1121
|
-
*
|
|
1130
|
+
* Gets the time-zone-adjusted parts of a `DateTime` as an object.
|
|
1122
1131
|
*
|
|
1123
1132
|
* **Details**
|
|
1124
1133
|
*
|
|
@@ -1150,7 +1159,7 @@ export const removeTime = Internal.removeTime;
|
|
|
1150
1159
|
*/
|
|
1151
1160
|
export const toParts = Internal.toParts;
|
|
1152
1161
|
/**
|
|
1153
|
-
*
|
|
1162
|
+
* Gets the UTC parts of a `DateTime` as an object.
|
|
1154
1163
|
*
|
|
1155
1164
|
* **Details**
|
|
1156
1165
|
*
|
|
@@ -1175,7 +1184,7 @@ export const toParts = Internal.toParts;
|
|
|
1175
1184
|
*/
|
|
1176
1185
|
export const toPartsUtc = Internal.toPartsUtc;
|
|
1177
1186
|
/**
|
|
1178
|
-
*
|
|
1187
|
+
* Gets one UTC part of a `DateTime` as a number.
|
|
1179
1188
|
*
|
|
1180
1189
|
* **Details**
|
|
1181
1190
|
*
|
|
@@ -1196,7 +1205,7 @@ export const toPartsUtc = Internal.toPartsUtc;
|
|
|
1196
1205
|
*/
|
|
1197
1206
|
export const getPartUtc = Internal.getPartUtc;
|
|
1198
1207
|
/**
|
|
1199
|
-
*
|
|
1208
|
+
* Gets one time-zone-adjusted part of a `DateTime` as a number.
|
|
1200
1209
|
*
|
|
1201
1210
|
* **Details**
|
|
1202
1211
|
*
|
|
@@ -1219,7 +1228,7 @@ export const getPartUtc = Internal.getPartUtc;
|
|
|
1219
1228
|
*/
|
|
1220
1229
|
export const getPart = Internal.getPart;
|
|
1221
1230
|
/**
|
|
1222
|
-
*
|
|
1231
|
+
* Sets time-zone-adjusted parts on a `DateTime`.
|
|
1223
1232
|
*
|
|
1224
1233
|
* **Details**
|
|
1225
1234
|
*
|
|
@@ -1245,7 +1254,7 @@ export const getPart = Internal.getPart;
|
|
|
1245
1254
|
*/
|
|
1246
1255
|
export const setParts = Internal.setParts;
|
|
1247
1256
|
/**
|
|
1248
|
-
*
|
|
1257
|
+
* Sets UTC parts on a `DateTime`.
|
|
1249
1258
|
*
|
|
1250
1259
|
* **Details**
|
|
1251
1260
|
*
|
|
@@ -1303,7 +1312,7 @@ export const setPartsUtc = Internal.setPartsUtc;
|
|
|
1303
1312
|
*/
|
|
1304
1313
|
export class CurrentTimeZone extends /*#__PURE__*/Context.Service()("effect/DateTime/CurrentTimeZone") {}
|
|
1305
1314
|
/**
|
|
1306
|
-
*
|
|
1315
|
+
* Sets the time zone of a `DateTime` to the current time zone, which is
|
|
1307
1316
|
* determined by the `CurrentTimeZone` service.
|
|
1308
1317
|
*
|
|
1309
1318
|
* **Example** (Setting the current time zone)
|
|
@@ -1324,7 +1333,7 @@ export class CurrentTimeZone extends /*#__PURE__*/Context.Service()("effect/Date
|
|
|
1324
1333
|
*/
|
|
1325
1334
|
export const setZoneCurrent = self => Effect.map(CurrentTimeZone, zone => setZone(self, zone));
|
|
1326
1335
|
/**
|
|
1327
|
-
*
|
|
1336
|
+
* Provides the `CurrentTimeZone` to an effect.
|
|
1328
1337
|
*
|
|
1329
1338
|
* **Example** (Providing the current time zone)
|
|
1330
1339
|
*
|
|
@@ -1343,7 +1352,7 @@ export const setZoneCurrent = self => Effect.map(CurrentTimeZone, zone => setZon
|
|
|
1343
1352
|
*/
|
|
1344
1353
|
export const withCurrentZone = /*#__PURE__*/provideService(CurrentTimeZone);
|
|
1345
1354
|
/**
|
|
1346
|
-
*
|
|
1355
|
+
* Provides the `CurrentTimeZone` to an effect, using the system's local time
|
|
1347
1356
|
* zone.
|
|
1348
1357
|
*
|
|
1349
1358
|
* **Example** (Providing the local time zone)
|
|
@@ -1362,7 +1371,7 @@ export const withCurrentZone = /*#__PURE__*/provideService(CurrentTimeZone);
|
|
|
1362
1371
|
*/
|
|
1363
1372
|
export const withCurrentZoneLocal = effect => Effect.provideServiceEffect(effect, CurrentTimeZone, Effect.sync(zoneMakeLocal));
|
|
1364
1373
|
/**
|
|
1365
|
-
*
|
|
1374
|
+
* Provides the `CurrentTimeZone` to an effect, using an offset.
|
|
1366
1375
|
*
|
|
1367
1376
|
* **Example** (Providing a fixed-offset time zone)
|
|
1368
1377
|
*
|
|
@@ -1380,7 +1389,7 @@ export const withCurrentZoneLocal = effect => Effect.provideServiceEffect(effect
|
|
|
1380
1389
|
*/
|
|
1381
1390
|
export const withCurrentZoneOffset = /*#__PURE__*/dual(2, (effect, offset) => Effect.provideService(effect, CurrentTimeZone, zoneMakeOffset(offset)));
|
|
1382
1391
|
/**
|
|
1383
|
-
*
|
|
1392
|
+
* Provides the `CurrentTimeZone` to an effect using an IANA time zone
|
|
1384
1393
|
* identifier.
|
|
1385
1394
|
*
|
|
1386
1395
|
* **Details**
|
|
@@ -1403,7 +1412,7 @@ export const withCurrentZoneOffset = /*#__PURE__*/dual(2, (effect, offset) => Ef
|
|
|
1403
1412
|
*/
|
|
1404
1413
|
export const withCurrentZoneNamed = /*#__PURE__*/dual(2, (effect, zone) => Effect.provideServiceEffect(effect, CurrentTimeZone, zoneMakeNamedEffect(zone)));
|
|
1405
1414
|
/**
|
|
1406
|
-
*
|
|
1415
|
+
* Gets the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`.
|
|
1407
1416
|
*
|
|
1408
1417
|
* **Example** (Getting the current time in the current zone)
|
|
1409
1418
|
*
|
|
@@ -1424,7 +1433,12 @@ export const nowInCurrentZone = /*#__PURE__*/Effect.flatMap(now, setZoneCurrent)
|
|
|
1424
1433
|
// mapping
|
|
1425
1434
|
// =============================================================================
|
|
1426
1435
|
/**
|
|
1427
|
-
*
|
|
1436
|
+
* Modifies a `DateTime` with a mutable local `Date` copy.
|
|
1437
|
+
*
|
|
1438
|
+
* **When to use**
|
|
1439
|
+
*
|
|
1440
|
+
* Use to adjust calendar fields in the `DateTime`'s own time zone with an
|
|
1441
|
+
* existing `Date` mutation API.
|
|
1428
1442
|
*
|
|
1429
1443
|
* **Details**
|
|
1430
1444
|
*
|
|
@@ -1453,7 +1467,12 @@ export const nowInCurrentZone = /*#__PURE__*/Effect.flatMap(now, setZoneCurrent)
|
|
|
1453
1467
|
*/
|
|
1454
1468
|
export const mutate = Internal.mutate;
|
|
1455
1469
|
/**
|
|
1456
|
-
*
|
|
1470
|
+
* Modifies a `DateTime` with a mutable UTC `Date` copy.
|
|
1471
|
+
*
|
|
1472
|
+
* **When to use**
|
|
1473
|
+
*
|
|
1474
|
+
* Use to adjust the instant with an existing `Date` mutation API that works on
|
|
1475
|
+
* UTC calendar fields.
|
|
1457
1476
|
*
|
|
1458
1477
|
* **Example** (Mutating DateTime values with UTC Dates)
|
|
1459
1478
|
*
|
|
@@ -1476,7 +1495,7 @@ export const mutate = Internal.mutate;
|
|
|
1476
1495
|
*/
|
|
1477
1496
|
export const mutateUtc = Internal.mutateUtc;
|
|
1478
1497
|
/**
|
|
1479
|
-
*
|
|
1498
|
+
* Transforms a `DateTime` by applying a function to the number of milliseconds
|
|
1480
1499
|
* since the Unix epoch.
|
|
1481
1500
|
*
|
|
1482
1501
|
* **Example** (Mapping epoch milliseconds)
|
|
@@ -1578,7 +1597,7 @@ export const match = Internal.match;
|
|
|
1578
1597
|
// math
|
|
1579
1598
|
// =============================================================================
|
|
1580
1599
|
/**
|
|
1581
|
-
*
|
|
1600
|
+
* Adds the given `Duration` to a `DateTime`.
|
|
1582
1601
|
*
|
|
1583
1602
|
* **When to use**
|
|
1584
1603
|
*
|
|
@@ -1615,7 +1634,7 @@ export const match = Internal.match;
|
|
|
1615
1634
|
*/
|
|
1616
1635
|
export const addDuration = Internal.addDuration;
|
|
1617
1636
|
/**
|
|
1618
|
-
*
|
|
1637
|
+
* Subtracts the given `Duration` from a `DateTime`.
|
|
1619
1638
|
*
|
|
1620
1639
|
* **Example** (Subtracting durations)
|
|
1621
1640
|
*
|
|
@@ -1633,7 +1652,7 @@ export const addDuration = Internal.addDuration;
|
|
|
1633
1652
|
*/
|
|
1634
1653
|
export const subtractDuration = Internal.subtractDuration;
|
|
1635
1654
|
/**
|
|
1636
|
-
*
|
|
1655
|
+
* Adds the given `amount` of `unit` to a `DateTime`.
|
|
1637
1656
|
*
|
|
1638
1657
|
* **Details**
|
|
1639
1658
|
*
|
|
@@ -1656,7 +1675,7 @@ export const subtractDuration = Internal.subtractDuration;
|
|
|
1656
1675
|
*/
|
|
1657
1676
|
export const add = Internal.add;
|
|
1658
1677
|
/**
|
|
1659
|
-
*
|
|
1678
|
+
* Subtracts the given `amount` of `unit` from a `DateTime`.
|
|
1660
1679
|
*
|
|
1661
1680
|
* **Example** (Subtracting date and time parts)
|
|
1662
1681
|
*
|
|
@@ -1783,7 +1802,8 @@ export const nearest = Internal.nearest;
|
|
|
1783
1802
|
*/
|
|
1784
1803
|
export const format = Internal.format;
|
|
1785
1804
|
/**
|
|
1786
|
-
*
|
|
1805
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
|
|
1806
|
+
* zone and locale.
|
|
1787
1807
|
*
|
|
1788
1808
|
* **Details**
|
|
1789
1809
|
*
|
|
@@ -1813,7 +1833,7 @@ export const format = Internal.format;
|
|
|
1813
1833
|
*/
|
|
1814
1834
|
export const formatLocal = Internal.formatLocal;
|
|
1815
1835
|
/**
|
|
1816
|
-
*
|
|
1836
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
|
|
1817
1837
|
*
|
|
1818
1838
|
* **Details**
|
|
1819
1839
|
*
|
|
@@ -1887,7 +1907,7 @@ export const formatUtc = Internal.formatUtc;
|
|
|
1887
1907
|
*/
|
|
1888
1908
|
export const formatIntl = Internal.formatIntl;
|
|
1889
1909
|
/**
|
|
1890
|
-
*
|
|
1910
|
+
* Formats a `DateTime` as a UTC ISO string.
|
|
1891
1911
|
*
|
|
1892
1912
|
* **Details**
|
|
1893
1913
|
*
|
|
@@ -1912,7 +1932,7 @@ export const formatIntl = Internal.formatIntl;
|
|
|
1912
1932
|
*/
|
|
1913
1933
|
export const formatIso = Internal.formatIso;
|
|
1914
1934
|
/**
|
|
1915
|
-
*
|
|
1935
|
+
* Formats a `DateTime` as a time zone adjusted ISO date string.
|
|
1916
1936
|
*
|
|
1917
1937
|
* **Details**
|
|
1918
1938
|
*
|
|
@@ -1937,7 +1957,7 @@ export const formatIso = Internal.formatIso;
|
|
|
1937
1957
|
*/
|
|
1938
1958
|
export const formatIsoDate = Internal.formatIsoDate;
|
|
1939
1959
|
/**
|
|
1940
|
-
*
|
|
1960
|
+
* Formats a `DateTime` as a UTC ISO date string.
|
|
1941
1961
|
*
|
|
1942
1962
|
* **Details**
|
|
1943
1963
|
*
|
|
@@ -1962,7 +1982,7 @@ export const formatIsoDate = Internal.formatIsoDate;
|
|
|
1962
1982
|
*/
|
|
1963
1983
|
export const formatIsoDateUtc = Internal.formatIsoDateUtc;
|
|
1964
1984
|
/**
|
|
1965
|
-
*
|
|
1985
|
+
* Formats a `DateTime.Zoned` as an ISO string with an offset.
|
|
1966
1986
|
*
|
|
1967
1987
|
* **Details**
|
|
1968
1988
|
*
|
|
@@ -1988,7 +2008,7 @@ export const formatIsoDateUtc = Internal.formatIsoDateUtc;
|
|
|
1988
2008
|
*/
|
|
1989
2009
|
export const formatIsoOffset = Internal.formatIsoOffset;
|
|
1990
2010
|
/**
|
|
1991
|
-
*
|
|
2011
|
+
* Formats a `DateTime.Zoned` as a string.
|
|
1992
2012
|
*
|
|
1993
2013
|
* **Details**
|
|
1994
2014
|
*
|
package/dist/DateTime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.js","names":["Context","Effect","dual","flow","Internal","provideService","Layer","TypeId","TimeZoneTypeId","isDateTime","isTimeZone","isTimeZoneOffset","isTimeZoneNamed","isUtc","isZoned","Equivalence","Order","clamp","fromDateUnsafe","makeUnsafe","makeZonedUnsafe","makeZoned","make","makeZonedFromString","now","nowAsDate","nowUnsafe","toUtc","setZone","setZoneOffset","zoneMakeNamedUnsafe","zoneMakeOffset","zoneMakeNamed","zoneMakeNamedEffect","zoneMakeLocal","zoneFromString","zoneToString","setZoneNamed","setZoneNamedUnsafe","distance","min","max","isGreaterThan","isGreaterThanOrEqualTo","isLessThan","isLessThanOrEqualTo","between","isFuture","isFutureUnsafe","isPast","isPastUnsafe","toDateUtc","toDate","zonedOffset","zonedOffsetIso","toEpochMillis","removeTime","toParts","toPartsUtc","getPartUtc","getPart","setParts","setPartsUtc","CurrentTimeZone","Service","setZoneCurrent","self","map","zone","withCurrentZone","withCurrentZoneLocal","effect","provideServiceEffect","sync","withCurrentZoneOffset","offset","withCurrentZoneNamed","nowInCurrentZone","flatMap","mutate","mutateUtc","mapEpochMillis","withDate","withDateUtc","match","addDuration","subtractDuration","add","subtract","startOf","endOf","nearest","format","formatLocal","formatUtc","formatIntl","formatIso","formatIsoDate","formatIsoDateUtc","formatIsoOffset","formatIsoZoned","layerCurrentZone","succeed","layerCurrentZoneOffset","layerCurrentZoneNamed","layerCurrentZoneLocal"],"sources":["../src/DateTime.ts"],"sourcesContent":[null],"mappings":"AAqDA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAEvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,IAAI,EAAEC,IAAI,QAAsB,eAAe;AAExD,OAAO,KAAKC,QAAQ,MAAM,wBAAwB;AAClD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,OAAO,KAAKC,KAAK,MAAM,YAAY;AAKnC,MAAMC,MAAM,GAAGH,QAAQ,CAACG,MAAM;AAC9B,MAAMC,cAAc,GAAGJ,QAAQ,CAACI,cAAc;AAoX9C;AACA;AACA;AAEA;;;;;;;;;;;;;AAaA,OAAO,MAAMC,UAAU,GAAkCL,QAAQ,CAACK,UAAU;AAE5E;;;;;;;;;;;;;;AAcA,OAAO,MAAMC,UAAU,GAAkCN,QAAQ,CAACM,UAAU;AAE5E;;;;;;;;;;;;;;AAcA,OAAO,MAAMC,gBAAgB,GAAyCP,QAAQ,CAACO,gBAAgB;AAE/F;;;;;;;;;;;;;;AAcA,OAAO,MAAMC,eAAe,GAAwCR,QAAQ,CAACQ,eAAe;AAE5F;;;;;;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;;;;;AAoBA,OAAO,MAAMC,SAAS,GAAiBtB,QAAQ,CAACsB,SAAS;AAEzD;AACA;AACA;AAEA
|
|
1
|
+
{"version":3,"file":"DateTime.js","names":["Context","Effect","dual","flow","Internal","provideService","Layer","TypeId","TimeZoneTypeId","isDateTime","isTimeZone","isTimeZoneOffset","isTimeZoneNamed","isUtc","isZoned","Equivalence","Order","clamp","fromDateUnsafe","makeUnsafe","makeZonedUnsafe","makeZoned","make","makeZonedFromString","now","nowAsDate","nowUnsafe","toUtc","setZone","setZoneOffset","zoneMakeNamedUnsafe","zoneMakeOffset","zoneMakeNamed","zoneMakeNamedEffect","zoneMakeLocal","zoneFromString","zoneToString","setZoneNamed","setZoneNamedUnsafe","distance","min","max","isGreaterThan","isGreaterThanOrEqualTo","isLessThan","isLessThanOrEqualTo","between","isFuture","isFutureUnsafe","isPast","isPastUnsafe","toDateUtc","toDate","zonedOffset","zonedOffsetIso","toEpochMillis","removeTime","toParts","toPartsUtc","getPartUtc","getPart","setParts","setPartsUtc","CurrentTimeZone","Service","setZoneCurrent","self","map","zone","withCurrentZone","withCurrentZoneLocal","effect","provideServiceEffect","sync","withCurrentZoneOffset","offset","withCurrentZoneNamed","nowInCurrentZone","flatMap","mutate","mutateUtc","mapEpochMillis","withDate","withDateUtc","match","addDuration","subtractDuration","add","subtract","startOf","endOf","nearest","format","formatLocal","formatUtc","formatIntl","formatIso","formatIsoDate","formatIsoDateUtc","formatIsoOffset","formatIsoZoned","layerCurrentZone","succeed","layerCurrentZoneOffset","layerCurrentZoneNamed","layerCurrentZoneLocal"],"sources":["../src/DateTime.ts"],"sourcesContent":[null],"mappings":"AAqDA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAEvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,IAAI,EAAEC,IAAI,QAAsB,eAAe;AAExD,OAAO,KAAKC,QAAQ,MAAM,wBAAwB;AAClD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,OAAO,KAAKC,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