effect 4.0.0-beta.69 → 4.0.0-beta.70
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 +454 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +152 -0
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +87 -33
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +37 -11
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +71 -14
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +35 -10
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +4 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +4 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +16 -11
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +16 -11
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +13 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +8 -0
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +95 -3
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +56 -2
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +312 -0
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +126 -0
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +20 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +12 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +59 -22
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +29 -10
- package/dist/Chunk.js.map +1 -1
- package/dist/Combiner.d.ts +75 -71
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +67 -62
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +167 -46
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +108 -28
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +235 -158
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +144 -93
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +21 -79
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -75
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +4 -4
- package/dist/Context.js +2 -2
- package/dist/Cron.d.ts +42 -16
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +33 -13
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +6 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +132 -70
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +44 -29
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +227 -14
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +115 -6
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +94 -27
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +33 -8
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +64 -6
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +26 -2
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +907 -603
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +360 -233
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +3 -1
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +16 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +16 -0
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +52 -40
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +32 -26
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +190 -153
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +129 -104
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +35 -14
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +18 -6
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +10 -3
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +4 -3
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +212 -6
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +139 -2
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +8 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +4 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +46 -23
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +27 -11
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +43 -4
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +27 -4
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +21 -6
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -6
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +64 -0
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +26 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +53 -21
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +20 -9
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +21 -22
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +12 -12
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +67 -75
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +29 -19
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +51 -13
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +19 -3
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +22 -21
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +33 -10
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +27 -10
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +50 -9
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +17 -3
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +4 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +2 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +2 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +15 -2
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +11 -2
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +104 -22
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +46 -12
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +61 -80
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +35 -42
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +16 -20
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +16 -20
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +123 -73
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +95 -53
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +28 -2
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +22 -2
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +781 -335
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +324 -129
- package/dist/Layer.js.map +1 -1
- package/dist/LogLevel.d.ts +86 -13
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +30 -4
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +63 -51
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +61 -51
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +12 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +1 -0
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +83 -1
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +31 -1
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +89 -12
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +53 -8
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +14 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +4 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +2 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +24 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +22 -6
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +2 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +69 -30
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +52 -22
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +6 -0
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +2 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +16 -30
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +6 -12
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +90 -40
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +48 -24
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +121 -111
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +56 -54
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +169 -167
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +135 -135
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +4 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +2 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +7 -5
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +5 -5
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +8 -0
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +4 -0
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +10 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +8 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +12 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +10 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +30 -16
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +30 -16
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +520 -352
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +271 -184
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +4 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +2 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +22 -4
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +17 -3
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +16 -0
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +10 -0
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +44 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +28 -0
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +25 -6
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +11 -2
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +10 -6
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +2 -2
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +3 -1
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +24 -3
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +12 -3
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +54 -41
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +42 -32
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +10 -0
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +6 -0
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +20 -11
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +10 -6
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +45 -24
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +41 -21
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +18 -1
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +17 -1
- package/dist/References.js.map +1 -1
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +2 -2
- package/dist/RequestResolver.d.ts +7 -17
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +3 -5
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +2 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +2 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +188 -6
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +84 -2
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +14 -11
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +11 -9
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +27 -3
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +21 -2
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +22 -19
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +14 -12
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +547 -130
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +409 -121
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +123 -65
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +90 -39
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +269 -234
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +245 -215
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +48 -46
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +34 -34
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +58 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +58 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +198 -96
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +107 -45
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +272 -203
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +249 -187
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +2 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +2 -0
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +18 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +12 -0
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +44 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +18 -0
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -3
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +3 -1
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +6 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +4 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +108 -0
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +54 -0
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +7 -3
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +2 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +416 -16
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +164 -8
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +14 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +6 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +371 -191
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +144 -77
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +7 -1
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +5 -1
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +2 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +2 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Tracer.d.ts +17 -27
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +8 -12
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +23 -9
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +13 -3
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +287 -144
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +135 -66
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +182 -93
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +68 -35
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +3 -4
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +163 -86
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +57 -30
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +24 -27
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +9 -6
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +2 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +36 -35
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +22 -21
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +77 -114
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +45 -62
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxRef.d.ts +4 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +2 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +66 -27
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +38 -15
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/Types.d.ts +202 -75
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +31 -29
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +27 -21
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +28 -0
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +2 -0
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +29 -35
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +11 -13
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +18 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/testing/TestClock.d.ts +17 -17
- package/dist/testing/TestClock.js +1 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +2 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +43 -55
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +43 -55
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +62 -11
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +58 -11
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +4 -4
- package/dist/unstable/ai/AnthropicStructuredOutput.js +4 -4
- package/dist/unstable/ai/Chat.d.ts +29 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +15 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +10 -0
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +8 -0
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +32 -46
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +5 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +84 -32
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +73 -28
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +8 -0
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +6 -0
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +9 -5
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +4 -0
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +62 -35
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +16 -15
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +40 -21
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +10 -0
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +8 -0
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +4 -0
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +30 -5
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +7 -1
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +6 -0
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +4 -0
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +68 -0
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +36 -0
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +12 -0
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +6 -0
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +14 -4
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +4 -0
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +6 -0
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +4 -0
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +123 -12
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +57 -4
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +31 -14
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +23 -10
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +10 -0
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +46 -5
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +10 -0
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +10 -0
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +47 -40
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +25 -20
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +1 -0
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +10 -2
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +3 -0
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +8 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +10 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +2 -0
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -0
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +8 -0
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +3 -4
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +24 -0
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +12 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +10 -4
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +6 -0
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +4 -0
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +10 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +8 -0
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +16 -0
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +10 -0
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -0
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -0
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +8 -0
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +8 -0
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +24 -0
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +18 -0
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +64 -20
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +8 -0
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +6 -6
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +4 -3
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +2 -0
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +2 -0
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +13 -2
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +13 -2
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +8 -8
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +8 -8
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +2 -0
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +2 -0
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +4 -0
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +4 -0
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +2 -0
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +2 -0
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +3 -2
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +3 -2
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +34 -2
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +14 -0
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +4 -0
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +2 -0
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +24 -0
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +18 -0
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +46 -2
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +30 -2
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +24 -17
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +20 -11
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +16 -0
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +4 -0
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +2 -0
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +20 -0
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +18 -0
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +22 -0
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +18 -0
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +10 -0
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +10 -0
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +4 -0
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +4 -0
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +34 -0
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -0
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +4 -0
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +4 -0
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +4 -0
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +60 -0
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +24 -0
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +32 -0
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +22 -0
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +44 -0
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +14 -0
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -0
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +2 -0
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -0
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +6 -0
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +4 -0
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +4 -0
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +2 -0
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +2 -0
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +54 -16
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +26 -1
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +35 -1
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +17 -1
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +17 -3
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +16 -0
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +30 -0
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +28 -0
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +8 -0
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +6 -0
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +96 -0
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +50 -0
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +12 -0
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +10 -0
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +49 -2
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +35 -2
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +14 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +4 -0
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +64 -0
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +28 -0
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +10 -4
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +4 -0
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +9 -4
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +5 -4
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +23 -14
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +6 -3
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +14 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +6 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +38 -15
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +4 -0
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +14 -3
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +10 -0
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +2 -0
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +2 -0
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -0
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +2 -0
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js +2 -0
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +2 -0
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +2 -0
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +4 -0
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +4 -0
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +8 -9
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +3 -3
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +8 -0
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +8 -0
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +3 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +3 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +6 -2
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +6 -2
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +10 -0
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +8 -0
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -0
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +2 -0
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +2 -0
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +2 -0
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +21 -6
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +10 -0
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +14 -0
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +14 -0
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +6 -3
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +4 -0
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +6 -0
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +4 -0
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +70 -19
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +10 -0
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +20 -4
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +105 -14
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +53 -8
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +4 -0
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +2 -0
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +8 -0
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +2 -0
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +32 -0
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +12 -0
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +8 -6
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +4 -3
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -0
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +4 -0
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +27 -3
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +15 -3
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +38 -2
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +12 -2
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +6 -0
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +6 -0
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +5 -3
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +5 -3
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +43 -12
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +41 -12
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +6 -4
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +6 -4
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +8 -4
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +3 -0
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +3 -0
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +42 -34
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +18 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +454 -0
- package/src/BigDecimal.ts +87 -33
- package/src/BigInt.ts +71 -14
- package/src/Boolean.ts +4 -0
- package/src/Brand.ts +16 -11
- package/src/Cache.ts +17 -1
- package/src/Cause.ts +95 -3
- package/src/Channel.ts +326 -0
- package/src/ChannelSchema.ts +24 -0
- package/src/Chunk.ts +59 -22
- package/src/Combiner.ts +75 -71
- package/src/Config.ts +167 -46
- package/src/ConfigProvider.ts +235 -158
- package/src/Console.ts +25 -99
- package/src/Context.ts +4 -4
- package/src/Cron.ts +42 -16
- package/src/Crypto.ts +6 -0
- package/src/Data.ts +132 -70
- package/src/DateTime.ts +227 -14
- package/src/Deferred.ts +94 -27
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +64 -6
- package/src/Effect.ts +909 -605
- package/src/Effectable.ts +3 -1
- package/src/Encoding.ts +16 -0
- package/src/Equal.ts +52 -40
- package/src/Equivalence.ts +190 -153
- package/src/ErrorReporter.ts +35 -14
- package/src/ExecutionPlan.ts +10 -3
- package/src/Exit.ts +212 -6
- package/src/Fiber.ts +8 -0
- package/src/FiberHandle.ts +46 -23
- package/src/FiberMap.ts +43 -4
- package/src/FiberSet.ts +21 -6
- package/src/FileSystem.ts +64 -0
- package/src/Filter.ts +53 -21
- package/src/Formatter.ts +21 -22
- package/src/Function.ts +67 -75
- package/src/Graph.ts +51 -13
- package/src/HKT.ts +22 -21
- package/src/Hash.ts +33 -10
- package/src/HashMap.ts +50 -9
- package/src/HashRing.ts +4 -0
- package/src/HashSet.ts +2 -0
- package/src/Inspectable.ts +15 -2
- package/src/Iterable.ts +104 -22
- package/src/JsonPatch.ts +61 -80
- package/src/JsonPointer.ts +16 -20
- package/src/JsonSchema.ts +123 -73
- package/src/Latch.ts +28 -2
- package/src/Layer.ts +781 -335
- package/src/LogLevel.ts +86 -13
- package/src/Logger.ts +71 -51
- package/src/ManagedRuntime.ts +12 -0
- package/src/Match.ts +83 -1
- package/src/Metric.ts +105 -12
- package/src/MutableHashMap.ts +18 -0
- package/src/MutableHashSet.ts +2 -0
- package/src/MutableList.ts +24 -6
- package/src/MutableRef.ts +2 -0
- package/src/Newtype.ts +69 -30
- package/src/NonEmptyIterable.ts +6 -0
- package/src/Number.ts +16 -30
- package/src/Optic.ts +90 -40
- package/src/Option.ts +121 -111
- package/src/Order.ts +169 -167
- package/src/Ordering.ts +4 -0
- package/src/PartitionedSemaphore.ts +7 -5
- package/src/Path.ts +8 -0
- package/src/Pipeable.ts +10 -0
- package/src/PlatformError.ts +12 -0
- package/src/Pool.ts +30 -16
- package/src/Predicate.ts +520 -352
- package/src/PrimaryKey.ts +4 -0
- package/src/PubSub.ts +23 -5
- package/src/Pull.ts +16 -0
- package/src/Queue.ts +44 -0
- package/src/Random.ts +25 -6
- package/src/RcMap.ts +10 -6
- package/src/RcRef.ts +3 -1
- package/src/Record.ts +24 -3
- package/src/Redactable.ts +54 -41
- package/src/Redacted.ts +10 -0
- package/src/Reducer.ts +20 -11
- package/src/Ref.ts +95 -58
- package/src/References.ts +18 -1
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +8 -22
- package/src/Resource.ts +2 -0
- package/src/Result.ts +192 -6
- package/src/Runtime.ts +14 -11
- package/src/Schedule.ts +35 -3
- package/src/Scheduler.ts +22 -19
- package/src/Schema.ts +547 -130
- package/src/SchemaAST.ts +123 -65
- package/src/SchemaGetter.ts +269 -234
- package/src/SchemaIssue.ts +48 -46
- package/src/SchemaParser.ts +58 -0
- package/src/SchemaRepresentation.ts +198 -96
- package/src/SchemaTransformation.ts +272 -203
- package/src/SchemaUtils.ts +2 -0
- package/src/Scope.ts +19 -1
- package/src/ScopedCache.ts +56 -0
- package/src/ScopedRef.ts +9 -3
- package/src/Semaphore.ts +6 -0
- package/src/Sink.ts +108 -0
- package/src/Stdio.ts +7 -3
- package/src/Stream.ts +464 -16
- package/src/String.ts +14 -0
- package/src/Struct.ts +371 -191
- package/src/SubscriptionRef.ts +7 -1
- package/src/SynchronizedRef.ts +2 -0
- package/src/Tracer.ts +17 -27
- package/src/Trie.ts +23 -9
- package/src/Tuple.ts +287 -144
- package/src/TxChunk.ts +182 -93
- package/src/TxDeferred.ts +3 -4
- package/src/TxHashMap.ts +171 -90
- package/src/TxHashSet.ts +36 -35
- package/src/TxPriorityQueue.ts +2 -0
- package/src/TxPubSub.ts +36 -35
- package/src/TxQueue.ts +77 -114
- package/src/TxRef.ts +4 -0
- package/src/TxSemaphore.ts +66 -27
- package/src/Types.ts +202 -75
- package/src/UndefinedOr.ts +31 -29
- package/src/Unify.ts +28 -0
- package/src/Utils.ts +29 -35
- package/src/index.ts +18 -7
- package/src/testing/TestClock.ts +16 -16
- package/src/testing/TestConsole.ts +2 -0
- package/src/testing/TestSchema.ts +43 -55
- package/src/unstable/ai/AiError.ts +62 -11
- package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -4
- package/src/unstable/ai/Chat.ts +29 -1
- package/src/unstable/ai/IdGenerator.ts +10 -0
- package/src/unstable/ai/LanguageModel.ts +32 -46
- package/src/unstable/ai/McpSchema.ts +84 -32
- package/src/unstable/ai/McpServer.ts +8 -0
- package/src/unstable/ai/Model.ts +9 -5
- package/src/unstable/ai/OpenAiStructuredOutput.ts +3 -2
- package/src/unstable/ai/Prompt.ts +62 -35
- package/src/unstable/ai/Response.ts +40 -21
- package/src/unstable/ai/ResponseIdTracker.ts +8 -0
- package/src/unstable/ai/Telemetry.ts +30 -5
- package/src/unstable/ai/Tokenizer.ts +6 -0
- package/src/unstable/ai/Tool.ts +68 -0
- package/src/unstable/ai/Toolkit.ts +12 -0
- package/src/unstable/cli/Argument.ts +14 -4
- package/src/unstable/cli/CliError.ts +6 -0
- package/src/unstable/cli/Command.ts +128 -12
- package/src/unstable/cli/Flag.ts +31 -14
- package/src/unstable/cli/Param.ts +96 -9
- package/src/unstable/cli/Primitive.ts +10 -0
- package/src/unstable/cli/Prompt.ts +47 -40
- package/src/unstable/cli/internal/command.ts +11 -2
- package/src/unstable/cli/internal/completions/descriptor.ts +3 -0
- package/src/unstable/cli/internal/parser.ts +8 -1
- package/src/unstable/cluster/ClusterCron.ts +10 -1
- package/src/unstable/cluster/ClusterSchema.ts +8 -0
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -0
- package/src/unstable/cluster/DeliverAt.ts +3 -4
- package/src/unstable/cluster/Entity.ts +24 -0
- package/src/unstable/cluster/EntityProxy.ts +10 -4
- package/src/unstable/cluster/EntityProxyServer.ts +6 -0
- package/src/unstable/cluster/EntityResource.ts +10 -0
- package/src/unstable/cluster/Envelope.ts +16 -0
- package/src/unstable/cluster/HttpRunner.ts +16 -0
- package/src/unstable/cluster/K8sHttpClient.ts +8 -0
- package/src/unstable/cluster/Message.ts +24 -0
- package/src/unstable/cluster/MessageStorage.ts +44 -10
- package/src/unstable/cluster/Reply.ts +6 -6
- package/src/unstable/cluster/Runner.ts +2 -0
- package/src/unstable/cluster/RunnerHealth.ts +13 -2
- package/src/unstable/cluster/RunnerServer.ts +8 -8
- package/src/unstable/cluster/RunnerStorage.ts +2 -0
- package/src/unstable/cluster/ShardId.ts +4 -0
- package/src/unstable/cluster/Snowflake.ts +2 -0
- package/src/unstable/cluster/TestRunner.ts +3 -2
- package/src/unstable/devtools/DevToolsSchema.ts +34 -2
- package/src/unstable/devtools/DevToolsServer.ts +4 -0
- package/src/unstable/encoding/Msgpack.ts +24 -0
- package/src/unstable/encoding/Ndjson.ts +46 -2
- package/src/unstable/encoding/Sse.ts +24 -17
- package/src/unstable/eventlog/Event.ts +16 -0
- package/src/unstable/eventlog/EventGroup.ts +4 -0
- package/src/unstable/eventlog/EventJournal.ts +20 -0
- package/src/unstable/eventlog/EventLog.ts +22 -0
- package/src/unstable/eventlog/EventLogMessage.ts +10 -0
- package/src/unstable/eventlog/EventLogRemote.ts +4 -0
- package/src/unstable/eventlog/EventLogServer.ts +4 -0
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +6 -0
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -0
- package/src/unstable/eventlog/EventLogSessionAuth.ts +11 -1
- package/src/unstable/eventlog/SqlEventJournal.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +2 -0
- package/src/unstable/http/Cookies.ts +34 -0
- package/src/unstable/http/Etag.ts +4 -0
- package/src/unstable/http/FetchHttpClient.ts +4 -0
- package/src/unstable/http/Headers.ts +88 -0
- package/src/unstable/http/HttpBody.ts +32 -0
- package/src/unstable/http/HttpClient.ts +44 -0
- package/src/unstable/http/HttpClientRequest.ts +2 -0
- package/src/unstable/http/HttpClientResponse.ts +6 -0
- package/src/unstable/http/HttpEffect.ts +4 -0
- package/src/unstable/http/HttpPlatform.ts +2 -0
- package/src/unstable/http/HttpRouter.ts +54 -16
- package/src/unstable/http/HttpServer.ts +35 -1
- package/src/unstable/http/HttpServerError.ts +17 -3
- package/src/unstable/http/HttpServerRequest.ts +30 -0
- package/src/unstable/http/HttpServerRespondable.ts +8 -0
- package/src/unstable/http/HttpServerResponse.ts +96 -0
- package/src/unstable/http/HttpTraceContext.ts +12 -0
- package/src/unstable/http/Multipart.ts +49 -2
- package/src/unstable/http/Template.ts +14 -0
- package/src/unstable/http/UrlParams.ts +64 -0
- package/src/unstable/httpapi/HttpApi.ts +10 -4
- package/src/unstable/httpapi/HttpApiBuilder.ts +9 -4
- package/src/unstable/httpapi/HttpApiEndpoint.ts +2 -0
- package/src/unstable/httpapi/HttpApiGroup.ts +23 -14
- package/src/unstable/httpapi/HttpApiMiddleware.ts +14 -0
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -15
- package/src/unstable/httpapi/HttpApiSchema.ts +14 -3
- package/src/unstable/httpapi/HttpApiSecurity.ts +17 -11
- package/src/unstable/httpapi/HttpApiSwagger.ts +2 -4
- package/src/unstable/httpapi/HttpApiTest.ts +2 -0
- package/src/unstable/httpapi/OpenApi.ts +2 -0
- package/src/unstable/observability/Otlp.ts +2 -0
- package/src/unstable/observability/OtlpExporter.ts +2 -0
- package/src/unstable/observability/OtlpLogger.ts +4 -0
- package/src/unstable/observability/OtlpMetrics.ts +8 -9
- package/src/unstable/observability/OtlpResource.ts +8 -0
- package/src/unstable/observability/OtlpTracer.ts +3 -2
- package/src/unstable/observability/PrometheusMetrics.ts +6 -2
- package/src/unstable/persistence/KeyValueStore.ts +10 -0
- package/src/unstable/persistence/Persistable.ts +2 -0
- package/src/unstable/persistence/PersistedCache.ts +2 -0
- package/src/unstable/persistence/PersistedQueue.ts +21 -6
- package/src/unstable/persistence/Persistence.ts +14 -0
- package/src/unstable/persistence/RateLimiter.ts +6 -3
- package/src/unstable/persistence/Redis.ts +6 -0
- package/src/unstable/process/ChildProcess.ts +70 -19
- package/src/unstable/process/ChildProcessSpawner.ts +20 -4
- package/src/unstable/reactivity/Atom.ts +119 -14
- package/src/unstable/reactivity/AtomHttpApi.ts +4 -0
- package/src/unstable/reactivity/AtomRef.ts +8 -0
- package/src/unstable/reactivity/AtomRegistry.ts +34 -0
- package/src/unstable/reactivity/AtomRpc.ts +8 -6
- package/src/unstable/reactivity/Hydration.ts +6 -0
- package/src/unstable/reactivity/Reactivity.ts +27 -3
- package/src/unstable/rpc/Rpc.ts +38 -2
- package/src/unstable/rpc/RpcSerialization.ts +6 -0
- package/src/unstable/rpc/RpcServer.ts +5 -3
- package/src/unstable/schema/Model.ts +43 -12
- package/src/unstable/sql/SqlClient.ts +1 -1
- package/src/unstable/sql/SqlResolver.ts +6 -4
- package/src/unstable/sql/Statement.ts +8 -4
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +3 -0
- package/src/unstable/workflow/Workflow.ts +42 -34
package/src/DateTime.ts
CHANGED
|
@@ -80,6 +80,8 @@ export type DateTime = Utc | Zoned
|
|
|
80
80
|
* Represents a `DateTime` stored as an absolute UTC instant with no associated
|
|
81
81
|
* time zone.
|
|
82
82
|
*
|
|
83
|
+
* **Details**
|
|
84
|
+
*
|
|
83
85
|
* Use `DateTime.isUtc` to narrow a `DateTime` to this variant.
|
|
84
86
|
*
|
|
85
87
|
* @category models
|
|
@@ -94,6 +96,8 @@ export interface Utc extends DateTime.Proto {
|
|
|
94
96
|
/**
|
|
95
97
|
* Represents a `DateTime` with an associated `TimeZone`.
|
|
96
98
|
*
|
|
99
|
+
* **Details**
|
|
100
|
+
*
|
|
97
101
|
* A zoned value still represents an absolute instant through
|
|
98
102
|
* `epochMilliseconds`, while the time zone is used for wall-clock parts,
|
|
99
103
|
* formatting, and zone-aware transformations.
|
|
@@ -121,6 +125,8 @@ export declare namespace DateTime {
|
|
|
121
125
|
* Input accepted by `DateTime.make`, `DateTime.makeUnsafe`, and the zoned
|
|
122
126
|
* constructors.
|
|
123
127
|
*
|
|
128
|
+
* **Details**
|
|
129
|
+
*
|
|
124
130
|
* Includes existing `DateTime` values, partial date parts, epoch-millisecond
|
|
125
131
|
* objects, epoch milliseconds, JavaScript `Date` instances, and parseable date
|
|
126
132
|
* strings.
|
|
@@ -133,6 +139,8 @@ export declare namespace DateTime {
|
|
|
133
139
|
/**
|
|
134
140
|
* Type-level helper used by constructors to preserve a zoned input.
|
|
135
141
|
*
|
|
142
|
+
* **Details**
|
|
143
|
+
*
|
|
136
144
|
* When the input type is `DateTime.Zoned`, the result type is
|
|
137
145
|
* `DateTime.Zoned`; otherwise the result type is `DateTime.Utc`.
|
|
138
146
|
*
|
|
@@ -145,6 +153,8 @@ export declare namespace DateTime {
|
|
|
145
153
|
* Date and time unit name accepted by `DateTime` rounding and arithmetic
|
|
146
154
|
* APIs.
|
|
147
155
|
*
|
|
156
|
+
* **Details**
|
|
157
|
+
*
|
|
148
158
|
* Includes both singular units, such as `"day"`, and plural units, such as
|
|
149
159
|
* `"days"`.
|
|
150
160
|
*
|
|
@@ -190,6 +200,8 @@ export declare namespace DateTime {
|
|
|
190
200
|
/**
|
|
191
201
|
* Calendar and time components of a `DateTime`, including the weekday.
|
|
192
202
|
*
|
|
203
|
+
* **Details**
|
|
204
|
+
*
|
|
193
205
|
* `month` is one-based (`1` for January through `12` for December), and
|
|
194
206
|
* `weekDay` follows JavaScript `Date#getUTCDay` numbering (`0` for Sunday
|
|
195
207
|
* through `6` for Saturday).
|
|
@@ -211,6 +223,8 @@ export declare namespace DateTime {
|
|
|
211
223
|
/**
|
|
212
224
|
* Calendar and time components of a `DateTime`, without weekday information.
|
|
213
225
|
*
|
|
226
|
+
* **Details**
|
|
227
|
+
*
|
|
214
228
|
* `month` is one-based (`1` for January through `12` for December).
|
|
215
229
|
*
|
|
216
230
|
* @category models
|
|
@@ -229,6 +243,8 @@ export declare namespace DateTime {
|
|
|
229
243
|
/**
|
|
230
244
|
* Plural amount fields accepted by `DateTime.add` and `DateTime.subtract`.
|
|
231
245
|
*
|
|
246
|
+
* **Details**
|
|
247
|
+
*
|
|
232
248
|
* Each field represents the number of units to add or subtract for that part.
|
|
233
249
|
*
|
|
234
250
|
* @category models
|
|
@@ -259,6 +275,8 @@ export declare namespace DateTime {
|
|
|
259
275
|
/**
|
|
260
276
|
* Object input representing an absolute instant plus a time zone identifier.
|
|
261
277
|
*
|
|
278
|
+
* **Details**
|
|
279
|
+
*
|
|
262
280
|
* `DateTime.makeZoned` and `DateTime.makeZonedUnsafe` use `timeZoneId` when
|
|
263
281
|
* no explicit `timeZone` option is supplied.
|
|
264
282
|
*
|
|
@@ -273,6 +291,8 @@ export declare namespace DateTime {
|
|
|
273
291
|
/**
|
|
274
292
|
* Shared protocol implemented by all `DateTime` values.
|
|
275
293
|
*
|
|
294
|
+
* **Details**
|
|
295
|
+
*
|
|
276
296
|
* Provides the `DateTime` type identifier along with pipe and inspection
|
|
277
297
|
* support.
|
|
278
298
|
*
|
|
@@ -287,6 +307,8 @@ export declare namespace DateTime {
|
|
|
287
307
|
/**
|
|
288
308
|
* Represents a time zone used by `DateTime.Zoned`.
|
|
289
309
|
*
|
|
310
|
+
* **Details**
|
|
311
|
+
*
|
|
290
312
|
* A `TimeZone` is either a fixed offset from UTC or a named IANA time zone.
|
|
291
313
|
*
|
|
292
314
|
* @category models
|
|
@@ -304,6 +326,8 @@ export declare namespace TimeZone {
|
|
|
304
326
|
/**
|
|
305
327
|
* Shared protocol implemented by all `TimeZone` values.
|
|
306
328
|
*
|
|
329
|
+
* **Details**
|
|
330
|
+
*
|
|
307
331
|
* Provides the `TimeZone` type identifier and inspection support.
|
|
308
332
|
*
|
|
309
333
|
* @category models
|
|
@@ -316,6 +340,8 @@ export declare namespace TimeZone {
|
|
|
316
340
|
/**
|
|
317
341
|
* Fixed-offset time zone.
|
|
318
342
|
*
|
|
343
|
+
* **Details**
|
|
344
|
+
*
|
|
319
345
|
* The `offset` is measured in milliseconds from UTC. Positive offsets are
|
|
320
346
|
* ahead of UTC, and negative offsets are behind UTC.
|
|
321
347
|
*
|
|
@@ -330,6 +356,8 @@ export declare namespace TimeZone {
|
|
|
330
356
|
/**
|
|
331
357
|
* Named IANA time zone.
|
|
332
358
|
*
|
|
359
|
+
* **Details**
|
|
360
|
+
*
|
|
333
361
|
* The `id` field contains the resolved time zone identifier, such as
|
|
334
362
|
* `"Europe/London"` or `"America/New_York"`.
|
|
335
363
|
*
|
|
@@ -348,6 +376,8 @@ export declare namespace TimeZone {
|
|
|
348
376
|
* A `Disambiguation` is used to resolve ambiguities when a `DateTime` is
|
|
349
377
|
* ambiguous, such as during a daylight saving time transition.
|
|
350
378
|
*
|
|
379
|
+
* **Details**
|
|
380
|
+
*
|
|
351
381
|
* For more information, see the [Temporal documentation](https://tc39.es/proposal-temporal/docs/timezone.html#ambiguity-due-to-dst-or-other-time-zone-offset-changes)
|
|
352
382
|
*
|
|
353
383
|
* - `"compatible"`: (default) Behavior matching Temporal API and legacy JavaScript Date and moment.js.
|
|
@@ -466,6 +496,8 @@ export const isZoned: (self: DateTime) => self is Zoned = Internal.isZoned
|
|
|
466
496
|
/**
|
|
467
497
|
* An `Equivalence` for comparing two `DateTime` values for equality.
|
|
468
498
|
*
|
|
499
|
+
* **Details**
|
|
500
|
+
*
|
|
469
501
|
* Two `DateTime` values are considered equivalent if they represent the same
|
|
470
502
|
* point in time, regardless of their time zone.
|
|
471
503
|
*
|
|
@@ -490,6 +522,8 @@ export const Equivalence: Equ.Equivalence<DateTime> = Internal.Equivalence
|
|
|
490
522
|
/**
|
|
491
523
|
* An `Order` for comparing and sorting `DateTime` values.
|
|
492
524
|
*
|
|
525
|
+
* **Details**
|
|
526
|
+
*
|
|
493
527
|
* `DateTime` values are ordered by their epoch milliseconds, so earlier times
|
|
494
528
|
* come before later times regardless of time zone.
|
|
495
529
|
*
|
|
@@ -516,6 +550,8 @@ export const Order: order.Order<DateTime> = Internal.Order
|
|
|
516
550
|
/**
|
|
517
551
|
* Clamp a `DateTime` between a minimum and maximum value.
|
|
518
552
|
*
|
|
553
|
+
* **Details**
|
|
554
|
+
*
|
|
519
555
|
* If the `DateTime` is before the minimum, the minimum is returned.
|
|
520
556
|
* If the `DateTime` is after the maximum, the maximum is returned.
|
|
521
557
|
* Otherwise, the original `DateTime` is returned.
|
|
@@ -540,6 +576,8 @@ export const clamp: {
|
|
|
540
576
|
/**
|
|
541
577
|
* Clamp a `DateTime` between a minimum and maximum value.
|
|
542
578
|
*
|
|
579
|
+
* **Details**
|
|
580
|
+
*
|
|
543
581
|
* If the `DateTime` is before the minimum, the minimum is returned.
|
|
544
582
|
* If the `DateTime` is after the maximum, the maximum is returned.
|
|
545
583
|
* Otherwise, the original `DateTime` is returned.
|
|
@@ -564,6 +602,8 @@ export const clamp: {
|
|
|
564
602
|
/**
|
|
565
603
|
* Clamp a `DateTime` between a minimum and maximum value.
|
|
566
604
|
*
|
|
605
|
+
* **Details**
|
|
606
|
+
*
|
|
567
607
|
* If the `DateTime` is before the minimum, the minimum is returned.
|
|
568
608
|
* If the `DateTime` is after the maximum, the maximum is returned.
|
|
569
609
|
* Otherwise, the original `DateTime` is returned.
|
|
@@ -594,6 +634,8 @@ export const clamp: {
|
|
|
594
634
|
/**
|
|
595
635
|
* Create a `DateTime` from a `Date`.
|
|
596
636
|
*
|
|
637
|
+
* **Details**
|
|
638
|
+
*
|
|
597
639
|
* If the `Date` is invalid, an `IllegalArgumentError` will be thrown.
|
|
598
640
|
*
|
|
599
641
|
* **Example** (Creating DateTime values from Dates)
|
|
@@ -613,7 +655,9 @@ export const clamp: {
|
|
|
613
655
|
export const fromDateUnsafe: (date: Date) => Utc = Internal.fromDateUnsafe
|
|
614
656
|
|
|
615
657
|
/**
|
|
616
|
-
* Create a `DateTime` from
|
|
658
|
+
* Create a `DateTime` from supported input values.
|
|
659
|
+
*
|
|
660
|
+
* **Details**
|
|
617
661
|
*
|
|
618
662
|
* - A `DateTime`
|
|
619
663
|
* - A `Date` instance (invalid dates will throw an `IllegalArgumentError`)
|
|
@@ -647,6 +691,8 @@ export const makeUnsafe: <A extends DateTime.Input>(input: A) => DateTime.Preser
|
|
|
647
691
|
/**
|
|
648
692
|
* Create a `DateTime.Zoned` using `DateTime.makeUnsafe` and a time zone.
|
|
649
693
|
*
|
|
694
|
+
* **Details**
|
|
695
|
+
*
|
|
650
696
|
* The input is treated as UTC and then the time zone is attached, unless
|
|
651
697
|
* `adjustForTimeZone` is set to `true`. In that case, the input is treated as
|
|
652
698
|
* already in the time zone.
|
|
@@ -682,6 +728,8 @@ export const makeZonedUnsafe: (input: DateTime.Input, options?: {
|
|
|
682
728
|
/**
|
|
683
729
|
* Creates a `DateTime.Zoned` from an input and a time zone.
|
|
684
730
|
*
|
|
731
|
+
* **Details**
|
|
732
|
+
*
|
|
685
733
|
* By default, the input is interpreted as a UTC instant and the time zone is
|
|
686
734
|
* attached without changing that instant. When `adjustForTimeZone` is `true`,
|
|
687
735
|
* the input is interpreted as wall-clock time in the target zone.
|
|
@@ -726,7 +774,9 @@ export const makeZoned: (
|
|
|
726
774
|
) => Option.Option<Zoned> = Internal.makeZoned
|
|
727
775
|
|
|
728
776
|
/**
|
|
729
|
-
* Creates a `DateTime` from
|
|
777
|
+
* Creates a `DateTime` from supported input values.
|
|
778
|
+
*
|
|
779
|
+
* **Details**
|
|
730
780
|
*
|
|
731
781
|
* - A `DateTime`
|
|
732
782
|
* - A JavaScript `Date`
|
|
@@ -767,6 +817,8 @@ export const make: <A extends DateTime.Input>(input: A) => Option.Option<DateTim
|
|
|
767
817
|
/**
|
|
768
818
|
* Parses an ISO zoned date-time string into a `DateTime.Zoned`.
|
|
769
819
|
*
|
|
820
|
+
* **Details**
|
|
821
|
+
*
|
|
770
822
|
* Accepts named-zone strings such as
|
|
771
823
|
* `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]` and offset-only strings such as
|
|
772
824
|
* `YYYY-MM-DDTHH:mm:ss.sss+HH:MM`. Returns `None` when the input cannot be
|
|
@@ -835,6 +887,8 @@ export const nowAsDate: Effect.Effect<Date> = Internal.nowAsDate
|
|
|
835
887
|
/**
|
|
836
888
|
* Get the current time using `Date.now`.
|
|
837
889
|
*
|
|
890
|
+
* **Details**
|
|
891
|
+
*
|
|
838
892
|
* This is a synchronous version of `now` that directly uses `Date.now()`
|
|
839
893
|
* instead of the Effect `Clock` service.
|
|
840
894
|
*
|
|
@@ -958,6 +1012,8 @@ export const setZone: {
|
|
|
958
1012
|
/**
|
|
959
1013
|
* Add a fixed offset time zone to a `DateTime`.
|
|
960
1014
|
*
|
|
1015
|
+
* **Details**
|
|
1016
|
+
*
|
|
961
1017
|
* The offset is in milliseconds.
|
|
962
1018
|
*
|
|
963
1019
|
* **Example** (Setting fixed-offset time zones)
|
|
@@ -980,6 +1036,8 @@ export const setZoneOffset: {
|
|
|
980
1036
|
/**
|
|
981
1037
|
* Add a fixed offset time zone to a `DateTime`.
|
|
982
1038
|
*
|
|
1039
|
+
* **Details**
|
|
1040
|
+
*
|
|
983
1041
|
* The offset is in milliseconds.
|
|
984
1042
|
*
|
|
985
1043
|
* **Example** (Setting fixed-offset time zones)
|
|
@@ -1008,6 +1066,8 @@ export const setZoneOffset: {
|
|
|
1008
1066
|
/**
|
|
1009
1067
|
* Add a fixed offset time zone to a `DateTime`.
|
|
1010
1068
|
*
|
|
1069
|
+
* **Details**
|
|
1070
|
+
*
|
|
1011
1071
|
* The offset is in milliseconds.
|
|
1012
1072
|
*
|
|
1013
1073
|
* **Example** (Setting fixed-offset time zones)
|
|
@@ -1039,6 +1099,8 @@ export const setZoneOffset: {
|
|
|
1039
1099
|
/**
|
|
1040
1100
|
* Attempt to create a named time zone from a IANA time zone identifier.
|
|
1041
1101
|
*
|
|
1102
|
+
* **Details**
|
|
1103
|
+
*
|
|
1042
1104
|
* If the time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
1043
1105
|
*
|
|
1044
1106
|
* **Example** (Creating named time zones unsafely)
|
|
@@ -1064,6 +1126,8 @@ export const zoneMakeNamedUnsafe: (zoneId: string) => TimeZone.Named = Internal.
|
|
|
1064
1126
|
/**
|
|
1065
1127
|
* Create a fixed offset time zone.
|
|
1066
1128
|
*
|
|
1129
|
+
* **Details**
|
|
1130
|
+
*
|
|
1067
1131
|
* The offset is specified in milliseconds from UTC. Positive values are
|
|
1068
1132
|
* ahead of UTC, negative values are behind UTC.
|
|
1069
1133
|
*
|
|
@@ -1088,6 +1152,8 @@ export const zoneMakeOffset: (offset: number) => TimeZone.Offset = Internal.zone
|
|
|
1088
1152
|
/**
|
|
1089
1153
|
* Create a named time zone from a IANA time zone identifier.
|
|
1090
1154
|
*
|
|
1155
|
+
* **Details**
|
|
1156
|
+
*
|
|
1091
1157
|
* If the time zone is invalid, `None` will be returned.
|
|
1092
1158
|
*
|
|
1093
1159
|
* **Example** (Creating optional named time zones)
|
|
@@ -1110,6 +1176,8 @@ export const zoneMakeNamed: (zoneId: string) => Option.Option<TimeZone.Named> =
|
|
|
1110
1176
|
/**
|
|
1111
1177
|
* Create a named time zone from a IANA time zone identifier.
|
|
1112
1178
|
*
|
|
1179
|
+
* **Details**
|
|
1180
|
+
*
|
|
1113
1181
|
* If the time zone is invalid, it will fail with an `IllegalArgumentError`.
|
|
1114
1182
|
*
|
|
1115
1183
|
* **Example** (Creating named time zones effectfully)
|
|
@@ -1133,6 +1201,8 @@ export const zoneMakeNamedEffect: (zoneId: string) => Effect.Effect<TimeZone.Nam
|
|
|
1133
1201
|
/**
|
|
1134
1202
|
* Create a named time zone from the system's local time zone.
|
|
1135
1203
|
*
|
|
1204
|
+
* **Details**
|
|
1205
|
+
*
|
|
1136
1206
|
* This uses the system's configured time zone, which may vary depending
|
|
1137
1207
|
* on the runtime environment.
|
|
1138
1208
|
*
|
|
@@ -1153,6 +1223,8 @@ export const zoneMakeLocal: () => TimeZone.Named = Internal.zoneMakeLocal
|
|
|
1153
1223
|
/**
|
|
1154
1224
|
* Try to parse a `TimeZone` from a string.
|
|
1155
1225
|
*
|
|
1226
|
+
* **Details**
|
|
1227
|
+
*
|
|
1156
1228
|
* Supports both IANA time zone identifiers and offset formats like "+03:00".
|
|
1157
1229
|
*
|
|
1158
1230
|
* **Example** (Parsing time zones)
|
|
@@ -1352,6 +1424,8 @@ export const setZoneNamedUnsafe: {
|
|
|
1352
1424
|
* Calulate the difference between two `DateTime` values, returning a
|
|
1353
1425
|
* `Duration` representing the amount of time between them.
|
|
1354
1426
|
*
|
|
1427
|
+
* **Details**
|
|
1428
|
+
*
|
|
1355
1429
|
* If `other` is *after* `self`, the result will be a positive `Duration`. If
|
|
1356
1430
|
* `other` is *before* `self`, the result will be a negative `Duration`. If they
|
|
1357
1431
|
* are equal, the result will be a `Duration` of zero.
|
|
@@ -1382,6 +1456,8 @@ export const distance: {
|
|
|
1382
1456
|
* Calulate the difference between two `DateTime` values, returning a
|
|
1383
1457
|
* `Duration` representing the amount of time between them.
|
|
1384
1458
|
*
|
|
1459
|
+
* **Details**
|
|
1460
|
+
*
|
|
1385
1461
|
* If `other` is *after* `self`, the result will be a positive `Duration`. If
|
|
1386
1462
|
* `other` is *before* `self`, the result will be a negative `Duration`. If they
|
|
1387
1463
|
* are equal, the result will be a `Duration` of zero.
|
|
@@ -1412,6 +1488,8 @@ export const distance: {
|
|
|
1412
1488
|
* Calulate the difference between two `DateTime` values, returning a
|
|
1413
1489
|
* `Duration` representing the amount of time between them.
|
|
1414
1490
|
*
|
|
1491
|
+
* **Details**
|
|
1492
|
+
*
|
|
1415
1493
|
* If `other` is *after* `self`, the result will be a positive `Duration`. If
|
|
1416
1494
|
* `other` is *before* `self`, the result will be a negative `Duration`. If they
|
|
1417
1495
|
* are equal, the result will be a `Duration` of zero.
|
|
@@ -1864,6 +1942,8 @@ export const between: {
|
|
|
1864
1942
|
/**
|
|
1865
1943
|
* Checks if a `DateTime` is in the future compared to the current time.
|
|
1866
1944
|
*
|
|
1945
|
+
* **Details**
|
|
1946
|
+
*
|
|
1867
1947
|
* This is an effectful operation that uses the current time from the `Clock` service.
|
|
1868
1948
|
*
|
|
1869
1949
|
* **Example** (Checking future DateTime values effectfully)
|
|
@@ -1886,6 +1966,8 @@ export const isFuture: (self: DateTime) => Effect.Effect<boolean> = Internal.isF
|
|
|
1886
1966
|
/**
|
|
1887
1967
|
* Checks if a `DateTime` is in the future compared to the current time.
|
|
1888
1968
|
*
|
|
1969
|
+
* **Details**
|
|
1970
|
+
*
|
|
1889
1971
|
* This is a synchronous version that uses `Date.now()` directly.
|
|
1890
1972
|
*
|
|
1891
1973
|
* **Example** (Checking future DateTime values unsafely)
|
|
@@ -1908,6 +1990,8 @@ export const isFutureUnsafe: (self: DateTime) => boolean = Internal.isFutureUnsa
|
|
|
1908
1990
|
/**
|
|
1909
1991
|
* Checks if a `DateTime` is in the past compared to the current time.
|
|
1910
1992
|
*
|
|
1993
|
+
* **Details**
|
|
1994
|
+
*
|
|
1911
1995
|
* This is an effectful operation that uses the current time from the `Clock` service.
|
|
1912
1996
|
*
|
|
1913
1997
|
* **Example** (Checking past DateTime values effectfully)
|
|
@@ -1930,6 +2014,8 @@ export const isPast: (self: DateTime) => Effect.Effect<boolean> = Internal.isPas
|
|
|
1930
2014
|
/**
|
|
1931
2015
|
* Checks if a `DateTime` is in the past compared to the current time.
|
|
1932
2016
|
*
|
|
2017
|
+
* **Details**
|
|
2018
|
+
*
|
|
1933
2019
|
* This is a synchronous version that uses `Date.now()` directly.
|
|
1934
2020
|
*
|
|
1935
2021
|
* **Example** (Checking past DateTime values unsafely)
|
|
@@ -1956,6 +2042,8 @@ export const isPastUnsafe: (self: DateTime) => boolean = Internal.isPastUnsafe
|
|
|
1956
2042
|
/**
|
|
1957
2043
|
* Get the UTC `Date` of a `DateTime`.
|
|
1958
2044
|
*
|
|
2045
|
+
* **Details**
|
|
2046
|
+
*
|
|
1959
2047
|
* This always returns the UTC representation, ignoring any time zone information.
|
|
1960
2048
|
*
|
|
1961
2049
|
* **Example** (Converting DateTime values to UTC Dates)
|
|
@@ -1979,6 +2067,8 @@ export const toDateUtc: (self: DateTime) => Date = Internal.toDateUtc
|
|
|
1979
2067
|
/**
|
|
1980
2068
|
* Convert a `DateTime` to a `Date`, applying the time zone first.
|
|
1981
2069
|
*
|
|
2070
|
+
* **Details**
|
|
2071
|
+
*
|
|
1982
2072
|
* For `DateTime.Zoned`, this adjusts for the time zone before converting.
|
|
1983
2073
|
* For `DateTime.Utc`, this is equivalent to `toDateUtc`.
|
|
1984
2074
|
*
|
|
@@ -2004,6 +2094,8 @@ export const toDate: (self: DateTime) => Date = Internal.toDate
|
|
|
2004
2094
|
/**
|
|
2005
2095
|
* Calculate the time zone offset of a `DateTime.Zoned` in milliseconds.
|
|
2006
2096
|
*
|
|
2097
|
+
* **Details**
|
|
2098
|
+
*
|
|
2007
2099
|
* Returns the offset from UTC in milliseconds. Positive values indicate
|
|
2008
2100
|
* time zones ahead of UTC, negative values indicate time zones behind UTC.
|
|
2009
2101
|
*
|
|
@@ -2028,6 +2120,8 @@ export const zonedOffset: (self: Zoned) => number = Internal.zonedOffset
|
|
|
2028
2120
|
/**
|
|
2029
2121
|
* Format the time zone offset of a `DateTime.Zoned` as an ISO string.
|
|
2030
2122
|
*
|
|
2123
|
+
* **Details**
|
|
2124
|
+
*
|
|
2031
2125
|
* The offset is formatted as "±HH:MM".
|
|
2032
2126
|
*
|
|
2033
2127
|
* **Example** (Formatting zoned offsets)
|
|
@@ -2051,6 +2145,8 @@ export const zonedOffsetIso: (self: Zoned) => string = Internal.zonedOffsetIso
|
|
|
2051
2145
|
/**
|
|
2052
2146
|
* Get the milliseconds since the Unix epoch of a `DateTime`.
|
|
2053
2147
|
*
|
|
2148
|
+
* **Details**
|
|
2149
|
+
*
|
|
2054
2150
|
* This returns the UTC timestamp regardless of any time zone information.
|
|
2055
2151
|
*
|
|
2056
2152
|
* **Example** (Reading epoch milliseconds)
|
|
@@ -2100,6 +2196,8 @@ export const removeTime: (self: DateTime) => Utc = Internal.removeTime
|
|
|
2100
2196
|
/**
|
|
2101
2197
|
* Get the different parts of a `DateTime` as an object.
|
|
2102
2198
|
*
|
|
2199
|
+
* **Details**
|
|
2200
|
+
*
|
|
2103
2201
|
* The parts will be time zone adjusted if the `DateTime` is zoned.
|
|
2104
2202
|
*
|
|
2105
2203
|
* **Example** (Reading DateTime parts)
|
|
@@ -2131,6 +2229,8 @@ export const toParts: (self: DateTime) => DateTime.PartsWithWeekday = Internal.t
|
|
|
2131
2229
|
/**
|
|
2132
2230
|
* Get the different parts of a `DateTime` as an object.
|
|
2133
2231
|
*
|
|
2232
|
+
* **Details**
|
|
2233
|
+
*
|
|
2134
2234
|
* The parts will always be in UTC, ignoring any time zone information.
|
|
2135
2235
|
*
|
|
2136
2236
|
* **Example** (Reading UTC DateTime parts)
|
|
@@ -2155,6 +2255,8 @@ export const toPartsUtc: (self: DateTime) => DateTime.PartsWithWeekday = Interna
|
|
|
2155
2255
|
/**
|
|
2156
2256
|
* Get a part of a `DateTime` as a number.
|
|
2157
2257
|
*
|
|
2258
|
+
* **Details**
|
|
2259
|
+
*
|
|
2158
2260
|
* The part will be in the UTC time zone.
|
|
2159
2261
|
*
|
|
2160
2262
|
* **Example** (Reading UTC DateTime parts by key)
|
|
@@ -2174,6 +2276,8 @@ export const getPartUtc: {
|
|
|
2174
2276
|
/**
|
|
2175
2277
|
* Get a part of a `DateTime` as a number.
|
|
2176
2278
|
*
|
|
2279
|
+
* **Details**
|
|
2280
|
+
*
|
|
2177
2281
|
* The part will be in the UTC time zone.
|
|
2178
2282
|
*
|
|
2179
2283
|
* **Example** (Reading UTC DateTime parts by key)
|
|
@@ -2193,6 +2297,8 @@ export const getPartUtc: {
|
|
|
2193
2297
|
/**
|
|
2194
2298
|
* Get a part of a `DateTime` as a number.
|
|
2195
2299
|
*
|
|
2300
|
+
* **Details**
|
|
2301
|
+
*
|
|
2196
2302
|
* The part will be in the UTC time zone.
|
|
2197
2303
|
*
|
|
2198
2304
|
* **Example** (Reading UTC DateTime parts by key)
|
|
@@ -2214,6 +2320,8 @@ export const getPartUtc: {
|
|
|
2214
2320
|
/**
|
|
2215
2321
|
* Get a part of a `DateTime` as a number.
|
|
2216
2322
|
*
|
|
2323
|
+
* **Details**
|
|
2324
|
+
*
|
|
2217
2325
|
* The part will be time zone adjusted.
|
|
2218
2326
|
*
|
|
2219
2327
|
* **Example** (Reading DateTime parts by key)
|
|
@@ -2235,6 +2343,8 @@ export const getPart: {
|
|
|
2235
2343
|
/**
|
|
2236
2344
|
* Get a part of a `DateTime` as a number.
|
|
2237
2345
|
*
|
|
2346
|
+
* **Details**
|
|
2347
|
+
*
|
|
2238
2348
|
* The part will be time zone adjusted.
|
|
2239
2349
|
*
|
|
2240
2350
|
* **Example** (Reading DateTime parts by key)
|
|
@@ -2256,6 +2366,8 @@ export const getPart: {
|
|
|
2256
2366
|
/**
|
|
2257
2367
|
* Get a part of a `DateTime` as a number.
|
|
2258
2368
|
*
|
|
2369
|
+
* **Details**
|
|
2370
|
+
*
|
|
2259
2371
|
* The part will be time zone adjusted.
|
|
2260
2372
|
*
|
|
2261
2373
|
* **Example** (Reading DateTime parts by key)
|
|
@@ -2279,6 +2391,8 @@ export const getPart: {
|
|
|
2279
2391
|
/**
|
|
2280
2392
|
* Set the different parts of a `DateTime` as an object.
|
|
2281
2393
|
*
|
|
2394
|
+
* **Details**
|
|
2395
|
+
*
|
|
2282
2396
|
* The date will be time zone adjusted for `DateTime.Zoned`.
|
|
2283
2397
|
*
|
|
2284
2398
|
* **Example** (Updating DateTime parts)
|
|
@@ -2303,6 +2417,8 @@ export const setParts: {
|
|
|
2303
2417
|
/**
|
|
2304
2418
|
* Set the different parts of a `DateTime` as an object.
|
|
2305
2419
|
*
|
|
2420
|
+
* **Details**
|
|
2421
|
+
*
|
|
2306
2422
|
* The date will be time zone adjusted for `DateTime.Zoned`.
|
|
2307
2423
|
*
|
|
2308
2424
|
* **Example** (Updating DateTime parts)
|
|
@@ -2327,6 +2443,8 @@ export const setParts: {
|
|
|
2327
2443
|
/**
|
|
2328
2444
|
* Set the different parts of a `DateTime` as an object.
|
|
2329
2445
|
*
|
|
2446
|
+
* **Details**
|
|
2447
|
+
*
|
|
2330
2448
|
* The date will be time zone adjusted for `DateTime.Zoned`.
|
|
2331
2449
|
*
|
|
2332
2450
|
* **Example** (Updating DateTime parts)
|
|
@@ -2353,6 +2471,8 @@ export const setParts: {
|
|
|
2353
2471
|
/**
|
|
2354
2472
|
* Set the different parts of a `DateTime` as an object.
|
|
2355
2473
|
*
|
|
2474
|
+
* **Details**
|
|
2475
|
+
*
|
|
2356
2476
|
* The parts are always interpreted as UTC, ignoring any time zone information.
|
|
2357
2477
|
*
|
|
2358
2478
|
* **Example** (Updating UTC DateTime parts)
|
|
@@ -2376,6 +2496,8 @@ export const setPartsUtc: {
|
|
|
2376
2496
|
/**
|
|
2377
2497
|
* Set the different parts of a `DateTime` as an object.
|
|
2378
2498
|
*
|
|
2499
|
+
* **Details**
|
|
2500
|
+
*
|
|
2379
2501
|
* The parts are always interpreted as UTC, ignoring any time zone information.
|
|
2380
2502
|
*
|
|
2381
2503
|
* **Example** (Updating UTC DateTime parts)
|
|
@@ -2399,6 +2521,8 @@ export const setPartsUtc: {
|
|
|
2399
2521
|
/**
|
|
2400
2522
|
* Set the different parts of a `DateTime` as an object.
|
|
2401
2523
|
*
|
|
2524
|
+
* **Details**
|
|
2525
|
+
*
|
|
2402
2526
|
* The parts are always interpreted as UTC, ignoring any time zone information.
|
|
2403
2527
|
*
|
|
2404
2528
|
* **Example** (Updating UTC DateTime parts)
|
|
@@ -2430,6 +2554,8 @@ export const setPartsUtc: {
|
|
|
2430
2554
|
* the current zone, such as `DateTime.setZoneCurrent` and
|
|
2431
2555
|
* `DateTime.nowInCurrentZone`.
|
|
2432
2556
|
*
|
|
2557
|
+
* **Details**
|
|
2558
|
+
*
|
|
2433
2559
|
* Provide it with `DateTime.withCurrentZone`, one of the `withCurrentZone*`
|
|
2434
2560
|
* helpers, or one of the `layerCurrentZone*` layers.
|
|
2435
2561
|
*
|
|
@@ -2627,6 +2753,8 @@ export const withCurrentZoneOffset: {
|
|
|
2627
2753
|
* Provide the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2628
2754
|
* identifier.
|
|
2629
2755
|
*
|
|
2756
|
+
* **Details**
|
|
2757
|
+
*
|
|
2630
2758
|
* If the time zone is invalid, it will fail with an `IllegalArgumentError`.
|
|
2631
2759
|
*
|
|
2632
2760
|
* **Example** (Providing a named time zone)
|
|
@@ -2648,6 +2776,8 @@ export const withCurrentZoneNamed: {
|
|
|
2648
2776
|
* Provide the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2649
2777
|
* identifier.
|
|
2650
2778
|
*
|
|
2779
|
+
* **Details**
|
|
2780
|
+
*
|
|
2651
2781
|
* If the time zone is invalid, it will fail with an `IllegalArgumentError`.
|
|
2652
2782
|
*
|
|
2653
2783
|
* **Example** (Providing a named time zone)
|
|
@@ -2671,6 +2801,8 @@ export const withCurrentZoneNamed: {
|
|
|
2671
2801
|
* Provide the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2672
2802
|
* identifier.
|
|
2673
2803
|
*
|
|
2804
|
+
* **Details**
|
|
2805
|
+
*
|
|
2674
2806
|
* If the time zone is invalid, it will fail with an `IllegalArgumentError`.
|
|
2675
2807
|
*
|
|
2676
2808
|
* **Example** (Providing a named time zone)
|
|
@@ -2723,6 +2855,8 @@ export const nowInCurrentZone: Effect.Effect<Zoned, never, CurrentTimeZone> = Ef
|
|
|
2723
2855
|
/**
|
|
2724
2856
|
* Modify a `DateTime` by applying a function to a cloned `Date` instance.
|
|
2725
2857
|
*
|
|
2858
|
+
* **Details**
|
|
2859
|
+
*
|
|
2726
2860
|
* The `Date` will first have the time zone applied if possible, and then be
|
|
2727
2861
|
* converted back to a `DateTime` within the same time zone.
|
|
2728
2862
|
*
|
|
@@ -2754,6 +2888,8 @@ export const mutate: {
|
|
|
2754
2888
|
/**
|
|
2755
2889
|
* Modify a `DateTime` by applying a function to a cloned `Date` instance.
|
|
2756
2890
|
*
|
|
2891
|
+
* **Details**
|
|
2892
|
+
*
|
|
2757
2893
|
* The `Date` will first have the time zone applied if possible, and then be
|
|
2758
2894
|
* converted back to a `DateTime` within the same time zone.
|
|
2759
2895
|
*
|
|
@@ -2790,6 +2926,8 @@ export const mutate: {
|
|
|
2790
2926
|
/**
|
|
2791
2927
|
* Modify a `DateTime` by applying a function to a cloned `Date` instance.
|
|
2792
2928
|
*
|
|
2929
|
+
* **Details**
|
|
2930
|
+
*
|
|
2793
2931
|
* The `Date` will first have the time zone applied if possible, and then be
|
|
2794
2932
|
* converted back to a `DateTime` within the same time zone.
|
|
2795
2933
|
*
|
|
@@ -2953,11 +3091,14 @@ export const mapEpochMillis: {
|
|
|
2953
3091
|
} = Internal.mapEpochMillis
|
|
2954
3092
|
|
|
2955
3093
|
/**
|
|
2956
|
-
* Applies a function to a JavaScript `Date` representing the `DateTime`
|
|
2957
|
-
*
|
|
3094
|
+
* Applies a function to a JavaScript `Date` representing the `DateTime` and
|
|
3095
|
+
* returns the function's result.
|
|
2958
3096
|
*
|
|
2959
|
-
*
|
|
2960
|
-
*
|
|
3097
|
+
* **Details**
|
|
3098
|
+
*
|
|
3099
|
+
* The callback receives the time-zone-adjusted wall-clock date for
|
|
3100
|
+
* `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should
|
|
3101
|
+
* receive the UTC instant.
|
|
2961
3102
|
*
|
|
2962
3103
|
* **Example** (Using time zone adjusted Dates)
|
|
2963
3104
|
*
|
|
@@ -2975,11 +3116,14 @@ export const mapEpochMillis: {
|
|
|
2975
3116
|
*/
|
|
2976
3117
|
export const withDate: {
|
|
2977
3118
|
/**
|
|
2978
|
-
* Applies a function to a JavaScript `Date` representing the `DateTime`
|
|
2979
|
-
*
|
|
3119
|
+
* Applies a function to a JavaScript `Date` representing the `DateTime` and
|
|
3120
|
+
* returns the function's result.
|
|
2980
3121
|
*
|
|
2981
|
-
*
|
|
2982
|
-
*
|
|
3122
|
+
* **Details**
|
|
3123
|
+
*
|
|
3124
|
+
* The callback receives the time-zone-adjusted wall-clock date for
|
|
3125
|
+
* `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should
|
|
3126
|
+
* receive the UTC instant.
|
|
2983
3127
|
*
|
|
2984
3128
|
* **Example** (Using time zone adjusted Dates)
|
|
2985
3129
|
*
|
|
@@ -2997,11 +3141,14 @@ export const withDate: {
|
|
|
2997
3141
|
*/
|
|
2998
3142
|
<A>(f: (date: Date) => A): (self: DateTime) => A
|
|
2999
3143
|
/**
|
|
3000
|
-
* Applies a function to a JavaScript `Date` representing the `DateTime`
|
|
3001
|
-
*
|
|
3144
|
+
* Applies a function to a JavaScript `Date` representing the `DateTime` and
|
|
3145
|
+
* returns the function's result.
|
|
3002
3146
|
*
|
|
3003
|
-
*
|
|
3004
|
-
*
|
|
3147
|
+
* **Details**
|
|
3148
|
+
*
|
|
3149
|
+
* The callback receives the time-zone-adjusted wall-clock date for
|
|
3150
|
+
* `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should
|
|
3151
|
+
* receive the UTC instant.
|
|
3005
3152
|
*
|
|
3006
3153
|
* **Example** (Using time zone adjusted Dates)
|
|
3007
3154
|
*
|
|
@@ -3024,6 +3171,8 @@ export const withDate: {
|
|
|
3024
3171
|
* Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC
|
|
3025
3172
|
* instant and returns the function's result.
|
|
3026
3173
|
*
|
|
3174
|
+
* **Details**
|
|
3175
|
+
*
|
|
3027
3176
|
* This ignores any associated time zone. Use `DateTime.withDate` when the
|
|
3028
3177
|
* callback should receive the time-zone-adjusted wall-clock date.
|
|
3029
3178
|
*
|
|
@@ -3046,6 +3195,8 @@ export const withDateUtc: {
|
|
|
3046
3195
|
* Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC
|
|
3047
3196
|
* instant and returns the function's result.
|
|
3048
3197
|
*
|
|
3198
|
+
* **Details**
|
|
3199
|
+
*
|
|
3049
3200
|
* This ignores any associated time zone. Use `DateTime.withDate` when the
|
|
3050
3201
|
* callback should receive the time-zone-adjusted wall-clock date.
|
|
3051
3202
|
*
|
|
@@ -3068,6 +3219,8 @@ export const withDateUtc: {
|
|
|
3068
3219
|
* Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC
|
|
3069
3220
|
* instant and returns the function's result.
|
|
3070
3221
|
*
|
|
3222
|
+
* **Details**
|
|
3223
|
+
*
|
|
3071
3224
|
* This ignores any associated time zone. Use `DateTime.withDate` when the
|
|
3072
3225
|
* callback should receive the time-zone-adjusted wall-clock date.
|
|
3073
3226
|
*
|
|
@@ -3321,6 +3474,8 @@ export const subtractDuration: {
|
|
|
3321
3474
|
/**
|
|
3322
3475
|
* Add the given `amount` of `unit`'s to a `DateTime`.
|
|
3323
3476
|
*
|
|
3477
|
+
* **Details**
|
|
3478
|
+
*
|
|
3324
3479
|
* The time zone is taken into account when adding days, weeks, months, and
|
|
3325
3480
|
* years.
|
|
3326
3481
|
*
|
|
@@ -3342,6 +3497,8 @@ export const add: {
|
|
|
3342
3497
|
/**
|
|
3343
3498
|
* Add the given `amount` of `unit`'s to a `DateTime`.
|
|
3344
3499
|
*
|
|
3500
|
+
* **Details**
|
|
3501
|
+
*
|
|
3345
3502
|
* The time zone is taken into account when adding days, weeks, months, and
|
|
3346
3503
|
* years.
|
|
3347
3504
|
*
|
|
@@ -3363,6 +3520,8 @@ export const add: {
|
|
|
3363
3520
|
/**
|
|
3364
3521
|
* Add the given `amount` of `unit`'s to a `DateTime`.
|
|
3365
3522
|
*
|
|
3523
|
+
* **Details**
|
|
3524
|
+
*
|
|
3366
3525
|
* The time zone is taken into account when adding days, weeks, months, and
|
|
3367
3526
|
* years.
|
|
3368
3527
|
*
|
|
@@ -3442,6 +3601,8 @@ export const subtract: {
|
|
|
3442
3601
|
/**
|
|
3443
3602
|
* Converts a `DateTime` to the start of the given `part`.
|
|
3444
3603
|
*
|
|
3604
|
+
* **Details**
|
|
3605
|
+
*
|
|
3445
3606
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3446
3607
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3447
3608
|
*
|
|
@@ -3464,6 +3625,8 @@ export const startOf: {
|
|
|
3464
3625
|
/**
|
|
3465
3626
|
* Converts a `DateTime` to the start of the given `part`.
|
|
3466
3627
|
*
|
|
3628
|
+
* **Details**
|
|
3629
|
+
*
|
|
3467
3630
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3468
3631
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3469
3632
|
*
|
|
@@ -3489,6 +3652,8 @@ export const startOf: {
|
|
|
3489
3652
|
/**
|
|
3490
3653
|
* Converts a `DateTime` to the start of the given `part`.
|
|
3491
3654
|
*
|
|
3655
|
+
* **Details**
|
|
3656
|
+
*
|
|
3492
3657
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3493
3658
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3494
3659
|
*
|
|
@@ -3517,6 +3682,8 @@ export const startOf: {
|
|
|
3517
3682
|
/**
|
|
3518
3683
|
* Converts a `DateTime` to the end of the given `part`.
|
|
3519
3684
|
*
|
|
3685
|
+
* **Details**
|
|
3686
|
+
*
|
|
3520
3687
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3521
3688
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3522
3689
|
*
|
|
@@ -3539,6 +3706,8 @@ export const endOf: {
|
|
|
3539
3706
|
/**
|
|
3540
3707
|
* Converts a `DateTime` to the end of the given `part`.
|
|
3541
3708
|
*
|
|
3709
|
+
* **Details**
|
|
3710
|
+
*
|
|
3542
3711
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3543
3712
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3544
3713
|
*
|
|
@@ -3564,6 +3733,8 @@ export const endOf: {
|
|
|
3564
3733
|
/**
|
|
3565
3734
|
* Converts a `DateTime` to the end of the given `part`.
|
|
3566
3735
|
*
|
|
3736
|
+
* **Details**
|
|
3737
|
+
*
|
|
3567
3738
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3568
3739
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3569
3740
|
*
|
|
@@ -3592,6 +3763,8 @@ export const endOf: {
|
|
|
3592
3763
|
/**
|
|
3593
3764
|
* Converts a `DateTime` to the nearest given `part`.
|
|
3594
3765
|
*
|
|
3766
|
+
* **Details**
|
|
3767
|
+
*
|
|
3595
3768
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3596
3769
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3597
3770
|
*
|
|
@@ -3614,6 +3787,8 @@ export const nearest: {
|
|
|
3614
3787
|
/**
|
|
3615
3788
|
* Converts a `DateTime` to the nearest given `part`.
|
|
3616
3789
|
*
|
|
3790
|
+
* **Details**
|
|
3791
|
+
*
|
|
3617
3792
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3618
3793
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3619
3794
|
*
|
|
@@ -3639,6 +3814,8 @@ export const nearest: {
|
|
|
3639
3814
|
/**
|
|
3640
3815
|
* Converts a `DateTime` to the nearest given `part`.
|
|
3641
3816
|
*
|
|
3817
|
+
* **Details**
|
|
3818
|
+
*
|
|
3642
3819
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3643
3820
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3644
3821
|
*
|
|
@@ -3671,6 +3848,8 @@ export const nearest: {
|
|
|
3671
3848
|
/**
|
|
3672
3849
|
* Formats a `DateTime` with `Intl.DateTimeFormat`.
|
|
3673
3850
|
*
|
|
3851
|
+
* **Details**
|
|
3852
|
+
*
|
|
3674
3853
|
* Unless a `timeZone` option is supplied, UTC values are formatted in UTC and
|
|
3675
3854
|
* zoned values are formatted in their named zone or fixed-offset zone.
|
|
3676
3855
|
*
|
|
@@ -3707,6 +3886,8 @@ export const format: {
|
|
|
3707
3886
|
/**
|
|
3708
3887
|
* Formats a `DateTime` with `Intl.DateTimeFormat`.
|
|
3709
3888
|
*
|
|
3889
|
+
* **Details**
|
|
3890
|
+
*
|
|
3710
3891
|
* Unless a `timeZone` option is supplied, UTC values are formatted in UTC and
|
|
3711
3892
|
* zoned values are formatted in their named zone or fixed-offset zone.
|
|
3712
3893
|
*
|
|
@@ -3749,6 +3930,8 @@ export const format: {
|
|
|
3749
3930
|
/**
|
|
3750
3931
|
* Formats a `DateTime` with `Intl.DateTimeFormat`.
|
|
3751
3932
|
*
|
|
3933
|
+
* **Details**
|
|
3934
|
+
*
|
|
3752
3935
|
* Unless a `timeZone` option is supplied, UTC values are formatted in UTC and
|
|
3753
3936
|
* zoned values are formatted in their named zone or fixed-offset zone.
|
|
3754
3937
|
*
|
|
@@ -3790,6 +3973,8 @@ export const format: {
|
|
|
3790
3973
|
/**
|
|
3791
3974
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3792
3975
|
*
|
|
3976
|
+
* **Details**
|
|
3977
|
+
*
|
|
3793
3978
|
* It will use the system's local time zone & locale.
|
|
3794
3979
|
*
|
|
3795
3980
|
* **Example** (Formatting DateTime values locally)
|
|
@@ -3818,6 +4003,8 @@ export const formatLocal: {
|
|
|
3818
4003
|
/**
|
|
3819
4004
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3820
4005
|
*
|
|
4006
|
+
* **Details**
|
|
4007
|
+
*
|
|
3821
4008
|
* It will use the system's local time zone & locale.
|
|
3822
4009
|
*
|
|
3823
4010
|
* **Example** (Formatting DateTime values locally)
|
|
@@ -3852,6 +4039,8 @@ export const formatLocal: {
|
|
|
3852
4039
|
/**
|
|
3853
4040
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3854
4041
|
*
|
|
4042
|
+
* **Details**
|
|
4043
|
+
*
|
|
3855
4044
|
* It will use the system's local time zone & locale.
|
|
3856
4045
|
*
|
|
3857
4046
|
* **Example** (Formatting DateTime values locally)
|
|
@@ -3889,6 +4078,8 @@ export const formatLocal: {
|
|
|
3889
4078
|
/**
|
|
3890
4079
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3891
4080
|
*
|
|
4081
|
+
* **Details**
|
|
4082
|
+
*
|
|
3892
4083
|
* This forces the time zone to be UTC.
|
|
3893
4084
|
*
|
|
3894
4085
|
* **Example** (Formatting DateTime values in UTC)
|
|
@@ -3920,6 +4111,8 @@ export const formatUtc: {
|
|
|
3920
4111
|
/**
|
|
3921
4112
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3922
4113
|
*
|
|
4114
|
+
* **Details**
|
|
4115
|
+
*
|
|
3923
4116
|
* This forces the time zone to be UTC.
|
|
3924
4117
|
*
|
|
3925
4118
|
* **Example** (Formatting DateTime values in UTC)
|
|
@@ -3957,6 +4150,8 @@ export const formatUtc: {
|
|
|
3957
4150
|
/**
|
|
3958
4151
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3959
4152
|
*
|
|
4153
|
+
* **Details**
|
|
4154
|
+
*
|
|
3960
4155
|
* This forces the time zone to be UTC.
|
|
3961
4156
|
*
|
|
3962
4157
|
* **Example** (Formatting DateTime values in UTC)
|
|
@@ -4083,6 +4278,8 @@ export const formatIntl: {
|
|
|
4083
4278
|
/**
|
|
4084
4279
|
* Format a `DateTime` as a UTC ISO string.
|
|
4085
4280
|
*
|
|
4281
|
+
* **Details**
|
|
4282
|
+
*
|
|
4086
4283
|
* Always returns the UTC representation in ISO 8601 format, ignoring any time zone.
|
|
4087
4284
|
*
|
|
4088
4285
|
* **Example** (Formatting DateTime values as ISO strings)
|
|
@@ -4107,6 +4304,8 @@ export const formatIso: (self: DateTime) => string = Internal.formatIso
|
|
|
4107
4304
|
/**
|
|
4108
4305
|
* Format a `DateTime` as a time zone adjusted ISO date string.
|
|
4109
4306
|
*
|
|
4307
|
+
* **Details**
|
|
4308
|
+
*
|
|
4110
4309
|
* Returns only the date part (YYYY-MM-DD) after applying time zone adjustments.
|
|
4111
4310
|
*
|
|
4112
4311
|
* **Example** (Formatting DateTime values as ISO dates)
|
|
@@ -4131,6 +4330,8 @@ export const formatIsoDate: (self: DateTime) => string = Internal.formatIsoDate
|
|
|
4131
4330
|
/**
|
|
4132
4331
|
* Format a `DateTime` as a UTC ISO date string.
|
|
4133
4332
|
*
|
|
4333
|
+
* **Details**
|
|
4334
|
+
*
|
|
4134
4335
|
* Returns only the date part (YYYY-MM-DD) in UTC, ignoring any time zone.
|
|
4135
4336
|
*
|
|
4136
4337
|
* **Example** (Formatting DateTime values as UTC ISO dates)
|
|
@@ -4155,6 +4356,8 @@ export const formatIsoDateUtc: (self: DateTime) => string = Internal.formatIsoDa
|
|
|
4155
4356
|
/**
|
|
4156
4357
|
* Format a `DateTime.Zoned` as an ISO string with an offset.
|
|
4157
4358
|
*
|
|
4359
|
+
* **Details**
|
|
4360
|
+
*
|
|
4158
4361
|
* For `DateTime.Utc`, returns the same as `formatIso`. For `DateTime.Zoned`,
|
|
4159
4362
|
* includes the time zone offset in the format.
|
|
4160
4363
|
*
|
|
@@ -4180,6 +4383,8 @@ export const formatIsoOffset: (self: DateTime) => string = Internal.formatIsoOff
|
|
|
4180
4383
|
/**
|
|
4181
4384
|
* Format a `DateTime.Zoned` as a string.
|
|
4182
4385
|
*
|
|
4386
|
+
* **Details**
|
|
4387
|
+
*
|
|
4183
4388
|
* It uses the format: `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]`.
|
|
4184
4389
|
*
|
|
4185
4390
|
* **Example** (Formatting zoned DateTime values)
|
|
@@ -4210,6 +4415,8 @@ export const formatIsoZoned: (self: Zoned) => string = Internal.formatIsoZoned
|
|
|
4210
4415
|
/**
|
|
4211
4416
|
* Create a Layer from the given time zone.
|
|
4212
4417
|
*
|
|
4418
|
+
* **Details**
|
|
4419
|
+
*
|
|
4213
4420
|
* This layer provides the `CurrentTimeZone` service with the specified time zone.
|
|
4214
4421
|
*
|
|
4215
4422
|
* **Example** (Providing current time zone layers)
|
|
@@ -4239,6 +4446,8 @@ export const layerCurrentZone: (resource: NoInfer<TimeZone>) => Layer.Layer<Curr
|
|
|
4239
4446
|
/**
|
|
4240
4447
|
* Create a Layer from the given time zone offset.
|
|
4241
4448
|
*
|
|
4449
|
+
* **Details**
|
|
4450
|
+
*
|
|
4242
4451
|
* This layer provides the `CurrentTimeZone` service with a fixed offset time zone.
|
|
4243
4452
|
*
|
|
4244
4453
|
* **Example** (Providing fixed-offset time zone layers)
|
|
@@ -4266,6 +4475,8 @@ export const layerCurrentZoneOffset = (offset: number): Layer.Layer<CurrentTimeZ
|
|
|
4266
4475
|
/**
|
|
4267
4476
|
* Create a Layer from the given IANA time zone identifier.
|
|
4268
4477
|
*
|
|
4478
|
+
* **Details**
|
|
4479
|
+
*
|
|
4269
4480
|
* This layer provides the `CurrentTimeZone` service with a named time zone.
|
|
4270
4481
|
* If the time zone identifier is invalid, the layer will fail.
|
|
4271
4482
|
*
|
|
@@ -4295,6 +4506,8 @@ export const layerCurrentZoneNamed: (zoneId: string) => Layer.Layer<
|
|
|
4295
4506
|
/**
|
|
4296
4507
|
* Create a Layer from the system's local time zone.
|
|
4297
4508
|
*
|
|
4509
|
+
* **Details**
|
|
4510
|
+
*
|
|
4298
4511
|
* This layer provides the `CurrentTimeZone` service using the system's
|
|
4299
4512
|
* configured local time zone.
|
|
4300
4513
|
*
|