effect 3.13.6 → 3.13.7
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/ConfigProvider.js +6 -2
- package/dist/cjs/ConfigProvider.js.map +1 -1
- package/dist/cjs/JSONSchema.js +43 -6
- package/dist/cjs/JSONSchema.js.map +1 -1
- package/dist/cjs/STM.js.map +1 -1
- package/dist/cjs/internal/configProvider.js +2 -2
- package/dist/cjs/internal/configProvider.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/ConfigProvider.d.ts +7 -3
- package/dist/dts/ConfigProvider.d.ts.map +1 -1
- package/dist/dts/Effect.d.ts +16 -16
- package/dist/dts/Effect.d.ts.map +1 -1
- package/dist/dts/JSONSchema.d.ts +9 -4
- package/dist/dts/JSONSchema.d.ts.map +1 -1
- package/dist/dts/Micro.d.ts +5 -5
- package/dist/dts/Micro.d.ts.map +1 -1
- package/dist/dts/STM.d.ts +2 -2
- package/dist/dts/STM.d.ts.map +1 -1
- package/dist/esm/ConfigProvider.js +6 -2
- package/dist/esm/ConfigProvider.js.map +1 -1
- package/dist/esm/JSONSchema.js +43 -6
- package/dist/esm/JSONSchema.js.map +1 -1
- package/dist/esm/STM.js.map +1 -1
- package/dist/esm/internal/configProvider.js +2 -2
- package/dist/esm/internal/configProvider.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/ConfigProvider.ts +7 -3
- package/src/Effect.ts +16 -16
- package/src/JSONSchema.ts +55 -15
- package/src/Micro.ts +5 -5
- package/src/STM.ts +5 -2
- package/src/internal/configProvider.ts +2 -2
- package/src/internal/effect/circular.ts +6 -6
- package/src/internal/fiberRuntime.ts +5 -5
- package/src/internal/schedule.ts +4 -4
- package/src/internal/version.ts +1 -1
package/dist/dts/Effect.d.ts
CHANGED
|
@@ -1014,13 +1014,13 @@ export declare const once: <A, E, R>(self: Effect<A, E, R>) => Effect<Effect<voi
|
|
|
1014
1014
|
* @since 2.0.0
|
|
1015
1015
|
* @category Collecting
|
|
1016
1016
|
*/
|
|
1017
|
-
export declare const all: <const Arg extends Iterable<Effect<any, any, any>> | Record<string, Effect<any, any, any>>, O extends {
|
|
1017
|
+
export declare const all: <const Arg extends Iterable<Effect<any, any, any>> | Record<string, Effect<any, any, any>>, O extends NoExcessProperties<{
|
|
1018
1018
|
readonly concurrency?: Concurrency | undefined;
|
|
1019
1019
|
readonly batching?: boolean | "inherit" | undefined;
|
|
1020
1020
|
readonly discard?: boolean | undefined;
|
|
1021
1021
|
readonly mode?: "default" | "validate" | "either" | undefined;
|
|
1022
1022
|
readonly concurrentFinalizers?: boolean | undefined;
|
|
1023
|
-
}
|
|
1023
|
+
}, O>>(arg: Arg, options?: O) => All.Return<Arg, O>;
|
|
1024
1024
|
/**
|
|
1025
1025
|
* A data-last version of {@link all}, designed for use in pipelines.
|
|
1026
1026
|
*
|
|
@@ -1060,13 +1060,13 @@ export declare const all: <const Arg extends Iterable<Effect<any, any, any>> | R
|
|
|
1060
1060
|
* @since 2.0.0
|
|
1061
1061
|
* @category Collecting
|
|
1062
1062
|
*/
|
|
1063
|
-
export declare const allWith: <O extends {
|
|
1063
|
+
export declare const allWith: <O extends NoExcessProperties<{
|
|
1064
1064
|
readonly concurrency?: Concurrency | undefined;
|
|
1065
1065
|
readonly batching?: boolean | "inherit" | undefined;
|
|
1066
1066
|
readonly discard?: boolean | undefined;
|
|
1067
1067
|
readonly mode?: "default" | "validate" | "either" | undefined;
|
|
1068
1068
|
readonly concurrentFinalizers?: boolean | undefined;
|
|
1069
|
-
}
|
|
1069
|
+
}, O>>(options?: O) => <const Arg extends Iterable<Effect<any, any, any>> | Record<string, Effect<any, any, any>>>(arg: Arg) => All.Return<Arg, O>;
|
|
1070
1070
|
/**
|
|
1071
1071
|
* @since 2.0.0
|
|
1072
1072
|
*/
|
|
@@ -1134,13 +1134,13 @@ export declare namespace All {
|
|
|
1134
1134
|
/**
|
|
1135
1135
|
* @since 2.0.0
|
|
1136
1136
|
*/
|
|
1137
|
-
type Return<Arg extends Iterable<EffectAny> | Record<string, EffectAny>, O extends {
|
|
1137
|
+
type Return<Arg extends Iterable<EffectAny> | Record<string, EffectAny>, O extends NoExcessProperties<{
|
|
1138
1138
|
readonly concurrency?: Concurrency | undefined;
|
|
1139
1139
|
readonly batching?: boolean | "inherit" | undefined;
|
|
1140
1140
|
readonly discard?: boolean | undefined;
|
|
1141
1141
|
readonly mode?: "default" | "validate" | "either" | undefined;
|
|
1142
1142
|
readonly concurrentFinalizers?: boolean | undefined;
|
|
1143
|
-
}
|
|
1143
|
+
}, O>> = [Arg] extends [ReadonlyArray<EffectAny>] ? ReturnTuple<Arg, IsDiscard<O>, ExtractMode<O>> : [Arg] extends [Iterable<EffectAny>] ? ReturnIterable<Arg, IsDiscard<O>, ExtractMode<O>> : [Arg] extends [Record<string, EffectAny>] ? ReturnObject<Arg, IsDiscard<O>, ExtractMode<O>> : never;
|
|
1144
1144
|
}
|
|
1145
1145
|
/**
|
|
1146
1146
|
* Evaluates and runs each effect in the iterable, collecting only the
|
|
@@ -7181,7 +7181,7 @@ export declare namespace Retry {
|
|
|
7181
7181
|
* @since 2.0.0
|
|
7182
7182
|
* @category Error handling
|
|
7183
7183
|
*/
|
|
7184
|
-
type Return<R, E, A, O extends Options<E>> = Effect<A, (O extends {
|
|
7184
|
+
type Return<R, E, A, O extends NoExcessProperties<Options<E>, O>> = Effect<A, (O extends {
|
|
7185
7185
|
schedule: Schedule.Schedule<infer _O, infer _I, infer _R>;
|
|
7186
7186
|
} ? E : O extends {
|
|
7187
7187
|
until: Refinement<E, infer E2>;
|
|
@@ -7444,7 +7444,7 @@ export declare const retry: {
|
|
|
7444
7444
|
* @since 2.0.0
|
|
7445
7445
|
* @category Error handling
|
|
7446
7446
|
*/
|
|
7447
|
-
<E, O extends Retry.Options<E>>(options: O): <A, R>(self: Effect<A, E, R>) => Retry.Return<R, E, A, O>;
|
|
7447
|
+
<E, O extends NoExcessProperties<Retry.Options<E>, O>>(options: O): <A, R>(self: Effect<A, E, R>) => Retry.Return<R, E, A, O>;
|
|
7448
7448
|
/**
|
|
7449
7449
|
* Retries a failing effect based on a defined retry policy.
|
|
7450
7450
|
*
|
|
@@ -7682,7 +7682,7 @@ export declare const retry: {
|
|
|
7682
7682
|
* @since 2.0.0
|
|
7683
7683
|
* @category Error handling
|
|
7684
7684
|
*/
|
|
7685
|
-
<A, E, R, O extends Retry.Options<E>>(self: Effect<A, E, R>, options: O): Retry.Return<R, E, A, O>;
|
|
7685
|
+
<A, E, R, O extends NoExcessProperties<Retry.Options<E>, O>>(self: Effect<A, E, R>, options: O): Retry.Return<R, E, A, O>;
|
|
7686
7686
|
/**
|
|
7687
7687
|
* Retries a failing effect based on a defined retry policy.
|
|
7688
7688
|
*
|
|
@@ -14632,12 +14632,12 @@ export declare const bindAll: {
|
|
|
14632
14632
|
* @category Do notation
|
|
14633
14633
|
* @since 3.7.0
|
|
14634
14634
|
*/
|
|
14635
|
-
<A extends object, X extends Record<string, Effect<any, any, any>>, O extends {
|
|
14635
|
+
<A extends object, X extends Record<string, Effect<any, any, any>>, O extends NoExcessProperties<{
|
|
14636
14636
|
readonly concurrency?: Concurrency | undefined;
|
|
14637
14637
|
readonly batching?: boolean | "inherit" | undefined;
|
|
14638
14638
|
readonly mode?: "default" | "validate" | "either" | undefined;
|
|
14639
14639
|
readonly concurrentFinalizers?: boolean | undefined;
|
|
14640
|
-
}
|
|
14640
|
+
}, O>>(f: (a: NoInfer<A>) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`, options?: undefined | O): <E1, R1>(self: Effect<A, E1, R1>) => [All.ReturnObject<X, false, All.ExtractMode<O>>] extends [Effect<infer Success, infer Error, infer Context>] ? Effect<{
|
|
14641
14641
|
[K in keyof A | keyof Success]: K extends keyof A ? A[K] : K extends keyof Success ? Success[K] : never;
|
|
14642
14642
|
}, E1 | Error, R1 | Context> : never;
|
|
14643
14643
|
/**
|
|
@@ -14663,12 +14663,12 @@ export declare const bindAll: {
|
|
|
14663
14663
|
* @category Do notation
|
|
14664
14664
|
* @since 3.7.0
|
|
14665
14665
|
*/
|
|
14666
|
-
<A extends object, X extends Record<string, Effect<any, any, any>>, O extends {
|
|
14666
|
+
<A extends object, X extends Record<string, Effect<any, any, any>>, O extends NoExcessProperties<{
|
|
14667
14667
|
readonly concurrency?: Concurrency | undefined;
|
|
14668
14668
|
readonly batching?: boolean | "inherit" | undefined;
|
|
14669
14669
|
readonly mode?: "default" | "validate" | "either" | undefined;
|
|
14670
14670
|
readonly concurrentFinalizers?: boolean | undefined;
|
|
14671
|
-
}, E1, R1>(self: Effect<A, E1, R1>, f: (a: NoInfer<A>) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`, options?: undefined | {
|
|
14671
|
+
}, O>, E1, R1>(self: Effect<A, E1, R1>, f: (a: NoInfer<A>) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`, options?: undefined | {
|
|
14672
14672
|
readonly concurrency?: Concurrency | undefined;
|
|
14673
14673
|
readonly batching?: boolean | "inherit" | undefined;
|
|
14674
14674
|
readonly mode?: "default" | "validate" | "either" | undefined;
|
|
@@ -20171,7 +20171,7 @@ export declare namespace Repeat {
|
|
|
20171
20171
|
* @since 2.0.0
|
|
20172
20172
|
* @category Repetition / Recursion
|
|
20173
20173
|
*/
|
|
20174
|
-
type Return<R, E, A, O extends Options<A>> = Effect<(O extends {
|
|
20174
|
+
type Return<R, E, A, O extends NoExcessProperties<Options<A>, O>> = Effect<(O extends {
|
|
20175
20175
|
schedule: Schedule.Schedule<infer Out, infer _I, infer _R>;
|
|
20176
20176
|
} ? Out : O extends {
|
|
20177
20177
|
until: Refinement<A, infer B>;
|
|
@@ -20318,7 +20318,7 @@ export declare const repeat: {
|
|
|
20318
20318
|
* @since 2.0.0
|
|
20319
20319
|
* @category Repetition / Recursion
|
|
20320
20320
|
*/
|
|
20321
|
-
<O extends Repeat.Options<A>, A>(options: O): <E, R>(self: Effect<A, E, R>) => Repeat.Return<R, E, A, O>;
|
|
20321
|
+
<O extends NoExcessProperties<Repeat.Options<A>, O>, A>(options: O): <E, R>(self: Effect<A, E, R>) => Repeat.Return<R, E, A, O>;
|
|
20322
20322
|
/**
|
|
20323
20323
|
* Repeats an effect based on a specified schedule or until the first failure.
|
|
20324
20324
|
*
|
|
@@ -20440,7 +20440,7 @@ export declare const repeat: {
|
|
|
20440
20440
|
* @since 2.0.0
|
|
20441
20441
|
* @category Repetition / Recursion
|
|
20442
20442
|
*/
|
|
20443
|
-
<A, E, R, O extends Repeat.Options<A>>(self: Effect<A, E, R>, options: O): Repeat.Return<R, E, A, O>;
|
|
20443
|
+
<A, E, R, O extends NoExcessProperties<Repeat.Options<A>, O>>(self: Effect<A, E, R>, options: O): Repeat.Return<R, E, A, O>;
|
|
20444
20444
|
/**
|
|
20445
20445
|
* Repeats an effect based on a specified schedule or until the first failure.
|
|
20446
20446
|
*
|