effect 4.0.0-beta.78 → 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 +5 -31
- 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 +8 -20
- 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 +7 -20
- 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/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 +17 -35
- 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 +6 -32
- 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 +5 -31
- package/src/unstable/observability/OtlpMetrics.ts +8 -20
- package/src/unstable/observability/OtlpResource.ts +5 -35
- package/src/unstable/observability/OtlpSerialization.ts +4 -26
- package/src/unstable/observability/OtlpTracer.ts +7 -20
- package/src/unstable/observability/PrometheusMetrics.ts +4 -41
- 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 +17 -35
- package/src/unstable/persistence/Redis.ts +6 -32
- 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/Schema.js
CHANGED
|
@@ -1,85 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* ## Mental model
|
|
5
|
-
*
|
|
6
|
-
* - **Schema** — a description of a data shape. Every schema carries a decoded
|
|
7
|
-
* *Type* (the value you work with) and an *Encoded* representation (the
|
|
8
|
-
* serialized form, e.g. JSON).
|
|
9
|
-
* - **Decoding** — turning unknown external data (API responses, form
|
|
10
|
-
* submissions, config files) into typed, validated values.
|
|
11
|
-
* - **Encoding** — turning typed values back into a serializable format.
|
|
12
|
-
* - **Codec** — a schema that tracks both Type and Encoded, so it can decode
|
|
13
|
-
* *and* encode. Most concrete schemas are Codecs.
|
|
14
|
-
* - **Check / Filter** — a constraint attached to a schema (e.g. `isMinLength`,
|
|
15
|
-
* `isGreaterThan`). Attach them with `.check(...)`.
|
|
16
|
-
* - **Transformation** — a pair of functions (decode + encode) that convert
|
|
17
|
-
* values between two schemas. Created with {@link decodeTo} / {@link encodeTo}.
|
|
18
|
-
* - **Annotation** — metadata attached to a schema (title, description, custom
|
|
19
|
-
* keys). Attach with `.annotate(...)`.
|
|
20
|
-
*
|
|
21
|
-
* ## Common tasks
|
|
22
|
-
*
|
|
23
|
-
* - Define a struct: {@link Struct}
|
|
24
|
-
* - Define a union: {@link Union}, {@link TaggedUnion}, {@link Literals}
|
|
25
|
-
* - Define an array: {@link ArraySchema}, {@link NonEmptyArray}
|
|
26
|
-
* - Define a record: {@link Record}
|
|
27
|
-
* - Define a tuple: {@link Tuple}, {@link TupleWithRest}
|
|
28
|
-
* - Validate unknown data synchronously: {@link decodeUnknownSync}
|
|
29
|
-
* - Validate unknown data (Effect): {@link decodeUnknownEffect}
|
|
30
|
-
* - Encode a value: {@link encodeUnknownSync}, {@link encodeUnknownEffect}
|
|
31
|
-
* - Type guard: {@link is}
|
|
32
|
-
* - Assertion: {@link asserts}
|
|
33
|
-
* - Add constraints: `.check(...)` with filters like {@link isMinLength},
|
|
34
|
-
* {@link isGreaterThan}, {@link isPattern}, {@link isUUID}, {@link isGUID}
|
|
35
|
-
* - Transform between schemas: {@link decodeTo}, {@link encodeTo}
|
|
36
|
-
* - Add a default for missing keys: {@link withDecodingDefault}, {@link withDecodingDefaultKey}
|
|
37
|
-
* - Create branded types: {@link brand}
|
|
38
|
-
* - Define classes with validation: {@link Class}, {@link TaggedClass}
|
|
39
|
-
* - Define error classes: {@link ErrorClass}, {@link TaggedErrorClass}
|
|
40
|
-
* - Generate JSON Schema: {@link toJsonSchemaDocument}
|
|
41
|
-
* - Generate test data: {@link toArbitrary}
|
|
42
|
-
* - Derive equivalence: {@link toEquivalence}
|
|
43
|
-
*
|
|
44
|
-
* ## Gotchas
|
|
45
|
-
*
|
|
46
|
-
* - `Schema.optional` creates `T | undefined` (key can be missing *or*
|
|
47
|
-
* `undefined`). Use `Schema.optionalKey` for exact optional properties.
|
|
48
|
-
* - `decodeTo` is curried: use `from.pipe(Schema.decodeTo(to, ...))`.
|
|
49
|
-
* - `decodeUnknownSync` throws on failure. Use `decodeUnknownExit` or
|
|
50
|
-
* `decodeUnknownOption` for non-throwing alternatives.
|
|
51
|
-
* - Filters do not change the TypeScript type. Use {@link refine} or
|
|
52
|
-
* {@link brand} to narrow the type.
|
|
53
|
-
* - Recursive schemas require {@link suspend} to avoid infinite loops.
|
|
54
|
-
*
|
|
55
|
-
* ## Quickstart
|
|
56
|
-
*
|
|
57
|
-
* **Example** (Validate a user object)
|
|
2
|
+
* Describes data shapes and how unknown input becomes trusted values.
|
|
58
3
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* })
|
|
67
|
-
*
|
|
68
|
-
* // Decode unknown input — throws on failure
|
|
69
|
-
* const user = Schema.decodeUnknownSync(User)({
|
|
70
|
-
* name: "Alice",
|
|
71
|
-
* age: 30
|
|
72
|
-
* })
|
|
73
|
-
*
|
|
74
|
-
* console.log(user)
|
|
75
|
-
* // { name: "Alice", age: 30 }
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* @see {@link Schema} — type-level view tracking only the decoded Type
|
|
79
|
-
* @see {@link Codec} — type-level view tracking both Type and Encoded
|
|
80
|
-
* @see {@link Struct} — define object shapes
|
|
81
|
-
* @see {@link decodeUnknownSync} — synchronous validation
|
|
82
|
-
* @see {@link decodeTo} — schema transformations
|
|
4
|
+
* A schema can validate input, decode it into an application type, and encode
|
|
5
|
+
* that value back to another representation. This module contains the main
|
|
6
|
+
* schema, codec, decoder, and encoder APIs, together with schemas for common
|
|
7
|
+
* JavaScript values and Effect data types. It also supports refinements,
|
|
8
|
+
* transformations, defaults, classes, JSON Schema generation, test data
|
|
9
|
+
* generation, formatting, equivalence, optics, and differs derived from schema
|
|
10
|
+
* definitions.
|
|
83
11
|
*
|
|
84
12
|
* @since 4.0.0
|
|
85
13
|
*/
|
|
@@ -1795,6 +1723,7 @@ export function Struct(fields) {
|
|
|
1795
1723
|
export function fieldsAssign(fields) {
|
|
1796
1724
|
return Struct_.lambda(struct => struct.mapFields(Struct_.assign(fields)));
|
|
1797
1725
|
}
|
|
1726
|
+
const canonicalPropertyKey = key => typeof key === "symbol" ? key : globalThis.String(key);
|
|
1798
1727
|
/**
|
|
1799
1728
|
* Renames struct keys in the encoded form without changing the decoded type.
|
|
1800
1729
|
*
|
|
@@ -1803,6 +1732,8 @@ export function fieldsAssign(fields) {
|
|
|
1803
1732
|
* Takes a partial mapping `{ decodedKey: encodedKey }` and produces a
|
|
1804
1733
|
* transformation schema that decodes from the renamed keys and encodes back to
|
|
1805
1734
|
* the renamed keys. Keys not present in the mapping are left unchanged.
|
|
1735
|
+
* If two existing fields would produce the same encoded key, construction
|
|
1736
|
+
* fails.
|
|
1806
1737
|
*
|
|
1807
1738
|
* **Example** (Rename `name` to `full_name` in the encoded form)
|
|
1808
1739
|
*
|
|
@@ -1824,19 +1755,27 @@ export function fieldsAssign(fields) {
|
|
|
1824
1755
|
export function encodeKeys(mapping) {
|
|
1825
1756
|
return function (self) {
|
|
1826
1757
|
const fields = {};
|
|
1758
|
+
const appliedMapping = {};
|
|
1827
1759
|
const reverseMapping = {};
|
|
1828
|
-
|
|
1760
|
+
const seenEncodedKeys = new Set();
|
|
1761
|
+
for (const k of Reflect.ownKeys(self.fields)) {
|
|
1829
1762
|
const encoded = toEncoded(self.fields[k]);
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1763
|
+
const hasMapping = Object.hasOwn(mapping, k);
|
|
1764
|
+
const encodedKey = hasMapping ? mapping[k] : k;
|
|
1765
|
+
const canonical = canonicalPropertyKey(encodedKey);
|
|
1766
|
+
if (seenEncodedKeys.has(canonical)) {
|
|
1767
|
+
throw new globalThis.Error(`Duplicate encoded keys: ${formatPropertyKey(encodedKey)}`);
|
|
1768
|
+
}
|
|
1769
|
+
seenEncodedKeys.add(canonical);
|
|
1770
|
+
fields[encodedKey] = encoded;
|
|
1771
|
+
if (hasMapping) {
|
|
1772
|
+
appliedMapping[k] = encodedKey;
|
|
1773
|
+
reverseMapping[encodedKey] = k;
|
|
1835
1774
|
}
|
|
1836
1775
|
}
|
|
1837
1776
|
return Struct(fields).pipe(decodeTo(self, SchemaTransformation.transform({
|
|
1838
1777
|
decode: Struct_.renameKeys(reverseMapping),
|
|
1839
|
-
encode: Struct_.renameKeys(
|
|
1778
|
+
encode: Struct_.renameKeys(appliedMapping)
|
|
1840
1779
|
})));
|
|
1841
1780
|
};
|
|
1842
1781
|
}
|
|
@@ -3144,8 +3083,8 @@ export function isTrimmed(annotations) {
|
|
|
3144
3083
|
_tag: "isTrimmed",
|
|
3145
3084
|
regExp: new globalThis.RegExp(TRIMMED_PATTERN)
|
|
3146
3085
|
},
|
|
3147
|
-
|
|
3148
|
-
|
|
3086
|
+
arbitrary: {
|
|
3087
|
+
constraint: {
|
|
3149
3088
|
patterns: [TRIMMED_PATTERN]
|
|
3150
3089
|
}
|
|
3151
3090
|
},
|
|
@@ -3418,8 +3357,8 @@ export function isStartsWith(startsWith, annotations) {
|
|
|
3418
3357
|
startsWith,
|
|
3419
3358
|
regExp: new globalThis.RegExp(`^${startsWith}`)
|
|
3420
3359
|
},
|
|
3421
|
-
|
|
3422
|
-
|
|
3360
|
+
arbitrary: {
|
|
3361
|
+
constraint: {
|
|
3423
3362
|
patterns: [`^${startsWith}`]
|
|
3424
3363
|
}
|
|
3425
3364
|
},
|
|
@@ -3448,8 +3387,8 @@ export function isEndsWith(endsWith, annotations) {
|
|
|
3448
3387
|
endsWith,
|
|
3449
3388
|
regExp: new globalThis.RegExp(`${endsWith}$`)
|
|
3450
3389
|
},
|
|
3451
|
-
|
|
3452
|
-
|
|
3390
|
+
arbitrary: {
|
|
3391
|
+
constraint: {
|
|
3453
3392
|
patterns: [`${endsWith}$`]
|
|
3454
3393
|
}
|
|
3455
3394
|
},
|
|
@@ -3478,8 +3417,8 @@ export function isIncludes(includes, annotations) {
|
|
|
3478
3417
|
includes,
|
|
3479
3418
|
regExp: new globalThis.RegExp(includes)
|
|
3480
3419
|
},
|
|
3481
|
-
|
|
3482
|
-
|
|
3420
|
+
arbitrary: {
|
|
3421
|
+
constraint: {
|
|
3483
3422
|
patterns: [includes]
|
|
3484
3423
|
}
|
|
3485
3424
|
},
|
|
@@ -3506,8 +3445,8 @@ export function isUppercased(annotations) {
|
|
|
3506
3445
|
_tag: "isUppercased",
|
|
3507
3446
|
regExp: new globalThis.RegExp(UPPERCASED_PATTERN)
|
|
3508
3447
|
},
|
|
3509
|
-
|
|
3510
|
-
|
|
3448
|
+
arbitrary: {
|
|
3449
|
+
constraint: {
|
|
3511
3450
|
patterns: [UPPERCASED_PATTERN]
|
|
3512
3451
|
}
|
|
3513
3452
|
},
|
|
@@ -3534,8 +3473,8 @@ export function isLowercased(annotations) {
|
|
|
3534
3473
|
_tag: "isLowercased",
|
|
3535
3474
|
regExp: new globalThis.RegExp(LOWERCASED_PATTERN)
|
|
3536
3475
|
},
|
|
3537
|
-
|
|
3538
|
-
|
|
3476
|
+
arbitrary: {
|
|
3477
|
+
constraint: {
|
|
3539
3478
|
patterns: [LOWERCASED_PATTERN]
|
|
3540
3479
|
}
|
|
3541
3480
|
},
|
|
@@ -3562,8 +3501,8 @@ export function isCapitalized(annotations) {
|
|
|
3562
3501
|
_tag: "isCapitalized",
|
|
3563
3502
|
regExp: new globalThis.RegExp(CAPITALIZED_PATTERN)
|
|
3564
3503
|
},
|
|
3565
|
-
|
|
3566
|
-
|
|
3504
|
+
arbitrary: {
|
|
3505
|
+
constraint: {
|
|
3567
3506
|
patterns: [CAPITALIZED_PATTERN]
|
|
3568
3507
|
}
|
|
3569
3508
|
},
|
|
@@ -3590,8 +3529,8 @@ export function isUncapitalized(annotations) {
|
|
|
3590
3529
|
_tag: "isUncapitalized",
|
|
3591
3530
|
regExp: new globalThis.RegExp(UNCAPITALIZED_PATTERN)
|
|
3592
3531
|
},
|
|
3593
|
-
|
|
3594
|
-
|
|
3532
|
+
arbitrary: {
|
|
3533
|
+
constraint: {
|
|
3595
3534
|
patterns: [UNCAPITALIZED_PATTERN]
|
|
3596
3535
|
}
|
|
3597
3536
|
},
|
|
@@ -3610,8 +3549,8 @@ export function isUncapitalized(annotations) {
|
|
|
3610
3549
|
*
|
|
3611
3550
|
* Arbitrary:
|
|
3612
3551
|
*
|
|
3613
|
-
* When generating test data with fast-check, this applies `
|
|
3614
|
-
*
|
|
3552
|
+
* When generating test data with fast-check, this applies `noNaN: true` and
|
|
3553
|
+
* `noInfinity: true` constraints to ensure generated numbers are finite.
|
|
3615
3554
|
*
|
|
3616
3555
|
* @category Number checks
|
|
3617
3556
|
* @since 4.0.0
|
|
@@ -3622,9 +3561,9 @@ export function isFinite(annotations) {
|
|
|
3622
3561
|
meta: {
|
|
3623
3562
|
_tag: "isFinite"
|
|
3624
3563
|
},
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3564
|
+
arbitrary: {
|
|
3565
|
+
constraint: {
|
|
3566
|
+
noInfinity: true,
|
|
3628
3567
|
noNaN: true
|
|
3629
3568
|
}
|
|
3630
3569
|
},
|
|
@@ -3644,6 +3583,15 @@ export function makeIsGreaterThan(options) {
|
|
|
3644
3583
|
return (exclusiveMinimum, annotations) => {
|
|
3645
3584
|
return makeFilter(input => gt(input, exclusiveMinimum), {
|
|
3646
3585
|
expected: `a value greater than ${formatter(exclusiveMinimum)}`,
|
|
3586
|
+
arbitrary: {
|
|
3587
|
+
constraint: {
|
|
3588
|
+
ordered: {
|
|
3589
|
+
order: options.order,
|
|
3590
|
+
minimum: exclusiveMinimum,
|
|
3591
|
+
exclusiveMinimum: true
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
},
|
|
3647
3595
|
...options.annotate?.(exclusiveMinimum),
|
|
3648
3596
|
...annotations
|
|
3649
3597
|
});
|
|
@@ -3662,6 +3610,14 @@ export function makeIsGreaterThanOrEqualTo(options) {
|
|
|
3662
3610
|
return (minimum, annotations) => {
|
|
3663
3611
|
return makeFilter(input => gte(input, minimum), {
|
|
3664
3612
|
expected: `a value greater than or equal to ${formatter(minimum)}`,
|
|
3613
|
+
arbitrary: {
|
|
3614
|
+
constraint: {
|
|
3615
|
+
ordered: {
|
|
3616
|
+
order: options.order,
|
|
3617
|
+
minimum
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3620
|
+
},
|
|
3665
3621
|
...options.annotate?.(minimum),
|
|
3666
3622
|
...annotations
|
|
3667
3623
|
});
|
|
@@ -3680,6 +3636,15 @@ export function makeIsLessThan(options) {
|
|
|
3680
3636
|
return (exclusiveMaximum, annotations) => {
|
|
3681
3637
|
return makeFilter(input => lt(input, exclusiveMaximum), {
|
|
3682
3638
|
expected: `a value less than ${formatter(exclusiveMaximum)}`,
|
|
3639
|
+
arbitrary: {
|
|
3640
|
+
constraint: {
|
|
3641
|
+
ordered: {
|
|
3642
|
+
order: options.order,
|
|
3643
|
+
maximum: exclusiveMaximum,
|
|
3644
|
+
exclusiveMaximum: true
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
},
|
|
3683
3648
|
...options.annotate?.(exclusiveMaximum),
|
|
3684
3649
|
...annotations
|
|
3685
3650
|
});
|
|
@@ -3698,6 +3663,14 @@ export function makeIsLessThanOrEqualTo(options) {
|
|
|
3698
3663
|
return (maximum, annotations) => {
|
|
3699
3664
|
return makeFilter(input => lte(input, maximum), {
|
|
3700
3665
|
expected: `a value less than or equal to ${formatter(maximum)}`,
|
|
3666
|
+
arbitrary: {
|
|
3667
|
+
constraint: {
|
|
3668
|
+
ordered: {
|
|
3669
|
+
order: options.order,
|
|
3670
|
+
maximum
|
|
3671
|
+
}
|
|
3672
|
+
}
|
|
3673
|
+
},
|
|
3701
3674
|
...options.annotate?.(maximum),
|
|
3702
3675
|
...annotations
|
|
3703
3676
|
});
|
|
@@ -3721,6 +3694,21 @@ export function makeIsBetween(deriveOptions) {
|
|
|
3721
3694
|
const lte = options.exclusiveMaximum ? lessThan : lessThanOrEqualTo;
|
|
3722
3695
|
return makeFilter(input => gte(input, options.minimum) && lte(input, options.maximum), {
|
|
3723
3696
|
expected: `a value between ${formatter(options.minimum)}${options.exclusiveMinimum ? " (excluded)" : ""} and ${formatter(options.maximum)}${options.exclusiveMaximum ? " (excluded)" : ""}`,
|
|
3697
|
+
arbitrary: {
|
|
3698
|
+
constraint: {
|
|
3699
|
+
ordered: {
|
|
3700
|
+
order: deriveOptions.order,
|
|
3701
|
+
minimum: options.minimum,
|
|
3702
|
+
maximum: options.maximum,
|
|
3703
|
+
...(options.exclusiveMinimum && {
|
|
3704
|
+
exclusiveMinimum: true
|
|
3705
|
+
}),
|
|
3706
|
+
...(options.exclusiveMaximum && {
|
|
3707
|
+
exclusiveMaximum: true
|
|
3708
|
+
})
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
},
|
|
3724
3712
|
...deriveOptions.annotate?.(options),
|
|
3725
3713
|
...annotations
|
|
3726
3714
|
});
|
|
@@ -3754,9 +3742,9 @@ export function makeIsMultipleOf(options) {
|
|
|
3754
3742
|
*
|
|
3755
3743
|
* Arbitrary:
|
|
3756
3744
|
*
|
|
3757
|
-
* When generating test data with fast-check, this applies
|
|
3758
|
-
*
|
|
3759
|
-
* specified value.
|
|
3745
|
+
* When generating test data with fast-check, this applies an
|
|
3746
|
+
* `exclusiveMinimum` constraint to ensure generated numbers are greater than
|
|
3747
|
+
* the specified value.
|
|
3760
3748
|
*
|
|
3761
3749
|
* @category Number checks
|
|
3762
3750
|
* @since 4.0.0
|
|
@@ -3767,12 +3755,6 @@ export const isGreaterThan = /*#__PURE__*/makeIsGreaterThan({
|
|
|
3767
3755
|
meta: {
|
|
3768
3756
|
_tag: "isGreaterThan",
|
|
3769
3757
|
exclusiveMinimum
|
|
3770
|
-
},
|
|
3771
|
-
toArbitraryConstraint: {
|
|
3772
|
-
number: {
|
|
3773
|
-
min: exclusiveMinimum,
|
|
3774
|
-
minExcluded: true
|
|
3775
|
-
}
|
|
3776
3758
|
}
|
|
3777
3759
|
})
|
|
3778
3760
|
});
|
|
@@ -3788,7 +3770,7 @@ export const isGreaterThan = /*#__PURE__*/makeIsGreaterThan({
|
|
|
3788
3770
|
*
|
|
3789
3771
|
* Arbitrary:
|
|
3790
3772
|
*
|
|
3791
|
-
* When generating test data with fast-check, this applies a `
|
|
3773
|
+
* When generating test data with fast-check, this applies a `minimum` constraint
|
|
3792
3774
|
* to ensure generated numbers are greater than or equal to the specified value.
|
|
3793
3775
|
*
|
|
3794
3776
|
* @category Number checks
|
|
@@ -3800,11 +3782,6 @@ export const isGreaterThanOrEqualTo = /*#__PURE__*/makeIsGreaterThanOrEqualTo({
|
|
|
3800
3782
|
meta: {
|
|
3801
3783
|
_tag: "isGreaterThanOrEqualTo",
|
|
3802
3784
|
minimum
|
|
3803
|
-
},
|
|
3804
|
-
toArbitraryConstraint: {
|
|
3805
|
-
number: {
|
|
3806
|
-
min: minimum
|
|
3807
|
-
}
|
|
3808
3785
|
}
|
|
3809
3786
|
})
|
|
3810
3787
|
});
|
|
@@ -3819,8 +3796,8 @@ export const isGreaterThanOrEqualTo = /*#__PURE__*/makeIsGreaterThanOrEqualTo({
|
|
|
3819
3796
|
*
|
|
3820
3797
|
* Arbitrary:
|
|
3821
3798
|
*
|
|
3822
|
-
* When generating test data with fast-check, this applies
|
|
3823
|
-
*
|
|
3799
|
+
* When generating test data with fast-check, this applies an
|
|
3800
|
+
* `exclusiveMaximum` constraint to ensure generated numbers are less than the
|
|
3824
3801
|
* specified value.
|
|
3825
3802
|
*
|
|
3826
3803
|
* @category Number checks
|
|
@@ -3832,12 +3809,6 @@ export const isLessThan = /*#__PURE__*/makeIsLessThan({
|
|
|
3832
3809
|
meta: {
|
|
3833
3810
|
_tag: "isLessThan",
|
|
3834
3811
|
exclusiveMaximum
|
|
3835
|
-
},
|
|
3836
|
-
toArbitraryConstraint: {
|
|
3837
|
-
number: {
|
|
3838
|
-
max: exclusiveMaximum,
|
|
3839
|
-
maxExcluded: true
|
|
3840
|
-
}
|
|
3841
3812
|
}
|
|
3842
3813
|
})
|
|
3843
3814
|
});
|
|
@@ -3853,7 +3824,7 @@ export const isLessThan = /*#__PURE__*/makeIsLessThan({
|
|
|
3853
3824
|
*
|
|
3854
3825
|
* Arbitrary:
|
|
3855
3826
|
*
|
|
3856
|
-
* When generating test data with fast-check, this applies a `
|
|
3827
|
+
* When generating test data with fast-check, this applies a `maximum` constraint
|
|
3857
3828
|
* to ensure generated numbers are less than or equal to the specified value.
|
|
3858
3829
|
*
|
|
3859
3830
|
* @category Number checks
|
|
@@ -3865,11 +3836,6 @@ export const isLessThanOrEqualTo = /*#__PURE__*/makeIsLessThanOrEqualTo({
|
|
|
3865
3836
|
meta: {
|
|
3866
3837
|
_tag: "isLessThanOrEqualTo",
|
|
3867
3838
|
maximum
|
|
3868
|
-
},
|
|
3869
|
-
toArbitraryConstraint: {
|
|
3870
|
-
number: {
|
|
3871
|
-
max: maximum
|
|
3872
|
-
}
|
|
3873
3839
|
}
|
|
3874
3840
|
})
|
|
3875
3841
|
});
|
|
@@ -3886,9 +3852,10 @@ export const isLessThanOrEqualTo = /*#__PURE__*/makeIsLessThanOrEqualTo({
|
|
|
3886
3852
|
*
|
|
3887
3853
|
* Arbitrary:
|
|
3888
3854
|
*
|
|
3889
|
-
* When generating test data with fast-check, this applies `
|
|
3890
|
-
* constraints with optional `
|
|
3891
|
-
* generated numbers fall within the
|
|
3855
|
+
* When generating test data with fast-check, this applies `minimum` and
|
|
3856
|
+
* `maximum` constraints with optional `exclusiveMinimum` and
|
|
3857
|
+
* `exclusiveMaximum` flags to ensure generated numbers fall within the
|
|
3858
|
+
* specified range.
|
|
3892
3859
|
*
|
|
3893
3860
|
* @category Number checks
|
|
3894
3861
|
* @since 4.0.0
|
|
@@ -3900,18 +3867,6 @@ export const isBetween = /*#__PURE__*/makeIsBetween({
|
|
|
3900
3867
|
meta: {
|
|
3901
3868
|
_tag: "isBetween",
|
|
3902
3869
|
...options
|
|
3903
|
-
},
|
|
3904
|
-
toArbitraryConstraint: {
|
|
3905
|
-
number: {
|
|
3906
|
-
min: options.minimum,
|
|
3907
|
-
max: options.maximum,
|
|
3908
|
-
...(options.exclusiveMinimum && {
|
|
3909
|
-
minExcluded: true
|
|
3910
|
-
}),
|
|
3911
|
-
...(options.exclusiveMaximum && {
|
|
3912
|
-
maxExcluded: true
|
|
3913
|
-
})
|
|
3914
|
-
}
|
|
3915
3870
|
}
|
|
3916
3871
|
};
|
|
3917
3872
|
}
|
|
@@ -3956,7 +3911,7 @@ export const isMultipleOf = /*#__PURE__*/makeIsMultipleOf({
|
|
|
3956
3911
|
*
|
|
3957
3912
|
* Arbitrary:
|
|
3958
3913
|
*
|
|
3959
|
-
* When generating test data with fast-check, this applies an `
|
|
3914
|
+
* When generating test data with fast-check, this applies an `integer: true`
|
|
3960
3915
|
* constraint to ensure generated numbers are integers.
|
|
3961
3916
|
*
|
|
3962
3917
|
* @category Integer checks
|
|
@@ -3968,9 +3923,9 @@ export function isInt(annotations) {
|
|
|
3968
3923
|
meta: {
|
|
3969
3924
|
_tag: "isInt"
|
|
3970
3925
|
},
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3926
|
+
arbitrary: {
|
|
3927
|
+
constraint: {
|
|
3928
|
+
integer: true
|
|
3974
3929
|
}
|
|
3975
3930
|
},
|
|
3976
3931
|
...annotations
|
|
@@ -4045,7 +4000,7 @@ export function isUint32(annotations) {
|
|
|
4045
4000
|
*
|
|
4046
4001
|
* Arbitrary:
|
|
4047
4002
|
*
|
|
4048
|
-
* When generating test data with fast-check, this applies a `
|
|
4003
|
+
* When generating test data with fast-check, this applies a `valid: true`
|
|
4049
4004
|
* constraint to ensure generated Date objects are valid.
|
|
4050
4005
|
*
|
|
4051
4006
|
* @category Date checks
|
|
@@ -4057,16 +4012,14 @@ export function isDateValid(annotations) {
|
|
|
4057
4012
|
meta: {
|
|
4058
4013
|
_tag: "isDateValid"
|
|
4059
4014
|
},
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4015
|
+
arbitrary: {
|
|
4016
|
+
constraint: {
|
|
4017
|
+
valid: true
|
|
4063
4018
|
}
|
|
4064
4019
|
},
|
|
4065
4020
|
...annotations
|
|
4066
4021
|
});
|
|
4067
4022
|
}
|
|
4068
|
-
const nextDate = date => new globalThis.Date(date.getTime() + 1);
|
|
4069
|
-
const previousDate = date => new globalThis.Date(date.getTime() - 1);
|
|
4070
4023
|
/**
|
|
4071
4024
|
* Validates that a Date is greater than the specified value (exclusive).
|
|
4072
4025
|
*
|
|
@@ -4087,11 +4040,6 @@ export const isGreaterThanDate = /*#__PURE__*/makeIsGreaterThan({
|
|
|
4087
4040
|
meta: {
|
|
4088
4041
|
_tag: "isGreaterThanDate",
|
|
4089
4042
|
exclusiveMinimum
|
|
4090
|
-
},
|
|
4091
|
-
toArbitraryConstraint: {
|
|
4092
|
-
date: {
|
|
4093
|
-
min: nextDate(exclusiveMinimum)
|
|
4094
|
-
}
|
|
4095
4043
|
}
|
|
4096
4044
|
})
|
|
4097
4045
|
});
|
|
@@ -4121,11 +4069,6 @@ export const isGreaterThanOrEqualToDate = /*#__PURE__*/makeIsGreaterThanOrEqualT
|
|
|
4121
4069
|
meta: {
|
|
4122
4070
|
_tag: "isGreaterThanOrEqualToDate",
|
|
4123
4071
|
minimum
|
|
4124
|
-
},
|
|
4125
|
-
toArbitraryConstraint: {
|
|
4126
|
-
date: {
|
|
4127
|
-
min: minimum
|
|
4128
|
-
}
|
|
4129
4072
|
}
|
|
4130
4073
|
})
|
|
4131
4074
|
});
|
|
@@ -4149,11 +4092,6 @@ export const isLessThanDate = /*#__PURE__*/makeIsLessThan({
|
|
|
4149
4092
|
meta: {
|
|
4150
4093
|
_tag: "isLessThanDate",
|
|
4151
4094
|
exclusiveMaximum
|
|
4152
|
-
},
|
|
4153
|
-
toArbitraryConstraint: {
|
|
4154
|
-
date: {
|
|
4155
|
-
max: previousDate(exclusiveMaximum)
|
|
4156
|
-
}
|
|
4157
4095
|
}
|
|
4158
4096
|
})
|
|
4159
4097
|
});
|
|
@@ -4183,11 +4121,6 @@ export const isLessThanOrEqualToDate = /*#__PURE__*/makeIsLessThanOrEqualTo({
|
|
|
4183
4121
|
meta: {
|
|
4184
4122
|
_tag: "isLessThanOrEqualToDate",
|
|
4185
4123
|
maximum
|
|
4186
|
-
},
|
|
4187
|
-
toArbitraryConstraint: {
|
|
4188
|
-
date: {
|
|
4189
|
-
max: maximum
|
|
4190
|
-
}
|
|
4191
4124
|
}
|
|
4192
4125
|
})
|
|
4193
4126
|
});
|
|
@@ -4217,17 +4150,9 @@ export const isBetweenDate = /*#__PURE__*/makeIsBetween({
|
|
|
4217
4150
|
meta: {
|
|
4218
4151
|
_tag: "isBetweenDate",
|
|
4219
4152
|
...options
|
|
4220
|
-
},
|
|
4221
|
-
toArbitraryConstraint: {
|
|
4222
|
-
date: {
|
|
4223
|
-
min: options.exclusiveMinimum ? nextDate(options.minimum) : options.minimum,
|
|
4224
|
-
max: options.exclusiveMaximum ? previousDate(options.maximum) : options.maximum
|
|
4225
|
-
}
|
|
4226
4153
|
}
|
|
4227
4154
|
})
|
|
4228
4155
|
});
|
|
4229
|
-
const nextBigInt = n => n + globalThis.BigInt(1);
|
|
4230
|
-
const previousBigInt = n => n - globalThis.BigInt(1);
|
|
4231
4156
|
/**
|
|
4232
4157
|
* Validates that a BigInt is greater than the specified value (exclusive).
|
|
4233
4158
|
*
|
|
@@ -4248,11 +4173,6 @@ export const isGreaterThanBigInt = /*#__PURE__*/makeIsGreaterThan({
|
|
|
4248
4173
|
meta: {
|
|
4249
4174
|
_tag: "isGreaterThanBigInt",
|
|
4250
4175
|
exclusiveMinimum
|
|
4251
|
-
},
|
|
4252
|
-
toArbitraryConstraint: {
|
|
4253
|
-
bigint: {
|
|
4254
|
-
min: nextBigInt(exclusiveMinimum)
|
|
4255
|
-
}
|
|
4256
4176
|
}
|
|
4257
4177
|
})
|
|
4258
4178
|
});
|
|
@@ -4277,11 +4197,6 @@ export const isGreaterThanOrEqualToBigInt = /*#__PURE__*/makeIsGreaterThanOrEqua
|
|
|
4277
4197
|
meta: {
|
|
4278
4198
|
_tag: "isGreaterThanOrEqualToBigInt",
|
|
4279
4199
|
minimum
|
|
4280
|
-
},
|
|
4281
|
-
toArbitraryConstraint: {
|
|
4282
|
-
bigint: {
|
|
4283
|
-
min: minimum
|
|
4284
|
-
}
|
|
4285
4200
|
}
|
|
4286
4201
|
})
|
|
4287
4202
|
});
|
|
@@ -4305,11 +4220,6 @@ export const isLessThanBigInt = /*#__PURE__*/makeIsLessThan({
|
|
|
4305
4220
|
meta: {
|
|
4306
4221
|
_tag: "isLessThanBigInt",
|
|
4307
4222
|
exclusiveMaximum
|
|
4308
|
-
},
|
|
4309
|
-
toArbitraryConstraint: {
|
|
4310
|
-
bigint: {
|
|
4311
|
-
max: previousBigInt(exclusiveMaximum)
|
|
4312
|
-
}
|
|
4313
4223
|
}
|
|
4314
4224
|
})
|
|
4315
4225
|
});
|
|
@@ -4334,11 +4244,6 @@ export const isLessThanOrEqualToBigInt = /*#__PURE__*/makeIsLessThanOrEqualTo({
|
|
|
4334
4244
|
meta: {
|
|
4335
4245
|
_tag: "isLessThanOrEqualToBigInt",
|
|
4336
4246
|
maximum
|
|
4337
|
-
},
|
|
4338
|
-
toArbitraryConstraint: {
|
|
4339
|
-
bigint: {
|
|
4340
|
-
max: maximum
|
|
4341
|
-
}
|
|
4342
4247
|
}
|
|
4343
4248
|
})
|
|
4344
4249
|
});
|
|
@@ -4363,12 +4268,6 @@ export const isBetweenBigInt = /*#__PURE__*/makeIsBetween({
|
|
|
4363
4268
|
meta: {
|
|
4364
4269
|
_tag: "isBetweenBigInt",
|
|
4365
4270
|
...options
|
|
4366
|
-
},
|
|
4367
|
-
toArbitraryConstraint: {
|
|
4368
|
-
bigint: {
|
|
4369
|
-
min: options.exclusiveMinimum ? nextBigInt(options.minimum) : options.minimum,
|
|
4370
|
-
max: options.exclusiveMaximum ? previousBigInt(options.maximum) : options.maximum
|
|
4371
|
-
}
|
|
4372
4271
|
}
|
|
4373
4272
|
})
|
|
4374
4273
|
});
|
|
@@ -4467,11 +4366,8 @@ export function isMinLength(minLength, annotations) {
|
|
|
4467
4366
|
minLength
|
|
4468
4367
|
},
|
|
4469
4368
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
minLength
|
|
4473
|
-
},
|
|
4474
|
-
array: {
|
|
4369
|
+
arbitrary: {
|
|
4370
|
+
constraint: {
|
|
4475
4371
|
minLength
|
|
4476
4372
|
}
|
|
4477
4373
|
},
|
|
@@ -4529,11 +4425,8 @@ export function isMaxLength(maxLength, annotations) {
|
|
|
4529
4425
|
maxLength
|
|
4530
4426
|
},
|
|
4531
4427
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
maxLength
|
|
4535
|
-
},
|
|
4536
|
-
array: {
|
|
4428
|
+
arbitrary: {
|
|
4429
|
+
constraint: {
|
|
4537
4430
|
maxLength
|
|
4538
4431
|
}
|
|
4539
4432
|
},
|
|
@@ -4571,12 +4464,8 @@ export function isLengthBetween(minimum, maximum, annotations) {
|
|
|
4571
4464
|
maximum
|
|
4572
4465
|
},
|
|
4573
4466
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
minLength: minimum,
|
|
4577
|
-
maxLength: maximum
|
|
4578
|
-
},
|
|
4579
|
-
array: {
|
|
4467
|
+
arbitrary: {
|
|
4468
|
+
constraint: {
|
|
4580
4469
|
minLength: minimum,
|
|
4581
4470
|
maxLength: maximum
|
|
4582
4471
|
}
|
|
@@ -4597,9 +4486,9 @@ export function isLengthBetween(minimum, maximum, annotations) {
|
|
|
4597
4486
|
*
|
|
4598
4487
|
* Arbitrary:
|
|
4599
4488
|
*
|
|
4600
|
-
* When generating test data with fast-check, this applies a
|
|
4601
|
-
* constraint
|
|
4602
|
-
*
|
|
4489
|
+
* When generating test data with fast-check, this applies a node-local
|
|
4490
|
+
* `minLength` constraint. Generators for values with a final `.size`, such as
|
|
4491
|
+
* sets and maps, interpret it as final cardinality.
|
|
4603
4492
|
*
|
|
4604
4493
|
* @category Size checks
|
|
4605
4494
|
* @since 4.0.0
|
|
@@ -4613,8 +4502,8 @@ export function isMinSize(minSize, annotations) {
|
|
|
4613
4502
|
minSize
|
|
4614
4503
|
},
|
|
4615
4504
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4616
|
-
|
|
4617
|
-
|
|
4505
|
+
arbitrary: {
|
|
4506
|
+
constraint: {
|
|
4618
4507
|
minLength: minSize
|
|
4619
4508
|
}
|
|
4620
4509
|
},
|
|
@@ -4634,9 +4523,9 @@ export function isMinSize(minSize, annotations) {
|
|
|
4634
4523
|
*
|
|
4635
4524
|
* Arbitrary:
|
|
4636
4525
|
*
|
|
4637
|
-
* When generating test data with fast-check, this applies a
|
|
4638
|
-
* constraint
|
|
4639
|
-
*
|
|
4526
|
+
* When generating test data with fast-check, this applies a node-local
|
|
4527
|
+
* `maxLength` constraint. Generators for values with a final `.size`, such as
|
|
4528
|
+
* sets and maps, interpret it as final cardinality.
|
|
4640
4529
|
*
|
|
4641
4530
|
* @category Size checks
|
|
4642
4531
|
* @since 4.0.0
|
|
@@ -4650,8 +4539,8 @@ export function isMaxSize(maxSize, annotations) {
|
|
|
4650
4539
|
maxSize
|
|
4651
4540
|
},
|
|
4652
4541
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4653
|
-
|
|
4654
|
-
|
|
4542
|
+
arbitrary: {
|
|
4543
|
+
constraint: {
|
|
4655
4544
|
maxLength: maxSize
|
|
4656
4545
|
}
|
|
4657
4546
|
},
|
|
@@ -4671,9 +4560,9 @@ export function isMaxSize(maxSize, annotations) {
|
|
|
4671
4560
|
*
|
|
4672
4561
|
* Arbitrary:
|
|
4673
4562
|
*
|
|
4674
|
-
* When generating test data with fast-check, this applies
|
|
4675
|
-
* `maxLength` constraints
|
|
4676
|
-
*
|
|
4563
|
+
* When generating test data with fast-check, this applies node-local
|
|
4564
|
+
* `minLength` and `maxLength` constraints. Generators for values with a final
|
|
4565
|
+
* `.size`, such as sets and maps, interpret them as final cardinality.
|
|
4677
4566
|
*
|
|
4678
4567
|
* @category Size checks
|
|
4679
4568
|
* @since 4.0.0
|
|
@@ -4689,8 +4578,8 @@ export function isSizeBetween(minimum, maximum, annotations) {
|
|
|
4689
4578
|
maximum
|
|
4690
4579
|
},
|
|
4691
4580
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4692
|
-
|
|
4693
|
-
|
|
4581
|
+
arbitrary: {
|
|
4582
|
+
constraint: {
|
|
4694
4583
|
minLength: minimum,
|
|
4695
4584
|
maxLength: maximum
|
|
4696
4585
|
}
|
|
@@ -4711,10 +4600,9 @@ export function isSizeBetween(minimum, maximum, annotations) {
|
|
|
4711
4600
|
*
|
|
4712
4601
|
* Arbitrary:
|
|
4713
4602
|
*
|
|
4714
|
-
* When generating test data with fast-check, this applies a
|
|
4715
|
-
* constraint
|
|
4716
|
-
*
|
|
4717
|
-
* of properties.
|
|
4603
|
+
* When generating test data with fast-check, this applies a node-local
|
|
4604
|
+
* `minLength` constraint. Object generators interpret it as the final number
|
|
4605
|
+
* of own properties.
|
|
4718
4606
|
*
|
|
4719
4607
|
* @category Object checks
|
|
4720
4608
|
* @since 4.0.0
|
|
@@ -4728,8 +4616,8 @@ export function isMinProperties(minProperties, annotations) {
|
|
|
4728
4616
|
minProperties
|
|
4729
4617
|
},
|
|
4730
4618
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4731
|
-
|
|
4732
|
-
|
|
4619
|
+
arbitrary: {
|
|
4620
|
+
constraint: {
|
|
4733
4621
|
minLength: minProperties
|
|
4734
4622
|
}
|
|
4735
4623
|
},
|
|
@@ -4748,10 +4636,9 @@ export function isMinProperties(minProperties, annotations) {
|
|
|
4748
4636
|
*
|
|
4749
4637
|
* Arbitrary:
|
|
4750
4638
|
*
|
|
4751
|
-
* When generating test data with fast-check, this applies a
|
|
4752
|
-
* constraint
|
|
4753
|
-
*
|
|
4754
|
-
* of properties.
|
|
4639
|
+
* When generating test data with fast-check, this applies a node-local
|
|
4640
|
+
* `maxLength` constraint. Object generators interpret it as the final number
|
|
4641
|
+
* of own properties.
|
|
4755
4642
|
*
|
|
4756
4643
|
* @category Object checks
|
|
4757
4644
|
* @since 4.0.0
|
|
@@ -4765,8 +4652,8 @@ export function isMaxProperties(maxProperties, annotations) {
|
|
|
4765
4652
|
maxProperties
|
|
4766
4653
|
},
|
|
4767
4654
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4768
|
-
|
|
4769
|
-
|
|
4655
|
+
arbitrary: {
|
|
4656
|
+
constraint: {
|
|
4770
4657
|
maxLength: maxProperties
|
|
4771
4658
|
}
|
|
4772
4659
|
},
|
|
@@ -4786,9 +4673,9 @@ export function isMaxProperties(maxProperties, annotations) {
|
|
|
4786
4673
|
*
|
|
4787
4674
|
* Arbitrary:
|
|
4788
4675
|
*
|
|
4789
|
-
* When generating test data with fast-check, this applies
|
|
4790
|
-
* `maxLength` constraints
|
|
4791
|
-
*
|
|
4676
|
+
* When generating test data with fast-check, this applies node-local
|
|
4677
|
+
* `minLength` and `maxLength` constraints. Object generators interpret them as
|
|
4678
|
+
* the final number of own properties.
|
|
4792
4679
|
*
|
|
4793
4680
|
* @category Object checks
|
|
4794
4681
|
* @since 4.0.0
|
|
@@ -4804,8 +4691,8 @@ export function isPropertiesLengthBetween(minimum, maximum, annotations) {
|
|
|
4804
4691
|
maximum
|
|
4805
4692
|
},
|
|
4806
4693
|
[SchemaAST.STRUCTURAL_ANNOTATION_KEY]: true,
|
|
4807
|
-
|
|
4808
|
-
|
|
4694
|
+
arbitrary: {
|
|
4695
|
+
constraint: {
|
|
4809
4696
|
minLength: minimum,
|
|
4810
4697
|
maxLength: maximum
|
|
4811
4698
|
}
|
|
@@ -4865,8 +4752,9 @@ export function isPropertyNames(keySchema, annotations) {
|
|
|
4865
4752
|
* This check corresponds to the `uniqueItems: true` constraint in JSON Schema.
|
|
4866
4753
|
*
|
|
4867
4754
|
* Arbitrary:
|
|
4868
|
-
* When generating test data with fast-check, this applies a
|
|
4869
|
-
*
|
|
4755
|
+
* When generating test data with fast-check, this applies a node-local
|
|
4756
|
+
* `unique: true` constraint. Array generators translate it to `fast-check`
|
|
4757
|
+
* `uniqueArray` using Effect equality.
|
|
4870
4758
|
*
|
|
4871
4759
|
* @category Array checks
|
|
4872
4760
|
* @since 4.0.0
|
|
@@ -4878,9 +4766,9 @@ export function isUnique(annotations) {
|
|
|
4878
4766
|
meta: {
|
|
4879
4767
|
_tag: "isUnique"
|
|
4880
4768
|
},
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4769
|
+
arbitrary: {
|
|
4770
|
+
constraint: {
|
|
4771
|
+
unique: true
|
|
4884
4772
|
}
|
|
4885
4773
|
},
|
|
4886
4774
|
...annotations
|
|
@@ -4957,10 +4845,9 @@ export function Option(value) {
|
|
|
4957
4845
|
}
|
|
4958
4846
|
})),
|
|
4959
4847
|
toArbitrary: ([value]) => (fc, ctx) => {
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
} : {}, fc.constant(Option_.none()), value.map(Option_.some));
|
|
4848
|
+
const terminal = fc.constant(Option_.none());
|
|
4849
|
+
const arbitrary = fc.oneof(terminal, value.arbitrary.map(Option_.some));
|
|
4850
|
+
return withRecursion(fc, ctx, terminal, arbitrary);
|
|
4964
4851
|
},
|
|
4965
4852
|
toEquivalence: ([value]) => Option_.makeEquivalence(value),
|
|
4966
4853
|
toFormatter: ([value]) => Option_.match({
|
|
@@ -5119,10 +5006,9 @@ export function Result(success, failure) {
|
|
|
5119
5006
|
}
|
|
5120
5007
|
})),
|
|
5121
5008
|
toArbitrary: ([success, failure]) => (fc, ctx) => {
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
} : {}, success.map(Result_.succeed), failure.map(Result_.fail));
|
|
5009
|
+
const terminal = oneOfArbitraries(fc, success.terminal?.map(a => Result_.succeed(a)), failure.terminal?.map(e => Result_.fail(e)));
|
|
5010
|
+
const arbitrary = fc.oneof(success.arbitrary.map(a => Result_.succeed(a)), failure.arbitrary.map(e => Result_.fail(e)));
|
|
5011
|
+
return withRecursion(fc, ctx, terminal, arbitrary);
|
|
5126
5012
|
},
|
|
5127
5013
|
toEquivalence: ([success, failure]) => Result_.makeEquivalence(success, failure),
|
|
5128
5014
|
toFormatter: ([success, failure]) => Result_.match({
|
|
@@ -5190,9 +5076,14 @@ export function Redacted(value, options) {
|
|
|
5190
5076
|
})),
|
|
5191
5077
|
encode: options?.disallowJsonEncode ? SchemaGetter.forbidden(oe => "Cannot serialize Redacted" + (Option_.isSome(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : SchemaGetter.transform(Redacted_.value)
|
|
5192
5078
|
}),
|
|
5193
|
-
toArbitrary: ([value]) => () =>
|
|
5194
|
-
|
|
5195
|
-
|
|
5079
|
+
toArbitrary: ([value]) => () => ({
|
|
5080
|
+
arbitrary: value.arbitrary.map(a => Redacted_.make(a, {
|
|
5081
|
+
label: options?.label
|
|
5082
|
+
})),
|
|
5083
|
+
terminal: value.terminal?.map(a => Redacted_.make(a, {
|
|
5084
|
+
label: options?.label
|
|
5085
|
+
}))
|
|
5086
|
+
}),
|
|
5196
5087
|
toFormatter: () => globalThis.String,
|
|
5197
5088
|
toEquivalence: ([value]) => Redacted_.makeEquivalence(value)
|
|
5198
5089
|
});
|
|
@@ -5311,12 +5202,11 @@ export function CauseReason(error, defect) {
|
|
|
5311
5202
|
}
|
|
5312
5203
|
function causeReasonToArbitrary(error, defect) {
|
|
5313
5204
|
return (fc, ctx) => {
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
depthIdentifier: "Cause.Failure"
|
|
5317
|
-
} : {}, fc.constant(Cause_.makeInterruptReason()), fc.integer({
|
|
5205
|
+
const terminal = fc.constant(Cause_.makeInterruptReason());
|
|
5206
|
+
const arbitrary = fc.oneof(terminal, fc.integer({
|
|
5318
5207
|
min: 1
|
|
5319
|
-
}).map(Cause_.makeInterruptReason), error.map(e => Cause_.makeFailReason(e)), defect.map(d => Cause_.makeDieReason(d)));
|
|
5208
|
+
}).map(Cause_.makeInterruptReason), error.arbitrary.map(e => Cause_.makeFailReason(e)), defect.arbitrary.map(d => Cause_.makeDieReason(d)));
|
|
5209
|
+
return withRecursion(fc, ctx, terminal, arbitrary);
|
|
5320
5210
|
};
|
|
5321
5211
|
}
|
|
5322
5212
|
function causeReasonToEquivalence(error, defect) {
|
|
@@ -5404,7 +5294,10 @@ export function Cause(error, defect) {
|
|
|
5404
5294
|
}
|
|
5405
5295
|
function causeToArbitrary(error, defect) {
|
|
5406
5296
|
return (fc, ctx) => {
|
|
5407
|
-
|
|
5297
|
+
const reason = causeReasonToArbitrary(error, defect)(fc, ctx);
|
|
5298
|
+
const terminal = fc.constant(Cause_.empty);
|
|
5299
|
+
const arbitrary = fc.array(reason.arbitrary).map(Cause_.fromReasons);
|
|
5300
|
+
return withRecursion(fc, ctx, terminal, arbitrary);
|
|
5408
5301
|
};
|
|
5409
5302
|
}
|
|
5410
5303
|
function causeToEquivalence(error, defect) {
|
|
@@ -5586,10 +5479,12 @@ export function Exit(value, error, defect) {
|
|
|
5586
5479
|
cause: exit.cause
|
|
5587
5480
|
}
|
|
5588
5481
|
})),
|
|
5589
|
-
toArbitrary: ([value, error, defect]) => (fc, ctx) =>
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5482
|
+
toArbitrary: ([value, error, defect]) => (fc, ctx) => {
|
|
5483
|
+
const cause = causeToArbitrary(error, defect)(fc, ctx);
|
|
5484
|
+
const terminal = oneOfArbitraries(fc, value.terminal?.map(v => Exit_.succeed(v)), cause.terminal?.map(cause => Exit_.failCause(cause)));
|
|
5485
|
+
const arbitrary = fc.oneof(value.arbitrary.map(v => Exit_.succeed(v)), cause.arbitrary.map(cause => Exit_.failCause(cause)));
|
|
5486
|
+
return withRecursion(fc, ctx, terminal, arbitrary);
|
|
5487
|
+
},
|
|
5593
5488
|
toEquivalence: ([value, error, defect]) => {
|
|
5594
5489
|
const cause = causeToEquivalence(error, defect);
|
|
5595
5490
|
return (a, b) => {
|
|
@@ -5620,6 +5515,48 @@ export function Exit(value, error, defect) {
|
|
|
5620
5515
|
defect
|
|
5621
5516
|
});
|
|
5622
5517
|
}
|
|
5518
|
+
function oneOfArbitraries(fc, a, b) {
|
|
5519
|
+
return a === undefined ? b : b === undefined ? a : fc.oneof(a, b);
|
|
5520
|
+
}
|
|
5521
|
+
function withRecursion(fc, ctx, terminal, arbitrary) {
|
|
5522
|
+
return {
|
|
5523
|
+
arbitrary: terminal === undefined || ctx.recursion === undefined ? arbitrary : fc.oneof(ctx.recursion, terminal, arbitrary),
|
|
5524
|
+
terminal
|
|
5525
|
+
};
|
|
5526
|
+
}
|
|
5527
|
+
function arrayFromItems(fc, item, constraints, comparator) {
|
|
5528
|
+
return comparator === undefined ? fc.array(item, constraints) : fc.uniqueArray(item, {
|
|
5529
|
+
...constraints,
|
|
5530
|
+
comparator
|
|
5531
|
+
});
|
|
5532
|
+
}
|
|
5533
|
+
function collectionArbitrary(fc, ctx, item, terminalItem, fromIterable, comparator) {
|
|
5534
|
+
const constraint = ctx.constraint;
|
|
5535
|
+
const constraints = constraint === undefined || constraint.minLength === undefined && constraint.maxLength === undefined ? undefined : {
|
|
5536
|
+
...(constraint.minLength !== undefined ? {
|
|
5537
|
+
minLength: constraint.minLength
|
|
5538
|
+
} : {}),
|
|
5539
|
+
...(constraint.maxLength !== undefined ? {
|
|
5540
|
+
maxLength: constraint.maxLength
|
|
5541
|
+
} : {})
|
|
5542
|
+
};
|
|
5543
|
+
if (constraints?.minLength !== undefined && constraints.maxLength !== undefined && constraints.minLength > constraints.maxLength) {
|
|
5544
|
+
throw new globalThis.Error("Unable to derive an arbitrary for size constraints");
|
|
5545
|
+
}
|
|
5546
|
+
const minLength = constraints?.minLength ?? 0;
|
|
5547
|
+
const terminal = minLength === 0 ? fc.constant([]) : terminalItem === undefined ? undefined : arrayFromItems(fc, terminalItem, {
|
|
5548
|
+
...constraints,
|
|
5549
|
+
maxLength: minLength
|
|
5550
|
+
}, comparator);
|
|
5551
|
+
const arrays = withRecursion(fc, ctx, terminal, arrayFromItems(fc, item, constraints, comparator));
|
|
5552
|
+
return {
|
|
5553
|
+
arbitrary: arrays.arbitrary.map(fromIterable),
|
|
5554
|
+
terminal: arrays.terminal?.map(fromIterable)
|
|
5555
|
+
};
|
|
5556
|
+
}
|
|
5557
|
+
function entriesArbitrary(fc, ctx, key, value, fromIterable) {
|
|
5558
|
+
return collectionArbitrary(fc, ctx, fc.tuple(key.arbitrary, value.arbitrary), key.terminal === undefined || value.terminal === undefined ? undefined : fc.tuple(key.terminal, value.terminal), fromIterable, ([a], [b]) => Equal.equals(a, b));
|
|
5559
|
+
}
|
|
5623
5560
|
/**
|
|
5624
5561
|
* Schema for readonly maps whose keys and values conform to the provided
|
|
5625
5562
|
* schemas.
|
|
@@ -5652,12 +5589,7 @@ export function ReadonlyMap(key, value) {
|
|
|
5652
5589
|
decode: e => new globalThis.Map(e),
|
|
5653
5590
|
encode: map => [...map.entries()]
|
|
5654
5591
|
})),
|
|
5655
|
-
toArbitrary: ([key, value]) => (fc, ctx) =>
|
|
5656
|
-
return fc.oneof(ctx?.isSuspend ? {
|
|
5657
|
-
maxDepth: 2,
|
|
5658
|
-
depthIdentifier: "ReadonlyMap"
|
|
5659
|
-
} : {}, fc.constant([]), fc.array(fc.tuple(key, value), ctx?.constraints?.array)).map(as => new globalThis.Map(as));
|
|
5660
|
-
},
|
|
5592
|
+
toArbitrary: ([key, value]) => (fc, ctx) => entriesArbitrary(fc, ctx, key, value, as => new globalThis.Map(as)),
|
|
5661
5593
|
toEquivalence: ([key, value]) => Equal.makeCompareMap(key, value),
|
|
5662
5594
|
toFormatter: ([key, value]) => t => {
|
|
5663
5595
|
const size = t.size;
|
|
@@ -5705,12 +5637,7 @@ export function HashMap(key, value) {
|
|
|
5705
5637
|
decode: HashMap_.fromIterable,
|
|
5706
5638
|
encode: HashMap_.toEntries
|
|
5707
5639
|
})),
|
|
5708
|
-
toArbitrary: ([key, value]) => (fc, ctx) =>
|
|
5709
|
-
return fc.oneof(ctx?.isSuspend ? {
|
|
5710
|
-
maxDepth: 2,
|
|
5711
|
-
depthIdentifier: "HashMap"
|
|
5712
|
-
} : {}, fc.constant([]), fc.array(fc.tuple(key, value), ctx?.constraints?.array)).map(HashMap_.fromIterable);
|
|
5713
|
-
},
|
|
5640
|
+
toArbitrary: ([key, value]) => (fc, ctx) => entriesArbitrary(fc, ctx, key, value, HashMap_.fromIterable),
|
|
5714
5641
|
toEquivalence: ([key, value]) => Equal.makeCompareMap(key, value),
|
|
5715
5642
|
toFormatter: ([key, value]) => t => {
|
|
5716
5643
|
const size = HashMap_.size(t);
|
|
@@ -5757,12 +5684,7 @@ export function ReadonlySet(value) {
|
|
|
5757
5684
|
decode: e => new globalThis.Set(e),
|
|
5758
5685
|
encode: set => [...set.values()]
|
|
5759
5686
|
})),
|
|
5760
|
-
toArbitrary: ([value]) => (fc, ctx) =>
|
|
5761
|
-
return fc.oneof(ctx?.isSuspend ? {
|
|
5762
|
-
maxDepth: 2,
|
|
5763
|
-
depthIdentifier: "ReadonlySet"
|
|
5764
|
-
} : {}, fc.constant([]), fc.array(value, ctx?.constraints?.array)).map(as => new globalThis.Set(as));
|
|
5765
|
-
},
|
|
5687
|
+
toArbitrary: ([value]) => (fc, ctx) => collectionArbitrary(fc, ctx, value.arbitrary, value.terminal, as => new globalThis.Set(as), Equal.equals),
|
|
5766
5688
|
toEquivalence: ([value]) => Equal.makeCompareSet(value),
|
|
5767
5689
|
toFormatter: ([value]) => t => {
|
|
5768
5690
|
const size = t.size;
|
|
@@ -5808,12 +5730,7 @@ export function HashSet(value) {
|
|
|
5808
5730
|
decode: HashSet_.fromIterable,
|
|
5809
5731
|
encode: Arr.fromIterable
|
|
5810
5732
|
})),
|
|
5811
|
-
toArbitrary: ([value]) => (fc, ctx) =>
|
|
5812
|
-
return fc.oneof(ctx?.isSuspend ? {
|
|
5813
|
-
maxDepth: 2,
|
|
5814
|
-
depthIdentifier: "HashSet"
|
|
5815
|
-
} : {}, fc.constant([]), fc.array(value, ctx?.constraints?.array)).map(HashSet_.fromIterable);
|
|
5816
|
-
},
|
|
5733
|
+
toArbitrary: ([value]) => (fc, ctx) => collectionArbitrary(fc, ctx, value.arbitrary, value.terminal, HashSet_.fromIterable, Equal.equals),
|
|
5817
5734
|
toEquivalence: ([value]) => Equal.makeCompareSet(value),
|
|
5818
5735
|
toFormatter: ([value]) => t => {
|
|
5819
5736
|
const size = HashSet_.size(t);
|
|
@@ -5859,12 +5776,7 @@ export function Chunk(value) {
|
|
|
5859
5776
|
decode: Chunk_.fromIterable,
|
|
5860
5777
|
encode: Arr.fromIterable
|
|
5861
5778
|
})),
|
|
5862
|
-
toArbitrary: ([value]) => (fc, ctx) =>
|
|
5863
|
-
return fc.oneof(ctx?.isSuspend ? {
|
|
5864
|
-
maxDepth: 2,
|
|
5865
|
-
depthIdentifier: "Chunk"
|
|
5866
|
-
} : {}, fc.constant([]), fc.array(value, ctx?.constraints?.array)).map(Chunk_.fromIterable);
|
|
5867
|
-
},
|
|
5779
|
+
toArbitrary: ([value]) => (fc, ctx) => collectionArbitrary(fc, ctx, value.arbitrary, value.terminal, Chunk_.fromIterable),
|
|
5868
5780
|
toEquivalence: ([value]) => Chunk_.makeEquivalence(value),
|
|
5869
5781
|
toFormatter: ([value]) => t => {
|
|
5870
5782
|
const size = Chunk_.size(t);
|
|
@@ -5963,6 +5875,30 @@ export const URL = /*#__PURE__*/instanceOf(globalThis.URL, {
|
|
|
5963
5875
|
* @since 4.0.0
|
|
5964
5876
|
*/
|
|
5965
5877
|
export const URLFromString = /*#__PURE__*/URLString.pipe(/*#__PURE__*/decodeTo(URL, SchemaTransformation.urlFromString));
|
|
5878
|
+
function dateArbitraryConstraints(constraint, ordered, base, toDate) {
|
|
5879
|
+
const out = {
|
|
5880
|
+
...base
|
|
5881
|
+
};
|
|
5882
|
+
delete out.valid;
|
|
5883
|
+
if (base?.valid || constraint?.valid) {
|
|
5884
|
+
out.noInvalidDate = true;
|
|
5885
|
+
}
|
|
5886
|
+
if (ordered?.minimum !== undefined) {
|
|
5887
|
+
const minimum = toDate === undefined ? ordered.minimum : toDate(ordered.minimum);
|
|
5888
|
+
const nextMin = ordered.exclusiveMinimum ? new globalThis.Date(minimum.getTime() + 1) : minimum;
|
|
5889
|
+
if (out.min === undefined || nextMin.getTime() > out.min.getTime()) {
|
|
5890
|
+
out.min = nextMin;
|
|
5891
|
+
}
|
|
5892
|
+
}
|
|
5893
|
+
if (ordered?.maximum !== undefined) {
|
|
5894
|
+
const maximum = toDate === undefined ? ordered.maximum : toDate(ordered.maximum);
|
|
5895
|
+
const nextMax = ordered.exclusiveMaximum ? new globalThis.Date(maximum.getTime() - 1) : maximum;
|
|
5896
|
+
if (out.max === undefined || nextMax.getTime() < out.max.getTime()) {
|
|
5897
|
+
out.max = nextMax;
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5900
|
+
return out;
|
|
5901
|
+
}
|
|
5966
5902
|
const DateString = /*#__PURE__*/String.annotate({
|
|
5967
5903
|
expected: "a string in ISO 8601 format that will be decoded as a Date"
|
|
5968
5904
|
});
|
|
@@ -6004,7 +5940,7 @@ export const Date = /*#__PURE__*/instanceOf(globalThis.Date, {
|
|
|
6004
5940
|
},
|
|
6005
5941
|
expected: "Date",
|
|
6006
5942
|
toCodecJson: () => link()(DateString, SchemaTransformation.dateFromString),
|
|
6007
|
-
toArbitrary: () => (fc, ctx) => fc.date(ctx?.
|
|
5943
|
+
toArbitrary: () => (fc, ctx) => fc.date(dateArbitraryConstraints(ctx?.constraint, ctx?.constraint?.ordered?.order === Order.Date ? ctx.constraint.ordered : undefined))
|
|
6008
5944
|
});
|
|
6009
5945
|
/**
|
|
6010
5946
|
* Schema that decodes a string into a JavaScript `Date`.
|
|
@@ -6187,6 +6123,53 @@ export const DurationFromMillis = /*#__PURE__*/Number.check(isGreaterThanOrEqual
|
|
|
6187
6123
|
const BigDecimalString = /*#__PURE__*/String.annotate({
|
|
6188
6124
|
expected: "a string that will be decoded as a BigDecimal"
|
|
6189
6125
|
});
|
|
6126
|
+
const bigDecimalDefaultMaxScale = 20;
|
|
6127
|
+
const bigDecimalInvalidOrderedConstraintsError = "Unable to derive an arbitrary for the ordered BigDecimal constraints";
|
|
6128
|
+
function bigDecimalScaleValueAtScale(bd, scale) {
|
|
6129
|
+
return BigDecimal_.scale(bd, scale).value;
|
|
6130
|
+
}
|
|
6131
|
+
function bigDecimalMinValueAtScale(minimum, scale, excluded) {
|
|
6132
|
+
return excluded ? bigDecimalScaleValueAtScale(BigDecimal_.floor(minimum, scale), scale) + globalThis.BigInt(1) : bigDecimalScaleValueAtScale(BigDecimal_.ceil(minimum, scale), scale);
|
|
6133
|
+
}
|
|
6134
|
+
function bigDecimalMaxValueAtScale(maximum, scale, excluded) {
|
|
6135
|
+
return excluded ? bigDecimalScaleValueAtScale(BigDecimal_.ceil(maximum, scale), scale) - globalThis.BigInt(1) : bigDecimalScaleValueAtScale(BigDecimal_.floor(maximum, scale), scale);
|
|
6136
|
+
}
|
|
6137
|
+
function bigDecimalMaxScale(ordered) {
|
|
6138
|
+
return Math.max(bigDecimalDefaultMaxScale, ordered.minimum?.scale ?? 0, ordered.maximum?.scale ?? 0, ordered.exclusiveMinimum && ordered.minimum !== undefined ? ordered.minimum.scale + 1 : 0, ordered.exclusiveMaximum && ordered.maximum !== undefined ? ordered.maximum.scale + 1 : 0);
|
|
6139
|
+
}
|
|
6140
|
+
function bigDecimalValueConstraintsAtScale(ordered, scale) {
|
|
6141
|
+
const constraints = {};
|
|
6142
|
+
if (ordered.minimum !== undefined) {
|
|
6143
|
+
constraints.min = bigDecimalMinValueAtScale(ordered.minimum, scale, ordered.exclusiveMinimum === true);
|
|
6144
|
+
}
|
|
6145
|
+
if (ordered.maximum !== undefined) {
|
|
6146
|
+
constraints.max = bigDecimalMaxValueAtScale(ordered.maximum, scale, ordered.exclusiveMaximum === true);
|
|
6147
|
+
}
|
|
6148
|
+
if (constraints.min !== undefined && constraints.max !== undefined && constraints.min > constraints.max) {
|
|
6149
|
+
return undefined;
|
|
6150
|
+
}
|
|
6151
|
+
return constraints;
|
|
6152
|
+
}
|
|
6153
|
+
function bigDecimalScaleConstraints(ordered) {
|
|
6154
|
+
const max = bigDecimalMaxScale(ordered);
|
|
6155
|
+
if (bigDecimalValueConstraintsAtScale(ordered, max) === undefined) {
|
|
6156
|
+
throw new globalThis.Error(bigDecimalInvalidOrderedConstraintsError);
|
|
6157
|
+
}
|
|
6158
|
+
let min = 0;
|
|
6159
|
+
let high = max;
|
|
6160
|
+
while (min < high) {
|
|
6161
|
+
const scale = min + Math.floor((high - min) / 2);
|
|
6162
|
+
if (bigDecimalValueConstraintsAtScale(ordered, scale) === undefined) {
|
|
6163
|
+
min = scale + 1;
|
|
6164
|
+
} else {
|
|
6165
|
+
high = scale;
|
|
6166
|
+
}
|
|
6167
|
+
}
|
|
6168
|
+
return {
|
|
6169
|
+
min,
|
|
6170
|
+
max
|
|
6171
|
+
};
|
|
6172
|
+
}
|
|
6190
6173
|
/**
|
|
6191
6174
|
* Schema for `BigDecimal` values.
|
|
6192
6175
|
*
|
|
@@ -6217,10 +6200,22 @@ export const BigDecimal = /*#__PURE__*/declare(BigDecimal_.isBigDecimal, {
|
|
|
6217
6200
|
},
|
|
6218
6201
|
expected: "BigDecimal",
|
|
6219
6202
|
toCodecJson: () => link()(BigDecimalString, SchemaTransformation.bigDecimalFromString),
|
|
6220
|
-
toArbitrary: () => fc =>
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6203
|
+
toArbitrary: () => (fc, ctx) => {
|
|
6204
|
+
const ordered = ctx.constraint?.ordered?.order === BigDecimal_.Order ? ctx.constraint.ordered : undefined;
|
|
6205
|
+
if (ordered === undefined) {
|
|
6206
|
+
return fc.tuple(fc.bigInt(), fc.integer({
|
|
6207
|
+
min: 0,
|
|
6208
|
+
max: bigDecimalDefaultMaxScale
|
|
6209
|
+
})).map(([value, scale]) => BigDecimal_.make(value, scale));
|
|
6210
|
+
}
|
|
6211
|
+
return fc.integer(bigDecimalScaleConstraints(ordered)).chain(scale => {
|
|
6212
|
+
const constraints = bigDecimalValueConstraintsAtScale(ordered, scale);
|
|
6213
|
+
if (constraints === undefined) {
|
|
6214
|
+
throw new globalThis.Error(bigDecimalInvalidOrderedConstraintsError);
|
|
6215
|
+
}
|
|
6216
|
+
return fc.bigInt(constraints).map(value => BigDecimal_.make(value, scale));
|
|
6217
|
+
});
|
|
6218
|
+
},
|
|
6224
6219
|
toFormatter: () => bd => BigDecimal_.format(bd),
|
|
6225
6220
|
toEquivalence: () => BigDecimal_.Equivalence
|
|
6226
6221
|
});
|
|
@@ -7017,10 +7012,9 @@ export const DateTimeUtc = /*#__PURE__*/declare(u => DateTime.isDateTime(u) && D
|
|
|
7017
7012
|
},
|
|
7018
7013
|
expected: "DateTime.Utc",
|
|
7019
7014
|
toCodecJson: () => link()(String, SchemaTransformation.dateTimeUtcFromString),
|
|
7020
|
-
toArbitrary: () => (fc, ctx) => fc.date({
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
}).map(date => DateTime.fromDateUnsafe(date)),
|
|
7015
|
+
toArbitrary: () => (fc, ctx) => fc.date(dateArbitraryConstraints(ctx?.constraint, ctx?.constraint?.ordered?.order === DateTime.Order ? ctx.constraint.ordered : undefined, {
|
|
7016
|
+
valid: true
|
|
7017
|
+
}, DateTime.toDateUtc)).map(date => DateTime.fromDateUnsafe(date)),
|
|
7024
7018
|
toFormatter: () => utc => utc.toString(),
|
|
7025
7019
|
toEquivalence: () => DateTime.Equivalence
|
|
7026
7020
|
});
|
|
@@ -7243,12 +7237,11 @@ export const DateTimeZoned = /*#__PURE__*/declare(u => DateTime.isDateTime(u) &&
|
|
|
7243
7237
|
},
|
|
7244
7238
|
expected: "DateTime.Zoned",
|
|
7245
7239
|
toCodecJson: () => link()(DateTimeZonedString, SchemaTransformation.dateTimeZonedFromString),
|
|
7246
|
-
toArbitrary: () => (fc, ctx) => fc.tuple(fc.date({
|
|
7247
|
-
noInvalidDate: true,
|
|
7248
|
-
min: new globalThis.Date(-8640000000000000 + 14 * 60 * 60 * 1000),
|
|
7240
|
+
toArbitrary: () => (fc, ctx) => fc.tuple(fc.date(dateArbitraryConstraints(ctx?.constraint, ctx?.constraint?.ordered?.order === DateTime.Order ? ctx.constraint.ordered : undefined, {
|
|
7249
7241
|
max: new globalThis.Date(8640000000000000 - 14 * 60 * 60 * 1000),
|
|
7250
|
-
|
|
7251
|
-
|
|
7242
|
+
min: new globalThis.Date(-8640000000000000 + 14 * 60 * 60 * 1000),
|
|
7243
|
+
valid: true
|
|
7244
|
+
}, DateTime.toDateUtc)), fc.constantFrom("UTC", "Europe/London", "America/New_York", "Asia/Tokyo", "Australia/Sydney")).map(([date, zone]) => DateTime.makeZonedUnsafe(date, {
|
|
7252
7245
|
timeZone: zone
|
|
7253
7246
|
})),
|
|
7254
7247
|
toFormatter: () => zoned => DateTime.formatIsoZoned(zoned),
|
|
@@ -7356,7 +7349,10 @@ function getClassSchemaFactory(from, identifier, annotations) {
|
|
|
7356
7349
|
identifier,
|
|
7357
7350
|
[SchemaAST.ClassTypeId]: ([from]) => new SchemaAST.Link(from, transformation),
|
|
7358
7351
|
toCodec: ([from]) => new SchemaAST.Link(from.ast, transformation),
|
|
7359
|
-
toArbitrary: ([from]) => () =>
|
|
7352
|
+
toArbitrary: ([from]) => () => ({
|
|
7353
|
+
arbitrary: from.arbitrary.map(args => new self(args)),
|
|
7354
|
+
terminal: from.terminal?.map(args => new self(args))
|
|
7355
|
+
}),
|
|
7360
7356
|
toFormatter: ([from]) => t => `${self.identifier}(${from(t)})`,
|
|
7361
7357
|
"~sentinels": SchemaAST.collectSentinels(from.ast),
|
|
7362
7358
|
...annotations
|
|
@@ -7552,7 +7548,10 @@ export const TaggedErrorClass = identifier => {
|
|
|
7552
7548
|
*
|
|
7553
7549
|
* **Details**
|
|
7554
7550
|
*
|
|
7555
|
-
* Prefer {@link toArbitrary} when you
|
|
7551
|
+
* Prefer {@link toArbitrary} when you need the arbitrary directly, or when you
|
|
7552
|
+
* want derivation diagnostics via `{ report: true }`. Unsupported schema
|
|
7553
|
+
* nodes, impossible constraints, invalid candidates, and recursive schemas
|
|
7554
|
+
* without a finite terminal path fail immediately.
|
|
7556
7555
|
*
|
|
7557
7556
|
* @category Arbitrary
|
|
7558
7557
|
* @since 4.0.0
|
|
@@ -7561,29 +7560,16 @@ export function toArbitraryLazy(schema) {
|
|
|
7561
7560
|
const lawc = InternalArbitrary.memoized(schema.ast);
|
|
7562
7561
|
return fc => lawc(fc, {});
|
|
7563
7562
|
}
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
* const PersonArb = Schema.toArbitrary(
|
|
7575
|
-
* Schema.Struct({ name: Schema.String, age: Schema.Number })
|
|
7576
|
-
* )
|
|
7577
|
-
*
|
|
7578
|
-
* // Sample a random value
|
|
7579
|
-
* const sample = FastCheck.sample(PersonArb, 1)[0]
|
|
7580
|
-
* console.log(typeof sample.name) // "string"
|
|
7581
|
-
* ```
|
|
7582
|
-
*
|
|
7583
|
-
* @category Arbitrary
|
|
7584
|
-
* @since 4.0.0
|
|
7585
|
-
*/
|
|
7586
|
-
export function toArbitrary(schema) {
|
|
7563
|
+
export function toArbitrary(schema, options) {
|
|
7564
|
+
if (options?.report === true) {
|
|
7565
|
+
const lawc = InternalArbitrary.memoized(schema.ast);
|
|
7566
|
+
const report = InternalArbitrary.makeReport();
|
|
7567
|
+
InternalArbitrary.collectReport(schema.ast, report);
|
|
7568
|
+
return {
|
|
7569
|
+
value: lawc(FastCheck, {}),
|
|
7570
|
+
report: InternalArbitrary.toReport(report)
|
|
7571
|
+
};
|
|
7572
|
+
}
|
|
7587
7573
|
return toArbitraryLazy(schema)(FastCheck);
|
|
7588
7574
|
}
|
|
7589
7575
|
// -----------------------------------------------------------------------------
|
|
@@ -7884,7 +7870,7 @@ function toCodecJsonBase(ast, recur) {
|
|
|
7884
7870
|
{
|
|
7885
7871
|
const sortedTypes = InternalSchema.jsonReorder(ast.types);
|
|
7886
7872
|
if (sortedTypes !== ast.types) {
|
|
7887
|
-
return new SchemaAST.Union(sortedTypes, ast.mode, ast.annotations, ast.checks, ast.encoding, ast.context).recur(recur);
|
|
7873
|
+
return new SchemaAST.Union(sortedTypes, ast.mode, ast.annotations, ast.checks, ast.encoding, ast.context, ast.encodingChecks).recur(recur);
|
|
7888
7874
|
}
|
|
7889
7875
|
return ast.recur(recur);
|
|
7890
7876
|
}
|
|
@@ -8095,7 +8081,7 @@ function serializerTree(ast, recur, onMissingAnnotation) {
|
|
|
8095
8081
|
{
|
|
8096
8082
|
const sortedTypes = treeReorder(ast.types);
|
|
8097
8083
|
if (sortedTypes !== ast.types) {
|
|
8098
|
-
return new SchemaAST.Union(sortedTypes, ast.mode, ast.annotations, ast.checks, ast.encoding, ast.context).recur(recur);
|
|
8084
|
+
return new SchemaAST.Union(sortedTypes, ast.mode, ast.annotations, ast.checks, ast.encoding, ast.context, ast.encodingChecks).recur(recur);
|
|
8099
8085
|
}
|
|
8100
8086
|
return ast.recur(recur);
|
|
8101
8087
|
}
|