effect 3.13.0 → 3.13.2
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/cjs/Array.js.map +1 -1
- package/dist/cjs/Channel.js.map +1 -1
- package/dist/cjs/Chunk.js.map +1 -1
- package/dist/cjs/Context.js.map +1 -1
- package/dist/cjs/DateTime.js.map +1 -1
- package/dist/cjs/Duration.js +1 -3
- package/dist/cjs/Duration.js.map +1 -1
- package/dist/cjs/Effect.js.map +1 -1
- package/dist/cjs/Either.js.map +1 -1
- package/dist/cjs/Exit.js.map +1 -1
- package/dist/cjs/Function.js.map +1 -1
- package/dist/cjs/HashSet.js.map +1 -1
- package/dist/cjs/Iterable.js.map +1 -1
- package/dist/cjs/Layer.js.map +1 -1
- package/dist/cjs/List.js.map +1 -1
- package/dist/cjs/Logger.js.map +1 -1
- package/dist/cjs/Metric.js.map +1 -1
- package/dist/cjs/MetricKey.js.map +1 -1
- package/dist/cjs/MetricPolling.js.map +1 -1
- package/dist/cjs/Micro.js.map +1 -1
- package/dist/cjs/MutableHashMap.js.map +1 -1
- package/dist/cjs/Option.js +1 -1
- package/dist/cjs/Option.js.map +1 -1
- package/dist/cjs/ParseResult.js.map +1 -1
- package/dist/cjs/Predicate.js.map +1 -1
- package/dist/cjs/Record.js.map +1 -1
- package/dist/cjs/Request.js.map +1 -1
- package/dist/cjs/RequestResolver.js.map +1 -1
- package/dist/cjs/STM.js.map +1 -1
- package/dist/cjs/Schedule.js.map +1 -1
- package/dist/cjs/Schema.js.map +1 -1
- package/dist/cjs/SchemaAST.js +1 -1
- package/dist/cjs/SchemaAST.js.map +1 -1
- package/dist/cjs/Sink.js.map +1 -1
- package/dist/cjs/SortedMap.js.map +1 -1
- package/dist/cjs/Stream.js.map +1 -1
- package/dist/cjs/Struct.js.map +1 -1
- package/dist/cjs/Subscribable.js.map +1 -1
- package/dist/cjs/SubscriptionRef.js.map +1 -1
- package/dist/cjs/SynchronizedRef.js.map +1 -1
- package/dist/cjs/TArray.js.map +1 -1
- package/dist/cjs/TMap.js.map +1 -1
- package/dist/cjs/Take.js.map +1 -1
- package/dist/cjs/TestServices.js.map +1 -1
- package/dist/cjs/Unify.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/Array.d.ts.map +1 -1
- package/dist/dts/Cause.d.ts.map +1 -1
- package/dist/dts/Channel.d.ts.map +1 -1
- package/dist/dts/ChildExecutorDecision.d.ts.map +1 -1
- package/dist/dts/Chunk.d.ts.map +1 -1
- package/dist/dts/Config.d.ts.map +1 -1
- package/dist/dts/ConfigProvider.d.ts.map +1 -1
- package/dist/dts/Console.d.ts.map +1 -1
- package/dist/dts/Context.d.ts.map +1 -1
- package/dist/dts/DateTime.d.ts.map +1 -1
- package/dist/dts/Duration.d.ts +1 -3
- package/dist/dts/Duration.d.ts.map +1 -1
- package/dist/dts/Effect.d.ts.map +1 -1
- package/dist/dts/Either.d.ts.map +1 -1
- package/dist/dts/ExecutionStrategy.d.ts.map +1 -1
- package/dist/dts/Exit.d.ts.map +1 -1
- package/dist/dts/Fiber.d.ts.map +1 -1
- package/dist/dts/FiberRefsPatch.d.ts.map +1 -1
- package/dist/dts/Function.d.ts.map +1 -1
- package/dist/dts/GroupBy.d.ts.map +1 -1
- package/dist/dts/HashSet.d.ts.map +1 -1
- package/dist/dts/Iterable.d.ts.map +1 -1
- package/dist/dts/Layer.d.ts.map +1 -1
- package/dist/dts/List.d.ts.map +1 -1
- package/dist/dts/Logger.d.ts.map +1 -1
- package/dist/dts/Mailbox.d.ts.map +1 -1
- package/dist/dts/MergeDecision.d.ts.map +1 -1
- package/dist/dts/MergeStrategy.d.ts.map +1 -1
- package/dist/dts/Metric.d.ts.map +1 -1
- package/dist/dts/MetricKey.d.ts.map +1 -1
- package/dist/dts/MetricPolling.d.ts.map +1 -1
- package/dist/dts/Micro.d.ts.map +1 -1
- package/dist/dts/MutableHashMap.d.ts.map +1 -1
- package/dist/dts/Option.d.ts +3 -3
- package/dist/dts/Option.d.ts.map +1 -1
- package/dist/dts/ParseResult.d.ts.map +1 -1
- package/dist/dts/Predicate.d.ts.map +1 -1
- package/dist/dts/RcMap.d.ts.map +1 -1
- package/dist/dts/Record.d.ts.map +1 -1
- package/dist/dts/RedBlackTree.d.ts.map +1 -1
- package/dist/dts/Request.d.ts.map +1 -1
- package/dist/dts/RequestResolver.d.ts.map +1 -1
- package/dist/dts/Runtime.d.ts.map +1 -1
- package/dist/dts/STM.d.ts.map +1 -1
- package/dist/dts/Schedule.d.ts.map +1 -1
- package/dist/dts/Schema.d.ts.map +1 -1
- package/dist/dts/Sink.d.ts.map +1 -1
- package/dist/dts/SortedMap.d.ts.map +1 -1
- package/dist/dts/Stream.d.ts.map +1 -1
- package/dist/dts/StreamHaltStrategy.d.ts.map +1 -1
- package/dist/dts/Struct.d.ts.map +1 -1
- package/dist/dts/Subscribable.d.ts.map +1 -1
- package/dist/dts/SubscriptionRef.d.ts.map +1 -1
- package/dist/dts/SynchronizedRef.d.ts.map +1 -1
- package/dist/dts/TArray.d.ts.map +1 -1
- package/dist/dts/TMap.d.ts.map +1 -1
- package/dist/dts/TSubscriptionRef.d.ts.map +1 -1
- package/dist/dts/Take.d.ts.map +1 -1
- package/dist/dts/TestServices.d.ts.map +1 -1
- package/dist/dts/Unify.d.ts.map +1 -1
- package/dist/dts/UpstreamPullRequest.d.ts.map +1 -1
- package/dist/dts/UpstreamPullStrategy.d.ts.map +1 -1
- package/dist/esm/Array.js.map +1 -1
- package/dist/esm/Channel.js.map +1 -1
- package/dist/esm/Chunk.js.map +1 -1
- package/dist/esm/Context.js.map +1 -1
- package/dist/esm/DateTime.js.map +1 -1
- package/dist/esm/Duration.js +1 -3
- package/dist/esm/Duration.js.map +1 -1
- package/dist/esm/Effect.js.map +1 -1
- package/dist/esm/Either.js.map +1 -1
- package/dist/esm/Exit.js.map +1 -1
- package/dist/esm/Function.js.map +1 -1
- package/dist/esm/HashSet.js.map +1 -1
- package/dist/esm/Iterable.js.map +1 -1
- package/dist/esm/Layer.js.map +1 -1
- package/dist/esm/List.js.map +1 -1
- package/dist/esm/Logger.js.map +1 -1
- package/dist/esm/Metric.js.map +1 -1
- package/dist/esm/MetricKey.js.map +1 -1
- package/dist/esm/MetricPolling.js.map +1 -1
- package/dist/esm/Micro.js.map +1 -1
- package/dist/esm/MutableHashMap.js.map +1 -1
- package/dist/esm/Option.js +1 -1
- package/dist/esm/Option.js.map +1 -1
- package/dist/esm/ParseResult.js.map +1 -1
- package/dist/esm/Predicate.js.map +1 -1
- package/dist/esm/Record.js.map +1 -1
- package/dist/esm/Request.js.map +1 -1
- package/dist/esm/RequestResolver.js.map +1 -1
- package/dist/esm/STM.js.map +1 -1
- package/dist/esm/Schedule.js.map +1 -1
- package/dist/esm/Schema.js.map +1 -1
- package/dist/esm/SchemaAST.js +1 -1
- package/dist/esm/SchemaAST.js.map +1 -1
- package/dist/esm/Sink.js.map +1 -1
- package/dist/esm/SortedMap.js.map +1 -1
- package/dist/esm/Stream.js.map +1 -1
- package/dist/esm/Struct.js.map +1 -1
- package/dist/esm/Subscribable.js.map +1 -1
- package/dist/esm/SubscriptionRef.js.map +1 -1
- package/dist/esm/SynchronizedRef.js.map +1 -1
- package/dist/esm/TArray.js.map +1 -1
- package/dist/esm/TMap.js.map +1 -1
- package/dist/esm/Take.js.map +1 -1
- package/dist/esm/TestServices.js.map +1 -1
- package/dist/esm/Unify.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +22 -82
- package/src/Cause.ts +20 -20
- package/src/Channel.ts +14 -44
- package/src/ChildExecutorDecision.ts +11 -11
- package/src/Chunk.ts +23 -36
- package/src/Config.ts +27 -27
- package/src/ConfigProvider.ts +3 -3
- package/src/Console.ts +9 -9
- package/src/Context.ts +2 -9
- package/src/DateTime.ts +96 -104
- package/src/Duration.ts +1 -3
- package/src/Effect.ts +64 -229
- package/src/Either.ts +2 -8
- package/src/ExecutionStrategy.ts +11 -11
- package/src/Exit.ts +27 -29
- package/src/Fiber.ts +9 -9
- package/src/FiberRefsPatch.ts +3 -3
- package/src/Function.ts +2 -8
- package/src/GroupBy.ts +5 -5
- package/src/HashSet.ts +2 -7
- package/src/Iterable.ts +2 -7
- package/src/Layer.ts +22 -77
- package/src/List.ts +32 -43
- package/src/Logger.ts +21 -55
- package/src/Mailbox.ts +9 -9
- package/src/MergeDecision.ts +9 -9
- package/src/MergeStrategy.ts +9 -9
- package/src/Metric.ts +13 -47
- package/src/MetricKey.ts +4 -16
- package/src/MetricPolling.ts +1 -3
- package/src/Micro.ts +43 -104
- package/src/MutableHashMap.ts +1 -4
- package/src/Option.ts +4 -7
- package/src/ParseResult.ts +4 -14
- package/src/Predicate.ts +2 -6
- package/src/RcMap.ts +10 -10
- package/src/Record.ts +24 -90
- package/src/RedBlackTree.ts +14 -14
- package/src/Request.ts +2 -7
- package/src/RequestResolver.ts +6 -22
- package/src/Runtime.ts +4 -4
- package/src/STM.ts +17 -67
- package/src/Schedule.ts +37 -126
- package/src/Schema.ts +99 -123
- package/src/SchemaAST.ts +1 -1
- package/src/Sink.ts +20 -68
- package/src/SortedMap.ts +1 -3
- package/src/Stream.ts +86 -311
- package/src/StreamHaltStrategy.ts +13 -13
- package/src/Struct.ts +2 -7
- package/src/Subscribable.ts +1 -3
- package/src/SubscriptionRef.ts +1 -3
- package/src/SynchronizedRef.ts +17 -19
- package/src/TArray.ts +7 -10
- package/src/TMap.ts +4 -13
- package/src/TSubscriptionRef.ts +3 -3
- package/src/Take.ts +24 -29
- package/src/TestServices.ts +1 -3
- package/src/Unify.ts +1 -3
- package/src/UpstreamPullRequest.ts +9 -9
- package/src/UpstreamPullStrategy.ts +9 -9
- package/src/internal/version.ts +1 -1
package/src/Logger.ts
CHANGED
|
@@ -140,17 +140,12 @@ export const mapInput: {
|
|
|
140
140
|
* @since 2.0.0
|
|
141
141
|
* @category mapping
|
|
142
142
|
*/
|
|
143
|
-
<Message, Message2>(
|
|
144
|
-
f: (message: Message2) => Message
|
|
145
|
-
): <Output>(self: Logger<Message, Output>) => Logger<Message2, Output>
|
|
143
|
+
<Message, Message2>(f: (message: Message2) => Message): <Output>(self: Logger<Message, Output>) => Logger<Message2, Output>
|
|
146
144
|
/**
|
|
147
145
|
* @since 2.0.0
|
|
148
146
|
* @category mapping
|
|
149
147
|
*/
|
|
150
|
-
<Output, Message, Message2>(
|
|
151
|
-
self: Logger<Message, Output>,
|
|
152
|
-
f: (message: Message2) => Message
|
|
153
|
-
): Logger<Message2, Output>
|
|
148
|
+
<Output, Message, Message2>(self: Logger<Message, Output>, f: (message: Message2) => Message): Logger<Message2, Output>
|
|
154
149
|
} = internal.mapInput
|
|
155
150
|
|
|
156
151
|
/**
|
|
@@ -162,16 +157,14 @@ export const mapInputOptions: {
|
|
|
162
157
|
* @since 2.0.0
|
|
163
158
|
* @category mapping
|
|
164
159
|
*/
|
|
165
|
-
<Message, Message2>(
|
|
166
|
-
f: (options: Logger.Options<Message2>) => Logger.Options<Message>
|
|
167
|
-
): <Output>(self: Logger<Message, Output>) => Logger<Message2, Output>
|
|
160
|
+
<Message, Message2>(f: (options: Logger.Options<Message2>) => Logger.Options<Message>): <Output>(self: Logger<Message, Output>) => Logger<Message2, Output>
|
|
168
161
|
/**
|
|
169
162
|
* @since 2.0.0
|
|
170
163
|
* @category mapping
|
|
171
164
|
*/
|
|
172
165
|
<Output, Message, Message2>(
|
|
173
|
-
|
|
174
|
-
|
|
166
|
+
self: Logger<Message, Output>,
|
|
167
|
+
f: (options: Logger.Options<Message2>) => Logger.Options<Message>
|
|
175
168
|
): Logger<Message2, Output>
|
|
176
169
|
} = internal.mapInputOptions
|
|
177
170
|
|
|
@@ -190,9 +183,7 @@ export const filterLogLevel: {
|
|
|
190
183
|
* @since 2.0.0
|
|
191
184
|
* @category filtering
|
|
192
185
|
*/
|
|
193
|
-
(
|
|
194
|
-
f: (logLevel: LogLevel.LogLevel) => boolean
|
|
195
|
-
): <Message, Output>(self: Logger<Message, Output>) => Logger<Message, Option.Option<Output>>
|
|
186
|
+
(f: (logLevel: LogLevel.LogLevel) => boolean): <Message, Output>(self: Logger<Message, Output>) => Logger<Message, Option.Option<Output>>
|
|
196
187
|
/**
|
|
197
188
|
* Returns a version of this logger that only logs messages when the log level
|
|
198
189
|
* satisfies the specified predicate.
|
|
@@ -200,10 +191,7 @@ export const filterLogLevel: {
|
|
|
200
191
|
* @since 2.0.0
|
|
201
192
|
* @category filtering
|
|
202
193
|
*/
|
|
203
|
-
<Message, Output>(
|
|
204
|
-
self: Logger<Message, Output>,
|
|
205
|
-
f: (logLevel: LogLevel.LogLevel) => boolean
|
|
206
|
-
): Logger<Message, Option.Option<Output>>
|
|
194
|
+
<Message, Output>(self: Logger<Message, Output>, f: (logLevel: LogLevel.LogLevel) => boolean): Logger<Message, Option.Option<Output>>
|
|
207
195
|
} = internal.filterLogLevel
|
|
208
196
|
|
|
209
197
|
/**
|
|
@@ -215,9 +203,7 @@ export const map: {
|
|
|
215
203
|
* @since 2.0.0
|
|
216
204
|
* @category mapping
|
|
217
205
|
*/
|
|
218
|
-
<Output, Output2>(
|
|
219
|
-
f: (output: Output) => Output2
|
|
220
|
-
): <Message>(self: Logger<Message, Output>) => Logger<Message, Output2>
|
|
206
|
+
<Output, Output2>(f: (output: Output) => Output2): <Message>(self: Logger<Message, Output>) => Logger<Message, Output2>
|
|
221
207
|
/**
|
|
222
208
|
* @since 2.0.0
|
|
223
209
|
* @category mapping
|
|
@@ -295,8 +281,8 @@ export const batched: {
|
|
|
295
281
|
* @category mapping
|
|
296
282
|
*/
|
|
297
283
|
<Output, R>(
|
|
298
|
-
|
|
299
|
-
|
|
284
|
+
window: DurationInput,
|
|
285
|
+
f: (messages: Array<Types.NoInfer<Output>>) => Effect<void, never, R>
|
|
300
286
|
): <Message>(self: Logger<Message, Output>) => Effect<Logger<Message, void>, never, R | Scope>
|
|
301
287
|
/**
|
|
302
288
|
* Creates a batched logger that groups log messages together and processes them
|
|
@@ -333,9 +319,9 @@ export const batched: {
|
|
|
333
319
|
* @category mapping
|
|
334
320
|
*/
|
|
335
321
|
<Message, Output, R>(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
322
|
+
self: Logger<Message, Output>,
|
|
323
|
+
window: DurationInput,
|
|
324
|
+
f: (messages: Array<Types.NoInfer<Output>>) => Effect<void, never, R>
|
|
339
325
|
): Effect<Logger<Message, void>, never, Scope | R>
|
|
340
326
|
} = fiberRuntime.batchedLogger
|
|
341
327
|
|
|
@@ -432,17 +418,12 @@ export const replaceScoped: {
|
|
|
432
418
|
* @since 2.0.0
|
|
433
419
|
* @category context
|
|
434
420
|
*/
|
|
435
|
-
<B, E, R>(
|
|
436
|
-
that: Effect<Logger<unknown, B>, E, R>
|
|
437
|
-
): <A>(self: Logger<unknown, A>) => Layer.Layer<never, E, Exclude<R, Scope>>
|
|
421
|
+
<B, E, R>(that: Effect<Logger<unknown, B>, E, R>): <A>(self: Logger<unknown, A>) => Layer.Layer<never, E, Exclude<R, Scope>>
|
|
438
422
|
/**
|
|
439
423
|
* @since 2.0.0
|
|
440
424
|
* @category context
|
|
441
425
|
*/
|
|
442
|
-
<A, B, E, R>(
|
|
443
|
-
self: Logger<unknown, A>,
|
|
444
|
-
that: Effect<Logger<unknown, B>, E, R>
|
|
445
|
-
): Layer.Layer<never, E, Exclude<R, Scope>>
|
|
426
|
+
<A, B, E, R>(self: Logger<unknown, A>, that: Effect<Logger<unknown, B>, E, R>): Layer.Layer<never, E, Exclude<R, Scope>>
|
|
446
427
|
} = circular.replaceLoggerScoped
|
|
447
428
|
|
|
448
429
|
/**
|
|
@@ -558,9 +539,7 @@ export const zip: {
|
|
|
558
539
|
* @since 2.0.0
|
|
559
540
|
* @category zipping
|
|
560
541
|
*/
|
|
561
|
-
<Message2, Output2>(
|
|
562
|
-
that: Logger<Message2, Output2>
|
|
563
|
-
): <Message, Output>(self: Logger<Message, Output>) => Logger<Message & Message2, [Output, Output2]>
|
|
542
|
+
<Message2, Output2>(that: Logger<Message2, Output2>): <Message, Output>(self: Logger<Message, Output>) => Logger<Message & Message2, [Output, Output2]>
|
|
564
543
|
/**
|
|
565
544
|
* Combines this logger with the specified logger to produce a new logger that
|
|
566
545
|
* logs to both this logger and that logger.
|
|
@@ -568,10 +547,7 @@ export const zip: {
|
|
|
568
547
|
* @since 2.0.0
|
|
569
548
|
* @category zipping
|
|
570
549
|
*/
|
|
571
|
-
<Message, Output, Message2, Output2>(
|
|
572
|
-
self: Logger<Message, Output>,
|
|
573
|
-
that: Logger<Message2, Output2>
|
|
574
|
-
): Logger<Message & Message2, [Output, Output2]>
|
|
550
|
+
<Message, Output, Message2, Output2>(self: Logger<Message, Output>, that: Logger<Message2, Output2>): Logger<Message & Message2, [Output, Output2]>
|
|
575
551
|
} = internal.zip
|
|
576
552
|
|
|
577
553
|
/**
|
|
@@ -583,17 +559,12 @@ export const zipLeft: {
|
|
|
583
559
|
* @since 2.0.0
|
|
584
560
|
* @category zipping
|
|
585
561
|
*/
|
|
586
|
-
<Message2, Output2>(
|
|
587
|
-
that: Logger<Message2, Output2>
|
|
588
|
-
): <Message, Output>(self: Logger<Message, Output>) => Logger<Message & Message2, Output>
|
|
562
|
+
<Message2, Output2>(that: Logger<Message2, Output2>): <Message, Output>(self: Logger<Message, Output>) => Logger<Message & Message2, Output>
|
|
589
563
|
/**
|
|
590
564
|
* @since 2.0.0
|
|
591
565
|
* @category zipping
|
|
592
566
|
*/
|
|
593
|
-
<Message, Output, Message2, Output2>(
|
|
594
|
-
self: Logger<Message, Output>,
|
|
595
|
-
that: Logger<Message2, Output2>
|
|
596
|
-
): Logger<Message & Message2, Output>
|
|
567
|
+
<Message, Output, Message2, Output2>(self: Logger<Message, Output>, that: Logger<Message2, Output2>): Logger<Message & Message2, Output>
|
|
597
568
|
} = internal.zipLeft
|
|
598
569
|
|
|
599
570
|
/**
|
|
@@ -605,17 +576,12 @@ export const zipRight: {
|
|
|
605
576
|
* @since 2.0.0
|
|
606
577
|
* @category zipping
|
|
607
578
|
*/
|
|
608
|
-
<Message2, Output2>(
|
|
609
|
-
that: Logger<Message2, Output2>
|
|
610
|
-
): <Message, Output>(self: Logger<Message, Output>) => Logger<Message & Message2, Output2>
|
|
579
|
+
<Message2, Output2>(that: Logger<Message2, Output2>): <Message, Output>(self: Logger<Message, Output>) => Logger<Message & Message2, Output2>
|
|
611
580
|
/**
|
|
612
581
|
* @since 2.0.0
|
|
613
582
|
* @category zipping
|
|
614
583
|
*/
|
|
615
|
-
<Message, Output, Message2, Output2>(
|
|
616
|
-
self: Logger<Message, Output>,
|
|
617
|
-
that: Logger<Message2, Output2>
|
|
618
|
-
): Logger<Message & Message2, Output2>
|
|
584
|
+
<Message, Output, Message2, Output2>(self: Logger<Message, Output>, that: Logger<Message2, Output2>): Logger<Message & Message2, Output2>
|
|
619
585
|
} = internal.zipRight
|
|
620
586
|
|
|
621
587
|
/**
|
package/src/Mailbox.ts
CHANGED
|
@@ -275,10 +275,10 @@ export const fromStream: {
|
|
|
275
275
|
* @category conversions
|
|
276
276
|
*/
|
|
277
277
|
(
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
278
|
+
options?: {
|
|
279
|
+
readonly capacity?: number | undefined
|
|
280
|
+
readonly strategy?: "suspend" | "dropping" | "sliding" | undefined
|
|
281
|
+
}
|
|
282
282
|
): <A, E, R>(self: Stream<A, E, R>) => Effect<ReadonlyMailbox<A, E>, never, R | Scope>
|
|
283
283
|
/**
|
|
284
284
|
* Create a `ReadonlyMailbox` from a `Stream`.
|
|
@@ -288,10 +288,10 @@ export const fromStream: {
|
|
|
288
288
|
* @category conversions
|
|
289
289
|
*/
|
|
290
290
|
<A, E, R>(
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
291
|
+
self: Stream<A, E, R>,
|
|
292
|
+
options?: {
|
|
293
|
+
readonly capacity?: number | undefined
|
|
294
|
+
readonly strategy?: "suspend" | "dropping" | "sliding" | undefined
|
|
295
|
+
}
|
|
296
296
|
): Effect<ReadonlyMailbox<A, E>, never, R | Scope>
|
|
297
297
|
} = internal.fromStream
|
package/src/MergeDecision.ts
CHANGED
|
@@ -84,20 +84,20 @@ export const match: {
|
|
|
84
84
|
* @category folding
|
|
85
85
|
*/
|
|
86
86
|
<R, E0, Z0, E, Z, Z2>(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
options: {
|
|
88
|
+
readonly onDone: (effect: Effect.Effect<Z, E, R>) => Z2
|
|
89
|
+
readonly onAwait: (f: (exit: Exit.Exit<Z0, E0>) => Effect.Effect<Z, E, R>) => Z2
|
|
90
|
+
}
|
|
91
91
|
): (self: MergeDecision<R, E0, Z0, E, Z>) => Z2
|
|
92
92
|
/**
|
|
93
93
|
* @since 2.0.0
|
|
94
94
|
* @category folding
|
|
95
95
|
*/
|
|
96
96
|
<R, E0, Z0, E, Z, Z2>(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
self: MergeDecision<R, E0, Z0, E, Z>,
|
|
98
|
+
options: {
|
|
99
|
+
readonly onDone: (effect: Effect.Effect<Z, E, R>) => Z2
|
|
100
|
+
readonly onAwait: (f: (exit: Exit.Exit<Z0, E0>) => Effect.Effect<Z, E, R>) => Z2
|
|
101
|
+
}
|
|
102
102
|
): Z2
|
|
103
103
|
} = internal.match
|
package/src/MergeStrategy.ts
CHANGED
|
@@ -103,10 +103,10 @@ export const match: {
|
|
|
103
103
|
* @category folding
|
|
104
104
|
*/
|
|
105
105
|
<A>(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
options: {
|
|
107
|
+
readonly onBackPressure: () => A
|
|
108
|
+
readonly onBufferSliding: () => A
|
|
109
|
+
}
|
|
110
110
|
): (self: MergeStrategy) => A
|
|
111
111
|
/**
|
|
112
112
|
* Folds an `MergeStrategy` into a value of type `A`.
|
|
@@ -115,10 +115,10 @@ export const match: {
|
|
|
115
115
|
* @category folding
|
|
116
116
|
*/
|
|
117
117
|
<A>(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
self: MergeStrategy,
|
|
119
|
+
options: {
|
|
120
|
+
readonly onBackPressure: () => A
|
|
121
|
+
readonly onBufferSliding: () => A
|
|
122
|
+
}
|
|
123
123
|
): A
|
|
124
124
|
} = internal.match
|
package/src/Metric.ts
CHANGED
|
@@ -720,9 +720,7 @@ export const taggedWithLabelsInput: {
|
|
|
720
720
|
* @since 2.0.0
|
|
721
721
|
* @category utils
|
|
722
722
|
*/
|
|
723
|
-
<In>(
|
|
724
|
-
f: (input: In) => Iterable<MetricLabel.MetricLabel>
|
|
725
|
-
): <Type, Out>(self: Metric<Type, In, Out>) => Metric<Type, In, void>
|
|
723
|
+
<In>(f: (input: In) => Iterable<MetricLabel.MetricLabel>): <Type, Out>(self: Metric<Type, In, Out>) => Metric<Type, In, void>
|
|
726
724
|
/**
|
|
727
725
|
* Returns a new metric, which is identical in every way to this one, except
|
|
728
726
|
* dynamic tags are added based on the update values. Note that the metric
|
|
@@ -811,9 +809,7 @@ export const trackAll: {
|
|
|
811
809
|
* @since 2.0.0
|
|
812
810
|
* @category aspects
|
|
813
811
|
*/
|
|
814
|
-
<In>(
|
|
815
|
-
input: In
|
|
816
|
-
): <Type, Out>(self: Metric<Type, In, Out>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
812
|
+
<In>(input: In): <Type, Out>(self: Metric<Type, In, Out>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
817
813
|
/**
|
|
818
814
|
* Returns an aspect that will update this metric with the specified constant
|
|
819
815
|
* value every time the aspect is applied to an effect, regardless of whether
|
|
@@ -822,10 +818,7 @@ export const trackAll: {
|
|
|
822
818
|
* @since 2.0.0
|
|
823
819
|
* @category aspects
|
|
824
820
|
*/
|
|
825
|
-
<Type, In, Out>(
|
|
826
|
-
self: Metric<Type, In, Out>,
|
|
827
|
-
input: In
|
|
828
|
-
): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
821
|
+
<Type, In, Out>(self: Metric<Type, In, Out>, input: In): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
829
822
|
} = internal.trackAll
|
|
830
823
|
|
|
831
824
|
/**
|
|
@@ -871,10 +864,7 @@ export const trackDefectWith: {
|
|
|
871
864
|
* @since 2.0.0
|
|
872
865
|
* @category aspects
|
|
873
866
|
*/
|
|
874
|
-
<Type, In, Out>(
|
|
875
|
-
metric: Metric<Type, In, Out>,
|
|
876
|
-
f: (defect: unknown) => In
|
|
877
|
-
): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
867
|
+
<Type, In, Out>(metric: Metric<Type, In, Out>, f: (defect: unknown) => In): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
878
868
|
/**
|
|
879
869
|
* Returns an aspect that will update this metric with the result of applying
|
|
880
870
|
* the specified function to the defect throwables of the effects that the
|
|
@@ -907,9 +897,7 @@ export const trackDuration: {
|
|
|
907
897
|
* @since 2.0.0
|
|
908
898
|
* @category aspects
|
|
909
899
|
*/
|
|
910
|
-
<Type, Out>(
|
|
911
|
-
metric: Metric<Type, Duration.Duration, Out>
|
|
912
|
-
): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
900
|
+
<Type, Out>(metric: Metric<Type, Duration.Duration, Out>): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
913
901
|
/**
|
|
914
902
|
* Returns an aspect that will update this metric with the duration that the
|
|
915
903
|
* effect takes to execute. To call this method, the input type of the metric
|
|
@@ -918,10 +906,7 @@ export const trackDuration: {
|
|
|
918
906
|
* @since 2.0.0
|
|
919
907
|
* @category aspects
|
|
920
908
|
*/
|
|
921
|
-
<A, E, R, Type, Out>(
|
|
922
|
-
self: Effect.Effect<A, E, R>,
|
|
923
|
-
metric: Metric<Type, Duration.Duration, Out>
|
|
924
|
-
): Effect.Effect<A, E, R>
|
|
909
|
+
<A, E, R, Type, Out>(self: Effect.Effect<A, E, R>, metric: Metric<Type, Duration.Duration, Out>): Effect.Effect<A, E, R>
|
|
925
910
|
} = internal.trackDuration
|
|
926
911
|
|
|
927
912
|
/**
|
|
@@ -941,10 +926,7 @@ export const trackDurationWith: {
|
|
|
941
926
|
* @since 2.0.0
|
|
942
927
|
* @category aspects
|
|
943
928
|
*/
|
|
944
|
-
<Type, In, Out>(
|
|
945
|
-
metric: Metric<Type, In, Out>,
|
|
946
|
-
f: (duration: Duration.Duration) => In
|
|
947
|
-
): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
929
|
+
<Type, In, Out>(metric: Metric<Type, In, Out>, f: (duration: Duration.Duration) => In): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
948
930
|
/**
|
|
949
931
|
* Returns an aspect that will update this metric with the duration that the
|
|
950
932
|
* effect takes to execute. To call this method, you must supply a function
|
|
@@ -975,9 +957,7 @@ export const trackError: {
|
|
|
975
957
|
* @since 2.0.0
|
|
976
958
|
* @category aspects
|
|
977
959
|
*/
|
|
978
|
-
<Type, In, Out>(
|
|
979
|
-
metric: Metric<Type, In, Out>
|
|
980
|
-
): <A, E extends In, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
960
|
+
<Type, In, Out>(metric: Metric<Type, In, Out>): <A, E extends In, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
981
961
|
/**
|
|
982
962
|
* Returns an aspect that will update this metric with the failure value of
|
|
983
963
|
* the effects that it is applied to.
|
|
@@ -985,10 +965,7 @@ export const trackError: {
|
|
|
985
965
|
* @since 2.0.0
|
|
986
966
|
* @category aspects
|
|
987
967
|
*/
|
|
988
|
-
<A, E extends In, R, Type, In, Out>(
|
|
989
|
-
self: Effect.Effect<A, E, R>,
|
|
990
|
-
metric: Metric<Type, In, Out>
|
|
991
|
-
): Effect.Effect<A, E, R>
|
|
968
|
+
<A, E extends In, R, Type, In, Out>(self: Effect.Effect<A, E, R>, metric: Metric<Type, In, Out>): Effect.Effect<A, E, R>
|
|
992
969
|
} = internal.trackError
|
|
993
970
|
|
|
994
971
|
/**
|
|
@@ -1008,10 +985,7 @@ export const trackErrorWith: {
|
|
|
1008
985
|
* @since 2.0.0
|
|
1009
986
|
* @category aspects
|
|
1010
987
|
*/
|
|
1011
|
-
<Type, In, Out, In2>(
|
|
1012
|
-
metric: Metric<Type, In, Out>,
|
|
1013
|
-
f: (error: In2) => In
|
|
1014
|
-
): <A, E extends In2, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
988
|
+
<Type, In, Out, In2>(metric: Metric<Type, In, Out>, f: (error: In2) => In): <A, E extends In2, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
1015
989
|
/**
|
|
1016
990
|
* Returns an aspect that will update this metric with the result of applying
|
|
1017
991
|
* the specified function to the error value of the effects that the aspect is
|
|
@@ -1042,9 +1016,7 @@ export const trackSuccess: {
|
|
|
1042
1016
|
* @since 2.0.0
|
|
1043
1017
|
* @category aspects
|
|
1044
1018
|
*/
|
|
1045
|
-
<Type, In, Out>(
|
|
1046
|
-
metric: Metric<Type, In, Out>
|
|
1047
|
-
): <A extends In, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
1019
|
+
<Type, In, Out>(metric: Metric<Type, In, Out>): <A extends In, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
1048
1020
|
/**
|
|
1049
1021
|
* Returns an aspect that will update this metric with the success value of
|
|
1050
1022
|
* the effects that it is applied to.
|
|
@@ -1052,10 +1024,7 @@ export const trackSuccess: {
|
|
|
1052
1024
|
* @since 2.0.0
|
|
1053
1025
|
* @category aspects
|
|
1054
1026
|
*/
|
|
1055
|
-
<A extends In, E, R, Type, In, Out>(
|
|
1056
|
-
self: Effect.Effect<A, E, R>,
|
|
1057
|
-
metric: Metric<Type, In, Out>
|
|
1058
|
-
): Effect.Effect<A, E, R>
|
|
1027
|
+
<A extends In, E, R, Type, In, Out>(self: Effect.Effect<A, E, R>, metric: Metric<Type, In, Out>): Effect.Effect<A, E, R>
|
|
1059
1028
|
} = internal.trackSuccess
|
|
1060
1029
|
|
|
1061
1030
|
/**
|
|
@@ -1075,10 +1044,7 @@ export const trackSuccessWith: {
|
|
|
1075
1044
|
* @since 2.0.0
|
|
1076
1045
|
* @category aspects
|
|
1077
1046
|
*/
|
|
1078
|
-
<Type, In, Out, In2>(
|
|
1079
|
-
metric: Metric<Type, In, Out>,
|
|
1080
|
-
f: (value: In2) => In
|
|
1081
|
-
): <A extends In2, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
1047
|
+
<Type, In, Out, In2>(metric: Metric<Type, In, Out>, f: (value: In2) => In): <A extends In2, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
|
|
1082
1048
|
/**
|
|
1083
1049
|
* Returns an aspect that will update this metric with the result of applying
|
|
1084
1050
|
* the specified function to the success value of the effects that the aspect is
|
package/src/MetricKey.ts
CHANGED
|
@@ -232,21 +232,14 @@ export const tagged: {
|
|
|
232
232
|
* @since 2.0.0
|
|
233
233
|
* @category constructors
|
|
234
234
|
*/
|
|
235
|
-
(
|
|
236
|
-
key: string,
|
|
237
|
-
value: string
|
|
238
|
-
): <Type extends MetricKeyType.MetricKeyType<any, any>>(self: MetricKey<Type>) => MetricKey<Type>
|
|
235
|
+
(key: string, value: string): <Type extends MetricKeyType.MetricKeyType<any, any>>(self: MetricKey<Type>) => MetricKey<Type>
|
|
239
236
|
/**
|
|
240
237
|
* Returns a new `MetricKey` with the specified tag appended.
|
|
241
238
|
*
|
|
242
239
|
* @since 2.0.0
|
|
243
240
|
* @category constructors
|
|
244
241
|
*/
|
|
245
|
-
<Type extends MetricKeyType.MetricKeyType<any, any>>(
|
|
246
|
-
self: MetricKey<Type>,
|
|
247
|
-
key: string,
|
|
248
|
-
value: string
|
|
249
|
-
): MetricKey<Type>
|
|
242
|
+
<Type extends MetricKeyType.MetricKeyType<any, any>>(self: MetricKey<Type>, key: string, value: string): MetricKey<Type>
|
|
250
243
|
} = internal.tagged
|
|
251
244
|
|
|
252
245
|
/**
|
|
@@ -262,17 +255,12 @@ export const taggedWithLabels: {
|
|
|
262
255
|
* @since 2.0.0
|
|
263
256
|
* @category constructors
|
|
264
257
|
*/
|
|
265
|
-
(
|
|
266
|
-
extraTags: ReadonlyArray<MetricLabel.MetricLabel>
|
|
267
|
-
): <Type extends MetricKeyType.MetricKeyType<any, any>>(self: MetricKey<Type>) => MetricKey<Type>
|
|
258
|
+
(extraTags: ReadonlyArray<MetricLabel.MetricLabel>): <Type extends MetricKeyType.MetricKeyType<any, any>>(self: MetricKey<Type>) => MetricKey<Type>
|
|
268
259
|
/**
|
|
269
260
|
* Returns a new `MetricKey` with the specified tags appended.
|
|
270
261
|
*
|
|
271
262
|
* @since 2.0.0
|
|
272
263
|
* @category constructors
|
|
273
264
|
*/
|
|
274
|
-
<Type extends MetricKeyType.MetricKeyType<any, any>>(
|
|
275
|
-
self: MetricKey<Type>,
|
|
276
|
-
extraTags: ReadonlyArray<MetricLabel.MetricLabel>
|
|
277
|
-
): MetricKey<Type>
|
|
265
|
+
<Type extends MetricKeyType.MetricKeyType<any, any>>(self: MetricKey<Type>, extraTags: ReadonlyArray<MetricLabel.MetricLabel>): MetricKey<Type>
|
|
278
266
|
} = internal.taggedWithLabels
|
package/src/MetricPolling.ts
CHANGED
|
@@ -127,9 +127,7 @@ export const retry: {
|
|
|
127
127
|
* @since 2.0.0
|
|
128
128
|
* @category constructors
|
|
129
129
|
*/
|
|
130
|
-
<X, E, R2>(
|
|
131
|
-
policy: Schedule.Schedule<X, NoInfer<E>, R2>
|
|
132
|
-
): <Type, In, R, Out>(self: MetricPolling<Type, In, R, E, Out>) => MetricPolling<Type, In, R2 | R, E, Out>
|
|
130
|
+
<X, E, R2>(policy: Schedule.Schedule<X, NoInfer<E>, R2>): <Type, In, R, Out>(self: MetricPolling<Type, In, R, E, Out>) => MetricPolling<Type, In, R2 | R, E, Out>
|
|
133
131
|
/**
|
|
134
132
|
* Returns a new polling metric whose poll function will be retried with the
|
|
135
133
|
* specified retry policy.
|