effect 4.0.0-beta.73 → 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/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/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- 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/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/HttpApiError.ts +13 -13
- 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/Queue.d.ts
CHANGED
|
@@ -729,7 +729,7 @@ export declare const offerAllUnsafe: <A, E>(self: Enqueue<A, E>, messages: Itera
|
|
|
729
729
|
* })
|
|
730
730
|
* ```
|
|
731
731
|
*
|
|
732
|
-
* @category
|
|
732
|
+
* @category completion
|
|
733
733
|
* @since 4.0.0
|
|
734
734
|
*/
|
|
735
735
|
export declare const fail: <A, E>(self: Enqueue<A, E>, error: E) => Effect<boolean, never, never>;
|
|
@@ -755,7 +755,7 @@ export declare const fail: <A, E>(self: Enqueue<A, E>, error: E) => Effect<boole
|
|
|
755
755
|
* })
|
|
756
756
|
* ```
|
|
757
757
|
*
|
|
758
|
-
* @category
|
|
758
|
+
* @category completion
|
|
759
759
|
* @since 4.0.0
|
|
760
760
|
*/
|
|
761
761
|
export declare const failCause: {
|
|
@@ -781,7 +781,7 @@ export declare const failCause: {
|
|
|
781
781
|
* })
|
|
782
782
|
* ```
|
|
783
783
|
*
|
|
784
|
-
* @category
|
|
784
|
+
* @category completion
|
|
785
785
|
* @since 4.0.0
|
|
786
786
|
*/
|
|
787
787
|
<E>(cause: Cause<E>): <A>(self: Enqueue<A, E>) => Effect<boolean>;
|
|
@@ -807,7 +807,7 @@ export declare const failCause: {
|
|
|
807
807
|
* })
|
|
808
808
|
* ```
|
|
809
809
|
*
|
|
810
|
-
* @category
|
|
810
|
+
* @category completion
|
|
811
811
|
* @since 4.0.0
|
|
812
812
|
*/
|
|
813
813
|
<A, E>(self: Enqueue<A, E>, cause: Cause<E>): Effect<boolean>;
|
|
@@ -838,7 +838,7 @@ export declare const failCause: {
|
|
|
838
838
|
* })
|
|
839
839
|
* ```
|
|
840
840
|
*
|
|
841
|
-
* @category
|
|
841
|
+
* @category completion
|
|
842
842
|
* @since 4.0.0
|
|
843
843
|
*/
|
|
844
844
|
export declare const failCauseUnsafe: <A, E>(self: Enqueue<A, E>, cause: Cause<E>) => boolean;
|
|
@@ -880,7 +880,7 @@ export declare const failCauseUnsafe: <A, E>(self: Enqueue<A, E>, cause: Cause<E
|
|
|
880
880
|
* })
|
|
881
881
|
* ```
|
|
882
882
|
*
|
|
883
|
-
* @category
|
|
883
|
+
* @category completion
|
|
884
884
|
* @since 4.0.0
|
|
885
885
|
*/
|
|
886
886
|
export declare const end: <A, E>(self: Enqueue<A, E | Done>) => Effect<boolean>;
|
|
@@ -928,7 +928,7 @@ export declare const end: <A, E>(self: Enqueue<A, E | Done>) => Effect<boolean>;
|
|
|
928
928
|
* })
|
|
929
929
|
* ```
|
|
930
930
|
*
|
|
931
|
-
* @category
|
|
931
|
+
* @category completion
|
|
932
932
|
* @since 4.0.0
|
|
933
933
|
*/
|
|
934
934
|
export declare const endUnsafe: <A, E>(self: Enqueue<A, E | Done>) => boolean;
|
|
@@ -973,7 +973,7 @@ export declare const endUnsafe: <A, E>(self: Enqueue<A, E | Done>) => boolean;
|
|
|
973
973
|
* })
|
|
974
974
|
* ```
|
|
975
975
|
*
|
|
976
|
-
* @category
|
|
976
|
+
* @category completion
|
|
977
977
|
* @since 4.0.0
|
|
978
978
|
*/
|
|
979
979
|
export declare const interrupt: <A, E>(self: Enqueue<A, E>) => Effect<boolean>;
|
|
@@ -1008,7 +1008,7 @@ export declare const interrupt: <A, E>(self: Enqueue<A, E>) => Effect<boolean>;
|
|
|
1008
1008
|
* })
|
|
1009
1009
|
* ```
|
|
1010
1010
|
*
|
|
1011
|
-
* @category
|
|
1011
|
+
* @category completion
|
|
1012
1012
|
* @since 2.0.0
|
|
1013
1013
|
*/
|
|
1014
1014
|
export declare const shutdown: <A, E>(self: Enqueue<A, E>) => Effect<boolean>;
|
|
@@ -1075,7 +1075,7 @@ export declare const clear: <A, E>(self: Dequeue<A, E>) => Effect<Array<A>, Pull
|
|
|
1075
1075
|
* })
|
|
1076
1076
|
* ```
|
|
1077
1077
|
*
|
|
1078
|
-
* @category
|
|
1078
|
+
* @category taking
|
|
1079
1079
|
* @since 2.0.0
|
|
1080
1080
|
*/
|
|
1081
1081
|
export declare const takeAll: <A, E>(self: Dequeue<A, E>) => Effect<Arr.NonEmptyArray<A>, E>;
|
|
@@ -1101,7 +1101,7 @@ export declare const takeAll: <A, E>(self: Dequeue<A, E>) => Effect<Arr.NonEmpty
|
|
|
1101
1101
|
* })
|
|
1102
1102
|
* ```
|
|
1103
1103
|
*
|
|
1104
|
-
* @category
|
|
1104
|
+
* @category taking
|
|
1105
1105
|
* @since 4.0.0
|
|
1106
1106
|
*/
|
|
1107
1107
|
export declare const collect: <A, E>(self: Dequeue<A, E | Done>) => Effect<Array<A>, Pull.ExcludeDone<E>>;
|
|
@@ -1140,7 +1140,7 @@ export declare const collect: <A, E>(self: Dequeue<A, E | Done>) => Effect<Array
|
|
|
1140
1140
|
* })
|
|
1141
1141
|
* ```
|
|
1142
1142
|
*
|
|
1143
|
-
* @category
|
|
1143
|
+
* @category taking
|
|
1144
1144
|
* @since 2.0.0
|
|
1145
1145
|
*/
|
|
1146
1146
|
export declare const takeN: <A, E>(self: Dequeue<A, E>, n: number) => Effect<Array<A>, E>;
|
|
@@ -1178,7 +1178,7 @@ export declare const takeN: <A, E>(self: Dequeue<A, E>, n: number) => Effect<Arr
|
|
|
1178
1178
|
* })
|
|
1179
1179
|
* ```
|
|
1180
1180
|
*
|
|
1181
|
-
* @category
|
|
1181
|
+
* @category taking
|
|
1182
1182
|
* @since 2.0.0
|
|
1183
1183
|
*/
|
|
1184
1184
|
export declare const takeBetween: <A, E>(self: Dequeue<A, E>, min: number, max: number) => Effect<Array<A>, E>;
|
|
@@ -1220,7 +1220,7 @@ export declare const takeBetween: <A, E>(self: Dequeue<A, E>, min: number, max:
|
|
|
1220
1220
|
* })
|
|
1221
1221
|
* ```
|
|
1222
1222
|
*
|
|
1223
|
-
* @category
|
|
1223
|
+
* @category taking
|
|
1224
1224
|
* @since 2.0.0
|
|
1225
1225
|
*/
|
|
1226
1226
|
export declare const take: <A, E>(self: Dequeue<A, E>) => Effect<A, E>;
|
|
@@ -1254,7 +1254,7 @@ export declare const take: <A, E>(self: Dequeue<A, E>) => Effect<A, E>;
|
|
|
1254
1254
|
* })
|
|
1255
1255
|
* ```
|
|
1256
1256
|
*
|
|
1257
|
-
* @category
|
|
1257
|
+
* @category taking
|
|
1258
1258
|
* @since 2.0.0
|
|
1259
1259
|
*/
|
|
1260
1260
|
export declare const poll: <A, E>(self: Dequeue<A, E>) => Effect<Option.Option<A>>;
|
|
@@ -1319,7 +1319,7 @@ export declare const peek: <A, E>(self: Dequeue<A, E>) => Effect<A, E>;
|
|
|
1319
1319
|
* })
|
|
1320
1320
|
* ```
|
|
1321
1321
|
*
|
|
1322
|
-
* @category
|
|
1322
|
+
* @category taking
|
|
1323
1323
|
* @since 4.0.0
|
|
1324
1324
|
*/
|
|
1325
1325
|
export declare const takeUnsafe: <A, E>(self: Dequeue<A, E>) => Exit<A, E> | undefined;
|
|
@@ -1350,7 +1350,7 @@ export {
|
|
|
1350
1350
|
* @see {@link interrupt} for graceful interruption after buffered messages are drained
|
|
1351
1351
|
* @see {@link shutdown} for immediately discarding buffered messages and resuming pending operations
|
|
1352
1352
|
*
|
|
1353
|
-
* @category
|
|
1353
|
+
* @category completion
|
|
1354
1354
|
* @since 4.0.0
|
|
1355
1355
|
*/
|
|
1356
1356
|
await_ as await };
|
|
@@ -1389,7 +1389,7 @@ await_ as await };
|
|
|
1389
1389
|
* })
|
|
1390
1390
|
* ```
|
|
1391
1391
|
*
|
|
1392
|
-
* @category
|
|
1392
|
+
* @category sizes
|
|
1393
1393
|
* @since 2.0.0
|
|
1394
1394
|
*/
|
|
1395
1395
|
export declare const size: <A, E>(self: Dequeue<A, E>) => Effect<number>;
|
|
@@ -1413,7 +1413,7 @@ export declare const size: <A, E>(self: Dequeue<A, E>) => Effect<number>;
|
|
|
1413
1413
|
* })
|
|
1414
1414
|
* ```
|
|
1415
1415
|
*
|
|
1416
|
-
* @category
|
|
1416
|
+
* @category sizes
|
|
1417
1417
|
* @since 2.0.0
|
|
1418
1418
|
*/
|
|
1419
1419
|
export declare const isFull: <A, E>(self: Dequeue<A, E>) => Effect<boolean>;
|
|
@@ -1455,7 +1455,7 @@ export declare const isFull: <A, E>(self: Dequeue<A, E>) => Effect<boolean>;
|
|
|
1455
1455
|
* })
|
|
1456
1456
|
* ```
|
|
1457
1457
|
*
|
|
1458
|
-
* @category
|
|
1458
|
+
* @category sizes
|
|
1459
1459
|
* @since 4.0.0
|
|
1460
1460
|
*/
|
|
1461
1461
|
export declare const sizeUnsafe: <A, E>(self: Dequeue<A, E>) => number;
|
|
@@ -1479,7 +1479,7 @@ export declare const sizeUnsafe: <A, E>(self: Dequeue<A, E>) => number;
|
|
|
1479
1479
|
* })
|
|
1480
1480
|
* ```
|
|
1481
1481
|
*
|
|
1482
|
-
* @category
|
|
1482
|
+
* @category sizes
|
|
1483
1483
|
* @since 4.0.0
|
|
1484
1484
|
*/
|
|
1485
1485
|
export declare const isFullUnsafe: <A, E>(self: Dequeue<A, E>) => boolean;
|
|
@@ -1514,7 +1514,7 @@ export declare const isFullUnsafe: <A, E>(self: Dequeue<A, E>) => boolean;
|
|
|
1514
1514
|
* })
|
|
1515
1515
|
* ```
|
|
1516
1516
|
*
|
|
1517
|
-
* @category
|
|
1517
|
+
* @category completion
|
|
1518
1518
|
* @since 4.0.0
|
|
1519
1519
|
*/
|
|
1520
1520
|
export declare const into: {
|
|
@@ -1549,7 +1549,7 @@ export declare const into: {
|
|
|
1549
1549
|
* })
|
|
1550
1550
|
* ```
|
|
1551
1551
|
*
|
|
1552
|
-
* @category
|
|
1552
|
+
* @category completion
|
|
1553
1553
|
* @since 4.0.0
|
|
1554
1554
|
*/
|
|
1555
1555
|
<A, E>(self: Enqueue<A, E | Done>): <AX, EX extends E, RX>(effect: Effect<AX, EX, RX>) => Effect<boolean, never, RX>;
|
|
@@ -1584,7 +1584,7 @@ export declare const into: {
|
|
|
1584
1584
|
* })
|
|
1585
1585
|
* ```
|
|
1586
1586
|
*
|
|
1587
|
-
* @category
|
|
1587
|
+
* @category completion
|
|
1588
1588
|
* @since 4.0.0
|
|
1589
1589
|
*/
|
|
1590
1590
|
<AX, E, EX extends E, RX, A>(effect: Effect<AX, EX, RX>, self: Enqueue<A, E | Done>): Effect<boolean, never, RX>;
|
package/dist/Queue.js
CHANGED
|
@@ -610,7 +610,7 @@ export const offerAllUnsafe = (self, messages) => {
|
|
|
610
610
|
* })
|
|
611
611
|
* ```
|
|
612
612
|
*
|
|
613
|
-
* @category
|
|
613
|
+
* @category completion
|
|
614
614
|
* @since 4.0.0
|
|
615
615
|
*/
|
|
616
616
|
export const fail = (self, error) => failCause(self, core.causeFail(error));
|
|
@@ -636,7 +636,7 @@ export const fail = (self, error) => failCause(self, core.causeFail(error));
|
|
|
636
636
|
* })
|
|
637
637
|
* ```
|
|
638
638
|
*
|
|
639
|
-
* @category
|
|
639
|
+
* @category completion
|
|
640
640
|
* @since 4.0.0
|
|
641
641
|
*/
|
|
642
642
|
export const failCause = /*#__PURE__*/dual(2, (self, cause) => internalEffect.sync(() => failCauseUnsafe(self, cause)));
|
|
@@ -666,7 +666,7 @@ export const failCause = /*#__PURE__*/dual(2, (self, cause) => internalEffect.sy
|
|
|
666
666
|
* })
|
|
667
667
|
* ```
|
|
668
668
|
*
|
|
669
|
-
* @category
|
|
669
|
+
* @category completion
|
|
670
670
|
* @since 4.0.0
|
|
671
671
|
*/
|
|
672
672
|
export const failCauseUnsafe = (self, cause) => {
|
|
@@ -724,7 +724,7 @@ export const failCauseUnsafe = (self, cause) => {
|
|
|
724
724
|
* })
|
|
725
725
|
* ```
|
|
726
726
|
*
|
|
727
|
-
* @category
|
|
727
|
+
* @category completion
|
|
728
728
|
* @since 4.0.0
|
|
729
729
|
*/
|
|
730
730
|
export const end = self => failCause(self, core.causeFail(core.Done()));
|
|
@@ -772,7 +772,7 @@ export const end = self => failCause(self, core.causeFail(core.Done()));
|
|
|
772
772
|
* })
|
|
773
773
|
* ```
|
|
774
774
|
*
|
|
775
|
-
* @category
|
|
775
|
+
* @category completion
|
|
776
776
|
* @since 4.0.0
|
|
777
777
|
*/
|
|
778
778
|
export const endUnsafe = self => failCauseUnsafe(self, core.causeFail(core.Done()));
|
|
@@ -817,7 +817,7 @@ export const endUnsafe = self => failCauseUnsafe(self, core.causeFail(core.Done(
|
|
|
817
817
|
* })
|
|
818
818
|
* ```
|
|
819
819
|
*
|
|
820
|
-
* @category
|
|
820
|
+
* @category completion
|
|
821
821
|
* @since 4.0.0
|
|
822
822
|
*/
|
|
823
823
|
export const interrupt = self => core.withFiber(fiber => failCause(self, internalEffect.causeInterrupt(fiber.id)));
|
|
@@ -852,7 +852,7 @@ export const interrupt = self => core.withFiber(fiber => failCause(self, interna
|
|
|
852
852
|
* })
|
|
853
853
|
* ```
|
|
854
854
|
*
|
|
855
|
-
* @category
|
|
855
|
+
* @category completion
|
|
856
856
|
* @since 2.0.0
|
|
857
857
|
*/
|
|
858
858
|
export const shutdown = self => internalEffect.sync(() => {
|
|
@@ -947,7 +947,7 @@ export const clear = self => internalEffect.suspend(() => {
|
|
|
947
947
|
* })
|
|
948
948
|
* ```
|
|
949
949
|
*
|
|
950
|
-
* @category
|
|
950
|
+
* @category taking
|
|
951
951
|
* @since 2.0.0
|
|
952
952
|
*/
|
|
953
953
|
export const takeAll = self => takeBetween(self, 1, Number.POSITIVE_INFINITY);
|
|
@@ -973,7 +973,7 @@ export const takeAll = self => takeBetween(self, 1, Number.POSITIVE_INFINITY);
|
|
|
973
973
|
* })
|
|
974
974
|
* ```
|
|
975
975
|
*
|
|
976
|
-
* @category
|
|
976
|
+
* @category taking
|
|
977
977
|
* @since 4.0.0
|
|
978
978
|
*/
|
|
979
979
|
export const collect = self => internalEffect.suspend(() => {
|
|
@@ -1023,7 +1023,7 @@ export const collect = self => internalEffect.suspend(() => {
|
|
|
1023
1023
|
* })
|
|
1024
1024
|
* ```
|
|
1025
1025
|
*
|
|
1026
|
-
* @category
|
|
1026
|
+
* @category taking
|
|
1027
1027
|
* @since 2.0.0
|
|
1028
1028
|
*/
|
|
1029
1029
|
export const takeN = (self, n) => takeBetween(self, n, n);
|
|
@@ -1061,7 +1061,7 @@ export const takeN = (self, n) => takeBetween(self, n, n);
|
|
|
1061
1061
|
* })
|
|
1062
1062
|
* ```
|
|
1063
1063
|
*
|
|
1064
|
-
* @category
|
|
1064
|
+
* @category taking
|
|
1065
1065
|
* @since 2.0.0
|
|
1066
1066
|
*/
|
|
1067
1067
|
export const takeBetween = (self, min, max) => internalEffect.suspend(() => takeBetweenUnsafe(self, min, max) ?? internalEffect.andThen(awaitTake(self), takeBetween(self, 1, max)));
|
|
@@ -1103,7 +1103,7 @@ export const takeBetween = (self, min, max) => internalEffect.suspend(() => take
|
|
|
1103
1103
|
* })
|
|
1104
1104
|
* ```
|
|
1105
1105
|
*
|
|
1106
|
-
* @category
|
|
1106
|
+
* @category taking
|
|
1107
1107
|
* @since 2.0.0
|
|
1108
1108
|
*/
|
|
1109
1109
|
export const take = self => internalEffect.suspend(() => takeUnsafe(self) ?? internalEffect.andThen(awaitTake(self), take(self)));
|
|
@@ -1137,7 +1137,7 @@ export const take = self => internalEffect.suspend(() => takeUnsafe(self) ?? int
|
|
|
1137
1137
|
* })
|
|
1138
1138
|
* ```
|
|
1139
1139
|
*
|
|
1140
|
-
* @category
|
|
1140
|
+
* @category taking
|
|
1141
1141
|
* @since 2.0.0
|
|
1142
1142
|
*/
|
|
1143
1143
|
export const poll = self => internalEffect.suspend(() => {
|
|
@@ -1219,7 +1219,7 @@ export const peek = self => internalEffect.suspend(() => {
|
|
|
1219
1219
|
* })
|
|
1220
1220
|
* ```
|
|
1221
1221
|
*
|
|
1222
|
-
* @category
|
|
1222
|
+
* @category taking
|
|
1223
1223
|
* @since 4.0.0
|
|
1224
1224
|
*/
|
|
1225
1225
|
export const takeUnsafe = self => {
|
|
@@ -1280,7 +1280,7 @@ export {
|
|
|
1280
1280
|
* @see {@link interrupt} for graceful interruption after buffered messages are drained
|
|
1281
1281
|
* @see {@link shutdown} for immediately discarding buffered messages and resuming pending operations
|
|
1282
1282
|
*
|
|
1283
|
-
* @category
|
|
1283
|
+
* @category completion
|
|
1284
1284
|
* @since 4.0.0
|
|
1285
1285
|
*/
|
|
1286
1286
|
await_ as await };
|
|
@@ -1319,7 +1319,7 @@ await_ as await };
|
|
|
1319
1319
|
* })
|
|
1320
1320
|
* ```
|
|
1321
1321
|
*
|
|
1322
|
-
* @category
|
|
1322
|
+
* @category sizes
|
|
1323
1323
|
* @since 2.0.0
|
|
1324
1324
|
*/
|
|
1325
1325
|
export const size = self => internalEffect.sync(() => sizeUnsafe(self));
|
|
@@ -1343,7 +1343,7 @@ export const size = self => internalEffect.sync(() => sizeUnsafe(self));
|
|
|
1343
1343
|
* })
|
|
1344
1344
|
* ```
|
|
1345
1345
|
*
|
|
1346
|
-
* @category
|
|
1346
|
+
* @category sizes
|
|
1347
1347
|
* @since 2.0.0
|
|
1348
1348
|
*/
|
|
1349
1349
|
export const isFull = self => internalEffect.sync(() => isFullUnsafe(self));
|
|
@@ -1385,7 +1385,7 @@ export const isFull = self => internalEffect.sync(() => isFullUnsafe(self));
|
|
|
1385
1385
|
* })
|
|
1386
1386
|
* ```
|
|
1387
1387
|
*
|
|
1388
|
-
* @category
|
|
1388
|
+
* @category sizes
|
|
1389
1389
|
* @since 4.0.0
|
|
1390
1390
|
*/
|
|
1391
1391
|
export const sizeUnsafe = self => self.state._tag === "Done" ? 0 : self.messages.length;
|
|
@@ -1409,7 +1409,7 @@ export const sizeUnsafe = self => self.state._tag === "Done" ? 0 : self.messages
|
|
|
1409
1409
|
* })
|
|
1410
1410
|
* ```
|
|
1411
1411
|
*
|
|
1412
|
-
* @category
|
|
1412
|
+
* @category sizes
|
|
1413
1413
|
* @since 4.0.0
|
|
1414
1414
|
*/
|
|
1415
1415
|
export const isFullUnsafe = self => sizeUnsafe(self) === self.capacity;
|
|
@@ -1444,7 +1444,7 @@ export const isFullUnsafe = self => sizeUnsafe(self) === self.capacity;
|
|
|
1444
1444
|
* })
|
|
1445
1445
|
* ```
|
|
1446
1446
|
*
|
|
1447
|
-
* @category
|
|
1447
|
+
* @category completion
|
|
1448
1448
|
* @since 4.0.0
|
|
1449
1449
|
*/
|
|
1450
1450
|
export const into = /*#__PURE__*/dual(2, (effect, self) => internalEffect.uninterruptibleMask(restore => internalEffect.matchCauseEffect(restore(effect), {
|
package/dist/Record.d.ts
CHANGED
|
@@ -590,7 +590,7 @@ export declare const get: {
|
|
|
590
590
|
* Record.modify(input, "b", f) // Option.none()
|
|
591
591
|
* ```
|
|
592
592
|
*
|
|
593
|
-
* @category
|
|
593
|
+
* @category mutations
|
|
594
594
|
* @since 2.0.0
|
|
595
595
|
*/
|
|
596
596
|
export declare const modify: {
|
|
@@ -611,7 +611,7 @@ export declare const modify: {
|
|
|
611
611
|
* Record.modify(input, "b", f) // Option.none()
|
|
612
612
|
* ```
|
|
613
613
|
*
|
|
614
|
-
* @category
|
|
614
|
+
* @category mutations
|
|
615
615
|
* @since 2.0.0
|
|
616
616
|
*/
|
|
617
617
|
<K extends string | symbol, A, B>(key: NoInfer<K>, f: (a: A) => B): (self: ReadonlyRecord<K, A>) => Option.Option<Record<K, A | B>>;
|
|
@@ -632,7 +632,7 @@ export declare const modify: {
|
|
|
632
632
|
* Record.modify(input, "b", f) // Option.none()
|
|
633
633
|
* ```
|
|
634
634
|
*
|
|
635
|
-
* @category
|
|
635
|
+
* @category mutations
|
|
636
636
|
* @since 2.0.0
|
|
637
637
|
*/
|
|
638
638
|
<K extends string | symbol, A, B>(self: ReadonlyRecord<K, A>, key: NoInfer<K>, f: (a: A) => B): Option.Option<Record<K, A | B>>;
|
|
@@ -655,7 +655,7 @@ export declare const modify: {
|
|
|
655
655
|
* Record.replace(Record.empty<string>(), "a", 10) // Option.none()
|
|
656
656
|
* ```
|
|
657
657
|
*
|
|
658
|
-
* @category
|
|
658
|
+
* @category mutations
|
|
659
659
|
* @since 2.0.0
|
|
660
660
|
*/
|
|
661
661
|
export declare const replace: {
|
|
@@ -677,7 +677,7 @@ export declare const replace: {
|
|
|
677
677
|
* Record.replace(Record.empty<string>(), "a", 10) // Option.none()
|
|
678
678
|
* ```
|
|
679
679
|
*
|
|
680
|
-
* @category
|
|
680
|
+
* @category mutations
|
|
681
681
|
* @since 2.0.0
|
|
682
682
|
*/
|
|
683
683
|
<K extends string | symbol, B>(key: NoInfer<K>, b: B): <A>(self: ReadonlyRecord<K, A>) => Option.Option<Record<K, A | B>>;
|
|
@@ -699,7 +699,7 @@ export declare const replace: {
|
|
|
699
699
|
* Record.replace(Record.empty<string>(), "a", 10) // Option.none()
|
|
700
700
|
* ```
|
|
701
701
|
*
|
|
702
|
-
* @category
|
|
702
|
+
* @category mutations
|
|
703
703
|
* @since 2.0.0
|
|
704
704
|
*/
|
|
705
705
|
<K extends string | symbol, A, B>(self: ReadonlyRecord<K, A>, key: NoInfer<K>, b: B): Option.Option<Record<K, A | B>>;
|
|
@@ -725,7 +725,7 @@ export declare const replace: {
|
|
|
725
725
|
* assert.deepStrictEqual(Record.remove({ a: 1, b: 2 }, "a"), { b: 2 })
|
|
726
726
|
* ```
|
|
727
727
|
*
|
|
728
|
-
* @category
|
|
728
|
+
* @category mutations
|
|
729
729
|
* @since 2.0.0
|
|
730
730
|
*/
|
|
731
731
|
export declare const remove: {
|
|
@@ -750,7 +750,7 @@ export declare const remove: {
|
|
|
750
750
|
* assert.deepStrictEqual(Record.remove({ a: 1, b: 2 }, "a"), { b: 2 })
|
|
751
751
|
* ```
|
|
752
752
|
*
|
|
753
|
-
* @category
|
|
753
|
+
* @category mutations
|
|
754
754
|
* @since 2.0.0
|
|
755
755
|
*/
|
|
756
756
|
<K extends string | symbol, X extends K>(key: X): <A>(self: ReadonlyRecord<K, A>) => Record<Exclude<K, X>, A>;
|
|
@@ -775,7 +775,7 @@ export declare const remove: {
|
|
|
775
775
|
* assert.deepStrictEqual(Record.remove({ a: 1, b: 2 }, "a"), { b: 2 })
|
|
776
776
|
* ```
|
|
777
777
|
*
|
|
778
|
-
* @category
|
|
778
|
+
* @category mutations
|
|
779
779
|
* @since 2.0.0
|
|
780
780
|
*/
|
|
781
781
|
<K extends string | symbol, A, X extends K>(self: ReadonlyRecord<K, A>, key: X): Record<Exclude<K, X>, A>;
|
|
@@ -796,7 +796,7 @@ export declare const remove: {
|
|
|
796
796
|
* Record.pop(input, "c") // Option.none()
|
|
797
797
|
* ```
|
|
798
798
|
*
|
|
799
|
-
* @category
|
|
799
|
+
* @category mutations
|
|
800
800
|
* @since 2.0.0
|
|
801
801
|
*/
|
|
802
802
|
export declare const pop: {
|
|
@@ -816,7 +816,7 @@ export declare const pop: {
|
|
|
816
816
|
* Record.pop(input, "c") // Option.none()
|
|
817
817
|
* ```
|
|
818
818
|
*
|
|
819
|
-
* @category
|
|
819
|
+
* @category mutations
|
|
820
820
|
* @since 2.0.0
|
|
821
821
|
*/
|
|
822
822
|
<K extends string | symbol, X extends K>(key: X): <A>(self: ReadonlyRecord<K, A>) => Option.Option<[A, Record<Exclude<K, X>, A>]>;
|
|
@@ -836,7 +836,7 @@ export declare const pop: {
|
|
|
836
836
|
* Record.pop(input, "c") // Option.none()
|
|
837
837
|
* ```
|
|
838
838
|
*
|
|
839
|
-
* @category
|
|
839
|
+
* @category mutations
|
|
840
840
|
* @since 2.0.0
|
|
841
841
|
*/
|
|
842
842
|
<K extends string | symbol, A, X extends K>(self: ReadonlyRecord<K, A>, key: X): Option.Option<[A, Record<Exclude<K, X>, A>]>;
|
|
@@ -1374,7 +1374,7 @@ export declare const values: <K extends string, A>(self: ReadonlyRecord<K, A>) =
|
|
|
1374
1374
|
* assert.deepStrictEqual(Record.set("c", 5)({ a: 1, b: 2 }), { a: 1, b: 2, c: 5 })
|
|
1375
1375
|
* ```
|
|
1376
1376
|
*
|
|
1377
|
-
* @category
|
|
1377
|
+
* @category mutations
|
|
1378
1378
|
* @since 2.0.0
|
|
1379
1379
|
*/
|
|
1380
1380
|
export declare const set: {
|
|
@@ -1391,7 +1391,7 @@ export declare const set: {
|
|
|
1391
1391
|
* assert.deepStrictEqual(Record.set("c", 5)({ a: 1, b: 2 }), { a: 1, b: 2, c: 5 })
|
|
1392
1392
|
* ```
|
|
1393
1393
|
*
|
|
1394
|
-
* @category
|
|
1394
|
+
* @category mutations
|
|
1395
1395
|
* @since 2.0.0
|
|
1396
1396
|
*/
|
|
1397
1397
|
<K extends string | symbol, K1 extends K | ((string | symbol) & {}), B>(key: K1, value: B): <A>(self: ReadonlyRecord<K, A>) => Record<K | K1, A | B>;
|
|
@@ -1408,7 +1408,7 @@ export declare const set: {
|
|
|
1408
1408
|
* assert.deepStrictEqual(Record.set("c", 5)({ a: 1, b: 2 }), { a: 1, b: 2, c: 5 })
|
|
1409
1409
|
* ```
|
|
1410
1410
|
*
|
|
1411
|
-
* @category
|
|
1411
|
+
* @category mutations
|
|
1412
1412
|
* @since 2.0.0
|
|
1413
1413
|
*/
|
|
1414
1414
|
<K extends string | symbol, A, K1 extends K | ((string | symbol) & {}), B>(self: ReadonlyRecord<K, A>, key: K1, value: B): Record<K | K1, A | B>;
|
package/dist/Record.js
CHANGED
|
@@ -325,7 +325,7 @@ export const get = /*#__PURE__*/dual(2, (self, key) => has(self, key) ? Option.s
|
|
|
325
325
|
* Record.modify(input, "b", f) // Option.none()
|
|
326
326
|
* ```
|
|
327
327
|
*
|
|
328
|
-
* @category
|
|
328
|
+
* @category mutations
|
|
329
329
|
* @since 2.0.0
|
|
330
330
|
*/
|
|
331
331
|
export const modify = /*#__PURE__*/dual(3, (self, key, f) => {
|
|
@@ -353,7 +353,7 @@ export const modify = /*#__PURE__*/dual(3, (self, key, f) => {
|
|
|
353
353
|
* Record.replace(Record.empty<string>(), "a", 10) // Option.none()
|
|
354
354
|
* ```
|
|
355
355
|
*
|
|
356
|
-
* @category
|
|
356
|
+
* @category mutations
|
|
357
357
|
* @since 2.0.0
|
|
358
358
|
*/
|
|
359
359
|
export const replace = /*#__PURE__*/dual(3, (self, key, b) => modify(self, key, () => b));
|
|
@@ -378,7 +378,7 @@ export const replace = /*#__PURE__*/dual(3, (self, key, b) => modify(self, key,
|
|
|
378
378
|
* assert.deepStrictEqual(Record.remove({ a: 1, b: 2 }, "a"), { b: 2 })
|
|
379
379
|
* ```
|
|
380
380
|
*
|
|
381
|
-
* @category
|
|
381
|
+
* @category mutations
|
|
382
382
|
* @since 2.0.0
|
|
383
383
|
*/
|
|
384
384
|
export const remove = /*#__PURE__*/dual(2, (self, key) => {
|
|
@@ -409,7 +409,7 @@ export const remove = /*#__PURE__*/dual(2, (self, key) => {
|
|
|
409
409
|
* Record.pop(input, "c") // Option.none()
|
|
410
410
|
* ```
|
|
411
411
|
*
|
|
412
|
-
* @category
|
|
412
|
+
* @category mutations
|
|
413
413
|
* @since 2.0.0
|
|
414
414
|
*/
|
|
415
415
|
export const pop = /*#__PURE__*/dual(2, (self, key) => has(self, key) ? Option.some([self[key], remove(self, key)]) : Option.none());
|
|
@@ -744,7 +744,7 @@ export const values = self => collect(self, (_, a) => a);
|
|
|
744
744
|
* assert.deepStrictEqual(Record.set("c", 5)({ a: 1, b: 2 }), { a: 1, b: 2, c: 5 })
|
|
745
745
|
* ```
|
|
746
746
|
*
|
|
747
|
-
* @category
|
|
747
|
+
* @category mutations
|
|
748
748
|
* @since 2.0.0
|
|
749
749
|
*/
|
|
750
750
|
export const set = /*#__PURE__*/dual(3, (self, key, value) => {
|
package/dist/Redacted.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ export declare namespace Redacted {
|
|
|
147
147
|
* console.log(rotate({ token: "secret" })) // { token: "secret:rotated" }
|
|
148
148
|
* ```
|
|
149
149
|
*
|
|
150
|
-
* @category
|
|
150
|
+
* @category utility types
|
|
151
151
|
* @since 3.3.0
|
|
152
152
|
*/
|
|
153
153
|
type Value<T extends Redacted<any>> = [T] extends [Redacted<infer _A>] ? _A : never;
|
|
@@ -294,7 +294,7 @@ export declare const wipeUnsafe: <T>(self: Redacted<T>) => boolean;
|
|
|
294
294
|
* assert.equal(equivalence(API_KEY1, API_KEY3), true)
|
|
295
295
|
* ```
|
|
296
296
|
*
|
|
297
|
-
* @category
|
|
297
|
+
* @category instances
|
|
298
298
|
* @since 4.0.0
|
|
299
299
|
*/
|
|
300
300
|
export declare const makeEquivalence: <A>(isEquivalent: Equivalence.Equivalence<A>) => Equivalence.Equivalence<Redacted<A>>;
|
package/dist/Redacted.js
CHANGED
|
@@ -216,7 +216,7 @@ export const wipeUnsafe = self => redacted.redactedRegistry.delete(self);
|
|
|
216
216
|
* assert.equal(equivalence(API_KEY1, API_KEY3), true)
|
|
217
217
|
* ```
|
|
218
218
|
*
|
|
219
|
-
* @category
|
|
219
|
+
* @category instances
|
|
220
220
|
* @since 4.0.0
|
|
221
221
|
*/
|
|
222
222
|
export const makeEquivalence = isEquivalent => Equivalence.make((x, y) => isEquivalent(value(x), value(y)));
|
package/dist/Ref.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ export declare const set: (<A>(value: A) => (self: Ref<A>) => Effect.Effect<void
|
|
|
288
288
|
* @see {@link set} for setting without returning the previous value
|
|
289
289
|
* @see {@link getAndUpdate} for deriving the new value from the previous value
|
|
290
290
|
*
|
|
291
|
-
* @category
|
|
291
|
+
* @category mutations
|
|
292
292
|
* @since 2.0.0
|
|
293
293
|
*/
|
|
294
294
|
export declare const getAndSet: (<A>(value: A) => (self: Ref<A>) => Effect.Effect<A>) & (<A>(self: Ref<A>, value: A) => Effect.Effect<A>);
|
|
@@ -319,7 +319,7 @@ export declare const getAndSet: (<A>(value: A) => (self: Ref<A>) => Effect.Effec
|
|
|
319
319
|
* @see {@link update} for updating without returning the previous value
|
|
320
320
|
* @see {@link updateAndGet} for returning the new value instead
|
|
321
321
|
*
|
|
322
|
-
* @category
|
|
322
|
+
* @category mutations
|
|
323
323
|
* @since 2.0.0
|
|
324
324
|
*/
|
|
325
325
|
export declare const getAndUpdate: (<A>(f: (a: A) => A) => (self: Ref<A>) => Effect.Effect<A>) & (<A>(self: Ref<A>, f: (a: A) => A) => Effect.Effect<A>);
|
|
@@ -369,7 +369,7 @@ export declare const getAndUpdate: (<A>(f: (a: A) => A) => (self: Ref<A>) => Eff
|
|
|
369
369
|
* @see {@link getAndUpdate} for always applying an update
|
|
370
370
|
* @see {@link updateSome} for conditional updates without returning the previous value
|
|
371
371
|
*
|
|
372
|
-
* @category
|
|
372
|
+
* @category mutations
|
|
373
373
|
* @since 2.0.0
|
|
374
374
|
*/
|
|
375
375
|
export declare const getAndUpdateSome: (<A>(pf: (a: A) => Option.Option<A>) => (self: Ref<A>) => Effect.Effect<A>) & (<A>(self: Ref<A>, pf: (a: A) => Option.Option<A>) => Effect.Effect<A>);
|
|
@@ -407,7 +407,7 @@ export declare const getAndUpdateSome: (<A>(pf: (a: A) => Option.Option<A>) => (
|
|
|
407
407
|
* })
|
|
408
408
|
* ```
|
|
409
409
|
*
|
|
410
|
-
* @category
|
|
410
|
+
* @category mutations
|
|
411
411
|
* @since 2.0.0
|
|
412
412
|
*/
|
|
413
413
|
export declare const setAndGet: (<A>(value: A) => (self: Ref<A>) => Effect.Effect<A>) & (<A>(self: Ref<A>, value: A) => Effect.Effect<A>);
|
|
@@ -709,7 +709,7 @@ export declare const update: (<A>(f: (a: A) => A) => (self: Ref<A>) => Effect.Ef
|
|
|
709
709
|
* @see {@link update} for updating without returning the new value
|
|
710
710
|
* @see {@link getAndUpdate} for returning the previous value instead
|
|
711
711
|
*
|
|
712
|
-
* @category
|
|
712
|
+
* @category mutations
|
|
713
713
|
* @since 2.0.0
|
|
714
714
|
*/
|
|
715
715
|
export declare const updateAndGet: (<A>(f: (a: A) => A) => (self: Ref<A>) => Effect.Effect<A>) & (<A>(self: Ref<A>, f: (a: A) => A) => Effect.Effect<A>);
|
|
@@ -801,7 +801,7 @@ export declare const updateSome: (<A>(f: (a: A) => Option.Option<A>) => (self: R
|
|
|
801
801
|
* @see {@link updateSome} for conditional updates without returning a value
|
|
802
802
|
* @see {@link updateAndGet} for always updating and returning the new value
|
|
803
803
|
*
|
|
804
|
-
* @category
|
|
804
|
+
* @category mutations
|
|
805
805
|
* @since 2.0.0
|
|
806
806
|
*/
|
|
807
807
|
export declare const updateSomeAndGet: (<A>(pf: (a: A) => Option.Option<A>) => (self: Ref<A>) => Effect.Effect<A>) & (<A>(self: Ref<A>, pf: (a: A) => Option.Option<A>) => Effect.Effect<A>);
|