effect 4.0.0-beta.77 → 4.0.0-beta.79
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.map +1 -1
- package/dist/Array.js +6 -81
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +5 -55
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +5 -55
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +5 -64
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +5 -64
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +5 -52
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +5 -52
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +0 -44
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +5 -44
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +6 -72
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +6 -72
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +6 -67
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +6 -67
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +5 -41
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +6 -67
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +6 -67
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +4 -56
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +6 -57
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +5 -69
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +6 -75
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +6 -75
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +6 -70
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +8 -47
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +5 -41
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +6 -50
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +6 -50
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +5 -72
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +8 -48
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +5 -58
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +4 -35
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Differ.js +4 -35
- package/dist/Duration.d.ts +6 -46
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +6 -46
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +227 -103
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +172 -18
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +4 -34
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +5 -46
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +6 -66
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +6 -48
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +8 -47
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +6 -79
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +6 -53
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +5 -52
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +8 -38
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +7 -34
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +6 -36
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +8 -51
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +8 -33
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +6 -49
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +5 -43
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +5 -48
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +69 -61
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +6 -48
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +7 -49
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +6 -69
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +6 -69
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +6 -56
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +7 -36
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +7 -36
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +6 -60
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +5 -50
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +5 -50
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +0 -53
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +4 -49
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +4 -49
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +6 -82
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +5 -31
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +6 -38
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +7 -32
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +7 -32
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +4 -35
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +6 -80
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +6 -36
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +8 -42
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +8 -81
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +8 -81
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +6 -35
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +5 -63
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +6 -46
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +7 -30
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +8 -61
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +0 -135
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +0 -135
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +4 -55
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +4 -55
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +9 -91
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +9 -91
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +8 -69
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +8 -69
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +8 -76
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +5 -31
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +0 -28
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +0 -28
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +7 -29
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +6 -28
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +0 -11
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +0 -11
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +7 -29
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +7 -29
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +6 -61
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +0 -40
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +0 -40
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +8 -56
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +8 -56
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +8 -25
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +8 -25
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +5 -62
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +5 -62
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +5 -39
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +6 -74
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +9 -17
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +9 -17
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +6 -36
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +6 -71
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +6 -71
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +0 -58
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +8 -41
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +8 -41
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +5 -64
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +5 -64
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +8 -49
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +8 -49
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +0 -49
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +0 -26
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +6 -41
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +6 -41
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +5 -30
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +6 -64
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +6 -64
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +7 -55
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +5 -61
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +6 -17
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +6 -17
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +257 -166
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +347 -361
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +18 -73
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +83 -89
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +9 -83
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +9 -83
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +8 -76
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +23 -43
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +10 -84
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +9 -82
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +9 -82
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +5 -33
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +6 -41
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +6 -41
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +8 -23
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +6 -18
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +6 -18
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +8 -30
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +6 -29
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +7 -26
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +7 -26
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +8 -79
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +8 -79
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +5 -63
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +5 -63
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +8 -71
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +9 -71
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +6 -53
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +6 -53
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +0 -17
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +0 -17
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +8 -21
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +8 -21
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +0 -24
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +7 -28
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +6 -36
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +6 -36
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +6 -49
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +8 -66
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +8 -66
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +8 -40
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +8 -40
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +0 -18
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +0 -18
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +6 -23
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +6 -23
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +10 -19
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +10 -19
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +9 -29
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +9 -29
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +6 -44
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +6 -44
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +8 -48
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +8 -40
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +8 -40
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +9 -59
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +9 -59
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +6 -34
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +6 -34
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +7 -35
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +7 -35
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +6 -48
- package/dist/Types.d.ts.map +1 -1
- package/dist/Types.js +5 -47
- package/dist/UndefinedOr.d.ts +8 -55
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +8 -55
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +8 -29
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +8 -29
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +8 -55
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +20 -14
- package/dist/Utils.js.map +1 -1
- package/dist/internal/effect.js +5 -3
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/option.js +5 -3
- package/dist/internal/option.js.map +1 -1
- package/dist/internal/schema/arbitrary.d.ts +4 -1
- package/dist/internal/schema/arbitrary.d.ts.map +1 -1
- package/dist/internal/schema/arbitrary.js +655 -170
- package/dist/internal/schema/arbitrary.js.map +1 -1
- package/dist/internal/schema/representation.js +1 -1
- package/dist/internal/schema/representation.js.map +1 -1
- package/dist/testing/FastCheck.d.ts +5 -6
- package/dist/testing/FastCheck.d.ts.map +1 -1
- package/dist/testing/FastCheck.js +5 -6
- package/dist/testing/FastCheck.js.map +1 -1
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +8 -23
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +7 -36
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +6 -63
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +9 -78
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +9 -78
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +7 -32
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +0 -46
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +8 -45
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +8 -45
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +6 -44
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +6 -44
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +8 -27
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +8 -27
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +8 -22
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +8 -49
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +8 -49
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +9 -50
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +6 -50
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +8 -49
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +0 -26
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +0 -26
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +6 -30
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +6 -30
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +8 -46
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +8 -46
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +9 -54
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +9 -54
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +6 -20
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +8 -23
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts +6 -19
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +6 -19
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +8 -27
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts.map +1 -1
- package/dist/unstable/cli/Completions.js +0 -24
- package/dist/unstable/cli/Completions.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +8 -18
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +8 -22
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +9 -23
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +6 -19
- package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
- package/dist/unstable/cli/HelpDoc.js +6 -19
- package/dist/unstable/cli/Param.d.ts +8 -25
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +8 -25
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +8 -58
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +7 -22
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +6 -26
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +6 -26
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterError.d.ts +5 -40
- package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterError.js +5 -40
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +6 -20
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +6 -20
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +0 -38
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +0 -38
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +0 -16
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +0 -17
- 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.map +1 -1
- package/dist/unstable/cluster/Entity.js +8 -31
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.d.ts +0 -13
- package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js +0 -13
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.d.ts +0 -24
- package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityId.js +0 -24
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +7 -21
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +6 -20
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +7 -19
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +8 -22
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/EntityType.d.ts +0 -13
- package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityType.js +0 -13
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +7 -22
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +5 -32
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +5 -32
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +0 -32
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.d.ts +0 -20
- package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
- package/dist/unstable/cluster/MachineId.js +0 -20
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +7 -23
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +7 -23
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +8 -37
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +7 -36
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +7 -19
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +3 -35
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +3 -35
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +4 -32
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +4 -32
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +6 -35
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +6 -35
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +8 -23
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +6 -21
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +6 -21
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +8 -29
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +7 -28
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +0 -17
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +0 -17
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +7 -39
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +7 -34
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +8 -35
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +0 -22
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +0 -22
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +8 -21
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +8 -21
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.d.ts +0 -23
- package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
- package/dist/unstable/cluster/Singleton.js +0 -23
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +0 -22
- package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +0 -22
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +8 -17
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +6 -19
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +7 -36
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +6 -27
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +0 -21
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +0 -21
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/internal/entityManager.js +18 -6
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/devtools/DevTools.d.ts +0 -17
- package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
- package/dist/unstable/devtools/DevTools.js +0 -17
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +0 -24
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +0 -17
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +0 -13
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +0 -13
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +5 -28
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +4 -28
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +4 -28
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +6 -37
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +3 -25
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +6 -21
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +6 -21
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +9 -32
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +6 -28
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +6 -28
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +5 -18
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +5 -18
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +4 -20
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +7 -17
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +8 -19
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +7 -35
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +6 -35
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +0 -26
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +6 -39
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +6 -39
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +0 -29
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +7 -59
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +7 -59
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +0 -22
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js +0 -22
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +0 -23
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +0 -23
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/FindMyWay.d.ts +6 -0
- package/dist/unstable/http/FindMyWay.d.ts.map +1 -1
- package/dist/unstable/http/FindMyWay.js +6 -0
- package/dist/unstable/http/FindMyWay.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +6 -52
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +9 -53
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +9 -53
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +9 -34
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +0 -20
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +4 -35
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +4 -35
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -34
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +6 -34
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts +6 -22
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +6 -22
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +5 -29
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +5 -29
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +6 -19
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +0 -13
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +0 -13
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +7 -39
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +6 -29
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +6 -29
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +6 -30
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +6 -30
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +8 -33
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +5 -29
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +8 -41
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +8 -41
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +6 -31
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +6 -31
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +0 -24
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +0 -24
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +6 -35
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +6 -35
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Multipasta/HeadersParser.d.ts +5 -0
- package/dist/unstable/http/Multipasta/HeadersParser.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta/HeadersParser.js +5 -0
- package/dist/unstable/http/Multipasta/HeadersParser.js.map +1 -1
- package/dist/unstable/http/Multipasta/Node.d.ts +5 -0
- package/dist/unstable/http/Multipasta/Node.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta/Node.js +5 -0
- package/dist/unstable/http/Multipasta/Node.js.map +1 -1
- package/dist/unstable/http/Multipasta/Search.d.ts +5 -0
- package/dist/unstable/http/Multipasta/Search.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta/Search.js +5 -0
- package/dist/unstable/http/Multipasta/Search.js.map +1 -1
- package/dist/unstable/http/Multipasta/Web.d.ts +5 -0
- package/dist/unstable/http/Multipasta/Web.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta/Web.js +5 -0
- package/dist/unstable/http/Multipasta/Web.js.map +1 -1
- package/dist/unstable/http/Multipasta.d.ts +6 -0
- package/dist/unstable/http/Multipasta.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta.js +6 -0
- package/dist/unstable/http/Multipasta.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +5 -26
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +5 -26
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +5 -28
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +5 -28
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +4 -32
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +4 -32
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +5 -45
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +5 -39
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +20 -43
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +9 -51
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +1 -32
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +8 -34
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +9 -48
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +9 -48
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +0 -24
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +0 -32
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +0 -32
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +0 -29
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +0 -29
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +0 -24
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +5 -18
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +5 -39
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +5 -32
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +5 -22
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +6 -32
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +11 -23
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +5 -35
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.d.ts +4 -26
- package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js +4 -26
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +10 -24
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -41
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.d.ts +1 -1
- package/dist/unstable/observability/internal/otlpEnv.d.ts.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.js +9 -23
- package/dist/unstable/observability/internal/otlpEnv.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +8 -20
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +7 -19
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +5 -19
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +5 -28
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +5 -28
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +6 -22
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +5 -21
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +8 -24
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +22 -39
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +10 -33
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +6 -38
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +7 -15
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +7 -15
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +8 -40
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +8 -40
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +8 -36
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +8 -36
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +6 -25
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +6 -25
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +4 -29
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +4 -29
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +7 -74
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +6 -73
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +6 -20
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +6 -20
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +8 -31
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +6 -37
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +6 -37
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +8 -40
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +0 -23
- package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +0 -23
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +5 -30
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +0 -26
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +0 -28
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +0 -28
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +0 -25
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +0 -25
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +7 -33
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +6 -32
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcTest.d.ts +0 -24
- package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcTest.js +0 -24
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +6 -30
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +20 -3
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +18 -17
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +5 -17
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +6 -21
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +6 -20
- package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
- package/dist/unstable/socket/SocketServer.js +6 -20
- package/dist/unstable/socket/SocketServer.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +5 -40
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +5 -19
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +6 -18
- package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
- package/dist/unstable/sql/SqlConnection.js +6 -18
- package/dist/unstable/sql/SqlConnection.js.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +7 -32
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +6 -14
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/SqlModel.js.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +6 -23
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +6 -23
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +3 -27
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +3 -27
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
- package/dist/unstable/sql/SqlStream.js +0 -10
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +6 -34
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +0 -21
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +0 -21
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +6 -34
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +6 -34
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerError.js +4 -33
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +5 -30
- package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerRunner.js +5 -30
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +5 -18
- package/dist/unstable/workflow/Activity.d.ts.map +1 -1
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +5 -24
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +6 -18
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +0 -25
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +0 -25
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +1 -1
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +7 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +8 -20
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.d.ts +7 -23
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts +6 -23
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +6 -81
- package/src/BigDecimal.ts +5 -55
- package/src/BigInt.ts +5 -64
- package/src/Boolean.ts +5 -52
- package/src/Brand.ts +0 -44
- package/src/Cache.ts +5 -44
- package/src/Cause.ts +6 -72
- package/src/Channel.ts +6 -67
- package/src/ChannelSchema.ts +5 -41
- package/src/Chunk.ts +6 -67
- package/src/Clock.ts +4 -56
- package/src/Combiner.ts +6 -57
- package/src/Config.ts +5 -69
- package/src/ConfigProvider.ts +6 -75
- package/src/Console.ts +6 -70
- package/src/Context.ts +8 -47
- package/src/Cron.ts +5 -41
- package/src/Crypto.ts +6 -50
- package/src/Data.ts +5 -72
- package/src/DateTime.ts +8 -48
- package/src/Deferred.ts +5 -58
- package/src/Differ.ts +4 -35
- package/src/Duration.ts +6 -46
- package/src/Effect.ts +227 -103
- package/src/Effectable.ts +4 -34
- package/src/Encoding.ts +5 -46
- package/src/Equal.ts +6 -66
- package/src/Equivalence.ts +6 -48
- package/src/ErrorReporter.ts +8 -47
- package/src/ExecutionPlan.ts +6 -79
- package/src/Exit.ts +6 -53
- package/src/Fiber.ts +5 -52
- package/src/FiberHandle.ts +8 -38
- package/src/FiberMap.ts +7 -34
- package/src/FiberSet.ts +6 -36
- package/src/FileSystem.ts +8 -51
- package/src/Filter.ts +8 -33
- package/src/Formatter.ts +6 -49
- package/src/Function.ts +5 -43
- package/src/Graph.ts +79 -61
- package/src/HKT.ts +6 -48
- package/src/Hash.ts +7 -49
- package/src/HashMap.ts +6 -69
- package/src/HashRing.ts +6 -56
- package/src/HashSet.ts +7 -36
- package/src/Inspectable.ts +6 -60
- package/src/Iterable.ts +5 -50
- package/src/JsonPatch.ts +0 -53
- package/src/JsonPointer.ts +4 -49
- package/src/JsonSchema.ts +6 -82
- package/src/Latch.ts +5 -31
- package/src/Layer.ts +6 -38
- package/src/LayerMap.ts +7 -32
- package/src/LogLevel.ts +4 -35
- package/src/Logger.ts +6 -80
- package/src/ManagedRuntime.ts +6 -36
- package/src/Match.ts +8 -42
- package/src/Metric.ts +8 -81
- package/src/MutableHashMap.ts +6 -35
- package/src/MutableHashSet.ts +5 -63
- package/src/MutableList.ts +6 -46
- package/src/MutableRef.ts +7 -30
- package/src/Newtype.ts +8 -61
- package/src/NonEmptyIterable.ts +0 -135
- package/src/Number.ts +4 -55
- package/src/Optic.ts +9 -91
- package/src/Option.ts +8 -69
- package/src/Order.ts +8 -76
- package/src/Ordering.ts +5 -31
- package/src/PartitionedSemaphore.ts +0 -28
- package/src/Path.ts +7 -29
- package/src/Pipeable.ts +0 -11
- package/src/PlatformError.ts +7 -29
- package/src/Pool.ts +6 -42
- package/src/Predicate.ts +6 -61
- package/src/PrimaryKey.ts +0 -40
- package/src/PubSub.ts +8 -56
- package/src/Pull.ts +8 -25
- package/src/Queue.ts +5 -62
- package/src/Random.ts +18 -114
- package/src/RcMap.ts +9 -17
- package/src/RcRef.ts +6 -36
- package/src/Record.ts +6 -71
- package/src/Redactable.ts +0 -58
- package/src/Redacted.ts +8 -41
- package/src/Reducer.ts +5 -64
- package/src/Ref.ts +8 -49
- package/src/References.ts +0 -49
- package/src/RegExp.ts +0 -26
- package/src/Request.ts +6 -41
- package/src/RequestResolver.ts +6 -41
- package/src/Resource.ts +5 -30
- package/src/Result.ts +6 -64
- package/src/Runtime.ts +7 -55
- package/src/Schedule.ts +5 -61
- package/src/Scheduler.ts +6 -17
- package/src/Schema.ts +697 -397
- package/src/SchemaAST.ts +115 -91
- package/src/SchemaGetter.ts +9 -83
- package/src/SchemaIssue.ts +8 -76
- package/src/SchemaParser.ts +27 -43
- package/src/SchemaRepresentation.ts +10 -84
- package/src/SchemaTransformation.ts +9 -82
- package/src/SchemaUtils.ts +5 -33
- package/src/Scope.ts +6 -41
- package/src/ScopedCache.ts +8 -23
- package/src/ScopedRef.ts +6 -18
- package/src/Semaphore.ts +8 -30
- package/src/Sink.ts +6 -29
- package/src/Stdio.ts +7 -26
- package/src/Stream.ts +8 -79
- package/src/String.ts +5 -63
- package/src/Struct.ts +9 -71
- package/src/SubscriptionRef.ts +6 -53
- package/src/Symbol.ts +0 -17
- package/src/SynchronizedRef.ts +8 -21
- package/src/Take.ts +0 -24
- package/src/Terminal.ts +7 -28
- package/src/Tracer.ts +6 -36
- package/src/Trie.ts +6 -49
- package/src/Tuple.ts +8 -66
- package/src/TxChunk.ts +8 -40
- package/src/TxDeferred.ts +0 -18
- package/src/TxHashMap.ts +6 -23
- package/src/TxHashSet.ts +10 -19
- package/src/TxPriorityQueue.ts +9 -29
- package/src/TxPubSub.ts +6 -44
- package/src/TxQueue.ts +8 -48
- package/src/TxReentrantLock.ts +8 -40
- package/src/TxRef.ts +9 -59
- package/src/TxSemaphore.ts +6 -34
- package/src/TxSubscriptionRef.ts +7 -35
- package/src/Types.ts +6 -48
- package/src/UndefinedOr.ts +8 -55
- package/src/Unify.ts +8 -29
- package/src/Utils.ts +28 -68
- package/src/internal/effect.ts +9 -8
- package/src/internal/option.ts +31 -26
- package/src/internal/schema/arbitrary.ts +740 -173
- package/src/internal/schema/representation.ts +1 -1
- package/src/testing/FastCheck.ts +5 -6
- package/src/testing/TestClock.ts +8 -23
- package/src/testing/TestConsole.ts +7 -36
- package/src/testing/TestSchema.ts +6 -63
- package/src/unstable/ai/AiError.ts +9 -78
- package/src/unstable/ai/AnthropicStructuredOutput.ts +7 -32
- package/src/unstable/ai/Chat.ts +0 -46
- package/src/unstable/ai/EmbeddingModel.ts +8 -45
- package/src/unstable/ai/IdGenerator.ts +6 -44
- package/src/unstable/ai/LanguageModel.ts +9 -48
- package/src/unstable/ai/McpSchema.ts +8 -27
- package/src/unstable/ai/McpServer.ts +7 -21
- package/src/unstable/ai/Model.ts +8 -49
- package/src/unstable/ai/OpenAiStructuredOutput.ts +9 -49
- package/src/unstable/ai/Prompt.ts +6 -50
- package/src/unstable/ai/Response.ts +8 -49
- package/src/unstable/ai/ResponseIdTracker.ts +0 -26
- package/src/unstable/ai/Telemetry.ts +6 -30
- package/src/unstable/ai/Tokenizer.ts +8 -46
- package/src/unstable/ai/Tool.ts +9 -54
- package/src/unstable/ai/Toolkit.ts +6 -75
- package/src/unstable/cli/Argument.ts +6 -20
- package/src/unstable/cli/CliError.ts +8 -23
- package/src/unstable/cli/CliOutput.ts +6 -19
- package/src/unstable/cli/Command.ts +8 -27
- package/src/unstable/cli/Completions.ts +0 -24
- package/src/unstable/cli/Flag.ts +8 -18
- package/src/unstable/cli/GlobalFlag.ts +10 -22
- package/src/unstable/cli/HelpDoc.ts +6 -19
- package/src/unstable/cli/Param.ts +8 -25
- package/src/unstable/cli/Primitive.ts +8 -58
- package/src/unstable/cli/Prompt.ts +8 -23
- package/src/unstable/cluster/ClusterCron.ts +6 -26
- package/src/unstable/cluster/ClusterError.ts +5 -40
- package/src/unstable/cluster/ClusterMetrics.ts +6 -20
- package/src/unstable/cluster/ClusterSchema.ts +0 -38
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +0 -16
- package/src/unstable/cluster/DeliverAt.ts +0 -17
- package/src/unstable/cluster/Entity.ts +8 -31
- package/src/unstable/cluster/EntityAddress.ts +0 -13
- package/src/unstable/cluster/EntityId.ts +0 -24
- package/src/unstable/cluster/EntityProxy.ts +6 -20
- package/src/unstable/cluster/EntityProxyServer.ts +7 -19
- package/src/unstable/cluster/EntityResource.ts +8 -22
- package/src/unstable/cluster/EntityType.ts +0 -13
- package/src/unstable/cluster/Envelope.ts +7 -22
- package/src/unstable/cluster/HttpRunner.ts +5 -32
- package/src/unstable/cluster/K8sHttpClient.ts +0 -32
- package/src/unstable/cluster/MachineId.ts +0 -20
- package/src/unstable/cluster/Message.ts +7 -23
- package/src/unstable/cluster/MessageStorage.ts +7 -36
- package/src/unstable/cluster/Reply.ts +7 -19
- package/src/unstable/cluster/Runner.ts +3 -35
- package/src/unstable/cluster/RunnerAddress.ts +4 -32
- package/src/unstable/cluster/RunnerHealth.ts +6 -35
- package/src/unstable/cluster/RunnerServer.ts +8 -23
- package/src/unstable/cluster/RunnerStorage.ts +6 -21
- package/src/unstable/cluster/Runners.ts +7 -28
- package/src/unstable/cluster/ShardId.ts +0 -17
- package/src/unstable/cluster/Sharding.ts +7 -39
- package/src/unstable/cluster/ShardingConfig.ts +7 -34
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +0 -22
- package/src/unstable/cluster/SingleRunner.ts +7 -20
- package/src/unstable/cluster/Singleton.ts +0 -23
- package/src/unstable/cluster/SingletonAddress.ts +0 -22
- package/src/unstable/cluster/Snowflake.ts +7 -16
- package/src/unstable/cluster/SocketRunner.ts +6 -19
- package/src/unstable/cluster/SqlMessageStorage.ts +7 -36
- package/src/unstable/cluster/SqlRunnerStorage.ts +6 -27
- package/src/unstable/cluster/TestRunner.ts +0 -21
- package/src/unstable/cluster/internal/entityManager.ts +23 -5
- package/src/unstable/devtools/DevTools.ts +0 -17
- package/src/unstable/devtools/DevToolsClient.ts +0 -24
- package/src/unstable/devtools/DevToolsSchema.ts +0 -17
- package/src/unstable/devtools/DevToolsServer.ts +0 -13
- package/src/unstable/encoding/Msgpack.ts +5 -28
- package/src/unstable/encoding/Ndjson.ts +4 -28
- package/src/unstable/encoding/Sse.ts +6 -37
- package/src/unstable/eventlog/Event.ts +3 -25
- package/src/unstable/eventlog/EventGroup.ts +6 -21
- package/src/unstable/eventlog/EventJournal.ts +9 -32
- package/src/unstable/eventlog/EventLog.ts +6 -28
- package/src/unstable/eventlog/EventLogEncryption.ts +5 -18
- package/src/unstable/eventlog/EventLogMessage.ts +4 -20
- package/src/unstable/eventlog/EventLogRemote.ts +7 -17
- package/src/unstable/eventlog/EventLogServer.ts +3 -26
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +7 -18
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +7 -35
- package/src/unstable/eventlog/EventLogSessionAuth.ts +6 -35
- package/src/unstable/eventlog/SqlEventJournal.ts +0 -26
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +6 -39
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +0 -29
- package/src/unstable/http/Cookies.ts +6 -58
- package/src/unstable/http/Etag.ts +0 -22
- package/src/unstable/http/FetchHttpClient.ts +0 -23
- package/src/unstable/http/FindMyWay.ts +6 -0
- package/src/unstable/http/Headers.ts +9 -54
- package/src/unstable/http/HttpBody.ts +9 -53
- package/src/unstable/http/HttpClient.ts +9 -34
- package/src/unstable/http/HttpClientError.ts +0 -20
- package/src/unstable/http/HttpClientRequest.ts +4 -35
- package/src/unstable/http/HttpClientResponse.ts +6 -34
- package/src/unstable/http/HttpEffect.ts +5 -33
- package/src/unstable/http/HttpIncomingMessage.ts +6 -22
- package/src/unstable/http/HttpMethod.ts +5 -29
- package/src/unstable/http/HttpMiddleware.ts +6 -19
- package/src/unstable/http/HttpPlatform.ts +0 -13
- package/src/unstable/http/HttpRouter.ts +7 -39
- package/src/unstable/http/HttpServer.ts +6 -29
- package/src/unstable/http/HttpServerError.ts +6 -30
- package/src/unstable/http/HttpServerRequest.ts +7 -32
- package/src/unstable/http/HttpServerRespondable.ts +5 -29
- package/src/unstable/http/HttpServerResponse.ts +8 -41
- package/src/unstable/http/HttpStaticServer.ts +6 -31
- package/src/unstable/http/HttpTraceContext.ts +0 -24
- package/src/unstable/http/Multipart.ts +6 -35
- package/src/unstable/http/Multipasta/HeadersParser.ts +5 -0
- package/src/unstable/http/Multipasta/Node.ts +5 -0
- package/src/unstable/http/Multipasta/Search.ts +5 -0
- package/src/unstable/http/Multipasta/Web.ts +5 -0
- package/src/unstable/http/Multipasta.ts +6 -0
- package/src/unstable/http/Template.ts +5 -26
- package/src/unstable/http/Url.ts +5 -28
- package/src/unstable/http/UrlParams.ts +4 -32
- package/src/unstable/httpapi/HttpApi.ts +5 -45
- package/src/unstable/httpapi/HttpApiBuilder.ts +5 -39
- package/src/unstable/httpapi/HttpApiClient.ts +20 -43
- package/src/unstable/httpapi/HttpApiEndpoint.ts +9 -51
- package/src/unstable/httpapi/HttpApiError.ts +1 -32
- package/src/unstable/httpapi/HttpApiGroup.ts +8 -34
- package/src/unstable/httpapi/HttpApiMiddleware.ts +9 -48
- package/src/unstable/httpapi/HttpApiScalar.ts +0 -24
- package/src/unstable/httpapi/HttpApiSchema.ts +0 -32
- package/src/unstable/httpapi/HttpApiSecurity.ts +0 -29
- package/src/unstable/httpapi/HttpApiSwagger.ts +0 -24
- package/src/unstable/httpapi/HttpApiTest.ts +5 -18
- package/src/unstable/httpapi/OpenApi.ts +6 -40
- package/src/unstable/observability/Otlp.ts +5 -32
- package/src/unstable/observability/OtlpExporter.ts +5 -22
- package/src/unstable/observability/OtlpLogger.ts +6 -32
- package/src/unstable/observability/OtlpMetrics.ts +15 -23
- package/src/unstable/observability/OtlpResource.ts +5 -35
- package/src/unstable/observability/OtlpSerialization.ts +4 -26
- package/src/unstable/observability/OtlpTracer.ts +14 -24
- package/src/unstable/observability/PrometheusMetrics.ts +4 -41
- package/src/unstable/observability/internal/otlpEnv.ts +18 -37
- package/src/unstable/persistence/KeyValueStore.ts +8 -20
- package/src/unstable/persistence/Persistable.ts +4 -18
- package/src/unstable/persistence/PersistedCache.ts +5 -28
- package/src/unstable/persistence/PersistedQueue.ts +6 -22
- package/src/unstable/persistence/Persistence.ts +5 -21
- package/src/unstable/persistence/RateLimiter.ts +23 -38
- package/src/unstable/persistence/Redis.ts +17 -35
- package/src/unstable/process/ChildProcess.ts +6 -38
- package/src/unstable/process/ChildProcessSpawner.ts +7 -15
- package/src/unstable/reactivity/AsyncResult.ts +7 -39
- package/src/unstable/reactivity/Atom.ts +8 -36
- package/src/unstable/reactivity/AtomHttpApi.ts +6 -25
- package/src/unstable/reactivity/AtomRef.ts +4 -29
- package/src/unstable/reactivity/AtomRegistry.ts +6 -73
- package/src/unstable/reactivity/AtomRpc.ts +6 -20
- package/src/unstable/reactivity/Hydration.ts +8 -31
- package/src/unstable/reactivity/Reactivity.ts +6 -37
- package/src/unstable/rpc/Rpc.ts +8 -40
- package/src/unstable/rpc/RpcClient.ts +6 -32
- package/src/unstable/rpc/RpcClientError.ts +0 -23
- package/src/unstable/rpc/RpcGroup.ts +5 -30
- package/src/unstable/rpc/RpcMessage.ts +0 -26
- package/src/unstable/rpc/RpcMiddleware.ts +0 -28
- package/src/unstable/rpc/RpcSchema.ts +0 -25
- package/src/unstable/rpc/RpcSerialization.ts +6 -32
- package/src/unstable/rpc/RpcServer.ts +7 -40
- package/src/unstable/rpc/RpcTest.ts +0 -24
- package/src/unstable/rpc/RpcWorker.ts +6 -30
- package/src/unstable/rpc/Utils.ts +5 -21
- package/src/unstable/schema/Model.ts +28 -19
- package/src/unstable/schema/VariantSchema.ts +5 -17
- package/src/unstable/socket/Socket.ts +6 -21
- package/src/unstable/socket/SocketServer.ts +6 -20
- package/src/unstable/sql/Migrator.ts +5 -40
- package/src/unstable/sql/SqlClient.ts +5 -19
- package/src/unstable/sql/SqlConnection.ts +6 -18
- package/src/unstable/sql/SqlError.ts +7 -32
- package/src/unstable/sql/SqlModel.ts +6 -14
- package/src/unstable/sql/SqlResolver.ts +6 -23
- package/src/unstable/sql/SqlSchema.ts +3 -27
- package/src/unstable/sql/SqlStream.ts +0 -10
- package/src/unstable/sql/Statement.ts +6 -34
- package/src/unstable/workers/Transferable.ts +0 -21
- package/src/unstable/workers/Worker.ts +6 -34
- package/src/unstable/workers/WorkerError.ts +4 -33
- package/src/unstable/workers/WorkerRunner.ts +5 -30
- package/src/unstable/workflow/Activity.ts +5 -18
- package/src/unstable/workflow/DurableClock.ts +5 -24
- package/src/unstable/workflow/DurableDeferred.ts +6 -18
- package/src/unstable/workflow/DurableQueue.ts +0 -25
- package/src/unstable/workflow/Workflow.ts +9 -21
- package/src/unstable/workflow/WorkflowEngine.ts +7 -19
- package/src/unstable/workflow/WorkflowProxy.ts +7 -23
- package/src/unstable/workflow/WorkflowProxyServer.ts +6 -23
package/dist/TxRef.d.ts
CHANGED
|
@@ -1,63 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* - {@link get}, {@link set}, {@link update}, and {@link modify} read and
|
|
12
|
-
* write the transaction journal when a transaction is active.
|
|
13
|
-
* - At commit time, the transaction checks whether any accessed reference was
|
|
14
|
-
* changed by another transaction. If so, it retries with a fresh journal.
|
|
15
|
-
* - `Effect.txRetry` suspends the transaction until one of the `TxRef` values
|
|
16
|
-
* read by the transaction changes.
|
|
17
|
-
*
|
|
18
|
-
* **Common tasks**
|
|
19
|
-
*
|
|
20
|
-
* - Create transactional state with {@link make}.
|
|
21
|
-
* - Read the current value with {@link get}.
|
|
22
|
-
* - Replace or transform the value with {@link set} and {@link update}.
|
|
23
|
-
* - Return a derived result while writing a new value with {@link modify}.
|
|
24
|
-
* - Wrap related reads and writes in one `Effect.tx` boundary so they commit or
|
|
25
|
-
* roll back as a unit.
|
|
26
|
-
*
|
|
27
|
-
* **Example** (Committing multiple updates atomically)
|
|
28
|
-
*
|
|
29
|
-
* ```ts
|
|
30
|
-
* import { Effect, TxRef } from "effect"
|
|
31
|
-
*
|
|
32
|
-
* const transfer = Effect.gen(function*() {
|
|
33
|
-
* const checking = yield* TxRef.make(100)
|
|
34
|
-
* const savings = yield* TxRef.make(0)
|
|
35
|
-
*
|
|
36
|
-
* yield* Effect.tx(Effect.gen(function*() {
|
|
37
|
-
* const balance = yield* TxRef.get(checking)
|
|
38
|
-
* if (balance < 30) {
|
|
39
|
-
* return yield* Effect.fail("insufficient funds")
|
|
40
|
-
* }
|
|
41
|
-
* yield* TxRef.set(checking, balance - 30)
|
|
42
|
-
* yield* TxRef.update(savings, (amount) => amount + 30)
|
|
43
|
-
* }))
|
|
44
|
-
*
|
|
45
|
-
* return {
|
|
46
|
-
* checking: yield* TxRef.get(checking),
|
|
47
|
-
* savings: yield* TxRef.get(savings)
|
|
48
|
-
* }
|
|
49
|
-
* })
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* **Gotchas**
|
|
53
|
-
*
|
|
54
|
-
* - Group related operations in the same `Effect.tx` call; separate
|
|
55
|
-
* transactions can observe and commit intermediate states.
|
|
56
|
-
* - A transaction body can run more than once after a conflict or
|
|
57
|
-
* `Effect.txRetry`, so keep externally visible effects outside the
|
|
58
|
-
* transaction body or make them idempotent.
|
|
59
|
-
* - If a transaction fails, its journal is discarded and other fibers continue
|
|
60
|
-
* to see the last committed values.
|
|
2
|
+
* Transactional references for coordinating mutable state with Effect
|
|
3
|
+
* transactions. A `TxRef` stores a current value, but reads and writes inside
|
|
4
|
+
* `Effect.tx` are recorded in a transaction journal and committed together only
|
|
5
|
+
* when the outermost transaction succeeds.
|
|
6
|
+
*
|
|
7
|
+
* This is the basic building block behind the other transactional collections
|
|
8
|
+
* in Effect. The module provides effectful and unsafe constructors plus the
|
|
9
|
+
* core operations for reading, setting, updating, and modifying a transactional
|
|
10
|
+
* value while returning a separate result.
|
|
61
11
|
*
|
|
62
12
|
* @since 4.0.0
|
|
63
13
|
*/
|
package/dist/TxRef.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxRef.d.ts","sourceRoot":"","sources":["../src/TxRef.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"TxRef.d.ts","sourceRoot":"","sources":["../src/TxR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AAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;CAIA,CAAA"}
|
package/dist/TxRef.js
CHANGED
|
@@ -1,63 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* - {@link get}, {@link set}, {@link update}, and {@link modify} read and
|
|
12
|
-
* write the transaction journal when a transaction is active.
|
|
13
|
-
* - At commit time, the transaction checks whether any accessed reference was
|
|
14
|
-
* changed by another transaction. If so, it retries with a fresh journal.
|
|
15
|
-
* - `Effect.txRetry` suspends the transaction until one of the `TxRef` values
|
|
16
|
-
* read by the transaction changes.
|
|
17
|
-
*
|
|
18
|
-
* **Common tasks**
|
|
19
|
-
*
|
|
20
|
-
* - Create transactional state with {@link make}.
|
|
21
|
-
* - Read the current value with {@link get}.
|
|
22
|
-
* - Replace or transform the value with {@link set} and {@link update}.
|
|
23
|
-
* - Return a derived result while writing a new value with {@link modify}.
|
|
24
|
-
* - Wrap related reads and writes in one `Effect.tx` boundary so they commit or
|
|
25
|
-
* roll back as a unit.
|
|
26
|
-
*
|
|
27
|
-
* **Example** (Committing multiple updates atomically)
|
|
28
|
-
*
|
|
29
|
-
* ```ts
|
|
30
|
-
* import { Effect, TxRef } from "effect"
|
|
31
|
-
*
|
|
32
|
-
* const transfer = Effect.gen(function*() {
|
|
33
|
-
* const checking = yield* TxRef.make(100)
|
|
34
|
-
* const savings = yield* TxRef.make(0)
|
|
35
|
-
*
|
|
36
|
-
* yield* Effect.tx(Effect.gen(function*() {
|
|
37
|
-
* const balance = yield* TxRef.get(checking)
|
|
38
|
-
* if (balance < 30) {
|
|
39
|
-
* return yield* Effect.fail("insufficient funds")
|
|
40
|
-
* }
|
|
41
|
-
* yield* TxRef.set(checking, balance - 30)
|
|
42
|
-
* yield* TxRef.update(savings, (amount) => amount + 30)
|
|
43
|
-
* }))
|
|
44
|
-
*
|
|
45
|
-
* return {
|
|
46
|
-
* checking: yield* TxRef.get(checking),
|
|
47
|
-
* savings: yield* TxRef.get(savings)
|
|
48
|
-
* }
|
|
49
|
-
* })
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* **Gotchas**
|
|
53
|
-
*
|
|
54
|
-
* - Group related operations in the same `Effect.tx` call; separate
|
|
55
|
-
* transactions can observe and commit intermediate states.
|
|
56
|
-
* - A transaction body can run more than once after a conflict or
|
|
57
|
-
* `Effect.txRetry`, so keep externally visible effects outside the
|
|
58
|
-
* transaction body or make them idempotent.
|
|
59
|
-
* - If a transaction fails, its journal is discarded and other fibers continue
|
|
60
|
-
* to see the last committed values.
|
|
2
|
+
* Transactional references for coordinating mutable state with Effect
|
|
3
|
+
* transactions. A `TxRef` stores a current value, but reads and writes inside
|
|
4
|
+
* `Effect.tx` are recorded in a transaction journal and committed together only
|
|
5
|
+
* when the outermost transaction succeeds.
|
|
6
|
+
*
|
|
7
|
+
* This is the basic building block behind the other transactional collections
|
|
8
|
+
* in Effect. The module provides effectful and unsafe constructors plus the
|
|
9
|
+
* core operations for reading, setting, updating, and modifying a transactional
|
|
10
|
+
* value while returning a separate result.
|
|
61
11
|
*
|
|
62
12
|
* @since 4.0.0
|
|
63
13
|
*/
|
package/dist/TxRef.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxRef.js","names":["Effect","dual","pipeArguments","TypeId","make","initial","sync","makeUnsafe","pending","Map","pipe","arguments","version","value","modify","self","f","Transaction","flatMap","state","journal","has","set","current","get","returnValue","next","tx","update"],"sources":["../src/TxRef.ts"],"sourcesContent":[null],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"TxRef.js","names":["Effect","dual","pipeArguments","TypeId","make","initial","sync","makeUnsafe","pending","Map","pipe","arguments","version","value","modify","self","f","Transaction","flatMap","state","journal","has","set","current","get","returnValue","next","tx","update"],"sources":["../src/TxRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;AAaA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,aAAa,QAAQ,eAAe;AAI7C,MAAMC,MAAM,GAAG,4BAA4B;AAgD3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,OAAO,MAAMC,IAAI,GAAOC,OAAU,IAAKL,MAAM,CAACM,IAAI,CAAC,MAAMC,UAAU,CAACF,OAAO,CAAC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAME,UAAU,GAAOF,OAAU,KAAgB;EACtD,CAACF,MAAM,GAAGA,MAAM;EAChBK,OAAO,EAAE,IAAIC,GAAG,EAAE;EAClBC,IAAIA,CAAA;IACF,OAAOR,aAAa,CAAC,IAAI,EAAES,SAAS,CAAC;EACvC,CAAC;EACDC,OAAO,EAAE,CAAC;EACVC,KAAK,EAAER;CACR,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMS,MAAM,gBAyDfb,IAAI,CAAC,CAAC,EAAE,CACVc,IAAc,EACdC,CAAgD,KAEhDhB,MAAM,CAACiB,WAAW,CAACP,IAAI,CACrBV,MAAM,CAACkB,OAAO,CAAEC,KAAK,IACnBnB,MAAM,CAACM,IAAI,CAAC,MAAK;EACf,IAAI,CAACa,KAAK,CAACC,OAAO,CAACC,GAAG,CAACN,IAAI,CAAC,EAAE;IAC5BI,KAAK,CAACC,OAAO,CAACE,GAAG,CAACP,IAAI,EAAE;MAAEH,OAAO,EAAEG,IAAI,CAACH,OAAO;MAAEC,KAAK,EAAEE,IAAI,CAACF;IAAK,CAAE,CAAC;EACvE;EACA,MAAMU,OAAO,GAAGJ,KAAK,CAACC,OAAO,CAACI,GAAG,CAACT,IAAI,CAAE;EACxC,MAAM,CAACU,WAAW,EAAEC,IAAI,CAAC,GAAGV,CAAC,CAACO,OAAO,CAACV,KAAK,CAAC;EAC5CU,OAAO,CAACV,KAAK,GAAGa,IAAI;EACpB,OAAOD,WAAW;AACpB,CAAC,CAAC,CACH,EACDzB,MAAM,CAAC2B,EAAE,CACV,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,MAAM,gBAyDf3B,IAAI,CAAC,CAAC,EAAE,CACVc,IAAc,EACdC,CAAoB,KACIF,MAAM,CAACC,IAAI,EAAGQ,OAAO,IAAK,CAAC,KAAK,CAAC,EAAEP,CAAC,CAACO,OAAO,CAAC,CAAC,CAAC,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,GAAG,GAAOT,IAAc,IAAuBD,MAAM,CAACC,IAAI,EAAGQ,OAAO,IAAK,CAACA,OAAO,EAAEA,OAAO,CAAC,CAAC;AAEzG;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMD,GAAG,gBAyDZrB,IAAI,CAAC,CAAC,EAAE,CACVc,IAAc,EACdF,KAAQ,KACgBe,MAAM,CAACb,IAAI,EAAE,MAAMF,KAAK,CAAC,CAAC","ignoreList":[]}
|
package/dist/TxSemaphore.d.ts
CHANGED
|
@@ -1,39 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* participates in Effect transactions. A `TxSemaphore` keeps a fixed capacity
|
|
4
|
-
* and records permit changes in transactional state, so acquiring or releasing
|
|
5
|
-
* permits can commit atomically with related `TxRef` updates.
|
|
6
|
-
*
|
|
7
|
-
* **Mental model**
|
|
8
|
-
*
|
|
9
|
-
* - {@link make} creates a semaphore with a fixed number of permits.
|
|
10
|
-
* - {@link acquire} and {@link acquireN} wait by retrying the transaction when
|
|
11
|
-
* there are not enough permits available.
|
|
12
|
-
* - {@link tryAcquire} and {@link tryAcquireN} update the permit count only
|
|
13
|
-
* when enough permits are already available.
|
|
14
|
-
* - {@link release} and {@link releaseN} return permits, and the total cannot
|
|
15
|
-
* exceed the original capacity.
|
|
16
|
-
* - {@link withPermit} and {@link withPermits} bracket a supplied effect,
|
|
17
|
-
* while {@link withPermitScoped} holds one permit until the current scope
|
|
18
|
-
* closes.
|
|
19
|
-
*
|
|
20
|
-
* **Common tasks**
|
|
21
|
-
*
|
|
22
|
-
* - Reserve capacity before committing related transactional state changes.
|
|
23
|
-
* - Protect a pool, queue, or rate-limited section with permit accounting that
|
|
24
|
-
* composes with `TxRef`.
|
|
25
|
-
* - Inspect the current number of permits with {@link available} and the fixed
|
|
26
|
-
* total with {@link capacity}.
|
|
2
|
+
* Coordinates access to limited resources inside transactions.
|
|
27
3
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* {@link acquireN} can wait forever because the capacity never grows.
|
|
34
|
-
* - Creating a semaphore with negative permits, acquiring a non-positive number
|
|
35
|
-
* of permits, or releasing a non-positive number of permits defects.
|
|
36
|
-
* - Extra releases are capped at the fixed capacity.
|
|
4
|
+
* A `TxSemaphore` has a fixed capacity and stores its available permit count in
|
|
5
|
+
* a `TxRef`. Acquiring or releasing permits can therefore commit atomically
|
|
6
|
+
* with other transactional state changes. This module includes operations for
|
|
7
|
+
* creating semaphores, checking capacity and availability, acquiring or
|
|
8
|
+
* releasing permits, and running effects while permits are held.
|
|
37
9
|
*
|
|
38
10
|
* @since 4.0.0
|
|
39
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxSemaphore.d.ts","sourceRoot":"","sources":["../src/TxSemaphore.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"TxSemaphore.d.ts","sourceRoot":"","sources":["../src/TxSemaphore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAA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
2
|
-
*
|
|
3
|
-
* participates in Effect transactions. A `TxSemaphore` keeps a fixed capacity
|
|
4
|
-
* and records permit changes in transactional state, so acquiring or releasing
|
|
5
|
-
* permits can commit atomically with related `TxRef` updates.
|
|
6
|
-
*
|
|
7
|
-
* **Mental model**
|
|
8
|
-
*
|
|
9
|
-
* - {@link make} creates a semaphore with a fixed number of permits.
|
|
10
|
-
* - {@link acquire} and {@link acquireN} wait by retrying the transaction when
|
|
11
|
-
* there are not enough permits available.
|
|
12
|
-
* - {@link tryAcquire} and {@link tryAcquireN} update the permit count only
|
|
13
|
-
* when enough permits are already available.
|
|
14
|
-
* - {@link release} and {@link releaseN} return permits, and the total cannot
|
|
15
|
-
* exceed the original capacity.
|
|
16
|
-
* - {@link withPermit} and {@link withPermits} bracket a supplied effect,
|
|
17
|
-
* while {@link withPermitScoped} holds one permit until the current scope
|
|
18
|
-
* closes.
|
|
19
|
-
*
|
|
20
|
-
* **Common tasks**
|
|
21
|
-
*
|
|
22
|
-
* - Reserve capacity before committing related transactional state changes.
|
|
23
|
-
* - Protect a pool, queue, or rate-limited section with permit accounting that
|
|
24
|
-
* composes with `TxRef`.
|
|
25
|
-
* - Inspect the current number of permits with {@link available} and the fixed
|
|
26
|
-
* total with {@link capacity}.
|
|
2
|
+
* Coordinates access to limited resources inside transactions.
|
|
27
3
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* {@link acquireN} can wait forever because the capacity never grows.
|
|
34
|
-
* - Creating a semaphore with negative permits, acquiring a non-positive number
|
|
35
|
-
* of permits, or releasing a non-positive number of permits defects.
|
|
36
|
-
* - Extra releases are capped at the fixed capacity.
|
|
4
|
+
* A `TxSemaphore` has a fixed capacity and stores its available permit count in
|
|
5
|
+
* a `TxRef`. Acquiring or releasing permits can therefore commit atomically
|
|
6
|
+
* with other transactional state changes. This module includes operations for
|
|
7
|
+
* creating semaphores, checking capacity and availability, acquiring or
|
|
8
|
+
* releasing permits, and running effects while permits are held.
|
|
37
9
|
*
|
|
38
10
|
* @since 4.0.0
|
|
39
11
|
*/
|
package/dist/TxSemaphore.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxSemaphore.js","names":["Effect","NodeInspectSymbol","toJson","pipeArguments","hasProperty","TxRef","TypeId","TxSemaphoreProto","toJSON","_id","capacity","pipe","arguments","makeTxSemaphore","permitsRef","self","Object","create","make","permits","gen","die","Error","tx","available","get","succeed","acquire","txRetry","set","acquireN","n","tryAcquire","modify","tryAcquireN","release","update","releaseN","newPermits","withPermit","args","length","effect","acquireUseRelease","withPermits","withPermitScoped","acquireRelease","isTxSemaphore","u"],"sources":["../src/TxSemaphore.ts"],"sourcesContent":[null],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"TxSemaphore.js","names":["Effect","NodeInspectSymbol","toJson","pipeArguments","hasProperty","TxRef","TypeId","TxSemaphoreProto","toJSON","_id","capacity","pipe","arguments","makeTxSemaphore","permitsRef","self","Object","create","make","permits","gen","die","Error","tx","available","get","succeed","acquire","txRetry","set","acquireN","n","tryAcquire","modify","tryAcquireN","release","update","releaseN","newPermits","withPermit","args","length","effect","acquireUseRelease","withPermits","withPermitScoped","acquireRelease","isTxSemaphore","u"],"sources":["../src/TxSemaphore.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAYA,OAAO,KAAKA,MAAM,MAAM,aAAa;AAErC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,kCAAkC;AA+CjD,MAAMC,gBAAgB,GAAiE;EACrF,CAACN,iBAAiB,IAAC;IACjB,OAAOC,MAAM,CAAC,IAAI,CAAC;EACrB,CAAC;EACDM,MAAMA,CAAA;IACJ,OAAO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EgB,CAAC,CAAC,EACjB,MAAMW,MAAM,EACZ,MAAML,QAAQ,CAACtB,IAAI,EAAEgB,CAAC,CAAC,CACxB;AACH,CAAS;AAET;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,OAAO,MAAMc,gBAAgB,GAAI9B,IAAiB,IAChDf,MAAM,CAAC8C,cAAc,CACnBnB,OAAO,CAACZ,IAAI,CAAC,EACb,MAAMoB,OAAO,CAACpB,IAAI,CAAC,CACpB;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMgC,aAAa,GAAIC,CAAU,IAAuB5C,WAAW,CAAC4C,CAAC,EAAE1C,MAAM,CAAC","ignoreList":[]}
|
|
@@ -1,39 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* published by
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* - The current value is stored transactionally and can be read with
|
|
11
|
-
* {@link get}
|
|
12
|
-
* - Mutations such as {@link set}, {@link update}, and {@link modify} commit a
|
|
13
|
-
* new value and publish that value to active subscribers
|
|
14
|
-
* - {@link changes} creates a scoped transactional queue for one subscriber
|
|
15
|
-
* - {@link changesStream} exposes the same change feed as a `Stream.Stream`
|
|
16
|
-
* - Subscriptions are per subscriber; each subscriber gets its own queue of
|
|
17
|
-
* committed values
|
|
18
|
-
*
|
|
19
|
-
* **Common tasks**
|
|
20
|
-
*
|
|
21
|
-
* - Create observable transactional state with {@link make}
|
|
22
|
-
* - Read or replace the current value with {@link get} and {@link set}
|
|
23
|
-
* - Derive new values atomically with {@link update} or {@link modify}
|
|
24
|
-
* - Consume changes from transactional code with {@link changes}
|
|
25
|
-
* - Consume changes from stream pipelines with {@link changesStream}
|
|
26
|
-
*
|
|
27
|
-
* **Gotchas**
|
|
28
|
-
*
|
|
29
|
-
* - A subscription starts with the value current at subscription time, not just
|
|
30
|
-
* future updates
|
|
31
|
-
* - The queue returned by {@link changes} is scoped; leaving the scope removes
|
|
32
|
-
* the subscriber
|
|
33
|
-
* - Updates are published even when the new value is equal to the previous
|
|
34
|
-
* value
|
|
35
|
-
* - Subscriber queues are unbounded, so long-lived slow subscribers can retain
|
|
36
|
-
* pending values until they catch up or their scope closes
|
|
2
|
+
* Stores transactional state and publishes committed changes.
|
|
3
|
+
*
|
|
4
|
+
* A `TxSubscriptionRef<A>` combines a `TxRef<A>` for the current value with a
|
|
5
|
+
* transactional pub/sub channel for updates. Subscribers first receive the
|
|
6
|
+
* current value and then every later value that is published by committed
|
|
7
|
+
* updates. This module includes constructors, reads, writes, update and modify
|
|
8
|
+
* helpers, transactional-queue subscriptions, stream subscriptions, and a guard.
|
|
37
9
|
*
|
|
38
10
|
* @since 4.0.0
|
|
39
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxSubscriptionRef.d.ts","sourceRoot":"","sources":["../src/TxSubscriptionRef.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"TxSubscriptionRef.d.ts","sourceRoot":"","sources":["../src/TxSubscriptionRef.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAGvC,QAAA,MAAM,MAAM,2CAA2C,CAAA;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,iBAAiB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,C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,KAAK,CAWpD,CAAA;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,MAAM,iBAAiB,CAAC,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAMxF,CAAA;AAMH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,mBAAmB,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAA2B,CAAA"}
|
|
@@ -1,39 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* published by
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* - The current value is stored transactionally and can be read with
|
|
11
|
-
* {@link get}
|
|
12
|
-
* - Mutations such as {@link set}, {@link update}, and {@link modify} commit a
|
|
13
|
-
* new value and publish that value to active subscribers
|
|
14
|
-
* - {@link changes} creates a scoped transactional queue for one subscriber
|
|
15
|
-
* - {@link changesStream} exposes the same change feed as a `Stream.Stream`
|
|
16
|
-
* - Subscriptions are per subscriber; each subscriber gets its own queue of
|
|
17
|
-
* committed values
|
|
18
|
-
*
|
|
19
|
-
* **Common tasks**
|
|
20
|
-
*
|
|
21
|
-
* - Create observable transactional state with {@link make}
|
|
22
|
-
* - Read or replace the current value with {@link get} and {@link set}
|
|
23
|
-
* - Derive new values atomically with {@link update} or {@link modify}
|
|
24
|
-
* - Consume changes from transactional code with {@link changes}
|
|
25
|
-
* - Consume changes from stream pipelines with {@link changesStream}
|
|
26
|
-
*
|
|
27
|
-
* **Gotchas**
|
|
28
|
-
*
|
|
29
|
-
* - A subscription starts with the value current at subscription time, not just
|
|
30
|
-
* future updates
|
|
31
|
-
* - The queue returned by {@link changes} is scoped; leaving the scope removes
|
|
32
|
-
* the subscriber
|
|
33
|
-
* - Updates are published even when the new value is equal to the previous
|
|
34
|
-
* value
|
|
35
|
-
* - Subscriber queues are unbounded, so long-lived slow subscribers can retain
|
|
36
|
-
* pending values until they catch up or their scope closes
|
|
2
|
+
* Stores transactional state and publishes committed changes.
|
|
3
|
+
*
|
|
4
|
+
* A `TxSubscriptionRef<A>` combines a `TxRef<A>` for the current value with a
|
|
5
|
+
* transactional pub/sub channel for updates. Subscribers first receive the
|
|
6
|
+
* current value and then every later value that is published by committed
|
|
7
|
+
* updates. This module includes constructors, reads, writes, update and modify
|
|
8
|
+
* helpers, transactional-queue subscriptions, stream subscriptions, and a guard.
|
|
37
9
|
*
|
|
38
10
|
* @since 4.0.0
|
|
39
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxSubscriptionRef.js","names":["Effect","dual","NodeInspectSymbol","toJson","pipeArguments","hasProperty","Stream","TxPubSub","TxQueue","TxRef","TypeId","TxSubscriptionRefProto","toJSON","_id","toString","pipe","arguments","make","value","gen","ref","pubsub","unbounded","self","Object","create","tx","get","modify","f","current","returnValue","newValue","set","publish","update","getAndSet","getAndUpdate","updateAndGet","changes","acquireRelease","sub","acquireSubscriber","offer","queue","releaseSubscriber","changesStream","unwrap","map","fromEffectRepeat","take","isTxSubscriptionRef","u"],"sources":["../src/TxSubscriptionRef.ts"],"sourcesContent":[null],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"TxSubscriptionRef.js","names":["Effect","dual","NodeInspectSymbol","toJson","pipeArguments","hasProperty","Stream","TxPubSub","TxQueue","TxRef","TypeId","TxSubscriptionRefProto","toJSON","_id","toString","pipe","arguments","make","value","gen","ref","pubsub","unbounded","self","Object","create","tx","get","modify","f","current","returnValue","newValue","set","publish","update","getAndSet","getAndUpdate","updateAndGet","changes","acquireRelease","sub","acquireSubscriber","offer","queue","releaseSubscriber","changesStream","unwrap","map","fromEffectRepeat","take","isTxSubscriptionRef","u"],"sources":["../src/TxSubscriptionRef.ts"],"sourcesContent":[null],"mapp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B,EAAE,CAACnB,QAAQ,CAACsC,iBAAiB,CAACtB,IAAI,CAACF,MAAM,EAAEuB,KAAK,CAAC,CAAC,CACrE;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,OAAO,MAAME,aAAa,GAAOvB,IAA0B,IACzDjB,MAAM,CAACyC,MAAM,CACX/C,MAAM,CAACgD,GAAG,CACRT,OAAO,CAAChB,IAAI,CAAC,EACZkB,GAAG,IAAKnC,MAAM,CAAC2C,gBAAgB,CAACjD,MAAM,CAAC0B,EAAE,CAAClB,OAAO,CAAC0C,IAAI,CAACT,GAAG,CAAC,CAAC,CAAC,CAC/D,CACF;AAEH;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMU,mBAAmB,GAAIC,CAAU,IAAsC/C,WAAW,CAAC+C,CAAC,EAAE1C,MAAM,CAAC","ignoreList":[]}
|
package/dist/Types.d.ts
CHANGED
|
@@ -1,52 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* ## Mental model
|
|
10
|
-
*
|
|
11
|
-
* - **Tagged union**: a union of objects each having a discriminating
|
|
12
|
-
* `_tag: string` field. {@link Tags}, {@link ExtractTag}, and
|
|
13
|
-
* {@link ExcludeTag} operate on these.
|
|
14
|
-
* - **Reason**: a nested error pattern where an error has a `reason` field
|
|
15
|
-
* containing a tagged union of sub-errors. {@link ReasonOf},
|
|
16
|
-
* {@link ReasonTags}, {@link ExtractReason}, and {@link ExcludeReason} work
|
|
17
|
-
* with this pattern.
|
|
18
|
-
* - **Variance markers**: {@link Covariant}, {@link Contravariant}, and
|
|
19
|
-
* {@link Invariant} are function-type aliases encoding variance for phantom
|
|
20
|
-
* type parameters.
|
|
21
|
-
* - **Simplify**: {@link Simplify} flattens intersection types (`A & B`) into
|
|
22
|
-
* a single object type for cleaner IDE tooltips.
|
|
23
|
-
* - **Concurrency**: {@link Concurrency} is a union type
|
|
24
|
-
* (`number | "unbounded" | "inherit"`) used across Effect APIs that accept
|
|
25
|
-
* concurrency options.
|
|
26
|
-
* - **Marker types**: {@link unassigned} and {@link unhandled} are branded
|
|
27
|
-
* interfaces used internally to represent missing or unhandled type
|
|
28
|
-
* parameters.
|
|
29
|
-
*
|
|
30
|
-
* ## Common tasks
|
|
31
|
-
*
|
|
32
|
-
* - Flatten an intersection for readability → {@link Simplify}
|
|
33
|
-
* - Check type equality at compile time → {@link Equals} / {@link EqualsWith}
|
|
34
|
-
* - Merge two object types → {@link MergeLeft} / {@link MergeRight}
|
|
35
|
-
* - Work with tagged unions → {@link Tags} / {@link ExtractTag} / {@link ExcludeTag}
|
|
36
|
-
* - Work with nested reason errors → {@link ReasonOf} / {@link ExtractReason}
|
|
37
|
-
* - Create fixed-length tuples → {@link TupleOf} / {@link TupleOfAtLeast}
|
|
38
|
-
* - Strip `readonly` modifiers → {@link Mutable} / {@link DeepMutable}
|
|
39
|
-
* - Encode variance in phantom types → {@link Covariant} / {@link Contravariant} / {@link Invariant}
|
|
40
|
-
* - Check if a type is a union → {@link IsUnion}
|
|
41
|
-
*
|
|
42
|
-
* ## Gotchas
|
|
43
|
-
*
|
|
44
|
-
* - {@link TupleOf} with a non-literal `number` (e.g. `TupleOf<number, string>`)
|
|
45
|
-
* degrades to `Array<string>`.
|
|
46
|
-
* - {@link NoInfer} uses the `[A][A extends any ? 0 : never]` trick, not the
|
|
47
|
-
* built-in `NoInfer` from TypeScript 5.4+.
|
|
48
|
-
* - {@link DeepMutable} recurses into `Map`, `Set`, arrays, and objects but
|
|
49
|
-
* stops at primitives and functions.
|
|
2
|
+
* Provides compile-time utility types for TypeScript.
|
|
3
|
+
*
|
|
4
|
+
* Everything in this module is type-level only; it does not define runtime
|
|
5
|
+
* values. The types are used throughout Effect to work with tuple lengths,
|
|
6
|
+
* object shapes, tagged unions, reason-tagged errors, mutability, exactness,
|
|
7
|
+
* required keys, concurrency settings, and variance markers.
|
|
50
8
|
*
|
|
51
9
|
* @since 4.0.0
|
|
52
10
|
*/
|
package/dist/Types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../src/Types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../src/Types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;GAGG;AACH,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,KAAK,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,EAAE,SAAS,IAAI,MAAM,EAAE,GAAG,KAAK,GAC9F,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,GACzB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAA;AAEjH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,QAAQ,CAA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: a union of objects each having a discriminating
|
|
12
|
-
* `_tag: string` field. {@link Tags}, {@link ExtractTag}, and
|
|
13
|
-
* {@link ExcludeTag} operate on these.
|
|
14
|
-
* - **Reason**: a nested error pattern where an error has a `reason` field
|
|
15
|
-
* containing a tagged union of sub-errors. {@link ReasonOf},
|
|
16
|
-
* {@link ReasonTags}, {@link ExtractReason}, and {@link ExcludeReason} work
|
|
17
|
-
* with this pattern.
|
|
18
|
-
* - **Variance markers**: {@link Covariant}, {@link Contravariant}, and
|
|
19
|
-
* {@link Invariant} are function-type aliases encoding variance for phantom
|
|
20
|
-
* type parameters.
|
|
21
|
-
* - **Simplify**: {@link Simplify} flattens intersection types (`A & B`) into
|
|
22
|
-
* a single object type for cleaner IDE tooltips.
|
|
23
|
-
* - **Concurrency**: {@link Concurrency} is a union type
|
|
24
|
-
* (`number | "unbounded" | "inherit"`) used across Effect APIs that accept
|
|
25
|
-
* concurrency options.
|
|
26
|
-
* - **Marker types**: {@link unassigned} and {@link unhandled} are branded
|
|
27
|
-
* interfaces used internally to represent missing or unhandled type
|
|
28
|
-
* parameters.
|
|
29
|
-
*
|
|
30
|
-
* ## Common tasks
|
|
31
|
-
*
|
|
32
|
-
* - Flatten an intersection for readability → {@link Simplify}
|
|
33
|
-
* - Check type equality at compile time → {@link Equals} / {@link EqualsWith}
|
|
34
|
-
* - Merge two object types → {@link MergeLeft} / {@link MergeRight}
|
|
35
|
-
* - Work with tagged unions → {@link Tags} / {@link ExtractTag} / {@link ExcludeTag}
|
|
36
|
-
* - Work with nested reason errors → {@link ReasonOf} / {@link ExtractReason}
|
|
37
|
-
* - Create fixed-length tuples → {@link TupleOf} / {@link TupleOfAtLeast}
|
|
38
|
-
* - Strip `readonly` modifiers → {@link Mutable} / {@link DeepMutable}
|
|
39
|
-
* - Encode variance in phantom types → {@link Covariant} / {@link Contravariant} / {@link Invariant}
|
|
40
|
-
* - Check if a type is a union → {@link IsUnion}
|
|
41
|
-
*
|
|
42
|
-
* ## Gotchas
|
|
43
|
-
*
|
|
44
|
-
* - {@link TupleOf} with a non-literal `number` (e.g. `TupleOf<number, string>`)
|
|
45
|
-
* degrades to `Array<string>`.
|
|
46
|
-
* - {@link NoInfer} uses the `[A][A extends any ? 0 : never]` trick, not the
|
|
47
|
-
* built-in `NoInfer` from TypeScript 5.4+.
|
|
48
|
-
* - {@link DeepMutable} recurses into `Map`, `Set`, arrays, and objects but
|
|
49
|
-
* stops at primitives and functions.
|
|
4
|
+
* Everything in this module is type-level only; it does not define runtime
|
|
5
|
+
* values. The types are used throughout Effect to work with tuple lengths,
|
|
6
|
+
* object shapes, tagged unions, reason-tagged errors, mutability, exactness,
|
|
7
|
+
* required keys, concurrency settings, and variance markers.
|
|
50
8
|
*
|
|
51
9
|
* @since 4.0.0
|
|
52
10
|
*/
|