effect 4.0.0 → 4.0.2
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/ai-docs/package.json +2 -2
- package/ai-docs/tsconfig.json +2 -1
- package/dist/Array.d.ts +339 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +143 -3
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +88 -0
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +44 -0
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +68 -0
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +36 -0
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +34 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +18 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +9 -0
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +6 -0
- package/dist/Brand.js.map +1 -1
- package/dist/ByteSize.d.ts +86 -0
- package/dist/ByteSize.d.ts.map +1 -1
- package/dist/ByteSize.js +51 -0
- package/dist/ByteSize.js.map +1 -1
- package/dist/Cache.d.ts +38 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +47 -23
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +82 -0
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +61 -1
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +327 -4
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +168 -8
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +11 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +6 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +192 -0
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +78 -0
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +7 -0
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +5 -0
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +10 -0
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +8 -0
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +52 -12
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +55 -5
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +28 -0
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +19 -0
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +22 -0
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -0
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +50 -0
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +21 -0
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +16 -0
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +26 -1
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +5 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +3 -0
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +13 -0
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +5 -0
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +171 -0
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +89 -0
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +51 -0
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +22 -0
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Differ.js +1 -0
- package/dist/Duration.d.ts +90 -0
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +53 -0
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +677 -22
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +251 -10
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +4 -0
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -0
- package/dist/Effectable.js.map +1 -1
- package/dist/Equal.d.ts +8 -0
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +9 -1
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +21 -0
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +16 -0
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +36 -0
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +11 -0
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +49 -8
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +7 -0
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +40 -0
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +27 -0
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +20 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +11 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +21 -0
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +21 -4
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +35 -0
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +19 -0
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +20 -0
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +14 -0
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +15 -0
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +8 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +55 -0
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +28 -0
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +3 -0
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +39 -1
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +30 -0
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +20 -0
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +247 -12
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +149 -28
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +5 -0
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +14 -0
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +12 -0
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +91 -0
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +39 -0
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +17 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +22 -5
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +49 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +19 -0
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +7 -0
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +6 -0
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +127 -0
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +51 -0
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +4 -0
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +3 -0
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +5 -0
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +5 -0
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +16 -0
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +11 -0
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +14 -0
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +10 -0
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +100 -0
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +45 -1
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +7 -0
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +4 -0
- package/dist/LayerMap.js.map +1 -1
- package/dist/LayerRef.d.ts +5 -0
- package/dist/LayerRef.d.ts.map +1 -1
- package/dist/LayerRef.js +3 -0
- package/dist/LayerRef.js.map +1 -1
- package/dist/LogLevel.d.ts +20 -0
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +9 -0
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +25 -0
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +30 -4
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +5 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +9 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +51 -0
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +39 -0
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +59 -0
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +31 -0
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +32 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +16 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +16 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +10 -0
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +20 -0
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +18 -0
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +31 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +17 -0
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +9 -0
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +6 -0
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +4 -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 +61 -0
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +31 -0
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +41 -0
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +20 -0
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +134 -0
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +61 -0
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +29 -0
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +24 -0
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +7 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +3 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +24 -0
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +47 -21
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +6 -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 +7 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +5 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +8 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +7 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +28 -5
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +42 -42
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +84 -0
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +48 -0
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +5 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +4 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +67 -5
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +60 -8
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +20 -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 +60 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +58 -8
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +13 -0
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +9 -0
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +23 -0
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +24 -1
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +6 -0
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +3 -0
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +100 -0
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +43 -0
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +6 -0
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +4 -0
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +8 -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 +4 -0
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +3 -0
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +20 -0
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +16 -0
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +21 -0
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +19 -0
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +3 -0
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +4 -0
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +32 -0
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +12 -0
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +42 -0
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +27 -6
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +6 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +6 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +91 -0
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +41 -0
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +9 -0
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +7 -0
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +57 -0
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +32 -0
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +7 -0
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +5 -0
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +496 -1
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +280 -1
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +107 -0
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +81 -1
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +69 -2
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +63 -4
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +33 -0
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +18 -0
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +25 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +26 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +147 -0
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +99 -0
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +53 -0
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +46 -0
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Scope.d.ts +19 -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 +34 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +50 -19
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -0
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +6 -0
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +26 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +10 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +125 -1
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +75 -1
- package/dist/Sink.js.map +1 -1
- package/dist/StandardSchema.d.ts +1 -0
- package/dist/StandardSchema.d.ts.map +1 -1
- package/dist/StandardSchema.js +1 -0
- package/dist/Stdio.d.ts +7 -0
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +5 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +603 -6
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +316 -57
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +87 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +61 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +46 -0
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +19 -0
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +65 -0
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +25 -0
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +2 -0
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +2 -0
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +63 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +24 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +3 -0
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js +1 -0
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +8 -0
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +4 -0
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +23 -0
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +12 -0
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +68 -0
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +28 -0
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +38 -0
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +18 -0
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +52 -0
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +23 -0
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +15 -0
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +8 -0
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +83 -0
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +52 -7
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +51 -0
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +29 -4
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +30 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +22 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +25 -0
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +19 -0
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +51 -0
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +30 -0
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +24 -0
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +32 -18
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +14 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +7 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +25 -0
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +29 -13
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +25 -0
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +12 -0
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +36 -0
- package/dist/Types.d.ts.map +1 -1
- package/dist/Types.js +1 -0
- package/dist/UndefinedOr.d.ts +15 -0
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +9 -0
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +15 -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 +4 -0
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +1 -0
- package/dist/Utils.js.map +1 -1
- package/dist/Version.d.ts +26 -0
- package/dist/Version.d.ts.map +1 -0
- package/dist/Version.js +36 -0
- package/dist/Version.js.map +1 -0
- package/dist/ai/Chat.js +1 -1
- package/dist/ai/Chat.js.map +1 -1
- package/dist/ai/DecisionModel.d.ts +22 -0
- package/dist/ai/DecisionModel.d.ts.map +1 -1
- package/dist/ai/DecisionModel.js +22 -4
- package/dist/ai/DecisionModel.js.map +1 -1
- package/dist/ai/LanguageModel.d.ts +8 -0
- package/dist/ai/LanguageModel.d.ts.map +1 -1
- package/dist/ai/LanguageModel.js +27 -15
- package/dist/ai/LanguageModel.js.map +1 -1
- package/dist/ai/McpSchema.d.ts +508 -508
- package/dist/ai/McpSchema.d.ts.map +1 -1
- package/dist/ai/McpSchema.js +1 -1
- package/dist/ai/McpSchema.js.map +1 -1
- package/dist/ai/McpServer.d.ts +32 -11
- package/dist/ai/McpServer.d.ts.map +1 -1
- package/dist/ai/McpServer.js +224 -172
- package/dist/ai/McpServer.js.map +1 -1
- package/dist/ai/Response.d.ts.map +1 -1
- package/dist/ai/Response.js +22 -12
- package/dist/ai/Response.js.map +1 -1
- package/dist/ai/Telemetry.d.ts +49 -41
- package/dist/ai/Telemetry.d.ts.map +1 -1
- package/dist/ai/Telemetry.js +6 -8
- package/dist/ai/Telemetry.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2024_11_05.js +1 -0
- package/dist/ai/internal/mcpProtocol/v2024_11_05.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2025_03_26.js +1 -0
- package/dist/ai/internal/mcpProtocol/v2025_03_26.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2025_06_18.js +1 -0
- package/dist/ai/internal/mcpProtocol/v2025_06_18.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2025_11_25.js +1 -0
- package/dist/ai/internal/mcpProtocol/v2025_11_25.js.map +1 -1
- package/dist/ai/internal/mcpRuntime.js +79 -46
- package/dist/ai/internal/mcpRuntime.js.map +1 -1
- package/dist/ai/internal/mcpSchema/v2024_11_05.js +3 -1
- package/dist/ai/internal/mcpSchema/v2024_11_05.js.map +1 -1
- package/dist/ai/internal/mcpStatefulRuntime.js +1 -0
- package/dist/ai/internal/mcpStatefulRuntime.js.map +1 -1
- package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/cluster/ClusterWorkflowEngine.js +11 -2
- package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/cluster/K8sHttpClient.js +5 -2
- package/dist/cluster/K8sHttpClient.js.map +1 -1
- package/dist/cluster/Sharding.d.ts.map +1 -1
- package/dist/cluster/Sharding.js +14 -7
- package/dist/cluster/Sharding.js.map +1 -1
- package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/cluster/SqlMessageStorage.js +21 -12
- package/dist/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/cluster/SqlRunnerStorage.js +30 -44
- package/dist/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/cluster/internal/entityManager.js +63 -62
- package/dist/cluster/internal/entityManager.js.map +1 -1
- package/dist/cluster/internal/interruptors.js +8 -0
- package/dist/cluster/internal/interruptors.js.map +1 -1
- package/dist/cluster/internal/resourceMap.js +39 -14
- package/dist/cluster/internal/resourceMap.js.map +1 -1
- package/dist/cluster/internal/resourceRef.js +168 -87
- package/dist/cluster/internal/resourceRef.js.map +1 -1
- package/dist/encoding/Base64.d.ts +4 -0
- package/dist/encoding/Base64.d.ts.map +1 -1
- package/dist/encoding/Base64.js +4 -0
- package/dist/encoding/Base64.js.map +1 -1
- package/dist/encoding/Base64Url.d.ts +4 -0
- package/dist/encoding/Base64Url.d.ts.map +1 -1
- package/dist/encoding/Base64Url.js +4 -0
- package/dist/encoding/Base64Url.js.map +1 -1
- package/dist/encoding/EncodingError.d.ts +4 -0
- package/dist/encoding/EncodingError.d.ts.map +1 -1
- package/dist/encoding/EncodingError.js +4 -0
- package/dist/encoding/EncodingError.js.map +1 -1
- package/dist/encoding/Hex.d.ts +5 -0
- package/dist/encoding/Hex.d.ts.map +1 -1
- package/dist/encoding/Hex.js +5 -0
- package/dist/encoding/Hex.js.map +1 -1
- package/dist/encoding/Toml.js +2 -2
- package/dist/encoding/Toml.js.map +1 -1
- package/dist/encoding/Yaml.d.ts.map +1 -1
- package/dist/encoding/Yaml.js +6 -4
- package/dist/encoding/Yaml.js.map +1 -1
- package/dist/encoding/index.d.ts +4 -0
- package/dist/encoding/index.d.ts.map +1 -1
- package/dist/encoding/index.js +4 -0
- package/dist/encoding/index.js.map +1 -1
- package/dist/eventlog/SqlEventJournal.js +8 -4
- package/dist/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts +27 -10
- package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/eventlog/SqlEventLogServerUnencrypted.js +49 -7
- package/dist/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/http/Headers.d.ts +3 -1
- package/dist/http/Headers.d.ts.map +1 -1
- package/dist/http/Headers.js +4 -2
- package/dist/http/Headers.js.map +1 -1
- package/dist/http/HttpClient.d.ts +9 -0
- package/dist/http/HttpClient.d.ts.map +1 -1
- package/dist/http/HttpClient.js +40 -21
- package/dist/http/HttpClient.js.map +1 -1
- package/dist/http/HttpClientResponse.js +3 -1
- package/dist/http/HttpClientResponse.js.map +1 -1
- package/dist/http/HttpEffect.d.ts +3 -0
- package/dist/http/HttpEffect.d.ts.map +1 -1
- package/dist/http/HttpEffect.js +5 -2
- package/dist/http/HttpEffect.js.map +1 -1
- package/dist/http/HttpMiddleware.d.ts +17 -0
- package/dist/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/http/HttpMiddleware.js +58 -40
- package/dist/http/HttpMiddleware.js.map +1 -1
- package/dist/http/HttpServer.d.ts +1 -1
- package/dist/http/HttpServer.d.ts.map +1 -1
- package/dist/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/http/HttpStaticServer.js +14 -0
- package/dist/http/HttpStaticServer.js.map +1 -1
- package/dist/http/HttpTraceContext.d.ts +1 -1
- package/dist/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/http/HttpTraceContext.js +4 -4
- package/dist/http/HttpTraceContext.js.map +1 -1
- package/dist/http/internal/tracing.d.ts +2 -0
- package/dist/http/internal/tracing.d.ts.map +1 -0
- package/dist/http/internal/tracing.js +37 -0
- package/dist/http/internal/tracing.js.map +1 -0
- package/dist/http-api/HttpApiBuilder.js +2 -1
- package/dist/http-api/HttpApiBuilder.js.map +1 -1
- package/dist/http-api/HttpApiClient.d.ts +12 -3
- package/dist/http-api/HttpApiClient.d.ts.map +1 -1
- package/dist/http-api/HttpApiClient.js.map +1 -1
- package/dist/http-api/HttpApiError.d.ts +4 -2
- package/dist/http-api/HttpApiError.d.ts.map +1 -1
- package/dist/http-api/HttpApiError.js +7 -3
- package/dist/http-api/HttpApiError.js.map +1 -1
- package/dist/http-api/HttpApiSecurity.d.ts +8 -8
- package/dist/http-api/HttpApiSecurity.js +8 -8
- package/dist/index.d.ts +155 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +155 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/arbitrary/array.js +3 -3
- package/dist/internal/arbitrary/array.js.map +1 -1
- package/dist/internal/arbitrary/model.js +26 -11
- package/dist/internal/arbitrary/model.js.map +1 -1
- package/dist/internal/arbitrary/runner.js +8 -8
- package/dist/internal/arbitrary/runner.js.map +1 -1
- package/dist/internal/arbitrary/schema.js +4 -5
- package/dist/internal/arbitrary/schema.js.map +1 -1
- package/dist/internal/core.js +43 -2
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/dateTime.js +1 -1
- package/dist/internal/dateTime.js.map +1 -1
- package/dist/internal/effect.js +104 -120
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/rcRef.js +59 -23
- package/dist/internal/rcRef.js.map +1 -1
- package/dist/internal/schedule.js +7 -5
- package/dist/internal/schedule.js.map +1 -1
- package/dist/internal/schema/fromJsonSchemaDocument.js +11 -8
- package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/standardSchema.js +2 -2
- package/dist/internal/schema/standardSchema.js.map +1 -1
- package/dist/internal/version.d.ts +2 -0
- package/dist/internal/version.d.ts.map +1 -0
- package/dist/internal/version.js +3 -0
- package/dist/internal/version.js.map +1 -0
- package/dist/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/observability/OtlpExporter.js +5 -6
- package/dist/observability/OtlpExporter.js.map +1 -1
- package/dist/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/observability/OtlpLogger.js +23 -27
- package/dist/observability/OtlpLogger.js.map +1 -1
- package/dist/observability/OtlpMetrics.d.ts +5 -3
- package/dist/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/observability/OtlpMetrics.js +21 -94
- package/dist/observability/OtlpMetrics.js.map +1 -1
- package/dist/observability/OtlpResource.d.ts +4 -3
- package/dist/observability/OtlpResource.d.ts.map +1 -1
- package/dist/observability/OtlpResource.js +20 -23
- package/dist/observability/OtlpResource.js.map +1 -1
- package/dist/observability/OtlpTracer.d.ts +1 -0
- package/dist/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/observability/OtlpTracer.js +32 -36
- package/dist/observability/OtlpTracer.js.map +1 -1
- package/dist/observability/internal/otlpProtobuf.js +32 -1
- package/dist/observability/internal/otlpProtobuf.js.map +1 -1
- package/dist/reactivity/AsyncResult.d.ts +1 -1
- package/dist/reactivity/Atom.d.ts +5 -5
- package/dist/reactivity/Atom.d.ts.map +1 -1
- package/dist/reactivity/Atom.js +9 -5
- package/dist/reactivity/Atom.js.map +1 -1
- package/dist/reactivity/AtomHttpApi.d.ts +2 -2
- package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/reactivity/AtomRegistry.d.ts +8 -0
- package/dist/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/reactivity/AtomRegistry.js.map +1 -1
- package/dist/rpc/RpcClient.d.ts +21 -3
- package/dist/rpc/RpcClient.d.ts.map +1 -1
- package/dist/rpc/RpcClient.js +58 -34
- package/dist/rpc/RpcClient.js.map +1 -1
- package/dist/rpc/RpcServer.d.ts.map +1 -1
- package/dist/rpc/RpcServer.js +20 -23
- package/dist/rpc/RpcServer.js.map +1 -1
- package/dist/rpc/Utils.d.ts +2 -3
- package/dist/rpc/Utils.d.ts.map +1 -1
- package/dist/rpc/Utils.js +3 -4
- package/dist/rpc/Utils.js.map +1 -1
- package/dist/rpc/internal/tracing.d.ts +2 -0
- package/dist/rpc/internal/tracing.d.ts.map +1 -0
- package/dist/rpc/internal/tracing.js +18 -0
- package/dist/rpc/internal/tracing.js.map +1 -0
- package/dist/schema/SchemaCompiler/runtime.js +9 -1
- package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
- package/dist/sql/SqlClient.js +4 -4
- package/dist/sql/SqlClient.js.map +1 -1
- package/dist/sql/Statement.d.ts +21 -1
- package/dist/sql/Statement.d.ts.map +1 -1
- package/dist/sql/Statement.js +55 -7
- package/dist/sql/Statement.js.map +1 -1
- package/dist/testing/TestClock.d.ts +8 -0
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +7 -0
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +7 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +6 -0
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/workflow/WorkflowEngine.d.ts +2 -0
- package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/workflow/WorkflowEngine.js +1 -0
- package/dist/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +3 -3
- package/src/Array.ts +351 -3
- package/src/BigDecimal.ts +88 -0
- package/src/BigInt.ts +68 -0
- package/src/Boolean.ts +34 -0
- package/src/Brand.ts +10 -0
- package/src/ByteSize.ts +87 -0
- package/src/Cache.ts +72 -24
- package/src/Cause.ts +83 -1
- package/src/Channel.ts +368 -18
- package/src/ChannelSchema.ts +13 -0
- package/src/Chunk.ts +193 -0
- package/src/Clock.ts +7 -0
- package/src/Combiner.ts +10 -0
- package/src/Config.ts +82 -8
- package/src/ConfigProvider.ts +28 -0
- package/src/Console.ts +26 -0
- package/src/Context.ts +50 -0
- package/src/Cron.ts +32 -1
- package/src/Crypto.ts +5 -0
- package/src/Data.ts +13 -0
- package/src/DateTime.ts +171 -0
- package/src/Deferred.ts +51 -0
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +90 -0
- package/src/Effect.ts +692 -27
- package/src/Effectable.ts +4 -0
- package/src/Equal.ts +12 -1
- package/src/Equivalence.ts +22 -0
- package/src/ErrorReporter.ts +36 -0
- package/src/ExecutionPlan.ts +58 -14
- package/src/Exit.ts +40 -0
- package/src/Fiber.ts +20 -0
- package/src/FiberHandle.ts +29 -4
- package/src/FiberMap.ts +38 -0
- package/src/FiberSet.ts +21 -0
- package/src/FileSystem.ts +16 -0
- package/src/Filter.ts +55 -0
- package/src/Formatter.ts +42 -1
- package/src/Function.ts +30 -0
- package/src/Graph.ts +317 -36
- package/src/HKT.ts +5 -0
- package/src/Hash.ts +15 -0
- package/src/HashMap.ts +91 -0
- package/src/HashRing.ts +32 -5
- package/src/HashSet.ts +53 -0
- package/src/Inspectable.ts +8 -0
- package/src/Iterable.ts +127 -0
- package/src/JsonPatch.ts +5 -0
- package/src/JsonPointer.ts +5 -0
- package/src/JsonSchema.ts +17 -0
- package/src/Latch.ts +14 -0
- package/src/Layer.ts +101 -1
- package/src/LayerMap.ts +7 -0
- package/src/LayerRef.ts +5 -0
- package/src/LogLevel.ts +20 -0
- package/src/Logger.ts +41 -5
- package/src/ManagedRuntime.ts +12 -1
- package/src/Match.ts +52 -0
- package/src/Metric.ts +69 -0
- package/src/MutableHashMap.ts +44 -0
- package/src/MutableHashSet.ts +17 -0
- package/src/MutableList.ts +21 -0
- package/src/MutableRef.ts +32 -0
- package/src/Newtype.ts +9 -0
- package/src/NonEmptyIterable.ts +4 -0
- package/src/Number.ts +61 -0
- package/src/Optic.ts +57 -0
- package/src/Option.ts +134 -0
- package/src/Order.ts +30 -0
- package/src/Ordering.ts +7 -0
- package/src/PartitionedSemaphore.ts +61 -22
- package/src/Path.ts +6 -0
- package/src/Pipeable.ts +7 -0
- package/src/PlatformError.ts +8 -0
- package/src/Pool.ts +48 -37
- package/src/Predicate.ts +85 -0
- package/src/PrimaryKey.ts +5 -0
- package/src/PubSub.ts +90 -9
- package/src/Pull.ts +20 -0
- package/src/Queue.ts +80 -10
- package/src/Random.ts +13 -0
- package/src/RcMap.ts +49 -2
- package/src/RcRef.ts +6 -0
- package/src/Record.ts +100 -0
- package/src/Redactable.ts +6 -0
- package/src/Redacted.ts +8 -0
- package/src/Reducer.ts +4 -0
- package/src/Ref.ts +42 -0
- package/src/References.ts +21 -0
- package/src/RegExp.ts +4 -0
- package/src/Request.ts +32 -0
- package/src/RequestResolver.ts +59 -10
- package/src/Resource.ts +7 -0
- package/src/Result.ts +93 -0
- package/src/Runtime.ts +10 -0
- package/src/Schedule.ts +61 -0
- package/src/Scheduler.ts +7 -0
- package/src/Schema.ts +499 -4
- package/src/SchemaAST.ts +115 -1
- package/src/SchemaGetter.ts +80 -4
- package/src/SchemaIssue.ts +34 -0
- package/src/SchemaParser.ts +26 -0
- package/src/SchemaRepresentation.ts +148 -0
- package/src/SchemaTransformation.ts +53 -0
- package/src/Scope.ts +19 -0
- package/src/ScopedCache.ts +82 -19
- package/src/ScopedRef.ts +9 -0
- package/src/Semaphore.ts +26 -0
- package/src/Sink.ts +126 -2
- package/src/StandardSchema.ts +1 -0
- package/src/Stdio.ts +7 -0
- package/src/Stream.ts +780 -103
- package/src/String.ts +87 -0
- package/src/Struct.ts +46 -0
- package/src/SubscriptionRef.ts +65 -0
- package/src/Symbol.ts +2 -0
- package/src/SynchronizedRef.ts +63 -0
- package/src/Take.ts +3 -0
- package/src/Terminal.ts +8 -0
- package/src/Tracer.ts +23 -0
- package/src/Trie.ts +68 -0
- package/src/Tuple.ts +38 -0
- package/src/TxChunk.ts +52 -0
- package/src/TxDeferred.ts +15 -0
- package/src/TxHashMap.ts +97 -6
- package/src/TxHashSet.ts +83 -3
- package/src/TxPriorityQueue.ts +34 -2
- package/src/TxPubSub.ts +26 -0
- package/src/TxQueue.ts +51 -0
- package/src/TxReentrantLock.ts +53 -36
- package/src/TxRef.ts +14 -0
- package/src/TxSemaphore.ts +47 -31
- package/src/TxSubscriptionRef.ts +25 -0
- package/src/Types.ts +36 -0
- package/src/UndefinedOr.ts +15 -0
- package/src/Unify.ts +15 -0
- package/src/Utils.ts +4 -0
- package/src/Version.ts +38 -0
- package/src/ai/Chat.ts +1 -1
- package/src/ai/DecisionModel.ts +42 -1
- package/src/ai/LanguageModel.ts +43 -21
- package/src/ai/McpSchema.ts +3 -3
- package/src/ai/McpServer.ts +119 -39
- package/src/ai/Response.ts +27 -12
- package/src/ai/Telemetry.ts +62 -58
- package/src/ai/internal/mcpProtocol/v2024_11_05.ts +1 -0
- package/src/ai/internal/mcpProtocol/v2025_03_26.ts +1 -0
- package/src/ai/internal/mcpProtocol/v2025_06_18.ts +1 -0
- package/src/ai/internal/mcpProtocol/v2025_11_25.ts +1 -0
- package/src/ai/internal/mcpRuntime.ts +84 -43
- package/src/ai/internal/mcpSchema/v2024_11_05.ts +4 -2
- package/src/ai/internal/mcpStatefulRuntime.ts +2 -0
- package/src/cluster/ClusterWorkflowEngine.ts +18 -4
- package/src/cluster/K8sHttpClient.ts +12 -2
- package/src/cluster/Sharding.ts +24 -24
- package/src/cluster/SqlMessageStorage.ts +26 -13
- package/src/cluster/SqlRunnerStorage.ts +85 -113
- package/src/cluster/internal/entityManager.ts +68 -80
- package/src/cluster/internal/interruptors.ts +13 -0
- package/src/cluster/internal/resourceMap.ts +55 -17
- package/src/cluster/internal/resourceRef.ts +189 -96
- package/src/encoding/Base64.ts +4 -0
- package/src/encoding/Base64Url.ts +4 -0
- package/src/encoding/EncodingError.ts +5 -0
- package/src/encoding/Hex.ts +5 -0
- package/src/encoding/Toml.ts +2 -2
- package/src/encoding/Yaml.ts +8 -4
- package/src/encoding/index.ts +4 -0
- package/src/eventlog/SqlEventJournal.ts +18 -4
- package/src/eventlog/SqlEventLogServerUnencrypted.ts +282 -235
- package/src/http/Headers.ts +8 -2
- package/src/http/HttpClient.ts +44 -27
- package/src/http/HttpClientResponse.ts +3 -1
- package/src/http/HttpEffect.ts +11 -2
- package/src/http/HttpMiddleware.ts +67 -46
- package/src/http/HttpServer.ts +1 -1
- package/src/http/HttpStaticServer.ts +16 -0
- package/src/http/HttpTraceContext.ts +8 -4
- package/src/http/internal/tracing.ts +52 -0
- package/src/http-api/HttpApiBuilder.ts +5 -1
- package/src/http-api/HttpApiClient.ts +13 -4
- package/src/http-api/HttpApiError.ts +8 -3
- package/src/http-api/HttpApiSecurity.ts +8 -8
- package/src/index.ts +156 -0
- package/src/internal/arbitrary/array.ts +3 -3
- package/src/internal/arbitrary/model.ts +37 -14
- package/src/internal/arbitrary/runner.ts +7 -7
- package/src/internal/arbitrary/schema.ts +4 -3
- package/src/internal/core.ts +56 -2
- package/src/internal/dateTime.ts +3 -1
- package/src/internal/effect.ts +156 -156
- package/src/internal/rcRef.ts +83 -33
- package/src/internal/schedule.ts +23 -17
- package/src/internal/schema/fromJsonSchemaDocument.ts +5 -3
- package/src/internal/schema/standardSchema.ts +2 -2
- package/src/internal/version.ts +2 -0
- package/src/observability/OtlpExporter.ts +9 -6
- package/src/observability/OtlpLogger.ts +20 -21
- package/src/observability/OtlpMetrics.ts +34 -93
- package/src/observability/OtlpResource.ts +18 -27
- package/src/observability/OtlpTracer.ts +34 -40
- package/src/observability/internal/otlpProtobuf.ts +60 -0
- package/src/reactivity/AsyncResult.ts +1 -1
- package/src/reactivity/Atom.ts +10 -6
- package/src/reactivity/AtomHttpApi.ts +2 -4
- package/src/reactivity/AtomRegistry.ts +7 -0
- package/src/rpc/RpcClient.ts +74 -46
- package/src/rpc/RpcServer.ts +28 -25
- package/src/rpc/Utils.ts +4 -10
- package/src/rpc/internal/tracing.ts +22 -0
- package/src/schema/SchemaCompiler/runtime.ts +4 -1
- package/src/sql/SqlClient.ts +4 -4
- package/src/sql/Statement.ts +59 -7
- package/src/testing/TestClock.ts +9 -0
- package/src/testing/TestConsole.ts +8 -0
- package/src/testing/index.ts +3 -0
- package/src/workflow/WorkflowEngine.ts +4 -0
package/src/Duration.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* from common input shapes, unit conversions, comparisons, arithmetic,
|
|
8
8
|
* formatting, and reusable reducer or combiner helpers.
|
|
9
9
|
*
|
|
10
|
+
* @stability stable
|
|
10
11
|
* @since 2.0.0
|
|
11
12
|
*/
|
|
12
13
|
import * as Combiner from "./Combiner.ts"
|
|
@@ -78,6 +79,7 @@ const nanosToHrTime = (nanos: bigint): [seconds: number, nanos: number] => {
|
|
|
78
79
|
* @see {@link DurationValue} for the tagged representation exposed by the
|
|
79
80
|
* `value` field
|
|
80
81
|
*
|
|
82
|
+
* @stability stable
|
|
81
83
|
* @category models
|
|
82
84
|
* @since 2.0.0
|
|
83
85
|
*/
|
|
@@ -104,6 +106,7 @@ export interface Duration extends Equal.Equal, Pipeable, Inspectable.Inspectable
|
|
|
104
106
|
* representation
|
|
105
107
|
* @see {@link match} for pattern matching without reading `value` directly
|
|
106
108
|
*
|
|
109
|
+
* @stability stable
|
|
107
110
|
* @category models
|
|
108
111
|
* @since 2.0.0
|
|
109
112
|
*/
|
|
@@ -123,6 +126,7 @@ export type DurationValue =
|
|
|
123
126
|
*
|
|
124
127
|
* @see {@link Input} for the full duration input union
|
|
125
128
|
*
|
|
129
|
+
* @stability stable
|
|
126
130
|
* @category models
|
|
127
131
|
* @since 2.0.0
|
|
128
132
|
*/
|
|
@@ -166,6 +170,7 @@ export type Unit =
|
|
|
166
170
|
* @see {@link DurationObject} for object-shaped duration input
|
|
167
171
|
* @see {@link Unit} for supported string units
|
|
168
172
|
*
|
|
173
|
+
* @stability stable
|
|
169
174
|
* @category models
|
|
170
175
|
* @since 4.0.0
|
|
171
176
|
*/
|
|
@@ -197,6 +202,7 @@ export type Input =
|
|
|
197
202
|
* Duration.fromInputUnsafe({ seconds: 1, nanoseconds: 500 }) // => Duration.nanos(1_000_000_500n)
|
|
198
203
|
* ```
|
|
199
204
|
*
|
|
205
|
+
* @stability stable
|
|
200
206
|
* @category models
|
|
201
207
|
* @since 4.0.0
|
|
202
208
|
*/
|
|
@@ -236,6 +242,7 @@ const DURATION_REGEXP = /^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|m
|
|
|
236
242
|
* Duration.fromInputUnsafe([2, 500_000_000]) // => Duration.nanos(2_500_000_000n)
|
|
237
243
|
* ```
|
|
238
244
|
*
|
|
245
|
+
* @stability stable
|
|
239
246
|
* @category constructors
|
|
240
247
|
* @since 4.0.0
|
|
241
248
|
*/
|
|
@@ -337,6 +344,7 @@ const invalid = (input: unknown): never => {
|
|
|
337
344
|
* Duration.fromInput("invalid" as any) // => Option.none()
|
|
338
345
|
* ```
|
|
339
346
|
*
|
|
347
|
+
* @stability stable
|
|
340
348
|
* @category constructors
|
|
341
349
|
* @since 4.0.0
|
|
342
350
|
*/
|
|
@@ -431,6 +439,7 @@ const make = (input: number | bigint): Duration => {
|
|
|
431
439
|
* Duration.isDuration(1000) // => false
|
|
432
440
|
* ```
|
|
433
441
|
*
|
|
442
|
+
* @stability stable
|
|
434
443
|
* @category guards
|
|
435
444
|
* @since 2.0.0
|
|
436
445
|
*/
|
|
@@ -448,6 +457,7 @@ export const isDuration = (u: unknown): u is Duration => hasProperty(u, TypeId)
|
|
|
448
457
|
* Duration.isFinite(Duration.infinity) // => false
|
|
449
458
|
* ```
|
|
450
459
|
*
|
|
460
|
+
* @stability stable
|
|
451
461
|
* @category predicates
|
|
452
462
|
* @since 2.0.0
|
|
453
463
|
*/
|
|
@@ -466,6 +476,7 @@ export const isFinite = (self: Duration): boolean =>
|
|
|
466
476
|
* Duration.isZero(Duration.seconds(1)) // => false
|
|
467
477
|
* ```
|
|
468
478
|
*
|
|
479
|
+
* @stability stable
|
|
469
480
|
* @category predicates
|
|
470
481
|
* @since 3.5.0
|
|
471
482
|
*/
|
|
@@ -494,6 +505,7 @@ export const isZero = (self: Duration): boolean => {
|
|
|
494
505
|
* Duration.isNegative(Duration.negativeInfinity) // => true
|
|
495
506
|
* ```
|
|
496
507
|
*
|
|
508
|
+
* @stability stable
|
|
497
509
|
* @category predicates
|
|
498
510
|
* @since 4.0.0
|
|
499
511
|
*/
|
|
@@ -523,6 +535,7 @@ export const isNegative = (self: Duration): boolean => {
|
|
|
523
535
|
* Duration.isPositive(Duration.infinity) // => true
|
|
524
536
|
* ```
|
|
525
537
|
*
|
|
538
|
+
* @stability stable
|
|
526
539
|
* @category predicates
|
|
527
540
|
* @since 4.0.0
|
|
528
541
|
*/
|
|
@@ -551,6 +564,7 @@ export const isPositive = (self: Duration): boolean => {
|
|
|
551
564
|
* Duration.abs(Duration.negativeInfinity) // => Duration.infinity
|
|
552
565
|
* ```
|
|
553
566
|
*
|
|
567
|
+
* @stability stable
|
|
554
568
|
* @category math
|
|
555
569
|
* @since 4.0.0
|
|
556
570
|
*/
|
|
@@ -578,6 +592,7 @@ export const abs = (self: Duration): Duration => {
|
|
|
578
592
|
* Duration.negate(Duration.infinity) // => Duration.negativeInfinity
|
|
579
593
|
* ```
|
|
580
594
|
*
|
|
595
|
+
* @stability stable
|
|
581
596
|
* @category math
|
|
582
597
|
* @since 4.0.0
|
|
583
598
|
*/
|
|
@@ -605,6 +620,7 @@ export const negate = (self: Duration): Duration => {
|
|
|
605
620
|
* Duration.toMillis(Duration.zero) // => 0
|
|
606
621
|
* ```
|
|
607
622
|
*
|
|
623
|
+
* @stability stable
|
|
608
624
|
* @category constructors
|
|
609
625
|
* @since 2.0.0
|
|
610
626
|
*/
|
|
@@ -621,6 +637,7 @@ export const zero: Duration = make(0)
|
|
|
621
637
|
* Duration.toMillis(Duration.infinity) // => Infinity
|
|
622
638
|
* ```
|
|
623
639
|
*
|
|
640
|
+
* @stability stable
|
|
624
641
|
* @category constructors
|
|
625
642
|
* @since 2.0.0
|
|
626
643
|
*/
|
|
@@ -637,6 +654,7 @@ export const infinity: Duration = make(Infinity)
|
|
|
637
654
|
* Duration.toMillis(Duration.negativeInfinity) // => -Infinity
|
|
638
655
|
* ```
|
|
639
656
|
*
|
|
657
|
+
* @stability stable
|
|
640
658
|
* @category constructors
|
|
641
659
|
* @since 4.0.0
|
|
642
660
|
*/
|
|
@@ -653,6 +671,7 @@ export const negativeInfinity: Duration = make(-Infinity)
|
|
|
653
671
|
* Duration.nanos(500_000_000n) // => Duration.nanos(500_000_000n)
|
|
654
672
|
* ```
|
|
655
673
|
*
|
|
674
|
+
* @stability stable
|
|
656
675
|
* @category constructors
|
|
657
676
|
* @since 2.0.0
|
|
658
677
|
*/
|
|
@@ -669,6 +688,7 @@ export const nanos = (nanos: bigint): Duration => make(nanos)
|
|
|
669
688
|
* Duration.micros(500_000n) // => Duration.nanos(500_000_000n)
|
|
670
689
|
* ```
|
|
671
690
|
*
|
|
691
|
+
* @stability stable
|
|
672
692
|
* @category constructors
|
|
673
693
|
* @since 2.0.0
|
|
674
694
|
*/
|
|
@@ -685,6 +705,7 @@ export const micros = (micros: bigint): Duration => make(micros * bigint1e3)
|
|
|
685
705
|
* Duration.toMillis(Duration.millis(1000)) // => 1000
|
|
686
706
|
* ```
|
|
687
707
|
*
|
|
708
|
+
* @stability stable
|
|
688
709
|
* @category constructors
|
|
689
710
|
* @since 2.0.0
|
|
690
711
|
*/
|
|
@@ -701,6 +722,7 @@ export const millis = (millis: number): Duration => make(millis)
|
|
|
701
722
|
* Duration.toMillis(Duration.seconds(30)) // => 30_000
|
|
702
723
|
* ```
|
|
703
724
|
*
|
|
725
|
+
* @stability stable
|
|
704
726
|
* @category constructors
|
|
705
727
|
* @since 2.0.0
|
|
706
728
|
*/
|
|
@@ -717,6 +739,7 @@ export const seconds = (seconds: number): Duration => make(seconds * 1000)
|
|
|
717
739
|
* Duration.toMillis(Duration.minutes(5)) // => 300_000
|
|
718
740
|
* ```
|
|
719
741
|
*
|
|
742
|
+
* @stability stable
|
|
720
743
|
* @category constructors
|
|
721
744
|
* @since 2.0.0
|
|
722
745
|
*/
|
|
@@ -733,6 +756,7 @@ export const minutes = (minutes: number): Duration => make(minutes * 60_000)
|
|
|
733
756
|
* Duration.toMillis(Duration.hours(2)) // => 7_200_000
|
|
734
757
|
* ```
|
|
735
758
|
*
|
|
759
|
+
* @stability stable
|
|
736
760
|
* @category constructors
|
|
737
761
|
* @since 2.0.0
|
|
738
762
|
*/
|
|
@@ -749,6 +773,7 @@ export const hours = (hours: number): Duration => make(hours * 3_600_000)
|
|
|
749
773
|
* Duration.toMillis(Duration.days(1)) // => 86_400_000
|
|
750
774
|
* ```
|
|
751
775
|
*
|
|
776
|
+
* @stability stable
|
|
752
777
|
* @category constructors
|
|
753
778
|
* @since 2.0.0
|
|
754
779
|
*/
|
|
@@ -765,6 +790,7 @@ export const days = (days: number): Duration => make(days * 86_400_000)
|
|
|
765
790
|
* Duration.toMillis(Duration.weeks(1)) // => 604_800_000
|
|
766
791
|
* ```
|
|
767
792
|
*
|
|
793
|
+
* @stability stable
|
|
768
794
|
* @category constructors
|
|
769
795
|
* @since 2.0.0
|
|
770
796
|
*/
|
|
@@ -782,6 +808,7 @@ export const weeks = (weeks: number): Duration => make(weeks * 604_800_000)
|
|
|
782
808
|
* Duration.toMillis(Duration.minutes(2)) // => 120_000
|
|
783
809
|
* ```
|
|
784
810
|
*
|
|
811
|
+
* @stability stable
|
|
785
812
|
* @category getters
|
|
786
813
|
* @since 2.0.0
|
|
787
814
|
*/
|
|
@@ -805,6 +832,7 @@ export const toMillis = (self: Input): number =>
|
|
|
805
832
|
* Duration.toSeconds(Duration.minutes(2)) // => 120
|
|
806
833
|
* ```
|
|
807
834
|
*
|
|
835
|
+
* @stability stable
|
|
808
836
|
* @category getters
|
|
809
837
|
* @since 2.0.0
|
|
810
838
|
*/
|
|
@@ -828,6 +856,7 @@ export const toSeconds = (self: Input): number =>
|
|
|
828
856
|
* Duration.toMinutes(Duration.hours(1)) // => 60
|
|
829
857
|
* ```
|
|
830
858
|
*
|
|
859
|
+
* @stability stable
|
|
831
860
|
* @category getters
|
|
832
861
|
* @since 3.8.0
|
|
833
862
|
*/
|
|
@@ -851,6 +880,7 @@ export const toMinutes = (self: Input): number =>
|
|
|
851
880
|
* Duration.toHours(Duration.days(1)) // => 24
|
|
852
881
|
* ```
|
|
853
882
|
*
|
|
883
|
+
* @stability stable
|
|
854
884
|
* @category getters
|
|
855
885
|
* @since 3.8.0
|
|
856
886
|
*/
|
|
@@ -874,6 +904,7 @@ export const toHours = (self: Input): number =>
|
|
|
874
904
|
* Duration.toDays(Duration.weeks(1)) // => 7
|
|
875
905
|
* ```
|
|
876
906
|
*
|
|
907
|
+
* @stability stable
|
|
877
908
|
* @category getters
|
|
878
909
|
* @since 3.8.0
|
|
879
910
|
*/
|
|
@@ -897,6 +928,7 @@ export const toDays = (self: Input): number =>
|
|
|
897
928
|
* Duration.toWeeks(Duration.days(7)) // => 1
|
|
898
929
|
* ```
|
|
899
930
|
*
|
|
931
|
+
* @stability stable
|
|
900
932
|
* @category getters
|
|
901
933
|
* @since 3.8.0
|
|
902
934
|
*/
|
|
@@ -936,6 +968,7 @@ export const toWeeks = (self: Input): number =>
|
|
|
936
968
|
* // throws Error: "Cannot convert infinite duration to nanos"
|
|
937
969
|
* ```
|
|
938
970
|
*
|
|
971
|
+
* @stability stable
|
|
939
972
|
* @category getters
|
|
940
973
|
* @since 4.0.0
|
|
941
974
|
*/
|
|
@@ -968,6 +1001,7 @@ export const toNanosUnsafe = (input: Input): bigint => {
|
|
|
968
1001
|
* Duration.toNanos(Duration.infinity) // => Option.none()
|
|
969
1002
|
* ```
|
|
970
1003
|
*
|
|
1004
|
+
* @stability stable
|
|
971
1005
|
* @category getters
|
|
972
1006
|
* @since 2.0.0
|
|
973
1007
|
*/
|
|
@@ -984,6 +1018,7 @@ export const toNanos: (self: Input) => Option.Option<bigint> = Option.liftThrowa
|
|
|
984
1018
|
* Duration.toHrTime(Duration.millis(1500)) // => [1, 500_000_000]
|
|
985
1019
|
* ```
|
|
986
1020
|
*
|
|
1021
|
+
* @stability stable
|
|
987
1022
|
* @category getters
|
|
988
1023
|
* @since 2.0.0
|
|
989
1024
|
*/
|
|
@@ -1022,6 +1057,7 @@ export const toHrTime = (input: Input): [seconds: number, nanos: number] => {
|
|
|
1022
1057
|
* }) // => "5000 milliseconds"
|
|
1023
1058
|
* ```
|
|
1024
1059
|
*
|
|
1060
|
+
* @stability stable
|
|
1025
1061
|
* @category pattern matching
|
|
1026
1062
|
* @since 2.0.0
|
|
1027
1063
|
*/
|
|
@@ -1047,6 +1083,7 @@ export const match: {
|
|
|
1047
1083
|
* }) // => "5000 milliseconds"
|
|
1048
1084
|
* ```
|
|
1049
1085
|
*
|
|
1086
|
+
* @stability stable
|
|
1050
1087
|
* @category pattern matching
|
|
1051
1088
|
* @since 2.0.0
|
|
1052
1089
|
*/
|
|
@@ -1079,6 +1116,7 @@ export const match: {
|
|
|
1079
1116
|
* }) // => "5000 milliseconds"
|
|
1080
1117
|
* ```
|
|
1081
1118
|
*
|
|
1119
|
+
* @stability stable
|
|
1082
1120
|
* @category pattern matching
|
|
1083
1121
|
* @since 2.0.0
|
|
1084
1122
|
*/
|
|
@@ -1127,6 +1165,7 @@ export const match: {
|
|
|
1127
1165
|
* }) // => 5000
|
|
1128
1166
|
* ```
|
|
1129
1167
|
*
|
|
1168
|
+
* @stability stable
|
|
1130
1169
|
* @category pattern matching
|
|
1131
1170
|
* @since 4.0.0
|
|
1132
1171
|
*/
|
|
@@ -1146,6 +1185,7 @@ export const matchPair: {
|
|
|
1146
1185
|
* }) // => 5000
|
|
1147
1186
|
* ```
|
|
1148
1187
|
*
|
|
1188
|
+
* @stability stable
|
|
1149
1189
|
* @category pattern matching
|
|
1150
1190
|
* @since 4.0.0
|
|
1151
1191
|
*/
|
|
@@ -1172,6 +1212,7 @@ export const matchPair: {
|
|
|
1172
1212
|
* }) // => 5000
|
|
1173
1213
|
* ```
|
|
1174
1214
|
*
|
|
1215
|
+
* @stability stable
|
|
1175
1216
|
* @category pattern matching
|
|
1176
1217
|
* @since 4.0.0
|
|
1177
1218
|
*/
|
|
@@ -1226,6 +1267,7 @@ export const matchPair: {
|
|
|
1226
1267
|
* durations.sort((a, b) => Duration.Order(a, b)).map(Duration.toSeconds) // => [1, 2, 3]
|
|
1227
1268
|
* ```
|
|
1228
1269
|
*
|
|
1270
|
+
* @stability stable
|
|
1229
1271
|
* @category instances
|
|
1230
1272
|
* @since 2.0.0
|
|
1231
1273
|
*/
|
|
@@ -1277,6 +1319,7 @@ export const Order: order.Order<Duration> = order.make((self, that) =>
|
|
|
1277
1319
|
* @see {@link isGreaterThanOrEqualTo} for checking only the lower bound
|
|
1278
1320
|
* @see {@link isLessThanOrEqualTo} for checking only the upper bound
|
|
1279
1321
|
*
|
|
1322
|
+
* @stability stable
|
|
1280
1323
|
* @category predicates
|
|
1281
1324
|
* @since 2.0.0
|
|
1282
1325
|
*/
|
|
@@ -1313,6 +1356,7 @@ export const between: {
|
|
|
1313
1356
|
* @see {@link isGreaterThanOrEqualTo} for checking only the lower bound
|
|
1314
1357
|
* @see {@link isLessThanOrEqualTo} for checking only the upper bound
|
|
1315
1358
|
*
|
|
1359
|
+
* @stability stable
|
|
1316
1360
|
* @category predicates
|
|
1317
1361
|
* @since 2.0.0
|
|
1318
1362
|
*/
|
|
@@ -1349,6 +1393,7 @@ export const between: {
|
|
|
1349
1393
|
* @see {@link isGreaterThanOrEqualTo} for checking only the lower bound
|
|
1350
1394
|
* @see {@link isLessThanOrEqualTo} for checking only the upper bound
|
|
1351
1395
|
*
|
|
1396
|
+
* @stability stable
|
|
1352
1397
|
* @category predicates
|
|
1353
1398
|
* @since 2.0.0
|
|
1354
1399
|
*/
|
|
@@ -1366,6 +1411,7 @@ export const between: {
|
|
|
1366
1411
|
* Duration.Equivalence(Duration.seconds(5), Duration.millis(5000)) // => true
|
|
1367
1412
|
* ```
|
|
1368
1413
|
*
|
|
1414
|
+
* @stability stable
|
|
1369
1415
|
* @category instances
|
|
1370
1416
|
* @since 2.0.0
|
|
1371
1417
|
*/
|
|
@@ -1387,6 +1433,7 @@ export const Equivalence: Equ.Equivalence<Duration> = (self, that) =>
|
|
|
1387
1433
|
* Duration.min(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(3)
|
|
1388
1434
|
* ```
|
|
1389
1435
|
*
|
|
1436
|
+
* @stability stable
|
|
1390
1437
|
* @category ordering
|
|
1391
1438
|
* @since 2.0.0
|
|
1392
1439
|
*/
|
|
@@ -1402,6 +1449,7 @@ export const min: {
|
|
|
1402
1449
|
* Duration.min(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(3)
|
|
1403
1450
|
* ```
|
|
1404
1451
|
*
|
|
1452
|
+
* @stability stable
|
|
1405
1453
|
* @category ordering
|
|
1406
1454
|
* @since 2.0.0
|
|
1407
1455
|
*/
|
|
@@ -1417,6 +1465,7 @@ export const min: {
|
|
|
1417
1465
|
* Duration.min(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(3)
|
|
1418
1466
|
* ```
|
|
1419
1467
|
*
|
|
1468
|
+
* @stability stable
|
|
1420
1469
|
* @category ordering
|
|
1421
1470
|
* @since 2.0.0
|
|
1422
1471
|
*/
|
|
@@ -1434,6 +1483,7 @@ export const min: {
|
|
|
1434
1483
|
* Duration.max(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(5)
|
|
1435
1484
|
* ```
|
|
1436
1485
|
*
|
|
1486
|
+
* @stability stable
|
|
1437
1487
|
* @category ordering
|
|
1438
1488
|
* @since 2.0.0
|
|
1439
1489
|
*/
|
|
@@ -1449,6 +1499,7 @@ export const max: {
|
|
|
1449
1499
|
* Duration.max(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(5)
|
|
1450
1500
|
* ```
|
|
1451
1501
|
*
|
|
1502
|
+
* @stability stable
|
|
1452
1503
|
* @category ordering
|
|
1453
1504
|
* @since 2.0.0
|
|
1454
1505
|
*/
|
|
@@ -1464,6 +1515,7 @@ export const max: {
|
|
|
1464
1515
|
* Duration.max(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(5)
|
|
1465
1516
|
* ```
|
|
1466
1517
|
*
|
|
1518
|
+
* @stability stable
|
|
1467
1519
|
* @category ordering
|
|
1468
1520
|
* @since 2.0.0
|
|
1469
1521
|
*/
|
|
@@ -1484,6 +1536,7 @@ export const max: {
|
|
|
1484
1536
|
* }) // => Duration.seconds(5)
|
|
1485
1537
|
* ```
|
|
1486
1538
|
*
|
|
1539
|
+
* @stability stable
|
|
1487
1540
|
* @category ordering
|
|
1488
1541
|
* @since 2.0.0
|
|
1489
1542
|
*/
|
|
@@ -1502,6 +1555,7 @@ export const clamp: {
|
|
|
1502
1555
|
* }) // => Duration.seconds(5)
|
|
1503
1556
|
* ```
|
|
1504
1557
|
*
|
|
1558
|
+
* @stability stable
|
|
1505
1559
|
* @category ordering
|
|
1506
1560
|
* @since 2.0.0
|
|
1507
1561
|
*/
|
|
@@ -1520,6 +1574,7 @@ export const clamp: {
|
|
|
1520
1574
|
* }) // => Duration.seconds(5)
|
|
1521
1575
|
* ```
|
|
1522
1576
|
*
|
|
1577
|
+
* @stability stable
|
|
1523
1578
|
* @category ordering
|
|
1524
1579
|
* @since 2.0.0
|
|
1525
1580
|
*/
|
|
@@ -1544,6 +1599,7 @@ export const clamp: {
|
|
|
1544
1599
|
* Duration.divide(Duration.seconds(10), 0) // => Option.none()
|
|
1545
1600
|
* ```
|
|
1546
1601
|
*
|
|
1602
|
+
* @stability stable
|
|
1547
1603
|
* @category math
|
|
1548
1604
|
* @since 2.4.19
|
|
1549
1605
|
*/
|
|
@@ -1566,6 +1622,7 @@ export const divide: {
|
|
|
1566
1622
|
* Duration.divide(Duration.seconds(10), 0) // => Option.none()
|
|
1567
1623
|
* ```
|
|
1568
1624
|
*
|
|
1625
|
+
* @stability stable
|
|
1569
1626
|
* @category math
|
|
1570
1627
|
* @since 2.4.19
|
|
1571
1628
|
*/
|
|
@@ -1588,6 +1645,7 @@ export const divide: {
|
|
|
1588
1645
|
* Duration.divide(Duration.seconds(10), 0) // => Option.none()
|
|
1589
1646
|
* ```
|
|
1590
1647
|
*
|
|
1648
|
+
* @stability stable
|
|
1591
1649
|
* @category math
|
|
1592
1650
|
* @since 2.4.19
|
|
1593
1651
|
*/
|
|
@@ -1638,6 +1696,7 @@ export const divide: {
|
|
|
1638
1696
|
* Duration.divideUnsafe(Duration.seconds(10), 0) // => Duration.infinity
|
|
1639
1697
|
* ```
|
|
1640
1698
|
*
|
|
1699
|
+
* @stability stable
|
|
1641
1700
|
* @category math
|
|
1642
1701
|
* @since 4.0.0
|
|
1643
1702
|
*/
|
|
@@ -1668,6 +1727,7 @@ export const divideUnsafe: {
|
|
|
1668
1727
|
* Duration.divideUnsafe(Duration.seconds(10), 0) // => Duration.infinity
|
|
1669
1728
|
* ```
|
|
1670
1729
|
*
|
|
1730
|
+
* @stability stable
|
|
1671
1731
|
* @category math
|
|
1672
1732
|
* @since 4.0.0
|
|
1673
1733
|
*/
|
|
@@ -1698,6 +1758,7 @@ export const divideUnsafe: {
|
|
|
1698
1758
|
* Duration.divideUnsafe(Duration.seconds(10), 0) // => Duration.infinity
|
|
1699
1759
|
* ```
|
|
1700
1760
|
*
|
|
1761
|
+
* @stability stable
|
|
1701
1762
|
* @category math
|
|
1702
1763
|
* @since 4.0.0
|
|
1703
1764
|
*/
|
|
@@ -1746,6 +1807,7 @@ export const divideUnsafe: {
|
|
|
1746
1807
|
* Duration.times(Duration.seconds(5), 2) // => Duration.seconds(10)
|
|
1747
1808
|
* ```
|
|
1748
1809
|
*
|
|
1810
|
+
* @stability stable
|
|
1749
1811
|
* @category math
|
|
1750
1812
|
* @since 2.0.0
|
|
1751
1813
|
*/
|
|
@@ -1768,6 +1830,7 @@ export const times: {
|
|
|
1768
1830
|
* Duration.times(Duration.seconds(5), 2) // => Duration.seconds(10)
|
|
1769
1831
|
* ```
|
|
1770
1832
|
*
|
|
1833
|
+
* @stability stable
|
|
1771
1834
|
* @category math
|
|
1772
1835
|
* @since 2.0.0
|
|
1773
1836
|
*/
|
|
@@ -1790,6 +1853,7 @@ export const times: {
|
|
|
1790
1853
|
* Duration.times(Duration.seconds(5), 2) // => Duration.seconds(10)
|
|
1791
1854
|
* ```
|
|
1792
1855
|
*
|
|
1856
|
+
* @stability stable
|
|
1793
1857
|
* @category math
|
|
1794
1858
|
* @since 2.0.0
|
|
1795
1859
|
*/
|
|
@@ -1825,6 +1889,7 @@ export const times: {
|
|
|
1825
1889
|
* Duration.subtract(Duration.seconds(10), Duration.seconds(3)) // => Duration.seconds(7)
|
|
1826
1890
|
* ```
|
|
1827
1891
|
*
|
|
1892
|
+
* @stability stable
|
|
1828
1893
|
* @category math
|
|
1829
1894
|
* @since 2.0.0
|
|
1830
1895
|
*/
|
|
@@ -1849,6 +1914,7 @@ export const subtract: {
|
|
|
1849
1914
|
* Duration.subtract(Duration.seconds(10), Duration.seconds(3)) // => Duration.seconds(7)
|
|
1850
1915
|
* ```
|
|
1851
1916
|
*
|
|
1917
|
+
* @stability stable
|
|
1852
1918
|
* @category math
|
|
1853
1919
|
* @since 2.0.0
|
|
1854
1920
|
*/
|
|
@@ -1873,6 +1939,7 @@ export const subtract: {
|
|
|
1873
1939
|
* Duration.subtract(Duration.seconds(10), Duration.seconds(3)) // => Duration.seconds(7)
|
|
1874
1940
|
* ```
|
|
1875
1941
|
*
|
|
1942
|
+
* @stability stable
|
|
1876
1943
|
* @category math
|
|
1877
1944
|
* @since 2.0.0
|
|
1878
1945
|
*/
|
|
@@ -1914,6 +1981,7 @@ export const subtract: {
|
|
|
1914
1981
|
* Duration.sum(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(8)
|
|
1915
1982
|
* ```
|
|
1916
1983
|
*
|
|
1984
|
+
* @stability stable
|
|
1917
1985
|
* @category math
|
|
1918
1986
|
* @since 2.0.0
|
|
1919
1987
|
*/
|
|
@@ -1939,6 +2007,7 @@ export const sum: {
|
|
|
1939
2007
|
* Duration.sum(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(8)
|
|
1940
2008
|
* ```
|
|
1941
2009
|
*
|
|
2010
|
+
* @stability stable
|
|
1942
2011
|
* @category math
|
|
1943
2012
|
* @since 2.0.0
|
|
1944
2013
|
*/
|
|
@@ -1964,6 +2033,7 @@ export const sum: {
|
|
|
1964
2033
|
* Duration.sum(Duration.seconds(5), Duration.seconds(3)) // => Duration.seconds(8)
|
|
1965
2034
|
* ```
|
|
1966
2035
|
*
|
|
2036
|
+
* @stability stable
|
|
1967
2037
|
* @category math
|
|
1968
2038
|
* @since 2.0.0
|
|
1969
2039
|
*/
|
|
@@ -1998,6 +2068,7 @@ export const sum: {
|
|
|
1998
2068
|
* Duration.isLessThan(Duration.seconds(3), Duration.seconds(5)) // => true
|
|
1999
2069
|
* ```
|
|
2000
2070
|
*
|
|
2071
|
+
* @stability stable
|
|
2001
2072
|
* @category predicates
|
|
2002
2073
|
* @since 4.0.0
|
|
2003
2074
|
*/
|
|
@@ -2013,6 +2084,7 @@ export const isLessThan: {
|
|
|
2013
2084
|
* Duration.isLessThan(Duration.seconds(3), Duration.seconds(5)) // => true
|
|
2014
2085
|
* ```
|
|
2015
2086
|
*
|
|
2087
|
+
* @stability stable
|
|
2016
2088
|
* @category predicates
|
|
2017
2089
|
* @since 4.0.0
|
|
2018
2090
|
*/
|
|
@@ -2028,6 +2100,7 @@ export const isLessThan: {
|
|
|
2028
2100
|
* Duration.isLessThan(Duration.seconds(3), Duration.seconds(5)) // => true
|
|
2029
2101
|
* ```
|
|
2030
2102
|
*
|
|
2103
|
+
* @stability stable
|
|
2031
2104
|
* @category predicates
|
|
2032
2105
|
* @since 4.0.0
|
|
2033
2106
|
*/
|
|
@@ -2048,6 +2121,7 @@ export const isLessThan: {
|
|
|
2048
2121
|
* ) // => true
|
|
2049
2122
|
* ```
|
|
2050
2123
|
*
|
|
2124
|
+
* @stability stable
|
|
2051
2125
|
* @category predicates
|
|
2052
2126
|
* @since 4.0.0
|
|
2053
2127
|
*/
|
|
@@ -2066,6 +2140,7 @@ export const isLessThanOrEqualTo: {
|
|
|
2066
2140
|
* ) // => true
|
|
2067
2141
|
* ```
|
|
2068
2142
|
*
|
|
2143
|
+
* @stability stable
|
|
2069
2144
|
* @category predicates
|
|
2070
2145
|
* @since 4.0.0
|
|
2071
2146
|
*/
|
|
@@ -2084,6 +2159,7 @@ export const isLessThanOrEqualTo: {
|
|
|
2084
2159
|
* ) // => true
|
|
2085
2160
|
* ```
|
|
2086
2161
|
*
|
|
2162
|
+
* @stability stable
|
|
2087
2163
|
* @category predicates
|
|
2088
2164
|
* @since 4.0.0
|
|
2089
2165
|
*/
|
|
@@ -2101,6 +2177,7 @@ export const isLessThanOrEqualTo: {
|
|
|
2101
2177
|
* Duration.isGreaterThan(Duration.seconds(5), Duration.seconds(3)) // => true
|
|
2102
2178
|
* ```
|
|
2103
2179
|
*
|
|
2180
|
+
* @stability stable
|
|
2104
2181
|
* @category predicates
|
|
2105
2182
|
* @since 4.0.0
|
|
2106
2183
|
*/
|
|
@@ -2116,6 +2193,7 @@ export const isGreaterThan: {
|
|
|
2116
2193
|
* Duration.isGreaterThan(Duration.seconds(5), Duration.seconds(3)) // => true
|
|
2117
2194
|
* ```
|
|
2118
2195
|
*
|
|
2196
|
+
* @stability stable
|
|
2119
2197
|
* @category predicates
|
|
2120
2198
|
* @since 4.0.0
|
|
2121
2199
|
*/
|
|
@@ -2131,6 +2209,7 @@ export const isGreaterThan: {
|
|
|
2131
2209
|
* Duration.isGreaterThan(Duration.seconds(5), Duration.seconds(3)) // => true
|
|
2132
2210
|
* ```
|
|
2133
2211
|
*
|
|
2212
|
+
* @stability stable
|
|
2134
2213
|
* @category predicates
|
|
2135
2214
|
* @since 4.0.0
|
|
2136
2215
|
*/
|
|
@@ -2151,6 +2230,7 @@ export const isGreaterThan: {
|
|
|
2151
2230
|
* ) // => true
|
|
2152
2231
|
* ```
|
|
2153
2232
|
*
|
|
2233
|
+
* @stability stable
|
|
2154
2234
|
* @category predicates
|
|
2155
2235
|
* @since 4.0.0
|
|
2156
2236
|
*/
|
|
@@ -2169,6 +2249,7 @@ export const isGreaterThanOrEqualTo: {
|
|
|
2169
2249
|
* ) // => true
|
|
2170
2250
|
* ```
|
|
2171
2251
|
*
|
|
2252
|
+
* @stability stable
|
|
2172
2253
|
* @category predicates
|
|
2173
2254
|
* @since 4.0.0
|
|
2174
2255
|
*/
|
|
@@ -2187,6 +2268,7 @@ export const isGreaterThanOrEqualTo: {
|
|
|
2187
2268
|
* ) // => true
|
|
2188
2269
|
* ```
|
|
2189
2270
|
*
|
|
2271
|
+
* @stability stable
|
|
2190
2272
|
* @category predicates
|
|
2191
2273
|
* @since 4.0.0
|
|
2192
2274
|
*/
|
|
@@ -2204,6 +2286,7 @@ export const isGreaterThanOrEqualTo: {
|
|
|
2204
2286
|
* Duration.equals(Duration.seconds(5), Duration.millis(5000)) // => true
|
|
2205
2287
|
* ```
|
|
2206
2288
|
*
|
|
2289
|
+
* @stability stable
|
|
2207
2290
|
* @category predicates
|
|
2208
2291
|
* @since 2.0.0
|
|
2209
2292
|
*/
|
|
@@ -2219,6 +2302,7 @@ export const equals: {
|
|
|
2219
2302
|
* Duration.equals(Duration.seconds(5), Duration.millis(5000)) // => true
|
|
2220
2303
|
* ```
|
|
2221
2304
|
*
|
|
2305
|
+
* @stability stable
|
|
2222
2306
|
* @category predicates
|
|
2223
2307
|
* @since 2.0.0
|
|
2224
2308
|
*/
|
|
@@ -2234,6 +2318,7 @@ export const equals: {
|
|
|
2234
2318
|
* Duration.equals(Duration.seconds(5), Duration.millis(5000)) // => true
|
|
2235
2319
|
* ```
|
|
2236
2320
|
*
|
|
2321
|
+
* @stability stable
|
|
2237
2322
|
* @category predicates
|
|
2238
2323
|
* @since 2.0.0
|
|
2239
2324
|
*/
|
|
@@ -2268,6 +2353,7 @@ export const equals: {
|
|
|
2268
2353
|
* Duration.parts(complex) // => ({ days: 1, hours: 2, minutes: 30, seconds: 0, millis: 0, nanos: 0 })
|
|
2269
2354
|
* ```
|
|
2270
2355
|
*
|
|
2356
|
+
* @stability stable
|
|
2271
2357
|
* @category converting
|
|
2272
2358
|
* @since 3.8.0
|
|
2273
2359
|
*/
|
|
@@ -2332,6 +2418,7 @@ export const parts = (self: Duration): {
|
|
|
2332
2418
|
* Duration.format(Duration.millis(1001)) // => "1s 1ms"
|
|
2333
2419
|
* ```
|
|
2334
2420
|
*
|
|
2421
|
+
* @stability stable
|
|
2335
2422
|
* @category converting
|
|
2336
2423
|
* @since 2.0.0
|
|
2337
2424
|
*/
|
|
@@ -2394,6 +2481,7 @@ export const format = (self: Duration): string => {
|
|
|
2394
2481
|
* @see {@link CombinerMax} for keeping the longest duration instead of summing
|
|
2395
2482
|
* @see {@link CombinerMin} for keeping the shortest duration instead of summing
|
|
2396
2483
|
*
|
|
2484
|
+
* @stability stable
|
|
2397
2485
|
* @category math
|
|
2398
2486
|
* @since 4.0.0
|
|
2399
2487
|
*/
|
|
@@ -2409,6 +2497,7 @@ export const ReducerSum: Reducer.Reducer<Duration> = Reducer.make(sum, zero)
|
|
|
2409
2497
|
* @see {@link CombinerMin} for keeping the shortest `Duration`
|
|
2410
2498
|
* @see {@link max} for comparing two `Duration` values directly
|
|
2411
2499
|
*
|
|
2500
|
+
* @stability stable
|
|
2412
2501
|
* @category math
|
|
2413
2502
|
* @since 4.0.0
|
|
2414
2503
|
*/
|
|
@@ -2424,6 +2513,7 @@ export const CombinerMax: Combiner.Combiner<Duration> = Combiner.max(Order)
|
|
|
2424
2513
|
* @see {@link CombinerMax} for keeping the longest `Duration`
|
|
2425
2514
|
* @see {@link min} for comparing two `Duration` values directly
|
|
2426
2515
|
*
|
|
2516
|
+
* @stability stable
|
|
2427
2517
|
* @category math
|
|
2428
2518
|
* @since 4.0.0
|
|
2429
2519
|
*/
|