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/Channel.js
CHANGED
|
@@ -1827,7 +1827,7 @@ export const flatten = channels => flatMap(channels, identity_);
|
|
|
1827
1827
|
* // Outputs: 1, 2, 3, 4, 5, 6, 7, 8, 9
|
|
1828
1828
|
* ```
|
|
1829
1829
|
*
|
|
1830
|
-
* @category
|
|
1830
|
+
* @category transforming
|
|
1831
1831
|
* @since 4.0.0
|
|
1832
1832
|
*/
|
|
1833
1833
|
export const flattenArray = self => transformPull(self, pull => {
|
|
@@ -1867,7 +1867,7 @@ export const flattenArray = self => transformPull(self, pull => {
|
|
|
1867
1867
|
* Output `Take` values are emitted as non-empty arrays. Failed `Take` values
|
|
1868
1868
|
* fail the returned channel. Done `Take` values complete the returned channel.
|
|
1869
1869
|
*
|
|
1870
|
-
* @category
|
|
1870
|
+
* @category transforming
|
|
1871
1871
|
* @since 4.0.0
|
|
1872
1872
|
*/
|
|
1873
1873
|
export const flattenTake = self => mapEffectSequential(self, Take.toPull);
|
|
@@ -1899,7 +1899,7 @@ export const drain = self => transformPull(self, pull => Effect.succeed(Effect.f
|
|
|
1899
1899
|
/**
|
|
1900
1900
|
* Repeats this channel according to the provided schedule.
|
|
1901
1901
|
*
|
|
1902
|
-
* @category
|
|
1902
|
+
* @category repetition
|
|
1903
1903
|
* @since 4.0.0
|
|
1904
1904
|
*/
|
|
1905
1905
|
export const repeat = /*#__PURE__*/dual(2, (self, schedule) => Schedule.toStepWithMetadata(typeof schedule === "function" ? schedule(identity_) : schedule).pipe(Effect.map(step => {
|
|
@@ -1913,7 +1913,7 @@ export const repeat = /*#__PURE__*/dual(2, (self, schedule) => Schedule.toStepWi
|
|
|
1913
1913
|
/**
|
|
1914
1914
|
* Repeats this channel forever.
|
|
1915
1915
|
*
|
|
1916
|
-
* @category
|
|
1916
|
+
* @category repetition
|
|
1917
1917
|
* @since 4.0.0
|
|
1918
1918
|
*/
|
|
1919
1919
|
export const forever = self => concatWith(self, () => forever(self));
|
|
@@ -1928,7 +1928,7 @@ export const forever = self => concatWith(self, () => forever(self));
|
|
|
1928
1928
|
* fails. If the schedule finishes, the returned channel completes with the
|
|
1929
1929
|
* schedule output.
|
|
1930
1930
|
*
|
|
1931
|
-
* @category
|
|
1931
|
+
* @category sequencing
|
|
1932
1932
|
* @since 4.0.0
|
|
1933
1933
|
*/
|
|
1934
1934
|
export const schedule = /*#__PURE__*/dual(2, (self, schedule) => transformPull(self, (pull, _scope) => Effect.map(Schedule.toStepWithSleep(schedule), step => {
|
|
@@ -2672,7 +2672,7 @@ export const ignoreCause = /*#__PURE__*/dual(args => isChannel(args[0]), (self,
|
|
|
2672
2672
|
* Returns a new channel that retries this channel according to the specified
|
|
2673
2673
|
* schedule whenever it fails.
|
|
2674
2674
|
*
|
|
2675
|
-
* @category
|
|
2675
|
+
* @category error handling
|
|
2676
2676
|
* @since 4.0.0
|
|
2677
2677
|
*/
|
|
2678
2678
|
export const retry = /*#__PURE__*/dual(2, (self, schedule) => suspend(() => {
|
|
@@ -2760,7 +2760,7 @@ export const switchMap = /*#__PURE__*/dual(args => isChannel(args[0]), (self, f,
|
|
|
2760
2760
|
* // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
|
|
2761
2761
|
* ```
|
|
2762
2762
|
*
|
|
2763
|
-
* @category
|
|
2763
|
+
* @category combining
|
|
2764
2764
|
* @since 2.0.0
|
|
2765
2765
|
*/
|
|
2766
2766
|
export const mergeAll = /*#__PURE__*/dual(2, (channels, {
|
|
@@ -2831,7 +2831,7 @@ export const mergeAll = /*#__PURE__*/dual(2, (channels, {
|
|
|
2831
2831
|
* // Order may vary: 1, "a", 2, "b", 3, "c"
|
|
2832
2832
|
* ```
|
|
2833
2833
|
*
|
|
2834
|
-
* @category
|
|
2834
|
+
* @category combining
|
|
2835
2835
|
* @since 4.0.0
|
|
2836
2836
|
*/
|
|
2837
2837
|
export const merge = /*#__PURE__*/dual(args => isChannel(args[0]) && isChannel(args[1]), (left, right, options) => fromTransformBracket(Effect.fnUntraced(function* (upstream, _scope, forkedScope) {
|
|
@@ -2874,7 +2874,7 @@ export const merge = /*#__PURE__*/dual(args => isChannel(args[0]) && isChannel(a
|
|
|
2874
2874
|
* The effect's successful value is ignored. If the effect fails while the
|
|
2875
2875
|
* channel is running, the returned channel fails with that error.
|
|
2876
2876
|
*
|
|
2877
|
-
* @category
|
|
2877
|
+
* @category combining
|
|
2878
2878
|
* @since 4.0.0
|
|
2879
2879
|
*/
|
|
2880
2880
|
export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => merge(self, fromEffectDrain(effect), {
|
|
@@ -3052,7 +3052,7 @@ export const encodeText = () => fromTransform((upstream, _scope) => Effect.sync(
|
|
|
3052
3052
|
* // Outputs: 2, 4, 6
|
|
3053
3053
|
* ```
|
|
3054
3054
|
*
|
|
3055
|
-
* @category
|
|
3055
|
+
* @category sequencing
|
|
3056
3056
|
* @since 2.0.0
|
|
3057
3057
|
*/
|
|
3058
3058
|
export const pipeTo = /*#__PURE__*/dual(2, (self, that) => fromTransform((upstream, scope) => Effect.flatMap(toTransform(self)(upstream, scope), upstream => toTransform(that)(upstream, scope))));
|
|
@@ -3080,7 +3080,7 @@ export const pipeTo = /*#__PURE__*/dual(2, (self, that) => fromTransform((upstre
|
|
|
3080
3080
|
* // Source errors are preserved and not sent to transform channel
|
|
3081
3081
|
* ```
|
|
3082
3082
|
*
|
|
3083
|
-
* @category
|
|
3083
|
+
* @category sequencing
|
|
3084
3084
|
* @since 2.0.0
|
|
3085
3085
|
*/
|
|
3086
3086
|
export const pipeToOrFail = /*#__PURE__*/dual(2, (self, that) => fromTransform((upstream, scope) => Effect.flatMap(toTransform(self)(upstream, scope), upstream => {
|
|
@@ -3125,7 +3125,7 @@ export const unwrap = channel => fromTransform((upstream, scope) => {
|
|
|
3125
3125
|
* Runs a channel with a scope provided for the duration of the channel
|
|
3126
3126
|
* execution, removing the channel's `Scope` requirement.
|
|
3127
3127
|
*
|
|
3128
|
-
* @category
|
|
3128
|
+
* @category resource management
|
|
3129
3129
|
* @since 2.0.0
|
|
3130
3130
|
*/
|
|
3131
3131
|
export const scoped = self => fromTransformBracket((upstream, scope, forkedScope) => Effect.map(Scope.provide(toTransform(self)(upstream, scope), forkedScope), Scope.provide(forkedScope)));
|
|
@@ -3160,7 +3160,7 @@ export const scoped = self => fromTransformBracket((upstream, scope, forkedScope
|
|
|
3160
3160
|
* )
|
|
3161
3161
|
* ```
|
|
3162
3162
|
*
|
|
3163
|
-
* @category
|
|
3163
|
+
* @category sequencing
|
|
3164
3164
|
* @since 2.0.0
|
|
3165
3165
|
*/
|
|
3166
3166
|
export const embedInput = /*#__PURE__*/dual(2, (self, input) => fromTransformBracket((upstream, scope, forkedScope) => Effect.andThen(Effect.forkIn(input(upstream), forkedScope), toTransform(self)(Cause.done(), scope))));
|
|
@@ -3244,7 +3244,7 @@ export const bufferArray = /*#__PURE__*/dual(2, (self, options) => fromTransform
|
|
|
3244
3244
|
* channel's done value. If the channel completes first, the original channel's
|
|
3245
3245
|
* done value is preserved.
|
|
3246
3246
|
*
|
|
3247
|
-
* @category
|
|
3247
|
+
* @category interruption
|
|
3248
3248
|
* @since 2.0.0
|
|
3249
3249
|
*/
|
|
3250
3250
|
export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => merge(self, fromPull(Effect.succeed(Effect.flatMap(effect, Cause.done))), {
|
|
@@ -3260,7 +3260,7 @@ export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => merge(self,
|
|
|
3260
3260
|
* fails with that error. If the channel completes first, the channel's done
|
|
3261
3261
|
* value is preserved.
|
|
3262
3262
|
*
|
|
3263
|
-
* @category
|
|
3263
|
+
* @category interruption
|
|
3264
3264
|
* @since 4.0.0
|
|
3265
3265
|
*/
|
|
3266
3266
|
export const haltWhen = /*#__PURE__*/dual(2, (self, effect) => fromTransformBracket(Effect.fnUntraced(function* (upstream, scope, forkedScope) {
|
|
@@ -3280,7 +3280,7 @@ export const haltWhen = /*#__PURE__*/dual(2, (self, effect) => fromTransformBrac
|
|
|
3280
3280
|
* The finalizer receives the failure `Cause`. The original channel failure is
|
|
3281
3281
|
* preserved. The finalizer itself must not fail.
|
|
3282
3282
|
*
|
|
3283
|
-
* @category
|
|
3283
|
+
* @category error handling
|
|
3284
3284
|
* @since 4.0.0
|
|
3285
3285
|
*/
|
|
3286
3286
|
export const onError = /*#__PURE__*/dual(2, (self, finalizer) => onExit(self, exit => Exit.isFailure(exit) ? finalizer(exit.cause) : Effect.void));
|
|
@@ -3310,7 +3310,7 @@ export const onError = /*#__PURE__*/dual(2, (self, finalizer) => onExit(self, ex
|
|
|
3310
3310
|
* })
|
|
3311
3311
|
* ```
|
|
3312
3312
|
*
|
|
3313
|
-
* @category
|
|
3313
|
+
* @category resource management
|
|
3314
3314
|
* @since 4.0.0
|
|
3315
3315
|
*/
|
|
3316
3316
|
export const onExit = /*#__PURE__*/dual(2, (self, finalizer) => fromTransformBracket((upstream, scope, forkedScope) => Scope.addFinalizerExit(forkedScope, finalizer).pipe(Effect.andThen(toTransform(self)(upstream, scope)))));
|
|
@@ -3322,7 +3322,7 @@ export const onExit = /*#__PURE__*/dual(2, (self, finalizer) => fromTransformBra
|
|
|
3322
3322
|
* The effect's successful value is ignored. If the effect fails, the returned
|
|
3323
3323
|
* channel fails before running the source channel.
|
|
3324
3324
|
*
|
|
3325
|
-
* @category
|
|
3325
|
+
* @category hooks
|
|
3326
3326
|
* @since 4.0.0
|
|
3327
3327
|
*/
|
|
3328
3328
|
export const onStart = /*#__PURE__*/dual(2, (self, onStart) => unwrap(Effect.as(onStart, self)));
|
|
@@ -3335,7 +3335,7 @@ export const onStart = /*#__PURE__*/dual(2, (self, onStart) => unwrap(Effect.as(
|
|
|
3335
3335
|
* emitted unchanged. The effect is not run if the channel completes without
|
|
3336
3336
|
* emitting an element.
|
|
3337
3337
|
*
|
|
3338
|
-
* @category
|
|
3338
|
+
* @category hooks
|
|
3339
3339
|
* @since 4.0.0
|
|
3340
3340
|
*/
|
|
3341
3341
|
export const onFirst = /*#__PURE__*/dual(2, (self, onFirst) => transformPull(self, pull => Effect.sync(() => {
|
|
@@ -3355,7 +3355,7 @@ export const onFirst = /*#__PURE__*/dual(2, (self, onFirst) => transformPull(sel
|
|
|
3355
3355
|
* not run when the channel fails. If the effect fails, the returned channel
|
|
3356
3356
|
* fails with that error.
|
|
3357
3357
|
*
|
|
3358
|
-
* @category
|
|
3358
|
+
* @category hooks
|
|
3359
3359
|
* @since 4.0.0
|
|
3360
3360
|
*/
|
|
3361
3361
|
export const onEnd = /*#__PURE__*/dual(2, (self, onEnd) => transformPull(self, pull => Effect.succeed(Pull.catchDone(pull, leftover => Effect.flatMap(onEnd, () => Cause.done(leftover))))));
|
|
@@ -3382,7 +3382,7 @@ export const onEnd = /*#__PURE__*/dual(2, (self, onEnd) => transformPull(self, p
|
|
|
3382
3382
|
* )
|
|
3383
3383
|
* ```
|
|
3384
3384
|
*
|
|
3385
|
-
* @category
|
|
3385
|
+
* @category resource management
|
|
3386
3386
|
* @since 2.0.0
|
|
3387
3387
|
*/
|
|
3388
3388
|
export const ensuring = /*#__PURE__*/dual(2, (self, finalizer) => onExit(self, _ => finalizer));
|
|
@@ -3502,7 +3502,7 @@ const withSpanImpl = (self, name, options) => acquireUseRelease(Effect.makeSpan(
|
|
|
3502
3502
|
/**
|
|
3503
3503
|
* The starting channel for Do notation, emitting an empty object.
|
|
3504
3504
|
*
|
|
3505
|
-
* @category
|
|
3505
|
+
* @category do notation
|
|
3506
3506
|
* @since 4.0.0
|
|
3507
3507
|
*/
|
|
3508
3508
|
export const Do = /*#__PURE__*/succeed({});
|
|
@@ -3514,7 +3514,7 @@ export {
|
|
|
3514
3514
|
/**
|
|
3515
3515
|
* Adds a computed field to each object emitted by a channel.
|
|
3516
3516
|
*
|
|
3517
|
-
* @category
|
|
3517
|
+
* @category do notation
|
|
3518
3518
|
* @since 4.0.0
|
|
3519
3519
|
*/
|
|
3520
3520
|
let_ as let };
|
|
@@ -3528,7 +3528,7 @@ let_ as let };
|
|
|
3528
3528
|
* channel's output becomes the value of the new field. `options.concurrency`
|
|
3529
3529
|
* and `options.bufferSize` control how derived channels are flattened.
|
|
3530
3530
|
*
|
|
3531
|
-
* @category
|
|
3531
|
+
* @category do notation
|
|
3532
3532
|
* @since 4.0.0
|
|
3533
3533
|
*/
|
|
3534
3534
|
export const bind = /*#__PURE__*/dual(args => isChannel(args[0]), (self, name, f, options) => flatMap(self, elem => map(f(elem), b => ({
|
|
@@ -3547,7 +3547,7 @@ export const bind = /*#__PURE__*/dual(args => isChannel(args[0]), (self, name, f
|
|
|
3547
3547
|
* @see {@link bind} for adding a field produced by another channel
|
|
3548
3548
|
* @see {@link let_ let} for adding a computed field
|
|
3549
3549
|
*
|
|
3550
|
-
* @category
|
|
3550
|
+
* @category do notation
|
|
3551
3551
|
* @since 4.0.0
|
|
3552
3552
|
*/
|
|
3553
3553
|
export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, elem => ({
|
package/dist/Chunk.d.ts
CHANGED
|
@@ -190,7 +190,7 @@ interface ISlice<A> {
|
|
|
190
190
|
* console.log(eq(chunk1, chunk3)) // false
|
|
191
191
|
* ```
|
|
192
192
|
*
|
|
193
|
-
* @category
|
|
193
|
+
* @category instances
|
|
194
194
|
* @since 4.0.0
|
|
195
195
|
*/
|
|
196
196
|
export declare const makeEquivalence: <A>(isEquivalent: Equivalence.Equivalence<A>) => Equivalence.Equivalence<Chunk<A>>;
|
|
@@ -602,7 +602,7 @@ export declare const getUnsafe: {
|
|
|
602
602
|
* @see {@link prepend} for adding one element before the existing elements
|
|
603
603
|
* @see {@link appendAll} for appending all elements from another chunk
|
|
604
604
|
*
|
|
605
|
-
* @category
|
|
605
|
+
* @category combining
|
|
606
606
|
* @since 2.0.0
|
|
607
607
|
*/
|
|
608
608
|
export declare const append: {
|
|
@@ -632,7 +632,7 @@ export declare const append: {
|
|
|
632
632
|
* @see {@link prepend} for adding one element before the existing elements
|
|
633
633
|
* @see {@link appendAll} for appending all elements from another chunk
|
|
634
634
|
*
|
|
635
|
-
* @category
|
|
635
|
+
* @category combining
|
|
636
636
|
* @since 2.0.0
|
|
637
637
|
*/
|
|
638
638
|
<A2>(a: A2): <A>(self: Chunk<A>) => NonEmptyChunk<A2 | A>;
|
|
@@ -662,7 +662,7 @@ export declare const append: {
|
|
|
662
662
|
* @see {@link prepend} for adding one element before the existing elements
|
|
663
663
|
* @see {@link appendAll} for appending all elements from another chunk
|
|
664
664
|
*
|
|
665
|
-
* @category
|
|
665
|
+
* @category combining
|
|
666
666
|
* @since 2.0.0
|
|
667
667
|
*/
|
|
668
668
|
<A, A2>(self: Chunk<A>, a: A2): NonEmptyChunk<A | A2>;
|
|
@@ -685,7 +685,7 @@ export declare const append: {
|
|
|
685
685
|
* console.log(Chunk.toArray(singleElement)) // ["first"]
|
|
686
686
|
* ```
|
|
687
687
|
*
|
|
688
|
-
* @category
|
|
688
|
+
* @category combining
|
|
689
689
|
* @since 2.0.0
|
|
690
690
|
*/
|
|
691
691
|
export declare const prepend: {
|
|
@@ -707,7 +707,7 @@ export declare const prepend: {
|
|
|
707
707
|
* console.log(Chunk.toArray(singleElement)) // ["first"]
|
|
708
708
|
* ```
|
|
709
709
|
*
|
|
710
|
-
* @category
|
|
710
|
+
* @category combining
|
|
711
711
|
* @since 2.0.0
|
|
712
712
|
*/
|
|
713
713
|
<B>(elem: B): <A>(self: Chunk<A>) => NonEmptyChunk<B | A>;
|
|
@@ -729,7 +729,7 @@ export declare const prepend: {
|
|
|
729
729
|
* console.log(Chunk.toArray(singleElement)) // ["first"]
|
|
730
730
|
* ```
|
|
731
731
|
*
|
|
732
|
-
* @category
|
|
732
|
+
* @category combining
|
|
733
733
|
* @since 2.0.0
|
|
734
734
|
*/
|
|
735
735
|
<A, B>(self: Chunk<A>, elem: B): NonEmptyChunk<A | B>;
|
|
@@ -960,7 +960,7 @@ export declare const dropWhile: {
|
|
|
960
960
|
* // [ "a", "b", 1, 2 ]
|
|
961
961
|
* ```
|
|
962
962
|
*
|
|
963
|
-
* @category
|
|
963
|
+
* @category combining
|
|
964
964
|
* @since 2.0.0
|
|
965
965
|
*/
|
|
966
966
|
export declare const prependAll: {
|
|
@@ -982,7 +982,7 @@ export declare const prependAll: {
|
|
|
982
982
|
* // [ "a", "b", 1, 2 ]
|
|
983
983
|
* ```
|
|
984
984
|
*
|
|
985
|
-
* @category
|
|
985
|
+
* @category combining
|
|
986
986
|
* @since 2.0.0
|
|
987
987
|
*/
|
|
988
988
|
<S extends Chunk<any>, T extends Chunk<any>>(that: T): (self: S) => Chunk.OrNonEmpty<S, T, Chunk.Infer<S> | Chunk.Infer<T>>;
|
|
@@ -1004,7 +1004,7 @@ export declare const prependAll: {
|
|
|
1004
1004
|
* // [ "a", "b", 1, 2 ]
|
|
1005
1005
|
* ```
|
|
1006
1006
|
*
|
|
1007
|
-
* @category
|
|
1007
|
+
* @category combining
|
|
1008
1008
|
* @since 2.0.0
|
|
1009
1009
|
*/
|
|
1010
1010
|
<A, B>(self: Chunk<A>, that: NonEmptyChunk<B>): NonEmptyChunk<A | B>;
|
|
@@ -1026,7 +1026,7 @@ export declare const prependAll: {
|
|
|
1026
1026
|
* // [ "a", "b", 1, 2 ]
|
|
1027
1027
|
* ```
|
|
1028
1028
|
*
|
|
1029
|
-
* @category
|
|
1029
|
+
* @category combining
|
|
1030
1030
|
* @since 2.0.0
|
|
1031
1031
|
*/
|
|
1032
1032
|
<A, B>(self: NonEmptyChunk<A>, that: Chunk<B>): NonEmptyChunk<A | B>;
|
|
@@ -1048,7 +1048,7 @@ export declare const prependAll: {
|
|
|
1048
1048
|
* // [ "a", "b", 1, 2 ]
|
|
1049
1049
|
* ```
|
|
1050
1050
|
*
|
|
1051
|
-
* @category
|
|
1051
|
+
* @category combining
|
|
1052
1052
|
* @since 2.0.0
|
|
1053
1053
|
*/
|
|
1054
1054
|
<A, B>(self: Chunk<A>, that: Chunk<B>): Chunk<A | B>;
|
|
@@ -1079,7 +1079,7 @@ export declare const prependAll: {
|
|
|
1079
1079
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1080
1080
|
* @see {@link append} for adding a single element to the end
|
|
1081
1081
|
*
|
|
1082
|
-
* @category
|
|
1082
|
+
* @category combining
|
|
1083
1083
|
* @since 2.0.0
|
|
1084
1084
|
*/
|
|
1085
1085
|
export declare const appendAll: {
|
|
@@ -1109,7 +1109,7 @@ export declare const appendAll: {
|
|
|
1109
1109
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1110
1110
|
* @see {@link append} for adding a single element to the end
|
|
1111
1111
|
*
|
|
1112
|
-
* @category
|
|
1112
|
+
* @category combining
|
|
1113
1113
|
* @since 2.0.0
|
|
1114
1114
|
*/
|
|
1115
1115
|
<S extends Chunk<any>, T extends Chunk<any>>(that: T): (self: S) => Chunk.OrNonEmpty<S, T, Chunk.Infer<S> | Chunk.Infer<T>>;
|
|
@@ -1139,7 +1139,7 @@ export declare const appendAll: {
|
|
|
1139
1139
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1140
1140
|
* @see {@link append} for adding a single element to the end
|
|
1141
1141
|
*
|
|
1142
|
-
* @category
|
|
1142
|
+
* @category combining
|
|
1143
1143
|
* @since 2.0.0
|
|
1144
1144
|
*/
|
|
1145
1145
|
<A, B>(self: Chunk<A>, that: NonEmptyChunk<B>): NonEmptyChunk<A | B>;
|
|
@@ -1169,7 +1169,7 @@ export declare const appendAll: {
|
|
|
1169
1169
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1170
1170
|
* @see {@link append} for adding a single element to the end
|
|
1171
1171
|
*
|
|
1172
|
-
* @category
|
|
1172
|
+
* @category combining
|
|
1173
1173
|
* @since 2.0.0
|
|
1174
1174
|
*/
|
|
1175
1175
|
<A, B>(self: NonEmptyChunk<A>, that: Chunk<B>): NonEmptyChunk<A | B>;
|
|
@@ -1199,7 +1199,7 @@ export declare const appendAll: {
|
|
|
1199
1199
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1200
1200
|
* @see {@link append} for adding a single element to the end
|
|
1201
1201
|
*
|
|
1202
|
-
* @category
|
|
1202
|
+
* @category combining
|
|
1203
1203
|
* @since 2.0.0
|
|
1204
1204
|
*/
|
|
1205
1205
|
<A, B>(self: Chunk<A>, that: Chunk<B>): Chunk<A | B>;
|
package/dist/Chunk.js
CHANGED
|
@@ -108,7 +108,7 @@ const emptyArray = [];
|
|
|
108
108
|
* console.log(eq(chunk1, chunk3)) // false
|
|
109
109
|
* ```
|
|
110
110
|
*
|
|
111
|
-
* @category
|
|
111
|
+
* @category instances
|
|
112
112
|
* @since 4.0.0
|
|
113
113
|
*/
|
|
114
114
|
export const makeEquivalence = isEquivalent => Equivalence.make((self, that) => self.length === that.length && toReadonlyArray(self).every((value, i) => isEquivalent(value, getUnsafe(that, i))));
|
|
@@ -597,7 +597,7 @@ export const getUnsafe = /*#__PURE__*/dual(2, (self, index) => {
|
|
|
597
597
|
* @see {@link prepend} for adding one element before the existing elements
|
|
598
598
|
* @see {@link appendAll} for appending all elements from another chunk
|
|
599
599
|
*
|
|
600
|
-
* @category
|
|
600
|
+
* @category combining
|
|
601
601
|
* @since 2.0.0
|
|
602
602
|
*/
|
|
603
603
|
export const append = /*#__PURE__*/dual(2, (self, a) => appendAll(self, of(a)));
|
|
@@ -619,7 +619,7 @@ export const append = /*#__PURE__*/dual(2, (self, a) => appendAll(self, of(a)));
|
|
|
619
619
|
* console.log(Chunk.toArray(singleElement)) // ["first"]
|
|
620
620
|
* ```
|
|
621
621
|
*
|
|
622
|
-
* @category
|
|
622
|
+
* @category combining
|
|
623
623
|
* @since 2.0.0
|
|
624
624
|
*/
|
|
625
625
|
export const prepend = /*#__PURE__*/dual(2, (self, elem) => appendAll(of(elem), self));
|
|
@@ -793,7 +793,7 @@ export const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => {
|
|
|
793
793
|
* // [ "a", "b", 1, 2 ]
|
|
794
794
|
* ```
|
|
795
795
|
*
|
|
796
|
-
* @category
|
|
796
|
+
* @category combining
|
|
797
797
|
* @since 2.0.0
|
|
798
798
|
*/
|
|
799
799
|
export const prependAll = /*#__PURE__*/dual(2, (self, that) => appendAll(that, self));
|
|
@@ -823,7 +823,7 @@ export const prependAll = /*#__PURE__*/dual(2, (self, that) => appendAll(that, s
|
|
|
823
823
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
824
824
|
* @see {@link append} for adding a single element to the end
|
|
825
825
|
*
|
|
826
|
-
* @category
|
|
826
|
+
* @category combining
|
|
827
827
|
* @since 2.0.0
|
|
828
828
|
*/
|
|
829
829
|
export const appendAll = /*#__PURE__*/dual(2, (self, that) => {
|
package/dist/Context.d.ts
CHANGED
|
@@ -1722,7 +1722,7 @@ export declare const omit: <S extends ReadonlyArray<Key<any, any>>>(...keys: S)
|
|
|
1722
1722
|
* @see {@link pick} for keeping selected services
|
|
1723
1723
|
* @see {@link omit} for removing selected services
|
|
1724
1724
|
*
|
|
1725
|
-
* @category
|
|
1725
|
+
* @category mutations
|
|
1726
1726
|
* @since 4.0.0
|
|
1727
1727
|
*/
|
|
1728
1728
|
export declare const mutate: {
|
|
@@ -1741,7 +1741,7 @@ export declare const mutate: {
|
|
|
1741
1741
|
* @see {@link pick} for keeping selected services
|
|
1742
1742
|
* @see {@link omit} for removing selected services
|
|
1743
1743
|
*
|
|
1744
|
-
* @category
|
|
1744
|
+
* @category mutations
|
|
1745
1745
|
* @since 4.0.0
|
|
1746
1746
|
*/
|
|
1747
1747
|
<Services, B>(f: (context: Context<Services>) => Context<B>): <Services>(self: Context<Services>) => Context<B>;
|
|
@@ -1760,7 +1760,7 @@ export declare const mutate: {
|
|
|
1760
1760
|
* @see {@link pick} for keeping selected services
|
|
1761
1761
|
* @see {@link omit} for removing selected services
|
|
1762
1762
|
*
|
|
1763
|
-
* @category
|
|
1763
|
+
* @category mutations
|
|
1764
1764
|
* @since 4.0.0
|
|
1765
1765
|
*/
|
|
1766
1766
|
<Services, B>(self: Context<Services>, f: (context: Context<Services>) => Context<B>): Context<B>;
|
package/dist/Context.js
CHANGED
|
@@ -831,7 +831,7 @@ export const omit = (...keys) => self => withMapUnsafe(self, map => {
|
|
|
831
831
|
* @see {@link pick} for keeping selected services
|
|
832
832
|
* @see {@link omit} for removing selected services
|
|
833
833
|
*
|
|
834
|
-
* @category
|
|
834
|
+
* @category mutations
|
|
835
835
|
* @since 4.0.0
|
|
836
836
|
*/
|
|
837
837
|
export const mutate = /*#__PURE__*/dual(2, (self, f) => {
|
package/dist/Cron.d.ts
CHANGED
|
@@ -423,7 +423,7 @@ export declare const parseUnsafe: (cron: string, tz?: DateTime.TimeZone | string
|
|
|
423
423
|
* @see {@link next} for finding the next matching date/time
|
|
424
424
|
* @see {@link prev} for finding the previous matching date/time
|
|
425
425
|
*
|
|
426
|
-
* @category
|
|
426
|
+
* @category predicates
|
|
427
427
|
* @since 2.0.0
|
|
428
428
|
*/
|
|
429
429
|
export declare const match: (cron: Cron, date: DateTime.DateTime.Input) => boolean;
|
|
@@ -461,7 +461,7 @@ export declare const match: (cron: Cron, date: DateTime.DateTime.Input) => boole
|
|
|
461
461
|
* @see {@link prev} for finding the previous scheduled occurrence
|
|
462
462
|
* @see {@link sequence} for iterating future scheduled occurrences
|
|
463
463
|
*
|
|
464
|
-
* @category
|
|
464
|
+
* @category getters
|
|
465
465
|
* @since 2.0.0
|
|
466
466
|
*/
|
|
467
467
|
export declare const next: (cron: Cron, now?: DateTime.DateTime.Input) => Date;
|
|
@@ -484,7 +484,7 @@ export declare const next: (cron: Cron, now?: DateTime.DateTime.Input) => Date;
|
|
|
484
484
|
*
|
|
485
485
|
* @see {@link next} for finding the next scheduled occurrence
|
|
486
486
|
*
|
|
487
|
-
* @category
|
|
487
|
+
* @category getters
|
|
488
488
|
* @since 3.20.0
|
|
489
489
|
*/
|
|
490
490
|
export declare const prev: (cron: Cron, now?: DateTime.DateTime.Input) => Date;
|
|
@@ -518,7 +518,7 @@ export declare const prev: (cron: Cron, now?: DateTime.DateTime.Input) => Date;
|
|
|
518
518
|
*
|
|
519
519
|
* @see {@link next} for computing one next occurrence
|
|
520
520
|
*
|
|
521
|
-
* @category
|
|
521
|
+
* @category sequencing
|
|
522
522
|
* @since 2.0.0
|
|
523
523
|
*/
|
|
524
524
|
export declare const sequence: (cron: Cron, now?: DateTime.DateTime.Input) => IterableIterator<Date>;
|
package/dist/Cron.js
CHANGED
|
@@ -522,7 +522,7 @@ export const parseUnsafe = (cron, tz) => Result.getOrThrow(parse(cron, tz));
|
|
|
522
522
|
* @see {@link next} for finding the next matching date/time
|
|
523
523
|
* @see {@link prev} for finding the previous matching date/time
|
|
524
524
|
*
|
|
525
|
-
* @category
|
|
525
|
+
* @category predicates
|
|
526
526
|
* @since 2.0.0
|
|
527
527
|
*/
|
|
528
528
|
export const match = (cron, date) => {
|
|
@@ -587,7 +587,7 @@ const daysInMonth = date => new Date(Date.UTC(date.getUTCFullYear(), date.getUTC
|
|
|
587
587
|
* @see {@link prev} for finding the previous scheduled occurrence
|
|
588
588
|
* @see {@link sequence} for iterating future scheduled occurrences
|
|
589
589
|
*
|
|
590
|
-
* @category
|
|
590
|
+
* @category getters
|
|
591
591
|
* @since 2.0.0
|
|
592
592
|
*/
|
|
593
593
|
export const next = (cron, now) => {
|
|
@@ -612,7 +612,7 @@ export const next = (cron, now) => {
|
|
|
612
612
|
*
|
|
613
613
|
* @see {@link next} for finding the next scheduled occurrence
|
|
614
614
|
*
|
|
615
|
-
* @category
|
|
615
|
+
* @category getters
|
|
616
616
|
* @since 3.20.0
|
|
617
617
|
*/
|
|
618
618
|
export const prev = (cron, now) => {
|
|
@@ -781,7 +781,7 @@ const stepCron = (cron, now, direction) => {
|
|
|
781
781
|
*
|
|
782
782
|
* @see {@link next} for computing one next occurrence
|
|
783
783
|
*
|
|
784
|
-
* @category
|
|
784
|
+
* @category sequencing
|
|
785
785
|
* @since 2.0.0
|
|
786
786
|
*/
|
|
787
787
|
export const sequence = function* (cron, now) {
|