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/src/DateTime.ts
CHANGED
|
@@ -457,7 +457,7 @@ export type Disambiguation = "compatible" | "earlier" | "later" | "reject"
|
|
|
457
457
|
export const isDateTime: (u: unknown) => u is DateTime = Internal.isDateTime
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
|
-
* Checks
|
|
460
|
+
* Checks whether a value is a `TimeZone`.
|
|
461
461
|
*
|
|
462
462
|
* **When to use**
|
|
463
463
|
*
|
|
@@ -473,7 +473,7 @@ export const isDateTime: (u: unknown) => u is DateTime = Internal.isDateTime
|
|
|
473
473
|
export const isTimeZone: (u: unknown) => u is TimeZone = Internal.isTimeZone
|
|
474
474
|
|
|
475
475
|
/**
|
|
476
|
-
* Checks
|
|
476
|
+
* Checks whether a value is an offset-based `TimeZone`.
|
|
477
477
|
*
|
|
478
478
|
* **When to use**
|
|
479
479
|
*
|
|
@@ -489,7 +489,7 @@ export const isTimeZone: (u: unknown) => u is TimeZone = Internal.isTimeZone
|
|
|
489
489
|
export const isTimeZoneOffset: (u: unknown) => u is TimeZone.Offset = Internal.isTimeZoneOffset
|
|
490
490
|
|
|
491
491
|
/**
|
|
492
|
-
* Checks
|
|
492
|
+
* Checks whether a value is a named `TimeZone` (IANA time zone).
|
|
493
493
|
*
|
|
494
494
|
* **When to use**
|
|
495
495
|
*
|
|
@@ -505,7 +505,7 @@ export const isTimeZoneOffset: (u: unknown) => u is TimeZone.Offset = Internal.i
|
|
|
505
505
|
export const isTimeZoneNamed: (u: unknown) => u is TimeZone.Named = Internal.isTimeZoneNamed
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
|
-
* Checks
|
|
508
|
+
* Checks whether a `DateTime` is a UTC `DateTime` (no time zone information).
|
|
509
509
|
*
|
|
510
510
|
* **When to use**
|
|
511
511
|
*
|
|
@@ -521,7 +521,7 @@ export const isTimeZoneNamed: (u: unknown) => u is TimeZone.Named = Internal.isT
|
|
|
521
521
|
export const isUtc: (self: DateTime) => self is Utc = Internal.isUtc
|
|
522
522
|
|
|
523
523
|
/**
|
|
524
|
-
* Checks
|
|
524
|
+
* Checks whether a `DateTime` is a zoned `DateTime` (has time zone information).
|
|
525
525
|
*
|
|
526
526
|
* **When to use**
|
|
527
527
|
*
|
|
@@ -541,7 +541,7 @@ export const isZoned: (self: DateTime) => self is Zoned = Internal.isZoned
|
|
|
541
541
|
// =============================================================================
|
|
542
542
|
|
|
543
543
|
/**
|
|
544
|
-
*
|
|
544
|
+
* Provides an `Equivalence` for comparing two `DateTime` values for equality.
|
|
545
545
|
*
|
|
546
546
|
* **Details**
|
|
547
547
|
*
|
|
@@ -567,7 +567,7 @@ export const isZoned: (self: DateTime) => self is Zoned = Internal.isZoned
|
|
|
567
567
|
export const Equivalence: Equ.Equivalence<DateTime> = Internal.Equivalence
|
|
568
568
|
|
|
569
569
|
/**
|
|
570
|
-
*
|
|
570
|
+
* Provides an `Order` for comparing and sorting `DateTime` values.
|
|
571
571
|
*
|
|
572
572
|
* **Details**
|
|
573
573
|
*
|
|
@@ -595,7 +595,7 @@ export const Equivalence: Equ.Equivalence<DateTime> = Internal.Equivalence
|
|
|
595
595
|
export const Order: order.Order<DateTime> = Internal.Order
|
|
596
596
|
|
|
597
597
|
/**
|
|
598
|
-
*
|
|
598
|
+
* Returns a `DateTime` constrained between a minimum and maximum value.
|
|
599
599
|
*
|
|
600
600
|
* **Details**
|
|
601
601
|
*
|
|
@@ -616,12 +616,12 @@ export const Order: order.Order<DateTime> = Internal.Order
|
|
|
616
616
|
* // clamped equals max (2024-12-31)
|
|
617
617
|
* ```
|
|
618
618
|
*
|
|
619
|
-
* @category
|
|
619
|
+
* @category ordering
|
|
620
620
|
* @since 3.6.0
|
|
621
621
|
*/
|
|
622
622
|
export const clamp: {
|
|
623
623
|
/**
|
|
624
|
-
*
|
|
624
|
+
* Returns a `DateTime` constrained between a minimum and maximum value.
|
|
625
625
|
*
|
|
626
626
|
* **Details**
|
|
627
627
|
*
|
|
@@ -642,12 +642,12 @@ export const clamp: {
|
|
|
642
642
|
* // clamped equals max (2024-12-31)
|
|
643
643
|
* ```
|
|
644
644
|
*
|
|
645
|
-
* @category
|
|
645
|
+
* @category ordering
|
|
646
646
|
* @since 3.6.0
|
|
647
647
|
*/
|
|
648
648
|
<Min extends DateTime, Max extends DateTime>(options: { readonly minimum: Min; readonly maximum: Max }): <A extends DateTime>(self: A) => A | Min | Max
|
|
649
649
|
/**
|
|
650
|
-
*
|
|
650
|
+
* Returns a `DateTime` constrained between a minimum and maximum value.
|
|
651
651
|
*
|
|
652
652
|
* **Details**
|
|
653
653
|
*
|
|
@@ -668,7 +668,7 @@ export const clamp: {
|
|
|
668
668
|
* // clamped equals max (2024-12-31)
|
|
669
669
|
* ```
|
|
670
670
|
*
|
|
671
|
-
* @category
|
|
671
|
+
* @category ordering
|
|
672
672
|
* @since 3.6.0
|
|
673
673
|
*/
|
|
674
674
|
<A extends DateTime, Min extends DateTime, Max extends DateTime>(self: A, options: { readonly minimum: Min; readonly maximum: Max }): A | Min | Max
|
|
@@ -773,7 +773,7 @@ export const makeZonedUnsafe: (input: DateTime.Input, options?: {
|
|
|
773
773
|
}) => Zoned = Internal.makeZonedUnsafe
|
|
774
774
|
|
|
775
775
|
/**
|
|
776
|
-
* Creates a `DateTime.Zoned` from an input and a time zone.
|
|
776
|
+
* Creates a `DateTime.Zoned` safely from an input and a time zone.
|
|
777
777
|
*
|
|
778
778
|
* **Details**
|
|
779
779
|
*
|
|
@@ -821,7 +821,7 @@ export const makeZoned: (
|
|
|
821
821
|
) => Option.Option<Zoned> = Internal.makeZoned
|
|
822
822
|
|
|
823
823
|
/**
|
|
824
|
-
* Creates a `DateTime` from supported input values.
|
|
824
|
+
* Creates a `DateTime` safely from supported input values.
|
|
825
825
|
*
|
|
826
826
|
* **Details**
|
|
827
827
|
*
|
|
@@ -862,7 +862,7 @@ export const makeZoned: (
|
|
|
862
862
|
export const make: <A extends DateTime.Input>(input: A) => Option.Option<DateTime.PreserveZone<A>> = Internal.make
|
|
863
863
|
|
|
864
864
|
/**
|
|
865
|
-
* Parses an ISO zoned date-time string into a `DateTime.Zoned
|
|
865
|
+
* Parses an ISO zoned date-time string into a `DateTime.Zoned` safely.
|
|
866
866
|
*
|
|
867
867
|
* **Details**
|
|
868
868
|
*
|
|
@@ -894,7 +894,7 @@ export const make: <A extends DateTime.Input>(input: A) => Option.Option<DateTim
|
|
|
894
894
|
export const makeZonedFromString: (input: string) => Option.Option<Zoned> = Internal.makeZonedFromString
|
|
895
895
|
|
|
896
896
|
/**
|
|
897
|
-
*
|
|
897
|
+
* Gets the current time using the `Clock` service and convert it to a `DateTime`.
|
|
898
898
|
*
|
|
899
899
|
* **Example** (Getting the current DateTime)
|
|
900
900
|
*
|
|
@@ -932,7 +932,7 @@ export const now: Effect.Effect<Utc> = Internal.now
|
|
|
932
932
|
export const nowAsDate: Effect.Effect<Date> = Internal.nowAsDate
|
|
933
933
|
|
|
934
934
|
/**
|
|
935
|
-
*
|
|
935
|
+
* Gets the current time using `Date.now`.
|
|
936
936
|
*
|
|
937
937
|
* **Details**
|
|
938
938
|
*
|
|
@@ -958,7 +958,16 @@ export const nowUnsafe: LazyArg<Utc> = Internal.nowUnsafe
|
|
|
958
958
|
// =============================================================================
|
|
959
959
|
|
|
960
960
|
/**
|
|
961
|
-
*
|
|
961
|
+
* Converts a `DateTime` to a UTC `DateTime`.
|
|
962
|
+
*
|
|
963
|
+
* **When to use**
|
|
964
|
+
*
|
|
965
|
+
* Use to represent the same instant in UTC instead of its current time zone.
|
|
966
|
+
*
|
|
967
|
+
* **Details**
|
|
968
|
+
*
|
|
969
|
+
* The returned value keeps the same epoch milliseconds and changes only the
|
|
970
|
+
* `DateTime` representation to UTC.
|
|
962
971
|
*
|
|
963
972
|
* **Example** (Converting DateTime values to UTC)
|
|
964
973
|
*
|
|
@@ -979,7 +988,7 @@ export const nowUnsafe: LazyArg<Utc> = Internal.nowUnsafe
|
|
|
979
988
|
export const toUtc: (self: DateTime) => Utc = Internal.toUtc
|
|
980
989
|
|
|
981
990
|
/**
|
|
982
|
-
*
|
|
991
|
+
* Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
|
|
983
992
|
*
|
|
984
993
|
* **Example** (Setting time zones)
|
|
985
994
|
*
|
|
@@ -1000,7 +1009,7 @@ export const toUtc: (self: DateTime) => Utc = Internal.toUtc
|
|
|
1000
1009
|
*/
|
|
1001
1010
|
export const setZone: {
|
|
1002
1011
|
/**
|
|
1003
|
-
*
|
|
1012
|
+
* Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
|
|
1004
1013
|
*
|
|
1005
1014
|
* **Example** (Setting time zones)
|
|
1006
1015
|
*
|
|
@@ -1027,7 +1036,7 @@ export const setZone: {
|
|
|
1027
1036
|
}
|
|
1028
1037
|
): (self: DateTime) => Zoned
|
|
1029
1038
|
/**
|
|
1030
|
-
*
|
|
1039
|
+
* Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
|
|
1031
1040
|
*
|
|
1032
1041
|
* **Example** (Setting time zones)
|
|
1033
1042
|
*
|
|
@@ -1057,7 +1066,7 @@ export const setZone: {
|
|
|
1057
1066
|
} = Internal.setZone
|
|
1058
1067
|
|
|
1059
1068
|
/**
|
|
1060
|
-
*
|
|
1069
|
+
* Adds a fixed offset time zone to a `DateTime`.
|
|
1061
1070
|
*
|
|
1062
1071
|
* **Details**
|
|
1063
1072
|
*
|
|
@@ -1081,7 +1090,7 @@ export const setZone: {
|
|
|
1081
1090
|
*/
|
|
1082
1091
|
export const setZoneOffset: {
|
|
1083
1092
|
/**
|
|
1084
|
-
*
|
|
1093
|
+
* Adds a fixed offset time zone to a `DateTime`.
|
|
1085
1094
|
*
|
|
1086
1095
|
* **Details**
|
|
1087
1096
|
*
|
|
@@ -1111,7 +1120,7 @@ export const setZoneOffset: {
|
|
|
1111
1120
|
}
|
|
1112
1121
|
): (self: DateTime) => Zoned
|
|
1113
1122
|
/**
|
|
1114
|
-
*
|
|
1123
|
+
* Adds a fixed offset time zone to a `DateTime`.
|
|
1115
1124
|
*
|
|
1116
1125
|
* **Details**
|
|
1117
1126
|
*
|
|
@@ -1144,7 +1153,7 @@ export const setZoneOffset: {
|
|
|
1144
1153
|
} = Internal.setZoneOffset
|
|
1145
1154
|
|
|
1146
1155
|
/**
|
|
1147
|
-
*
|
|
1156
|
+
* Attempts to create a named time zone from an IANA time zone identifier.
|
|
1148
1157
|
*
|
|
1149
1158
|
* **Details**
|
|
1150
1159
|
*
|
|
@@ -1197,7 +1206,7 @@ export const zoneMakeNamedUnsafe: (zoneId: string) => TimeZone.Named = Internal.
|
|
|
1197
1206
|
export const zoneMakeOffset: (offset: number) => TimeZone.Offset = Internal.zoneMakeOffset
|
|
1198
1207
|
|
|
1199
1208
|
/**
|
|
1200
|
-
*
|
|
1209
|
+
* Creates a named time zone safely from an IANA time zone identifier.
|
|
1201
1210
|
*
|
|
1202
1211
|
* **Details**
|
|
1203
1212
|
*
|
|
@@ -1221,7 +1230,7 @@ export const zoneMakeOffset: (offset: number) => TimeZone.Offset = Internal.zone
|
|
|
1221
1230
|
export const zoneMakeNamed: (zoneId: string) => Option.Option<TimeZone.Named> = Internal.zoneMakeNamed
|
|
1222
1231
|
|
|
1223
1232
|
/**
|
|
1224
|
-
*
|
|
1233
|
+
* Creates a named time zone effectfully from an IANA time zone identifier.
|
|
1225
1234
|
*
|
|
1226
1235
|
* **Details**
|
|
1227
1236
|
*
|
|
@@ -1268,7 +1277,7 @@ export const zoneMakeNamedEffect: (zoneId: string) => Effect.Effect<TimeZone.Nam
|
|
|
1268
1277
|
export const zoneMakeLocal: () => TimeZone.Named = Internal.zoneMakeLocal
|
|
1269
1278
|
|
|
1270
1279
|
/**
|
|
1271
|
-
*
|
|
1280
|
+
* Tries to parse a `TimeZone` from a string safely.
|
|
1272
1281
|
*
|
|
1273
1282
|
* **Details**
|
|
1274
1283
|
*
|
|
@@ -1294,7 +1303,7 @@ export const zoneMakeLocal: () => TimeZone.Named = Internal.zoneMakeLocal
|
|
|
1294
1303
|
export const zoneFromString: (zone: string) => Option.Option<TimeZone> = Internal.zoneFromString
|
|
1295
1304
|
|
|
1296
1305
|
/**
|
|
1297
|
-
*
|
|
1306
|
+
* Formats a `TimeZone` as a string.
|
|
1298
1307
|
*
|
|
1299
1308
|
* **Example** (Formatting time zones)
|
|
1300
1309
|
*
|
|
@@ -1314,7 +1323,7 @@ export const zoneFromString: (zone: string) => Option.Option<TimeZone> = Interna
|
|
|
1314
1323
|
export const zoneToString: (self: TimeZone) => string = Internal.zoneToString
|
|
1315
1324
|
|
|
1316
1325
|
/**
|
|
1317
|
-
*
|
|
1326
|
+
* Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
|
|
1318
1327
|
* time zone is invalid, `None` will be returned.
|
|
1319
1328
|
*
|
|
1320
1329
|
* **Example** (Setting named time zones safely)
|
|
@@ -1334,7 +1343,7 @@ export const zoneToString: (self: TimeZone) => string = Internal.zoneToString
|
|
|
1334
1343
|
*/
|
|
1335
1344
|
export const setZoneNamed: {
|
|
1336
1345
|
/**
|
|
1337
|
-
*
|
|
1346
|
+
* Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
|
|
1338
1347
|
* time zone is invalid, `None` will be returned.
|
|
1339
1348
|
*
|
|
1340
1349
|
* **Example** (Setting named time zones safely)
|
|
@@ -1360,7 +1369,7 @@ export const setZoneNamed: {
|
|
|
1360
1369
|
}
|
|
1361
1370
|
): (self: DateTime) => Option.Option<Zoned>
|
|
1362
1371
|
/**
|
|
1363
|
-
*
|
|
1372
|
+
* Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
|
|
1364
1373
|
* time zone is invalid, `None` will be returned.
|
|
1365
1374
|
*
|
|
1366
1375
|
* **Example** (Setting named time zones safely)
|
|
@@ -1389,7 +1398,7 @@ export const setZoneNamed: {
|
|
|
1389
1398
|
} = Internal.setZoneNamed
|
|
1390
1399
|
|
|
1391
1400
|
/**
|
|
1392
|
-
*
|
|
1401
|
+
* Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
|
|
1393
1402
|
* time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
1394
1403
|
*
|
|
1395
1404
|
* **Example** (Setting named time zones unsafely)
|
|
@@ -1409,7 +1418,7 @@ export const setZoneNamed: {
|
|
|
1409
1418
|
*/
|
|
1410
1419
|
export const setZoneNamedUnsafe: {
|
|
1411
1420
|
/**
|
|
1412
|
-
*
|
|
1421
|
+
* Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
|
|
1413
1422
|
* time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
1414
1423
|
*
|
|
1415
1424
|
* **Example** (Setting named time zones unsafely)
|
|
@@ -1435,7 +1444,7 @@ export const setZoneNamedUnsafe: {
|
|
|
1435
1444
|
}
|
|
1436
1445
|
): (self: DateTime) => Zoned
|
|
1437
1446
|
/**
|
|
1438
|
-
*
|
|
1447
|
+
* Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
|
|
1439
1448
|
* time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
1440
1449
|
*
|
|
1441
1450
|
* **Example** (Setting named time zones unsafely)
|
|
@@ -1468,7 +1477,7 @@ export const setZoneNamedUnsafe: {
|
|
|
1468
1477
|
// =============================================================================
|
|
1469
1478
|
|
|
1470
1479
|
/**
|
|
1471
|
-
*
|
|
1480
|
+
* Computes the difference between two `DateTime` values, returning a
|
|
1472
1481
|
* `Duration` representing the amount of time between them.
|
|
1473
1482
|
*
|
|
1474
1483
|
* **Details**
|
|
@@ -1500,7 +1509,7 @@ export const distance: {
|
|
|
1500
1509
|
// =============================================================================
|
|
1501
1510
|
|
|
1502
1511
|
/**
|
|
1503
|
-
*
|
|
1512
|
+
* Computes the difference between two `DateTime` values, returning a
|
|
1504
1513
|
* `Duration` representing the amount of time between them.
|
|
1505
1514
|
*
|
|
1506
1515
|
* **Details**
|
|
@@ -1532,7 +1541,7 @@ export const distance: {
|
|
|
1532
1541
|
// =============================================================================
|
|
1533
1542
|
|
|
1534
1543
|
/**
|
|
1535
|
-
*
|
|
1544
|
+
* Computes the difference between two `DateTime` values, returning a
|
|
1536
1545
|
* `Duration` representing the amount of time between them.
|
|
1537
1546
|
*
|
|
1538
1547
|
* **Details**
|
|
@@ -1680,7 +1689,7 @@ export const max: {
|
|
|
1680
1689
|
} = Internal.max
|
|
1681
1690
|
|
|
1682
1691
|
/**
|
|
1683
|
-
* Checks
|
|
1692
|
+
* Checks whether the first `DateTime` is after the second `DateTime`.
|
|
1684
1693
|
*
|
|
1685
1694
|
* **Example** (Checking whether a DateTime is later)
|
|
1686
1695
|
*
|
|
@@ -1699,7 +1708,7 @@ export const max: {
|
|
|
1699
1708
|
*/
|
|
1700
1709
|
export const isGreaterThan: {
|
|
1701
1710
|
/**
|
|
1702
|
-
* Checks
|
|
1711
|
+
* Checks whether the first `DateTime` is after the second `DateTime`.
|
|
1703
1712
|
*
|
|
1704
1713
|
* **Example** (Checking whether a DateTime is later)
|
|
1705
1714
|
*
|
|
@@ -1718,7 +1727,7 @@ export const isGreaterThan: {
|
|
|
1718
1727
|
*/
|
|
1719
1728
|
(that: DateTime): (self: DateTime) => boolean
|
|
1720
1729
|
/**
|
|
1721
|
-
* Checks
|
|
1730
|
+
* Checks whether the first `DateTime` is after the second `DateTime`.
|
|
1722
1731
|
*
|
|
1723
1732
|
* **Example** (Checking whether a DateTime is later)
|
|
1724
1733
|
*
|
|
@@ -1739,7 +1748,7 @@ export const isGreaterThan: {
|
|
|
1739
1748
|
} = Internal.isGreaterThan
|
|
1740
1749
|
|
|
1741
1750
|
/**
|
|
1742
|
-
* Checks
|
|
1751
|
+
* Checks whether the first `DateTime` is after or equal to the second `DateTime`.
|
|
1743
1752
|
*
|
|
1744
1753
|
* **Example** (Checking whether a DateTime is later or equal)
|
|
1745
1754
|
*
|
|
@@ -1760,7 +1769,7 @@ export const isGreaterThan: {
|
|
|
1760
1769
|
*/
|
|
1761
1770
|
export const isGreaterThanOrEqualTo: {
|
|
1762
1771
|
/**
|
|
1763
|
-
* Checks
|
|
1772
|
+
* Checks whether the first `DateTime` is after or equal to the second `DateTime`.
|
|
1764
1773
|
*
|
|
1765
1774
|
* **Example** (Checking whether a DateTime is later or equal)
|
|
1766
1775
|
*
|
|
@@ -1781,7 +1790,7 @@ export const isGreaterThanOrEqualTo: {
|
|
|
1781
1790
|
*/
|
|
1782
1791
|
(that: DateTime): (self: DateTime) => boolean
|
|
1783
1792
|
/**
|
|
1784
|
-
* Checks
|
|
1793
|
+
* Checks whether the first `DateTime` is after or equal to the second `DateTime`.
|
|
1785
1794
|
*
|
|
1786
1795
|
* **Example** (Checking whether a DateTime is later or equal)
|
|
1787
1796
|
*
|
|
@@ -1804,7 +1813,7 @@ export const isGreaterThanOrEqualTo: {
|
|
|
1804
1813
|
} = Internal.isGreaterThanOrEqualTo
|
|
1805
1814
|
|
|
1806
1815
|
/**
|
|
1807
|
-
* Checks
|
|
1816
|
+
* Checks whether the first `DateTime` is before the second `DateTime`.
|
|
1808
1817
|
*
|
|
1809
1818
|
* **Example** (Checking whether a DateTime is earlier)
|
|
1810
1819
|
*
|
|
@@ -1823,7 +1832,7 @@ export const isGreaterThanOrEqualTo: {
|
|
|
1823
1832
|
*/
|
|
1824
1833
|
export const isLessThan: {
|
|
1825
1834
|
/**
|
|
1826
|
-
* Checks
|
|
1835
|
+
* Checks whether the first `DateTime` is before the second `DateTime`.
|
|
1827
1836
|
*
|
|
1828
1837
|
* **Example** (Checking whether a DateTime is earlier)
|
|
1829
1838
|
*
|
|
@@ -1842,7 +1851,7 @@ export const isLessThan: {
|
|
|
1842
1851
|
*/
|
|
1843
1852
|
(that: DateTime): (self: DateTime) => boolean
|
|
1844
1853
|
/**
|
|
1845
|
-
* Checks
|
|
1854
|
+
* Checks whether the first `DateTime` is before the second `DateTime`.
|
|
1846
1855
|
*
|
|
1847
1856
|
* **Example** (Checking whether a DateTime is earlier)
|
|
1848
1857
|
*
|
|
@@ -1863,7 +1872,7 @@ export const isLessThan: {
|
|
|
1863
1872
|
} = Internal.isLessThan
|
|
1864
1873
|
|
|
1865
1874
|
/**
|
|
1866
|
-
* Checks
|
|
1875
|
+
* Checks whether the first `DateTime` is before or equal to the second `DateTime`.
|
|
1867
1876
|
*
|
|
1868
1877
|
* **Example** (Checking whether a DateTime is earlier or equal)
|
|
1869
1878
|
*
|
|
@@ -1884,7 +1893,7 @@ export const isLessThan: {
|
|
|
1884
1893
|
*/
|
|
1885
1894
|
export const isLessThanOrEqualTo: {
|
|
1886
1895
|
/**
|
|
1887
|
-
* Checks
|
|
1896
|
+
* Checks whether the first `DateTime` is before or equal to the second `DateTime`.
|
|
1888
1897
|
*
|
|
1889
1898
|
* **Example** (Checking whether a DateTime is earlier or equal)
|
|
1890
1899
|
*
|
|
@@ -1905,7 +1914,7 @@ export const isLessThanOrEqualTo: {
|
|
|
1905
1914
|
*/
|
|
1906
1915
|
(that: DateTime): (self: DateTime) => boolean
|
|
1907
1916
|
/**
|
|
1908
|
-
* Checks
|
|
1917
|
+
* Checks whether the first `DateTime` is before or equal to the second `DateTime`.
|
|
1909
1918
|
*
|
|
1910
1919
|
* **Example** (Checking whether a DateTime is earlier or equal)
|
|
1911
1920
|
*
|
|
@@ -1928,7 +1937,7 @@ export const isLessThanOrEqualTo: {
|
|
|
1928
1937
|
} = Internal.isLessThanOrEqualTo
|
|
1929
1938
|
|
|
1930
1939
|
/**
|
|
1931
|
-
* Checks
|
|
1940
|
+
* Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
|
|
1932
1941
|
*
|
|
1933
1942
|
* **Example** (Checking whether a DateTime is within bounds)
|
|
1934
1943
|
*
|
|
@@ -1947,7 +1956,7 @@ export const isLessThanOrEqualTo: {
|
|
|
1947
1956
|
*/
|
|
1948
1957
|
export const between: {
|
|
1949
1958
|
/**
|
|
1950
|
-
* Checks
|
|
1959
|
+
* Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
|
|
1951
1960
|
*
|
|
1952
1961
|
* **Example** (Checking whether a DateTime is within bounds)
|
|
1953
1962
|
*
|
|
@@ -1966,7 +1975,7 @@ export const between: {
|
|
|
1966
1975
|
*/
|
|
1967
1976
|
(options: { minimum: DateTime; maximum: DateTime }): (self: DateTime) => boolean
|
|
1968
1977
|
/**
|
|
1969
|
-
* Checks
|
|
1978
|
+
* Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
|
|
1970
1979
|
*
|
|
1971
1980
|
* **Example** (Checking whether a DateTime is within bounds)
|
|
1972
1981
|
*
|
|
@@ -1987,7 +1996,7 @@ export const between: {
|
|
|
1987
1996
|
} = Internal.between
|
|
1988
1997
|
|
|
1989
1998
|
/**
|
|
1990
|
-
* Checks if a `DateTime` is in the future compared to the current time.
|
|
1999
|
+
* Checks effectfully if a `DateTime` is in the future compared to the current time.
|
|
1991
2000
|
*
|
|
1992
2001
|
* **Details**
|
|
1993
2002
|
*
|
|
@@ -2011,7 +2020,7 @@ export const between: {
|
|
|
2011
2020
|
export const isFuture: (self: DateTime) => Effect.Effect<boolean> = Internal.isFuture
|
|
2012
2021
|
|
|
2013
2022
|
/**
|
|
2014
|
-
* Checks if a `DateTime` is in the future compared to the current time.
|
|
2023
|
+
* Checks synchronously if a `DateTime` is in the future compared to the current time.
|
|
2015
2024
|
*
|
|
2016
2025
|
* **Details**
|
|
2017
2026
|
*
|
|
@@ -2035,7 +2044,7 @@ export const isFuture: (self: DateTime) => Effect.Effect<boolean> = Internal.isF
|
|
|
2035
2044
|
export const isFutureUnsafe: (self: DateTime) => boolean = Internal.isFutureUnsafe
|
|
2036
2045
|
|
|
2037
2046
|
/**
|
|
2038
|
-
* Checks if a `DateTime` is in the past compared to the current time.
|
|
2047
|
+
* Checks effectfully if a `DateTime` is in the past compared to the current time.
|
|
2039
2048
|
*
|
|
2040
2049
|
* **Details**
|
|
2041
2050
|
*
|
|
@@ -2059,7 +2068,7 @@ export const isFutureUnsafe: (self: DateTime) => boolean = Internal.isFutureUnsa
|
|
|
2059
2068
|
export const isPast: (self: DateTime) => Effect.Effect<boolean> = Internal.isPast
|
|
2060
2069
|
|
|
2061
2070
|
/**
|
|
2062
|
-
* Checks if a `DateTime` is in the past compared to the current time.
|
|
2071
|
+
* Checks synchronously if a `DateTime` is in the past compared to the current time.
|
|
2063
2072
|
*
|
|
2064
2073
|
* **Details**
|
|
2065
2074
|
*
|
|
@@ -2087,7 +2096,7 @@ export const isPastUnsafe: (self: DateTime) => boolean = Internal.isPastUnsafe
|
|
|
2087
2096
|
// =============================================================================
|
|
2088
2097
|
|
|
2089
2098
|
/**
|
|
2090
|
-
*
|
|
2099
|
+
* Gets the UTC `Date` of a `DateTime`.
|
|
2091
2100
|
*
|
|
2092
2101
|
* **Details**
|
|
2093
2102
|
*
|
|
@@ -2112,7 +2121,7 @@ export const isPastUnsafe: (self: DateTime) => boolean = Internal.isPastUnsafe
|
|
|
2112
2121
|
export const toDateUtc: (self: DateTime) => Date = Internal.toDateUtc
|
|
2113
2122
|
|
|
2114
2123
|
/**
|
|
2115
|
-
*
|
|
2124
|
+
* Converts a `DateTime` to a `Date`, applying the time zone first.
|
|
2116
2125
|
*
|
|
2117
2126
|
* **Details**
|
|
2118
2127
|
*
|
|
@@ -2139,7 +2148,7 @@ export const toDateUtc: (self: DateTime) => Date = Internal.toDateUtc
|
|
|
2139
2148
|
export const toDate: (self: DateTime) => Date = Internal.toDate
|
|
2140
2149
|
|
|
2141
2150
|
/**
|
|
2142
|
-
*
|
|
2151
|
+
* Computes the time zone offset of a `DateTime.Zoned` in milliseconds.
|
|
2143
2152
|
*
|
|
2144
2153
|
* **Details**
|
|
2145
2154
|
*
|
|
@@ -2165,7 +2174,7 @@ export const toDate: (self: DateTime) => Date = Internal.toDate
|
|
|
2165
2174
|
export const zonedOffset: (self: Zoned) => number = Internal.zonedOffset
|
|
2166
2175
|
|
|
2167
2176
|
/**
|
|
2168
|
-
*
|
|
2177
|
+
* Formats the time zone offset of a `DateTime.Zoned` as an ISO string.
|
|
2169
2178
|
*
|
|
2170
2179
|
* **Details**
|
|
2171
2180
|
*
|
|
@@ -2190,7 +2199,7 @@ export const zonedOffset: (self: Zoned) => number = Internal.zonedOffset
|
|
|
2190
2199
|
export const zonedOffsetIso: (self: Zoned) => string = Internal.zonedOffsetIso
|
|
2191
2200
|
|
|
2192
2201
|
/**
|
|
2193
|
-
*
|
|
2202
|
+
* Gets the milliseconds since the Unix epoch of a `DateTime`.
|
|
2194
2203
|
*
|
|
2195
2204
|
* **Details**
|
|
2196
2205
|
*
|
|
@@ -2213,7 +2222,7 @@ export const zonedOffsetIso: (self: Zoned) => string = Internal.zonedOffsetIso
|
|
|
2213
2222
|
export const toEpochMillis: (self: DateTime) => number = Internal.toEpochMillis
|
|
2214
2223
|
|
|
2215
2224
|
/**
|
|
2216
|
-
*
|
|
2225
|
+
* Removes the time aspect of a `DateTime`, first adjusting for the time
|
|
2217
2226
|
* zone. It will return a `DateTime.Utc` only containing the date.
|
|
2218
2227
|
*
|
|
2219
2228
|
* **Example** (Removing time components)
|
|
@@ -2241,7 +2250,7 @@ export const removeTime: (self: DateTime) => Utc = Internal.removeTime
|
|
|
2241
2250
|
// =============================================================================
|
|
2242
2251
|
|
|
2243
2252
|
/**
|
|
2244
|
-
*
|
|
2253
|
+
* Gets the time-zone-adjusted parts of a `DateTime` as an object.
|
|
2245
2254
|
*
|
|
2246
2255
|
* **Details**
|
|
2247
2256
|
*
|
|
@@ -2274,7 +2283,7 @@ export const removeTime: (self: DateTime) => Utc = Internal.removeTime
|
|
|
2274
2283
|
export const toParts: (self: DateTime) => DateTime.PartsWithWeekday = Internal.toParts
|
|
2275
2284
|
|
|
2276
2285
|
/**
|
|
2277
|
-
*
|
|
2286
|
+
* Gets the UTC parts of a `DateTime` as an object.
|
|
2278
2287
|
*
|
|
2279
2288
|
* **Details**
|
|
2280
2289
|
*
|
|
@@ -2300,7 +2309,7 @@ export const toParts: (self: DateTime) => DateTime.PartsWithWeekday = Internal.t
|
|
|
2300
2309
|
export const toPartsUtc: (self: DateTime) => DateTime.PartsWithWeekday = Internal.toPartsUtc
|
|
2301
2310
|
|
|
2302
2311
|
/**
|
|
2303
|
-
*
|
|
2312
|
+
* Gets one UTC part of a `DateTime` as a number.
|
|
2304
2313
|
*
|
|
2305
2314
|
* **Details**
|
|
2306
2315
|
*
|
|
@@ -2321,7 +2330,7 @@ export const toPartsUtc: (self: DateTime) => DateTime.PartsWithWeekday = Interna
|
|
|
2321
2330
|
*/
|
|
2322
2331
|
export const getPartUtc: {
|
|
2323
2332
|
/**
|
|
2324
|
-
*
|
|
2333
|
+
* Gets one UTC part of a `DateTime` as a number.
|
|
2325
2334
|
*
|
|
2326
2335
|
* **Details**
|
|
2327
2336
|
*
|
|
@@ -2342,7 +2351,7 @@ export const getPartUtc: {
|
|
|
2342
2351
|
*/
|
|
2343
2352
|
(part: keyof DateTime.PartsWithWeekday): (self: DateTime) => number
|
|
2344
2353
|
/**
|
|
2345
|
-
*
|
|
2354
|
+
* Gets one UTC part of a `DateTime` as a number.
|
|
2346
2355
|
*
|
|
2347
2356
|
* **Details**
|
|
2348
2357
|
*
|
|
@@ -2365,7 +2374,7 @@ export const getPartUtc: {
|
|
|
2365
2374
|
} = Internal.getPartUtc
|
|
2366
2375
|
|
|
2367
2376
|
/**
|
|
2368
|
-
*
|
|
2377
|
+
* Gets one time-zone-adjusted part of a `DateTime` as a number.
|
|
2369
2378
|
*
|
|
2370
2379
|
* **Details**
|
|
2371
2380
|
*
|
|
@@ -2388,7 +2397,7 @@ export const getPartUtc: {
|
|
|
2388
2397
|
*/
|
|
2389
2398
|
export const getPart: {
|
|
2390
2399
|
/**
|
|
2391
|
-
*
|
|
2400
|
+
* Gets one time-zone-adjusted part of a `DateTime` as a number.
|
|
2392
2401
|
*
|
|
2393
2402
|
* **Details**
|
|
2394
2403
|
*
|
|
@@ -2411,7 +2420,7 @@ export const getPart: {
|
|
|
2411
2420
|
*/
|
|
2412
2421
|
(part: keyof DateTime.PartsWithWeekday): (self: DateTime) => number
|
|
2413
2422
|
/**
|
|
2414
|
-
*
|
|
2423
|
+
* Gets one time-zone-adjusted part of a `DateTime` as a number.
|
|
2415
2424
|
*
|
|
2416
2425
|
* **Details**
|
|
2417
2426
|
*
|
|
@@ -2436,7 +2445,7 @@ export const getPart: {
|
|
|
2436
2445
|
} = Internal.getPart
|
|
2437
2446
|
|
|
2438
2447
|
/**
|
|
2439
|
-
*
|
|
2448
|
+
* Sets time-zone-adjusted parts on a `DateTime`.
|
|
2440
2449
|
*
|
|
2441
2450
|
* **Details**
|
|
2442
2451
|
*
|
|
@@ -2462,7 +2471,7 @@ export const getPart: {
|
|
|
2462
2471
|
*/
|
|
2463
2472
|
export const setParts: {
|
|
2464
2473
|
/**
|
|
2465
|
-
*
|
|
2474
|
+
* Sets time-zone-adjusted parts on a `DateTime`.
|
|
2466
2475
|
*
|
|
2467
2476
|
* **Details**
|
|
2468
2477
|
*
|
|
@@ -2488,7 +2497,7 @@ export const setParts: {
|
|
|
2488
2497
|
*/
|
|
2489
2498
|
(parts: Partial<DateTime.PartsWithWeekday>): <A extends DateTime>(self: A) => A
|
|
2490
2499
|
/**
|
|
2491
|
-
*
|
|
2500
|
+
* Sets time-zone-adjusted parts on a `DateTime`.
|
|
2492
2501
|
*
|
|
2493
2502
|
* **Details**
|
|
2494
2503
|
*
|
|
@@ -2516,7 +2525,7 @@ export const setParts: {
|
|
|
2516
2525
|
} = Internal.setParts
|
|
2517
2526
|
|
|
2518
2527
|
/**
|
|
2519
|
-
*
|
|
2528
|
+
* Sets UTC parts on a `DateTime`.
|
|
2520
2529
|
*
|
|
2521
2530
|
* **Details**
|
|
2522
2531
|
*
|
|
@@ -2541,7 +2550,7 @@ export const setParts: {
|
|
|
2541
2550
|
*/
|
|
2542
2551
|
export const setPartsUtc: {
|
|
2543
2552
|
/**
|
|
2544
|
-
*
|
|
2553
|
+
* Sets UTC parts on a `DateTime`.
|
|
2545
2554
|
*
|
|
2546
2555
|
* **Details**
|
|
2547
2556
|
*
|
|
@@ -2566,7 +2575,7 @@ export const setPartsUtc: {
|
|
|
2566
2575
|
*/
|
|
2567
2576
|
(parts: Partial<DateTime.PartsWithWeekday>): <A extends DateTime>(self: A) => A
|
|
2568
2577
|
/**
|
|
2569
|
-
*
|
|
2578
|
+
* Sets UTC parts on a `DateTime`.
|
|
2570
2579
|
*
|
|
2571
2580
|
* **Details**
|
|
2572
2581
|
*
|
|
@@ -2630,7 +2639,7 @@ export class CurrentTimeZone extends Context.Service<CurrentTimeZone, TimeZone>(
|
|
|
2630
2639
|
) {}
|
|
2631
2640
|
|
|
2632
2641
|
/**
|
|
2633
|
-
*
|
|
2642
|
+
* Sets the time zone of a `DateTime` to the current time zone, which is
|
|
2634
2643
|
* determined by the `CurrentTimeZone` service.
|
|
2635
2644
|
*
|
|
2636
2645
|
* **Example** (Setting the current time zone)
|
|
@@ -2653,7 +2662,7 @@ export const setZoneCurrent = (self: DateTime): Effect.Effect<Zoned, never, Curr
|
|
|
2653
2662
|
Effect.map(CurrentTimeZone, (zone) => setZone(self, zone))
|
|
2654
2663
|
|
|
2655
2664
|
/**
|
|
2656
|
-
*
|
|
2665
|
+
* Provides the `CurrentTimeZone` to an effect.
|
|
2657
2666
|
*
|
|
2658
2667
|
* **Example** (Providing the current time zone)
|
|
2659
2668
|
*
|
|
@@ -2672,7 +2681,7 @@ export const setZoneCurrent = (self: DateTime): Effect.Effect<Zoned, never, Curr
|
|
|
2672
2681
|
*/
|
|
2673
2682
|
export const withCurrentZone: {
|
|
2674
2683
|
/**
|
|
2675
|
-
*
|
|
2684
|
+
* Provides the `CurrentTimeZone` to an effect.
|
|
2676
2685
|
*
|
|
2677
2686
|
* **Example** (Providing the current time zone)
|
|
2678
2687
|
*
|
|
@@ -2691,7 +2700,7 @@ export const withCurrentZone: {
|
|
|
2691
2700
|
*/
|
|
2692
2701
|
(value: TimeZone): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>
|
|
2693
2702
|
/**
|
|
2694
|
-
*
|
|
2703
|
+
* Provides the `CurrentTimeZone` to an effect.
|
|
2695
2704
|
*
|
|
2696
2705
|
* **Example** (Providing the current time zone)
|
|
2697
2706
|
*
|
|
@@ -2712,7 +2721,7 @@ export const withCurrentZone: {
|
|
|
2712
2721
|
} = provideService(CurrentTimeZone)
|
|
2713
2722
|
|
|
2714
2723
|
/**
|
|
2715
|
-
*
|
|
2724
|
+
* Provides the `CurrentTimeZone` to an effect, using the system's local time
|
|
2716
2725
|
* zone.
|
|
2717
2726
|
*
|
|
2718
2727
|
* **Example** (Providing the local time zone)
|
|
@@ -2735,7 +2744,7 @@ export const withCurrentZoneLocal = <A, E, R>(
|
|
|
2735
2744
|
Effect.provideServiceEffect(effect, CurrentTimeZone, Effect.sync(zoneMakeLocal))
|
|
2736
2745
|
|
|
2737
2746
|
/**
|
|
2738
|
-
*
|
|
2747
|
+
* Provides the `CurrentTimeZone` to an effect, using an offset.
|
|
2739
2748
|
*
|
|
2740
2749
|
* **Example** (Providing a fixed-offset time zone)
|
|
2741
2750
|
*
|
|
@@ -2753,7 +2762,7 @@ export const withCurrentZoneLocal = <A, E, R>(
|
|
|
2753
2762
|
*/
|
|
2754
2763
|
export const withCurrentZoneOffset: {
|
|
2755
2764
|
/**
|
|
2756
|
-
*
|
|
2765
|
+
* Provides the `CurrentTimeZone` to an effect, using an offset.
|
|
2757
2766
|
*
|
|
2758
2767
|
* **Example** (Providing a fixed-offset time zone)
|
|
2759
2768
|
*
|
|
@@ -2773,7 +2782,7 @@ export const withCurrentZoneOffset: {
|
|
|
2773
2782
|
effect: Effect.Effect<A, E, R>
|
|
2774
2783
|
) => Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>
|
|
2775
2784
|
/**
|
|
2776
|
-
*
|
|
2785
|
+
* Provides the `CurrentTimeZone` to an effect, using an offset.
|
|
2777
2786
|
*
|
|
2778
2787
|
* **Example** (Providing a fixed-offset time zone)
|
|
2779
2788
|
*
|
|
@@ -2797,7 +2806,7 @@ export const withCurrentZoneOffset: {
|
|
|
2797
2806
|
)
|
|
2798
2807
|
|
|
2799
2808
|
/**
|
|
2800
|
-
*
|
|
2809
|
+
* Provides the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2801
2810
|
* identifier.
|
|
2802
2811
|
*
|
|
2803
2812
|
* **Details**
|
|
@@ -2820,7 +2829,7 @@ export const withCurrentZoneOffset: {
|
|
|
2820
2829
|
*/
|
|
2821
2830
|
export const withCurrentZoneNamed: {
|
|
2822
2831
|
/**
|
|
2823
|
-
*
|
|
2832
|
+
* Provides the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2824
2833
|
* identifier.
|
|
2825
2834
|
*
|
|
2826
2835
|
* **Details**
|
|
@@ -2845,7 +2854,7 @@ export const withCurrentZoneNamed: {
|
|
|
2845
2854
|
effect: Effect.Effect<A, E, R>
|
|
2846
2855
|
) => Effect.Effect<A, E | IllegalArgumentError, Exclude<R, CurrentTimeZone>>
|
|
2847
2856
|
/**
|
|
2848
|
-
*
|
|
2857
|
+
* Provides the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2849
2858
|
* identifier.
|
|
2850
2859
|
*
|
|
2851
2860
|
* **Details**
|
|
@@ -2877,7 +2886,7 @@ export const withCurrentZoneNamed: {
|
|
|
2877
2886
|
)
|
|
2878
2887
|
|
|
2879
2888
|
/**
|
|
2880
|
-
*
|
|
2889
|
+
* Gets the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`.
|
|
2881
2890
|
*
|
|
2882
2891
|
* **Example** (Getting the current time in the current zone)
|
|
2883
2892
|
*
|
|
@@ -2900,7 +2909,12 @@ export const nowInCurrentZone: Effect.Effect<Zoned, never, CurrentTimeZone> = Ef
|
|
|
2900
2909
|
// =============================================================================
|
|
2901
2910
|
|
|
2902
2911
|
/**
|
|
2903
|
-
*
|
|
2912
|
+
* Modifies a `DateTime` with a mutable local `Date` copy.
|
|
2913
|
+
*
|
|
2914
|
+
* **When to use**
|
|
2915
|
+
*
|
|
2916
|
+
* Use to adjust calendar fields in the `DateTime`'s own time zone with an
|
|
2917
|
+
* existing `Date` mutation API.
|
|
2904
2918
|
*
|
|
2905
2919
|
* **Details**
|
|
2906
2920
|
*
|
|
@@ -2933,7 +2947,12 @@ export const mutate: {
|
|
|
2933
2947
|
// =============================================================================
|
|
2934
2948
|
|
|
2935
2949
|
/**
|
|
2936
|
-
*
|
|
2950
|
+
* Modifies a `DateTime` with a mutable local `Date` copy.
|
|
2951
|
+
*
|
|
2952
|
+
* **When to use**
|
|
2953
|
+
*
|
|
2954
|
+
* Use to adjust calendar fields in the `DateTime`'s own time zone with an
|
|
2955
|
+
* existing `Date` mutation API.
|
|
2937
2956
|
*
|
|
2938
2957
|
* **Details**
|
|
2939
2958
|
*
|
|
@@ -2971,7 +2990,12 @@ export const mutate: {
|
|
|
2971
2990
|
// =============================================================================
|
|
2972
2991
|
|
|
2973
2992
|
/**
|
|
2974
|
-
*
|
|
2993
|
+
* Modifies a `DateTime` with a mutable local `Date` copy.
|
|
2994
|
+
*
|
|
2995
|
+
* **When to use**
|
|
2996
|
+
*
|
|
2997
|
+
* Use to adjust calendar fields in the `DateTime`'s own time zone with an
|
|
2998
|
+
* existing `Date` mutation API.
|
|
2975
2999
|
*
|
|
2976
3000
|
* **Details**
|
|
2977
3001
|
*
|
|
@@ -3008,7 +3032,12 @@ export const mutate: {
|
|
|
3008
3032
|
} = Internal.mutate
|
|
3009
3033
|
|
|
3010
3034
|
/**
|
|
3011
|
-
*
|
|
3035
|
+
* Modifies a `DateTime` with a mutable UTC `Date` copy.
|
|
3036
|
+
*
|
|
3037
|
+
* **When to use**
|
|
3038
|
+
*
|
|
3039
|
+
* Use to adjust the instant with an existing `Date` mutation API that works on
|
|
3040
|
+
* UTC calendar fields.
|
|
3012
3041
|
*
|
|
3013
3042
|
* **Example** (Mutating DateTime values with UTC Dates)
|
|
3014
3043
|
*
|
|
@@ -3031,7 +3060,12 @@ export const mutate: {
|
|
|
3031
3060
|
*/
|
|
3032
3061
|
export const mutateUtc: {
|
|
3033
3062
|
/**
|
|
3034
|
-
*
|
|
3063
|
+
* Modifies a `DateTime` with a mutable UTC `Date` copy.
|
|
3064
|
+
*
|
|
3065
|
+
* **When to use**
|
|
3066
|
+
*
|
|
3067
|
+
* Use to adjust the instant with an existing `Date` mutation API that works on
|
|
3068
|
+
* UTC calendar fields.
|
|
3035
3069
|
*
|
|
3036
3070
|
* **Example** (Mutating DateTime values with UTC Dates)
|
|
3037
3071
|
*
|
|
@@ -3054,7 +3088,12 @@ export const mutateUtc: {
|
|
|
3054
3088
|
*/
|
|
3055
3089
|
(f: (date: Date) => void): <A extends DateTime>(self: A) => A
|
|
3056
3090
|
/**
|
|
3057
|
-
*
|
|
3091
|
+
* Modifies a `DateTime` with a mutable UTC `Date` copy.
|
|
3092
|
+
*
|
|
3093
|
+
* **When to use**
|
|
3094
|
+
*
|
|
3095
|
+
* Use to adjust the instant with an existing `Date` mutation API that works on
|
|
3096
|
+
* UTC calendar fields.
|
|
3058
3097
|
*
|
|
3059
3098
|
* **Example** (Mutating DateTime values with UTC Dates)
|
|
3060
3099
|
*
|
|
@@ -3079,7 +3118,7 @@ export const mutateUtc: {
|
|
|
3079
3118
|
} = Internal.mutateUtc
|
|
3080
3119
|
|
|
3081
3120
|
/**
|
|
3082
|
-
*
|
|
3121
|
+
* Transforms a `DateTime` by applying a function to the number of milliseconds
|
|
3083
3122
|
* since the Unix epoch.
|
|
3084
3123
|
*
|
|
3085
3124
|
* **Example** (Mapping epoch milliseconds)
|
|
@@ -3098,7 +3137,7 @@ export const mutateUtc: {
|
|
|
3098
3137
|
*/
|
|
3099
3138
|
export const mapEpochMillis: {
|
|
3100
3139
|
/**
|
|
3101
|
-
*
|
|
3140
|
+
* Transforms a `DateTime` by applying a function to the number of milliseconds
|
|
3102
3141
|
* since the Unix epoch.
|
|
3103
3142
|
*
|
|
3104
3143
|
* **Example** (Mapping epoch milliseconds)
|
|
@@ -3117,7 +3156,7 @@ export const mapEpochMillis: {
|
|
|
3117
3156
|
*/
|
|
3118
3157
|
(f: (millis: number) => number): <A extends DateTime>(self: A) => A
|
|
3119
3158
|
/**
|
|
3120
|
-
*
|
|
3159
|
+
* Transforms a `DateTime` by applying a function to the number of milliseconds
|
|
3121
3160
|
* since the Unix epoch.
|
|
3122
3161
|
*
|
|
3123
3162
|
* **Example** (Mapping epoch milliseconds)
|
|
@@ -3399,7 +3438,7 @@ export const match: {
|
|
|
3399
3438
|
// =============================================================================
|
|
3400
3439
|
|
|
3401
3440
|
/**
|
|
3402
|
-
*
|
|
3441
|
+
* Adds the given `Duration` to a `DateTime`.
|
|
3403
3442
|
*
|
|
3404
3443
|
* **When to use**
|
|
3405
3444
|
*
|
|
@@ -3440,7 +3479,7 @@ export const addDuration: {
|
|
|
3440
3479
|
// =============================================================================
|
|
3441
3480
|
|
|
3442
3481
|
/**
|
|
3443
|
-
*
|
|
3482
|
+
* Adds the given `Duration` to a `DateTime`.
|
|
3444
3483
|
*
|
|
3445
3484
|
* **When to use**
|
|
3446
3485
|
*
|
|
@@ -3481,7 +3520,7 @@ export const addDuration: {
|
|
|
3481
3520
|
// =============================================================================
|
|
3482
3521
|
|
|
3483
3522
|
/**
|
|
3484
|
-
*
|
|
3523
|
+
* Adds the given `Duration` to a `DateTime`.
|
|
3485
3524
|
*
|
|
3486
3525
|
* **When to use**
|
|
3487
3526
|
*
|
|
@@ -3520,7 +3559,7 @@ export const addDuration: {
|
|
|
3520
3559
|
} = Internal.addDuration
|
|
3521
3560
|
|
|
3522
3561
|
/**
|
|
3523
|
-
*
|
|
3562
|
+
* Subtracts the given `Duration` from a `DateTime`.
|
|
3524
3563
|
*
|
|
3525
3564
|
* **Example** (Subtracting durations)
|
|
3526
3565
|
*
|
|
@@ -3538,7 +3577,7 @@ export const addDuration: {
|
|
|
3538
3577
|
*/
|
|
3539
3578
|
export const subtractDuration: {
|
|
3540
3579
|
/**
|
|
3541
|
-
*
|
|
3580
|
+
* Subtracts the given `Duration` from a `DateTime`.
|
|
3542
3581
|
*
|
|
3543
3582
|
* **Example** (Subtracting durations)
|
|
3544
3583
|
*
|
|
@@ -3556,7 +3595,7 @@ export const subtractDuration: {
|
|
|
3556
3595
|
*/
|
|
3557
3596
|
(duration: Duration.Input): <A extends DateTime>(self: A) => A
|
|
3558
3597
|
/**
|
|
3559
|
-
*
|
|
3598
|
+
* Subtracts the given `Duration` from a `DateTime`.
|
|
3560
3599
|
*
|
|
3561
3600
|
* **Example** (Subtracting durations)
|
|
3562
3601
|
*
|
|
@@ -3576,7 +3615,7 @@ export const subtractDuration: {
|
|
|
3576
3615
|
} = Internal.subtractDuration
|
|
3577
3616
|
|
|
3578
3617
|
/**
|
|
3579
|
-
*
|
|
3618
|
+
* Adds the given `amount` of `unit` to a `DateTime`.
|
|
3580
3619
|
*
|
|
3581
3620
|
* **Details**
|
|
3582
3621
|
*
|
|
@@ -3599,7 +3638,7 @@ export const subtractDuration: {
|
|
|
3599
3638
|
*/
|
|
3600
3639
|
export const add: {
|
|
3601
3640
|
/**
|
|
3602
|
-
*
|
|
3641
|
+
* Adds the given `amount` of `unit` to a `DateTime`.
|
|
3603
3642
|
*
|
|
3604
3643
|
* **Details**
|
|
3605
3644
|
*
|
|
@@ -3622,7 +3661,7 @@ export const add: {
|
|
|
3622
3661
|
*/
|
|
3623
3662
|
(parts: Partial<DateTime.PartsForMath>): <A extends DateTime>(self: A) => A
|
|
3624
3663
|
/**
|
|
3625
|
-
*
|
|
3664
|
+
* Adds the given `amount` of `unit` to a `DateTime`.
|
|
3626
3665
|
*
|
|
3627
3666
|
* **Details**
|
|
3628
3667
|
*
|
|
@@ -3647,7 +3686,7 @@ export const add: {
|
|
|
3647
3686
|
} = Internal.add
|
|
3648
3687
|
|
|
3649
3688
|
/**
|
|
3650
|
-
*
|
|
3689
|
+
* Subtracts the given `amount` of `unit` from a `DateTime`.
|
|
3651
3690
|
*
|
|
3652
3691
|
* **Example** (Subtracting date and time parts)
|
|
3653
3692
|
*
|
|
@@ -3665,7 +3704,7 @@ export const add: {
|
|
|
3665
3704
|
*/
|
|
3666
3705
|
export const subtract: {
|
|
3667
3706
|
/**
|
|
3668
|
-
*
|
|
3707
|
+
* Subtracts the given `amount` of `unit` from a `DateTime`.
|
|
3669
3708
|
*
|
|
3670
3709
|
* **Example** (Subtracting date and time parts)
|
|
3671
3710
|
*
|
|
@@ -3683,7 +3722,7 @@ export const subtract: {
|
|
|
3683
3722
|
*/
|
|
3684
3723
|
(parts: Partial<DateTime.PartsForMath>): <A extends DateTime>(self: A) => A
|
|
3685
3724
|
/**
|
|
3686
|
-
*
|
|
3725
|
+
* Subtracts the given `amount` of `unit` from a `DateTime`.
|
|
3687
3726
|
*
|
|
3688
3727
|
* **Example** (Subtracting date and time parts)
|
|
3689
3728
|
*
|
|
@@ -4075,7 +4114,8 @@ export const format: {
|
|
|
4075
4114
|
} = Internal.format
|
|
4076
4115
|
|
|
4077
4116
|
/**
|
|
4078
|
-
*
|
|
4117
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
|
|
4118
|
+
* zone and locale.
|
|
4079
4119
|
*
|
|
4080
4120
|
* **Details**
|
|
4081
4121
|
*
|
|
@@ -4105,7 +4145,8 @@ export const format: {
|
|
|
4105
4145
|
*/
|
|
4106
4146
|
export const formatLocal: {
|
|
4107
4147
|
/**
|
|
4108
|
-
*
|
|
4148
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
|
|
4149
|
+
* zone and locale.
|
|
4109
4150
|
*
|
|
4110
4151
|
* **Details**
|
|
4111
4152
|
*
|
|
@@ -4141,7 +4182,8 @@ export const formatLocal: {
|
|
|
4141
4182
|
| undefined
|
|
4142
4183
|
): (self: DateTime) => string
|
|
4143
4184
|
/**
|
|
4144
|
-
*
|
|
4185
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
|
|
4186
|
+
* zone and locale.
|
|
4145
4187
|
*
|
|
4146
4188
|
* **Details**
|
|
4147
4189
|
*
|
|
@@ -4180,7 +4222,7 @@ export const formatLocal: {
|
|
|
4180
4222
|
} = Internal.formatLocal
|
|
4181
4223
|
|
|
4182
4224
|
/**
|
|
4183
|
-
*
|
|
4225
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
|
|
4184
4226
|
*
|
|
4185
4227
|
* **Details**
|
|
4186
4228
|
*
|
|
@@ -4213,7 +4255,7 @@ export const formatLocal: {
|
|
|
4213
4255
|
*/
|
|
4214
4256
|
export const formatUtc: {
|
|
4215
4257
|
/**
|
|
4216
|
-
*
|
|
4258
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
|
|
4217
4259
|
*
|
|
4218
4260
|
* **Details**
|
|
4219
4261
|
*
|
|
@@ -4252,7 +4294,7 @@ export const formatUtc: {
|
|
|
4252
4294
|
| undefined
|
|
4253
4295
|
): (self: DateTime) => string
|
|
4254
4296
|
/**
|
|
4255
|
-
*
|
|
4297
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
|
|
4256
4298
|
*
|
|
4257
4299
|
* **Details**
|
|
4258
4300
|
*
|
|
@@ -4419,7 +4461,7 @@ export const formatIntl: {
|
|
|
4419
4461
|
} = Internal.formatIntl
|
|
4420
4462
|
|
|
4421
4463
|
/**
|
|
4422
|
-
*
|
|
4464
|
+
* Formats a `DateTime` as a UTC ISO string.
|
|
4423
4465
|
*
|
|
4424
4466
|
* **Details**
|
|
4425
4467
|
*
|
|
@@ -4445,7 +4487,7 @@ export const formatIntl: {
|
|
|
4445
4487
|
export const formatIso: (self: DateTime) => string = Internal.formatIso
|
|
4446
4488
|
|
|
4447
4489
|
/**
|
|
4448
|
-
*
|
|
4490
|
+
* Formats a `DateTime` as a time zone adjusted ISO date string.
|
|
4449
4491
|
*
|
|
4450
4492
|
* **Details**
|
|
4451
4493
|
*
|
|
@@ -4471,7 +4513,7 @@ export const formatIso: (self: DateTime) => string = Internal.formatIso
|
|
|
4471
4513
|
export const formatIsoDate: (self: DateTime) => string = Internal.formatIsoDate
|
|
4472
4514
|
|
|
4473
4515
|
/**
|
|
4474
|
-
*
|
|
4516
|
+
* Formats a `DateTime` as a UTC ISO date string.
|
|
4475
4517
|
*
|
|
4476
4518
|
* **Details**
|
|
4477
4519
|
*
|
|
@@ -4497,7 +4539,7 @@ export const formatIsoDate: (self: DateTime) => string = Internal.formatIsoDate
|
|
|
4497
4539
|
export const formatIsoDateUtc: (self: DateTime) => string = Internal.formatIsoDateUtc
|
|
4498
4540
|
|
|
4499
4541
|
/**
|
|
4500
|
-
*
|
|
4542
|
+
* Formats a `DateTime.Zoned` as an ISO string with an offset.
|
|
4501
4543
|
*
|
|
4502
4544
|
* **Details**
|
|
4503
4545
|
*
|
|
@@ -4524,7 +4566,7 @@ export const formatIsoDateUtc: (self: DateTime) => string = Internal.formatIsoDa
|
|
|
4524
4566
|
export const formatIsoOffset: (self: DateTime) => string = Internal.formatIsoOffset
|
|
4525
4567
|
|
|
4526
4568
|
/**
|
|
4527
|
-
*
|
|
4569
|
+
* Formats a `DateTime.Zoned` as a string.
|
|
4528
4570
|
*
|
|
4529
4571
|
* **Details**
|
|
4530
4572
|
*
|