effect 4.0.0-beta.72 → 4.0.0-beta.74
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 +16 -16
- package/dist/Array.js +4 -4
- package/dist/Boolean.d.ts +2 -2
- package/dist/Boolean.js +2 -2
- package/dist/Channel.d.ts +63 -63
- package/dist/Channel.js +25 -25
- package/dist/Chunk.d.ts +17 -17
- package/dist/Chunk.js +5 -5
- package/dist/Context.d.ts +3 -3
- package/dist/Context.js +1 -1
- package/dist/Cron.d.ts +4 -4
- package/dist/Cron.js +4 -4
- package/dist/Deferred.d.ts +37 -37
- package/dist/Deferred.js +13 -13
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.js +2 -2
- package/dist/Effect.d.ts +58 -58
- package/dist/Effect.js +39 -39
- package/dist/Equal.d.ts +2 -2
- package/dist/Equal.js +2 -2
- package/dist/Equivalence.d.ts +1 -1
- package/dist/Equivalence.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Function.d.ts +5 -5
- package/dist/Function.js +5 -5
- package/dist/Graph.d.ts +11 -11
- package/dist/Graph.js +5 -5
- package/dist/HKT.d.ts +1 -1
- package/dist/HashMap.d.ts +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +15 -15
- package/dist/Iterable.js +5 -5
- package/dist/Layer.d.ts +16 -16
- package/dist/Layer.js +5 -5
- package/dist/Logger.d.ts +5 -5
- package/dist/Logger.js +4 -4
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +20 -20
- package/dist/Match.js +16 -16
- package/dist/Metric.d.ts +16 -16
- package/dist/Metric.js +3 -3
- package/dist/Option.d.ts +36 -36
- package/dist/Option.js +17 -17
- package/dist/Order.d.ts +1 -1
- package/dist/Order.js +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.js +1 -1
- package/dist/Pipeable.d.ts +1 -1
- package/dist/Pipeable.js +1 -1
- package/dist/Predicate.d.ts +5 -5
- package/dist/PubSub.d.ts +9 -9
- package/dist/PubSub.js +5 -5
- package/dist/Queue.d.ts +24 -24
- package/dist/Queue.js +20 -20
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redacted.d.ts +2 -2
- package/dist/Redacted.js +1 -1
- package/dist/Ref.d.ts +6 -6
- package/dist/Ref.js +6 -6
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +4 -4
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +18 -18
- package/dist/Result.js +11 -11
- package/dist/Schedule.d.ts +44 -44
- package/dist/Schedule.js +18 -18
- package/dist/Schema.d.ts +177 -459
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +25 -25
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +1 -1
- package/dist/SchemaGetter.d.ts +13 -13
- package/dist/SchemaGetter.js +12 -12
- package/dist/SchemaParser.d.ts +3 -3
- package/dist/SchemaParser.js +3 -3
- package/dist/Scope.d.ts +1 -1
- package/dist/Scope.js +1 -1
- package/dist/Sink.d.ts +5 -5
- package/dist/Sink.js +3 -3
- package/dist/Stream.d.ts +55 -55
- package/dist/Stream.js +21 -21
- package/dist/String.d.ts +5 -5
- package/dist/String.js +3 -3
- package/dist/Struct.d.ts +8 -8
- package/dist/Struct.js +3 -3
- package/dist/SynchronizedRef.d.ts +57 -57
- package/dist/SynchronizedRef.js +19 -19
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +5 -5
- package/dist/Tracer.js +2 -2
- package/dist/Tuple.d.ts +14 -14
- package/dist/Tuple.js +6 -6
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/Unify.d.ts +7 -7
- package/dist/Unify.js +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/unstable/ai/Chat.d.ts +2 -2
- package/dist/unstable/ai/Chat.js +2 -2
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +2 -2
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -4
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/Prompt.d.ts +15 -15
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +2 -2
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +6 -6
- package/dist/unstable/ai/Tool.js +6 -6
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +1 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +5 -3
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/Runners.js +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +5 -5
- package/dist/unstable/cluster/Snowflake.js +5 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +4 -4
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +2 -3
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -2
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +16 -16
- package/src/Boolean.ts +2 -2
- package/src/Channel.ts +67 -67
- package/src/Chunk.ts +18 -18
- package/src/Context.ts +4 -4
- package/src/Cron.ts +4 -4
- package/src/Deferred.ts +37 -37
- package/src/Duration.ts +6 -6
- package/src/Effect.ts +58 -58
- package/src/Equal.ts +2 -2
- package/src/Equivalence.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/FileSystem.ts +6 -6
- package/src/Function.ts +5 -5
- package/src/Graph.ts +11 -11
- package/src/HKT.ts +1 -1
- package/src/HashMap.ts +3 -3
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +15 -15
- package/src/Layer.ts +16 -16
- package/src/Logger.ts +7 -7
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +20 -20
- package/src/Metric.ts +20 -20
- package/src/Option.ts +36 -36
- package/src/Order.ts +1 -1
- package/src/Path.ts +1 -1
- package/src/Pipeable.ts +1 -1
- package/src/Predicate.ts +5 -5
- package/src/PubSub.ts +9 -9
- package/src/Queue.ts +24 -24
- package/src/Record.ts +15 -15
- package/src/Redacted.ts +2 -2
- package/src/Ref.ts +18 -18
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +4 -4
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +1 -1
- package/src/Result.ts +18 -18
- package/src/Schedule.ts +45 -45
- package/src/Schema.ts +177 -459
- package/src/SchemaAST.ts +1 -1
- package/src/SchemaGetter.ts +13 -13
- package/src/SchemaParser.ts +3 -3
- package/src/Scope.ts +1 -1
- package/src/Sink.ts +5 -5
- package/src/Stream.ts +57 -57
- package/src/String.ts +5 -5
- package/src/Struct.ts +8 -8
- package/src/SynchronizedRef.ts +57 -57
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +5 -5
- package/src/Tuple.ts +14 -14
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/Unify.ts +7 -7
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/unstable/ai/Chat.ts +2 -2
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/IdGenerator.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +4 -4
- package/src/unstable/ai/Prompt.ts +15 -15
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +6 -6
- package/src/unstable/cli/Command.ts +5 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Primitive.ts +3 -3
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/EntityResource.ts +8 -4
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +5 -5
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +1 -1
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
- package/src/unstable/http/Cookies.ts +1 -1
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/HttpClient.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/httpapi/HttpApi.ts +1 -1
- package/src/unstable/httpapi/HttpApiBuilder.ts +2 -3
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
- package/src/unstable/httpapi/OpenApi.ts +2 -2
- package/src/unstable/observability/PrometheusMetrics.ts +4 -4
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +3 -3
- package/src/unstable/schema/Model.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/SchemaAST.d.ts
CHANGED
|
@@ -434,7 +434,7 @@ export type Encoding = readonly [Link, ...Array<Link>];
|
|
|
434
434
|
* - `concurrency` — maximum number of async parse effects to run concurrently;
|
|
435
435
|
* defaults to `1`, or use `"unbounded"`.
|
|
436
436
|
*
|
|
437
|
-
* @category
|
|
437
|
+
* @category options
|
|
438
438
|
* @since 3.10.0
|
|
439
439
|
*/
|
|
440
440
|
export interface ParseOptions {
|
package/dist/SchemaGetter.d.ts
CHANGED
|
@@ -907,7 +907,7 @@ type ParseJsonOptions = {
|
|
|
907
907
|
*
|
|
908
908
|
* @see {@link stringifyJson} for the inverse operation
|
|
909
909
|
*
|
|
910
|
-
* @category
|
|
910
|
+
* @category JSON getters
|
|
911
911
|
* @since 4.0.0
|
|
912
912
|
*/
|
|
913
913
|
export declare function parseJson<E extends string>(): Getter<Schema.MutableJson, E>;
|
|
@@ -945,7 +945,7 @@ type StringifyJsonOptions = {
|
|
|
945
945
|
*
|
|
946
946
|
* @see {@link parseJson} for the inverse operation
|
|
947
947
|
*
|
|
948
|
-
* @category
|
|
948
|
+
* @category JSON getters
|
|
949
949
|
* @since 4.0.0
|
|
950
950
|
*/
|
|
951
951
|
export declare function stringifyJson(options?: StringifyJsonOptions): Getter<string, unknown>;
|
|
@@ -1061,7 +1061,7 @@ export declare function split<E extends string>(options?: {
|
|
|
1061
1061
|
* @see {@link decodeBase64String} for the inverse operation to `string`
|
|
1062
1062
|
* @see {@link encodeBase64Url} for the URL-safe variant
|
|
1063
1063
|
*
|
|
1064
|
-
* @category Base64
|
|
1064
|
+
* @category Base64 getters
|
|
1065
1065
|
* @since 4.0.0
|
|
1066
1066
|
*/
|
|
1067
1067
|
export declare function encodeBase64<E extends Uint8Array | string>(): Getter<string, E>;
|
|
@@ -1084,7 +1084,7 @@ export declare function encodeBase64<E extends Uint8Array | string>(): Getter<st
|
|
|
1084
1084
|
* @see {@link decodeBase64UrlString} for the inverse operation to `string`
|
|
1085
1085
|
* @see {@link encodeBase64} for the standard Base64 variant
|
|
1086
1086
|
*
|
|
1087
|
-
* @category Base64
|
|
1087
|
+
* @category Base64 getters
|
|
1088
1088
|
* @since 4.0.0
|
|
1089
1089
|
*/
|
|
1090
1090
|
export declare function encodeBase64Url<E extends Uint8Array | string>(): Getter<string, E>;
|
|
@@ -1106,7 +1106,7 @@ export declare function encodeBase64Url<E extends Uint8Array | string>(): Getter
|
|
|
1106
1106
|
* @see {@link decodeHex} for the inverse operation to `Uint8Array`
|
|
1107
1107
|
* @see {@link decodeHexString} for the inverse operation to `string`
|
|
1108
1108
|
*
|
|
1109
|
-
* @category Hex
|
|
1109
|
+
* @category Hex getters
|
|
1110
1110
|
* @since 4.0.0
|
|
1111
1111
|
*/
|
|
1112
1112
|
export declare function encodeHex<E extends Uint8Array | string>(): Getter<string, E>;
|
|
@@ -1129,7 +1129,7 @@ export declare function encodeHex<E extends Uint8Array | string>(): Getter<strin
|
|
|
1129
1129
|
* @see {@link decodeBase64String} to decode to `string` instead
|
|
1130
1130
|
* @see {@link encodeBase64} for the inverse operation
|
|
1131
1131
|
*
|
|
1132
|
-
* @category Base64
|
|
1132
|
+
* @category Base64 getters
|
|
1133
1133
|
* @since 4.0.0
|
|
1134
1134
|
*/
|
|
1135
1135
|
export declare function decodeBase64<E extends string>(): Getter<Uint8Array, E>;
|
|
@@ -1152,7 +1152,7 @@ export declare function decodeBase64<E extends string>(): Getter<Uint8Array, E>;
|
|
|
1152
1152
|
* @see {@link decodeBase64} to decode to `Uint8Array` instead
|
|
1153
1153
|
* @see {@link encodeBase64} for the inverse operation
|
|
1154
1154
|
*
|
|
1155
|
-
* @category Base64
|
|
1155
|
+
* @category Base64 getters
|
|
1156
1156
|
* @since 4.0.0
|
|
1157
1157
|
*/
|
|
1158
1158
|
export declare function decodeBase64String<E extends string>(): Getter<string, E>;
|
|
@@ -1175,7 +1175,7 @@ export declare function decodeBase64String<E extends string>(): Getter<string, E
|
|
|
1175
1175
|
* @see {@link decodeBase64UrlString} to decode to `string` instead
|
|
1176
1176
|
* @see {@link encodeBase64Url} for the inverse operation
|
|
1177
1177
|
*
|
|
1178
|
-
* @category Base64
|
|
1178
|
+
* @category Base64 getters
|
|
1179
1179
|
* @since 4.0.0
|
|
1180
1180
|
*/
|
|
1181
1181
|
export declare function decodeBase64Url<E extends string>(): Getter<Uint8Array, E>;
|
|
@@ -1198,7 +1198,7 @@ export declare function decodeBase64Url<E extends string>(): Getter<Uint8Array,
|
|
|
1198
1198
|
* @see {@link decodeBase64Url} to decode to `Uint8Array` instead
|
|
1199
1199
|
* @see {@link encodeBase64Url} for the inverse operation
|
|
1200
1200
|
*
|
|
1201
|
-
* @category Base64
|
|
1201
|
+
* @category Base64 getters
|
|
1202
1202
|
* @since 4.0.0
|
|
1203
1203
|
*/
|
|
1204
1204
|
export declare function decodeBase64UrlString<E extends string>(): Getter<string, E>;
|
|
@@ -1221,7 +1221,7 @@ export declare function decodeBase64UrlString<E extends string>(): Getter<string
|
|
|
1221
1221
|
* @see {@link decodeHexString} to decode to `string` instead
|
|
1222
1222
|
* @see {@link encodeHex} for the inverse operation
|
|
1223
1223
|
*
|
|
1224
|
-
* @category Hex
|
|
1224
|
+
* @category Hex getters
|
|
1225
1225
|
* @since 4.0.0
|
|
1226
1226
|
*/
|
|
1227
1227
|
export declare function decodeHex<E extends string>(): Getter<Uint8Array, E>;
|
|
@@ -1244,7 +1244,7 @@ export declare function decodeHex<E extends string>(): Getter<Uint8Array, E>;
|
|
|
1244
1244
|
* @see {@link decodeHex} to decode to `Uint8Array` instead
|
|
1245
1245
|
* @see {@link encodeHex} for the inverse operation
|
|
1246
1246
|
*
|
|
1247
|
-
* @category Hex
|
|
1247
|
+
* @category Hex getters
|
|
1248
1248
|
* @since 4.0.0
|
|
1249
1249
|
*/
|
|
1250
1250
|
export declare function decodeHexString<E extends string>(): Getter<string, E>;
|
|
@@ -1410,7 +1410,7 @@ export declare function encodeFormData(): Getter<FormData, unknown>;
|
|
|
1410
1410
|
* @see {@link makeTreeRecord} for the underlying bracket-path parser
|
|
1411
1411
|
* @see {@link decodeFormData} for the FormData variant
|
|
1412
1412
|
*
|
|
1413
|
-
* @category
|
|
1413
|
+
* @category search params
|
|
1414
1414
|
* @since 4.0.0
|
|
1415
1415
|
*/
|
|
1416
1416
|
export declare function decodeURLSearchParams(): Getter<Schema.TreeRecord<string>, URLSearchParams>;
|
|
@@ -1440,7 +1440,7 @@ export declare function decodeURLSearchParams(): Getter<Schema.TreeRecord<string
|
|
|
1440
1440
|
* @see {@link collectBracketPathEntries} for the underlying flattener
|
|
1441
1441
|
* @see {@link encodeFormData} for the FormData variant
|
|
1442
1442
|
*
|
|
1443
|
-
* @category
|
|
1443
|
+
* @category search params
|
|
1444
1444
|
* @since 4.0.0
|
|
1445
1445
|
*/
|
|
1446
1446
|
export declare function encodeURLSearchParams(): Getter<URLSearchParams, unknown>;
|
package/dist/SchemaGetter.js
CHANGED
|
@@ -905,7 +905,7 @@ export function parseJson(options) {
|
|
|
905
905
|
*
|
|
906
906
|
* @see {@link parseJson} for the inverse operation
|
|
907
907
|
*
|
|
908
|
-
* @category
|
|
908
|
+
* @category JSON getters
|
|
909
909
|
* @since 4.0.0
|
|
910
910
|
*/
|
|
911
911
|
export function stringifyJson(options) {
|
|
@@ -1037,7 +1037,7 @@ export function split(options) {
|
|
|
1037
1037
|
* @see {@link decodeBase64String} for the inverse operation to `string`
|
|
1038
1038
|
* @see {@link encodeBase64Url} for the URL-safe variant
|
|
1039
1039
|
*
|
|
1040
|
-
* @category Base64
|
|
1040
|
+
* @category Base64 getters
|
|
1041
1041
|
* @since 4.0.0
|
|
1042
1042
|
*/
|
|
1043
1043
|
export function encodeBase64() {
|
|
@@ -1062,7 +1062,7 @@ export function encodeBase64() {
|
|
|
1062
1062
|
* @see {@link decodeBase64UrlString} for the inverse operation to `string`
|
|
1063
1063
|
* @see {@link encodeBase64} for the standard Base64 variant
|
|
1064
1064
|
*
|
|
1065
|
-
* @category Base64
|
|
1065
|
+
* @category Base64 getters
|
|
1066
1066
|
* @since 4.0.0
|
|
1067
1067
|
*/
|
|
1068
1068
|
export function encodeBase64Url() {
|
|
@@ -1086,7 +1086,7 @@ export function encodeBase64Url() {
|
|
|
1086
1086
|
* @see {@link decodeHex} for the inverse operation to `Uint8Array`
|
|
1087
1087
|
* @see {@link decodeHexString} for the inverse operation to `string`
|
|
1088
1088
|
*
|
|
1089
|
-
* @category Hex
|
|
1089
|
+
* @category Hex getters
|
|
1090
1090
|
* @since 4.0.0
|
|
1091
1091
|
*/
|
|
1092
1092
|
export function encodeHex() {
|
|
@@ -1111,7 +1111,7 @@ export function encodeHex() {
|
|
|
1111
1111
|
* @see {@link decodeBase64String} to decode to `string` instead
|
|
1112
1112
|
* @see {@link encodeBase64} for the inverse operation
|
|
1113
1113
|
*
|
|
1114
|
-
* @category Base64
|
|
1114
|
+
* @category Base64 getters
|
|
1115
1115
|
* @since 4.0.0
|
|
1116
1116
|
*/
|
|
1117
1117
|
export function decodeBase64() {
|
|
@@ -1138,7 +1138,7 @@ export function decodeBase64() {
|
|
|
1138
1138
|
* @see {@link decodeBase64} to decode to `Uint8Array` instead
|
|
1139
1139
|
* @see {@link encodeBase64} for the inverse operation
|
|
1140
1140
|
*
|
|
1141
|
-
* @category Base64
|
|
1141
|
+
* @category Base64 getters
|
|
1142
1142
|
* @since 4.0.0
|
|
1143
1143
|
*/
|
|
1144
1144
|
export function decodeBase64String() {
|
|
@@ -1168,7 +1168,7 @@ export function decodeBase64String() {
|
|
|
1168
1168
|
* @see {@link decodeBase64UrlString} to decode to `string` instead
|
|
1169
1169
|
* @see {@link encodeBase64Url} for the inverse operation
|
|
1170
1170
|
*
|
|
1171
|
-
* @category Base64
|
|
1171
|
+
* @category Base64 getters
|
|
1172
1172
|
* @since 4.0.0
|
|
1173
1173
|
*/
|
|
1174
1174
|
export function decodeBase64Url() {
|
|
@@ -1198,7 +1198,7 @@ export function decodeBase64Url() {
|
|
|
1198
1198
|
* @see {@link decodeBase64Url} to decode to `Uint8Array` instead
|
|
1199
1199
|
* @see {@link encodeBase64Url} for the inverse operation
|
|
1200
1200
|
*
|
|
1201
|
-
* @category Base64
|
|
1201
|
+
* @category Base64 getters
|
|
1202
1202
|
* @since 4.0.0
|
|
1203
1203
|
*/
|
|
1204
1204
|
export function decodeBase64UrlString() {
|
|
@@ -1228,7 +1228,7 @@ export function decodeBase64UrlString() {
|
|
|
1228
1228
|
* @see {@link decodeHexString} to decode to `string` instead
|
|
1229
1229
|
* @see {@link encodeHex} for the inverse operation
|
|
1230
1230
|
*
|
|
1231
|
-
* @category Hex
|
|
1231
|
+
* @category Hex getters
|
|
1232
1232
|
* @since 4.0.0
|
|
1233
1233
|
*/
|
|
1234
1234
|
export function decodeHex() {
|
|
@@ -1258,7 +1258,7 @@ export function decodeHex() {
|
|
|
1258
1258
|
* @see {@link decodeHex} to decode to `Uint8Array` instead
|
|
1259
1259
|
* @see {@link encodeHex} for the inverse operation
|
|
1260
1260
|
*
|
|
1261
|
-
* @category Hex
|
|
1261
|
+
* @category Hex getters
|
|
1262
1262
|
* @since 4.0.0
|
|
1263
1263
|
*/
|
|
1264
1264
|
export function decodeHexString() {
|
|
@@ -1466,7 +1466,7 @@ export function encodeFormData() {
|
|
|
1466
1466
|
* @see {@link makeTreeRecord} for the underlying bracket-path parser
|
|
1467
1467
|
* @see {@link decodeFormData} for the FormData variant
|
|
1468
1468
|
*
|
|
1469
|
-
* @category
|
|
1469
|
+
* @category search params
|
|
1470
1470
|
* @since 4.0.0
|
|
1471
1471
|
*/
|
|
1472
1472
|
export function decodeURLSearchParams() {
|
|
@@ -1499,7 +1499,7 @@ const collectURLSearchParamsEntries = /*#__PURE__*/collectBracketPathEntries(Pre
|
|
|
1499
1499
|
* @see {@link collectBracketPathEntries} for the underlying flattener
|
|
1500
1500
|
* @see {@link encodeFormData} for the FormData variant
|
|
1501
1501
|
*
|
|
1502
|
-
* @category
|
|
1502
|
+
* @category search params
|
|
1503
1503
|
* @since 4.0.0
|
|
1504
1504
|
*/
|
|
1505
1505
|
export function encodeURLSearchParams() {
|
package/dist/SchemaParser.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import * as Issue from "./SchemaIssue.ts";
|
|
|
19
19
|
* runs type-side validation unless checks are disabled, and fails with a
|
|
20
20
|
* `SchemaIssue.Issue` when construction fails.
|
|
21
21
|
*
|
|
22
|
-
* @category
|
|
22
|
+
* @category constructors
|
|
23
23
|
* @since 4.0.0
|
|
24
24
|
*/
|
|
25
25
|
export declare function makeEffect<S extends Schema.Top>(schema: S): (input: S["~type.make.in"], options?: Schema.MakeOptions) => Effect.Effect<S["Type"], Issue.Issue>;
|
|
@@ -32,7 +32,7 @@ export declare function makeEffect<S extends Schema.Top>(schema: S): (input: S["
|
|
|
32
32
|
* Use when you only need to know whether constructor input is valid and do
|
|
33
33
|
* not need error details.
|
|
34
34
|
*
|
|
35
|
-
* @category
|
|
35
|
+
* @category constructors
|
|
36
36
|
* @since 4.0.0
|
|
37
37
|
*/
|
|
38
38
|
export declare function makeOption<S extends Schema.Top>(schema: S): (input: S["~type.make.in"], options?: Schema.MakeOptions) => Option.Option<S["Type"]>;
|
|
@@ -49,7 +49,7 @@ export declare function makeOption<S extends Schema.Top>(schema: S): (input: S["
|
|
|
49
49
|
* The returned function constructs a value from constructor input and throws an
|
|
50
50
|
* `Error` with the `SchemaIssue.Issue` in its `cause` when construction fails.
|
|
51
51
|
*
|
|
52
|
-
* @category
|
|
52
|
+
* @category constructors
|
|
53
53
|
* @since 4.0.0
|
|
54
54
|
*/
|
|
55
55
|
export declare function make<S extends Schema.Top>(schema: S): (input: S["~type.make.in"], options?: Schema.MakeOptions) => S["Type"];
|
package/dist/SchemaParser.js
CHANGED
|
@@ -95,7 +95,7 @@ const recurDefaults = /*#__PURE__*/memoize(ast => {
|
|
|
95
95
|
* runs type-side validation unless checks are disabled, and fails with a
|
|
96
96
|
* `SchemaIssue.Issue` when construction fails.
|
|
97
97
|
*
|
|
98
|
-
* @category
|
|
98
|
+
* @category constructors
|
|
99
99
|
* @since 4.0.0
|
|
100
100
|
*/
|
|
101
101
|
export function makeEffect(schema) {
|
|
@@ -119,7 +119,7 @@ export function makeEffect(schema) {
|
|
|
119
119
|
* Use when you only need to know whether constructor input is valid and do
|
|
120
120
|
* not need error details.
|
|
121
121
|
*
|
|
122
|
-
* @category
|
|
122
|
+
* @category constructors
|
|
123
123
|
* @since 4.0.0
|
|
124
124
|
*/
|
|
125
125
|
export function makeOption(schema) {
|
|
@@ -141,7 +141,7 @@ export function makeOption(schema) {
|
|
|
141
141
|
* The returned function constructs a value from constructor input and throws an
|
|
142
142
|
* `Error` with the `SchemaIssue.Issue` in its `cause` when construction fails.
|
|
143
143
|
*
|
|
144
|
-
* @category
|
|
144
|
+
* @category constructors
|
|
145
145
|
* @since 4.0.0
|
|
146
146
|
*/
|
|
147
147
|
export function make(schema) {
|
package/dist/Scope.d.ts
CHANGED
package/dist/Scope.js
CHANGED
package/dist/Sink.d.ts
CHANGED
|
@@ -494,7 +494,7 @@ export declare const never: Sink<unknown>;
|
|
|
494
494
|
* instead of being returned to downstream sink composition. This does not
|
|
495
495
|
* continue pulling additional elements from the upstream stream.
|
|
496
496
|
*
|
|
497
|
-
* @category
|
|
497
|
+
* @category filtering
|
|
498
498
|
* @since 2.0.0
|
|
499
499
|
*/
|
|
500
500
|
export declare const ignoreLeftover: <A, In, L, E, R>(self: Sink<A, In, L, E, R>) => Sink<A, In, never, E, R>;
|
|
@@ -1493,21 +1493,21 @@ export declare const unwrap: <A, In, L, E, R, R2>(effect: Effect.Effect<Sink<A,
|
|
|
1493
1493
|
/**
|
|
1494
1494
|
* Runs a summary effect when the sink starts and again when it completes.
|
|
1495
1495
|
*
|
|
1496
|
-
* @category
|
|
1496
|
+
* @category mapping
|
|
1497
1497
|
* @since 2.0.0
|
|
1498
1498
|
*/
|
|
1499
1499
|
export declare const summarized: {
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Runs a summary effect when the sink starts and again when it completes.
|
|
1502
1502
|
*
|
|
1503
|
-
* @category
|
|
1503
|
+
* @category mapping
|
|
1504
1504
|
* @since 2.0.0
|
|
1505
1505
|
*/
|
|
1506
1506
|
<A2, E2, R2, A3>(summary: Effect.Effect<A2, E2, R2>, f: (start: A2, end: A2) => A3): <A, In, L, E, R>(self: Sink<A, In, L, E, R>) => Sink<[A, A3], In, L, E2 | E, R2 | R>;
|
|
1507
1507
|
/**
|
|
1508
1508
|
* Runs a summary effect when the sink starts and again when it completes.
|
|
1509
1509
|
*
|
|
1510
|
-
* @category
|
|
1510
|
+
* @category mapping
|
|
1511
1511
|
* @since 2.0.0
|
|
1512
1512
|
*/
|
|
1513
1513
|
<A, In, L, E, R, A2, E2, R2, A3>(self: Sink<A, In, L, E, R>, summary: Effect.Effect<A2, E2, R2>, f: (start: A2, end: A2) => A3): Sink<[A, A3], In, L, E | E2, R | R2>;
|
|
@@ -1515,7 +1515,7 @@ export declare const summarized: {
|
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Returns the sink that executes this one and times its execution.
|
|
1517
1517
|
*
|
|
1518
|
-
* @category
|
|
1518
|
+
* @category mapping
|
|
1519
1519
|
* @since 2.0.0
|
|
1520
1520
|
*/
|
|
1521
1521
|
export declare const withDuration: <A, In, L, E, R>(self: Sink<A, In, L, E, R>) => Sink<[A, Duration.Duration], In, L, E, R>;
|
package/dist/Sink.js
CHANGED
|
@@ -332,7 +332,7 @@ export const never = /*#__PURE__*/fromEffectEnd(Effect.never);
|
|
|
332
332
|
* instead of being returned to downstream sink composition. This does not
|
|
333
333
|
* continue pulling additional elements from the upstream stream.
|
|
334
334
|
*
|
|
335
|
-
* @category
|
|
335
|
+
* @category filtering
|
|
336
336
|
* @since 2.0.0
|
|
337
337
|
*/
|
|
338
338
|
export const ignoreLeftover = self => mapEnd(self, ([a]) => [a]);
|
|
@@ -1217,7 +1217,7 @@ export const unwrap = effect => fromChannel(Channel.unwrap(Effect.map(effect, to
|
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Runs a summary effect when the sink starts and again when it completes.
|
|
1219
1219
|
*
|
|
1220
|
-
* @category
|
|
1220
|
+
* @category mapping
|
|
1221
1221
|
* @since 2.0.0
|
|
1222
1222
|
*/
|
|
1223
1223
|
export const summarized = /*#__PURE__*/dual(3, (self, summary, f) => fromTransform(Effect.fnUntraced(function* (upstream, scope) {
|
|
@@ -1229,7 +1229,7 @@ export const summarized = /*#__PURE__*/dual(3, (self, summary, f) => fromTransfo
|
|
|
1229
1229
|
/**
|
|
1230
1230
|
* Returns the sink that executes this one and times its execution.
|
|
1231
1231
|
*
|
|
1232
|
-
* @category
|
|
1232
|
+
* @category mapping
|
|
1233
1233
|
* @since 2.0.0
|
|
1234
1234
|
*/
|
|
1235
1235
|
export const withDuration = self => summarized(self, Clock.currentTimeNanos, (start, end) => Duration.nanos(end - start));
|