@fncts/query 0.0.14 → 0.0.15
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/Cache/definition.d.ts +1 -1
- package/Cache.d.ts +1 -1
- package/CompletedRequestMap.d.ts +1 -1
- package/DataSource/api.d.ts +1 -1
- package/DataSource.d.ts +1 -1
- package/Query/api/bimap.d.ts +1 -1
- package/Query/api/catchAllCause.d.ts +2 -2
- package/Query/api/ensuring.d.ts +1 -1
- package/Query/api/environment.d.ts +4 -4
- package/Query/api/flatMap.d.ts +1 -1
- package/Query/api/fromRequest.d.ts +1 -1
- package/Query/api/map.d.ts +1 -1
- package/Query/api/mapDataSources.d.ts +1 -1
- package/Query/api/mapError.d.ts +1 -1
- package/Query/api/mapErrorCause.d.ts +1 -1
- package/Query/api/mapIO.d.ts +1 -1
- package/Query/api/match.d.ts +1 -1
- package/Query/api/matchCauseQuery.d.ts +1 -1
- package/Query/api/matchQuery.d.ts +1 -1
- package/Query/api/orHalt.d.ts +1 -1
- package/Query/api/race.d.ts +1 -1
- package/Query/api/run.d.ts +1 -1
- package/Query/api/timeout.d.ts +4 -4
- package/Query/api/zipWith.d.ts +1 -1
- package/Query/api/zipWithBatched.d.ts +1 -1
- package/Query/api/zipWithConcurrent.d.ts +1 -1
- package/Query.d.ts +28 -28
- package/QueryFailure.d.ts +1 -1
- package/_cjs/Cache/api.cjs +3 -4
- package/_cjs/Cache/api.cjs.map +1 -1
- package/_cjs/Cache/definition.cjs.map +1 -1
- package/_cjs/Cache.cjs +8 -8
- package/_cjs/Cache.cjs.map +1 -1
- package/_cjs/CompletedRequestMap.cjs +4 -4
- package/_cjs/CompletedRequestMap.cjs.map +1 -1
- package/_cjs/DataSource/api.cjs +5 -5
- package/_cjs/DataSource/api.cjs.map +1 -1
- package/_cjs/DataSource/definition.cjs +4 -6
- package/_cjs/DataSource/definition.cjs.map +1 -1
- package/_cjs/DataSource.cjs +8 -8
- package/_cjs/DataSource.cjs.map +1 -1
- package/_cjs/DataSourceAspect.cjs +1 -2
- package/_cjs/DataSourceAspect.cjs.map +1 -1
- package/_cjs/Described.cjs.map +1 -1
- package/_cjs/Query/api/bimap.cjs +2 -2
- package/_cjs/Query/api/catchAllCause.cjs +2 -2
- package/_cjs/Query/api/collectAll.cjs +2 -2
- package/_cjs/Query/api/collectAllBatched.cjs +2 -2
- package/_cjs/Query/api/collectAllConcurrent.cjs +2 -2
- package/_cjs/Query/api/defer.cjs +2 -2
- package/_cjs/Query/api/ensuring.cjs +2 -2
- package/_cjs/Query/api/environment.cjs +5 -8
- package/_cjs/Query/api/environment.cjs.map +1 -1
- package/_cjs/Query/api/flatMap.cjs +3 -4
- package/_cjs/Query/api/flatMap.cjs.map +1 -1
- package/_cjs/Query/api/foreach.cjs +2 -2
- package/_cjs/Query/api/foreach.cjs.map +1 -1
- package/_cjs/Query/api/foreachBatched.cjs +2 -2
- package/_cjs/Query/api/foreachBatched.cjs.map +1 -1
- package/_cjs/Query/api/foreachConcurrent.cjs +2 -2
- package/_cjs/Query/api/fromRequest.cjs +2 -2
- package/_cjs/Query/api/fromRequest.cjs.map +1 -1
- package/_cjs/Query/api/map.cjs +2 -2
- package/_cjs/Query/api/mapDataSources.cjs +2 -2
- package/_cjs/Query/api/mapError.cjs +2 -2
- package/_cjs/Query/api/mapErrorCause.cjs +2 -2
- package/_cjs/Query/api/mapIO.cjs +2 -2
- package/_cjs/Query/api/match.cjs +2 -2
- package/_cjs/Query/api/matchCauseQuery.cjs +2 -2
- package/_cjs/Query/api/matchQuery.cjs +2 -2
- package/_cjs/Query/api/orHalt.cjs +3 -4
- package/_cjs/Query/api/orHalt.cjs.map +1 -1
- package/_cjs/Query/api/race.cjs +2 -2
- package/_cjs/Query/api/run.cjs +5 -8
- package/_cjs/Query/api/run.cjs.map +1 -1
- package/_cjs/Query/api/timeout.cjs +3 -4
- package/_cjs/Query/api/timeout.cjs.map +1 -1
- package/_cjs/Query/api/zipWith.cjs +3 -4
- package/_cjs/Query/api/zipWith.cjs.map +1 -1
- package/_cjs/Query/api/zipWithBatched.cjs +2 -2
- package/_cjs/Query/api/zipWithConcurrent.cjs +2 -2
- package/_cjs/Query/api.cjs +8 -14
- package/_cjs/Query/api.cjs.map +1 -1
- package/_cjs/Query/definition.cjs +1 -2
- package/_cjs/Query/definition.cjs.map +1 -1
- package/_cjs/Query.cjs +119 -119
- package/_cjs/Query.cjs.map +1 -1
- package/_cjs/QueryFailure.cjs.map +1 -1
- package/_cjs/Request.cjs +8 -9
- package/_cjs/Request.cjs.map +1 -1
- package/_cjs/internal/BlockedRequest.cjs +1 -2
- package/_cjs/internal/BlockedRequest.cjs.map +1 -1
- package/_cjs/internal/BlockedRequests.cjs +12 -17
- package/_cjs/internal/BlockedRequests.cjs.map +1 -1
- package/_cjs/internal/Continue.cjs +10 -15
- package/_cjs/internal/Continue.cjs.map +1 -1
- package/_cjs/internal/Parallel.cjs +5 -8
- package/_cjs/internal/Parallel.cjs.map +1 -1
- package/_cjs/internal/Result.cjs +10 -16
- package/_cjs/internal/Result.cjs.map +1 -1
- package/_cjs/internal/Sequential.cjs +4 -6
- package/_cjs/internal/Sequential.cjs.map +1 -1
- package/_mjs/Cache/definition.mjs.map +1 -1
- package/_mjs/Cache.mjs +2 -1
- package/_mjs/Cache.mjs.map +1 -1
- package/_mjs/CompletedRequestMap.mjs +2 -2
- package/_mjs/CompletedRequestMap.mjs.map +1 -1
- package/_mjs/DataSource/api.mjs +3 -3
- package/_mjs/DataSource/api.mjs.map +1 -1
- package/_mjs/DataSource/definition.mjs.map +1 -1
- package/_mjs/DataSource.mjs +2 -1
- package/_mjs/DataSource.mjs.map +1 -1
- package/_mjs/Described.mjs.map +1 -1
- package/_mjs/Query/api/foreach.mjs.map +1 -1
- package/_mjs/Query/api/foreachBatched.mjs.map +1 -1
- package/_mjs/Query/api/fromRequest.mjs.map +1 -1
- package/_mjs/Query.mjs +30 -28
- package/_mjs/Query.mjs.map +1 -1
- package/_mjs/QueryFailure.mjs.map +1 -1
- package/_mjs/internal/BlockedRequest.mjs.map +1 -1
- package/_mjs/internal/BlockedRequests.mjs +5 -9
- package/_mjs/internal/BlockedRequests.mjs.map +1 -1
- package/_mjs/internal/Continue.mjs +3 -4
- package/_mjs/internal/Continue.mjs.map +1 -1
- package/_mjs/internal/Result.mjs +2 -5
- package/_mjs/internal/Result.mjs.map +1 -1
- package/_src/Cache/definition.ts +2 -0
- package/_src/Cache.ts +2 -1
- package/_src/CompletedRequestMap.ts +2 -0
- package/_src/DataSource/api.ts +1 -0
- package/_src/DataSource.ts +2 -1
- package/_src/Described.ts +4 -1
- package/_src/Query/api/fromRequest.ts +2 -0
- package/_src/Query.ts +30 -28
- package/_src/QueryFailure.ts +6 -1
- package/_src/index.ts +8 -7
- package/_src/internal/BlockedRequest.ts +2 -0
- package/_src/internal/BlockedRequests.ts +12 -3
- package/_src/internal/Continue.ts +1 -0
- package/_src/internal/Result.ts +4 -1
- package/index.d.ts +7 -7
- package/internal/BlockedRequest.d.ts +1 -1
- package/internal/BlockedRequests.d.ts +1 -1
- package/internal/Continue.d.ts +7 -7
- package/internal/Parallel.d.ts +1 -1
- package/internal/Result.d.ts +1 -1
- package/internal/Sequential.d.ts +1 -1
- package/package.json +4 -4
package/_src/internal/Result.ts
CHANGED
|
@@ -29,7 +29,10 @@ export const enum ResultTag {
|
|
|
29
29
|
|
|
30
30
|
export class Blocked<R, E, A> extends Result<R, E, A> {
|
|
31
31
|
readonly _tag = ResultTag.Blocked;
|
|
32
|
-
constructor(
|
|
32
|
+
constructor(
|
|
33
|
+
readonly blockedRequests: BlockedRequests<R>,
|
|
34
|
+
readonly cont: Continue<R, E, A>,
|
|
35
|
+
) {
|
|
33
36
|
super();
|
|
34
37
|
}
|
|
35
38
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type {} from "./Cache.js";
|
|
2
|
-
export type {} from "./CompletedRequestMap.js";
|
|
3
|
-
export type {} from "./DataSource.js";
|
|
4
|
-
export type {} from "./DataSourceAspect.js";
|
|
5
|
-
export type {} from "./Described.js";
|
|
6
1
|
export type {} from "./global.js";
|
|
7
|
-
export type {} from "./Query.js";
|
|
8
|
-
export type {} from "./QueryFailure.js";
|
|
9
2
|
export type {} from "./Request.js";
|
|
3
|
+
export type {} from "./QueryFailure.js";
|
|
4
|
+
export type {} from "./Query.js";
|
|
5
|
+
export type {} from "./Described.js";
|
|
6
|
+
export type {} from "./DataSourceAspect.js";
|
|
7
|
+
export type {} from "./DataSource.js";
|
|
8
|
+
export type {} from "./CompletedRequestMap.js";
|
|
9
|
+
export type {} from "./Cache.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Request } from "@fncts/query/Request";
|
|
2
1
|
import { Ref } from "@fncts/io/Ref/definition";
|
|
3
2
|
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
4
3
|
import { Either } from "@fncts/base/data/Either/definition";
|
|
4
|
+
import type { Request } from "@fncts/query/Request";
|
|
5
5
|
export declare const BlockedRequestTypeId: unique symbol;
|
|
6
6
|
export type BlockedRequestTypeId = typeof BlockedRequestTypeId;
|
|
7
7
|
/**
|
|
@@ -92,7 +92,7 @@ export declare class MapDataSources<R> extends BlockedRequestsFolder<R, BlockedR
|
|
|
92
92
|
* @tsplus pipeable fncts.query.BlockedRequests mapDataSources
|
|
93
93
|
* @tsplus location "@fncts/query/internal/BlockedRequests"
|
|
94
94
|
*/
|
|
95
|
-
export declare function mapDataSources<R1>(f: DataSourceAspect<R1>): <R>(self: BlockedRequests<R>) => BlockedRequests<
|
|
95
|
+
export declare function mapDataSources<R1>(f: DataSourceAspect<R1>): <R>(self: BlockedRequests<R>) => BlockedRequests<R | R1>;
|
|
96
96
|
export declare class ContramapEnvironment<R0, R> extends BlockedRequestsFolder<R, BlockedRequests<R0>> {
|
|
97
97
|
readonly f: Described<(_: Environment<R0>) => Environment<R>>;
|
|
98
98
|
constructor(f: Described<(_: Environment<R0>) => Environment<R>>);
|
package/internal/Continue.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Query } from "@fncts/query/Query/definition";
|
|
2
2
|
import { FIO } from "@fncts/io/IO/definition";
|
|
3
|
-
import { Request } from "@fncts/query/Request";
|
|
4
3
|
import { DataSource } from "@fncts/query/DataSource";
|
|
5
4
|
import { Ref } from "@fncts/io/Ref/definition";
|
|
6
5
|
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
@@ -10,6 +9,7 @@ import { DataSourceAspect } from "@fncts/query/DataSourceAspect";
|
|
|
10
9
|
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
11
10
|
import { Environment } from "@fncts/base/data/Environment/definition";
|
|
12
11
|
import type { Described } from "@fncts/query/Described";
|
|
12
|
+
import type { Request } from "@fncts/query/Request";
|
|
13
13
|
export declare const ContinueTypeId: unique symbol;
|
|
14
14
|
export type ContinueTypeId = typeof ContinueTypeId;
|
|
15
15
|
export declare const ContinueVariance: unique symbol;
|
|
@@ -75,7 +75,7 @@ export declare function matchType<R, E, A, B, C>(cases: {
|
|
|
75
75
|
* @tsplus pipeable fncts.query.Continue mapQuery
|
|
76
76
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
77
77
|
*/
|
|
78
|
-
export declare function mapQuery<A, R1, E1, B>(f: (a: A) => Query<R1, E1, B>, __tsplusTrace?: string): <R, E>(self: Continue<R, E, A>) => Continue<
|
|
78
|
+
export declare function mapQuery<A, R1, E1, B>(f: (a: A) => Query<R1, E1, B>, __tsplusTrace?: string): <R, E>(self: Continue<R, E, A>) => Continue<R | R1, E | E1, B>;
|
|
79
79
|
/**
|
|
80
80
|
* @tsplus pipeable fncts.query.Continue match
|
|
81
81
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
@@ -85,7 +85,7 @@ export declare function match<E, A, B, C>(failure: (e: E) => B, success: (a: A)
|
|
|
85
85
|
* @tsplus pipeable fncts.query.Continue matchCauseQuery
|
|
86
86
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
87
87
|
*/
|
|
88
|
-
export declare function matchCauseQuery<E, A, R1, E1, B, R2, E2, C>(failure: (cause: Cause<E>) => Query<R1, E1, B>, success: (value: A) => Query<R2, E2, C>, __tsplusTrace?: string): <R>(self: Continue<R, E, A>) => Continue<
|
|
88
|
+
export declare function matchCauseQuery<E, A, R1, E1, B, R2, E2, C>(failure: (cause: Cause<E>) => Query<R1, E1, B>, success: (value: A) => Query<R2, E2, C>, __tsplusTrace?: string): <R>(self: Continue<R, E, A>) => Continue<R | R1 | R2, E1 | E2, B | C>;
|
|
89
89
|
/**
|
|
90
90
|
* @tsplus pipeable fncts.query.Continue map
|
|
91
91
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
@@ -95,7 +95,7 @@ export declare function map<A, B>(f: (a: A) => B, __tsplusTrace?: string): <R, E
|
|
|
95
95
|
* @tsplus pipeable fncts.query.Continue mapDataSources
|
|
96
96
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
97
97
|
*/
|
|
98
|
-
export declare function mapDataSources<R1>(f: DataSourceAspect<R1>, __tsplusTrace?: string): <R, E, A>(self: Continue<R, E, A>) => Continue<
|
|
98
|
+
export declare function mapDataSources<R1>(f: DataSourceAspect<R1>, __tsplusTrace?: string): <R, E, A>(self: Continue<R, E, A>) => Continue<R | R1, E, A>;
|
|
99
99
|
/**
|
|
100
100
|
* @tsplus pipeable fncts.query.Continue mapError
|
|
101
101
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
@@ -110,17 +110,17 @@ export declare function mapErrorCause<E, E1>(f: (cause: Cause<E>) => Cause<E1>,
|
|
|
110
110
|
* @tsplus pipeable fncts.query.Continue zipWith
|
|
111
111
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
112
112
|
*/
|
|
113
|
-
export declare function zipWith<A, R1, E1, B, C>(that: Continue<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(self: Continue<R, E, A>) => Continue<
|
|
113
|
+
export declare function zipWith<A, R1, E1, B, C>(that: Continue<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(self: Continue<R, E, A>) => Continue<R | R1, E | E1, C>;
|
|
114
114
|
/**
|
|
115
115
|
* @tsplus pipeable fncts.query.Continue zipWithConcurrent
|
|
116
116
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
117
117
|
*/
|
|
118
|
-
export declare function zipWithConcurrent<A, R1, E1, B, C>(that: Continue<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(self: Continue<R, E, A>) => Continue<
|
|
118
|
+
export declare function zipWithConcurrent<A, R1, E1, B, C>(that: Continue<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(self: Continue<R, E, A>) => Continue<R | R1, E | E1, C>;
|
|
119
119
|
/**
|
|
120
120
|
* @tsplus pipeable fncts.query.Continue zipWithBatched
|
|
121
121
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
122
122
|
*/
|
|
123
|
-
export declare function zipWithBatched<A, R1, E1, B, C>(that: Continue<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(self: Continue<R, E, A>) => Continue<
|
|
123
|
+
export declare function zipWithBatched<A, R1, E1, B, C>(that: Continue<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(self: Continue<R, E, A>) => Continue<R | R1, E | E1, C>;
|
|
124
124
|
/**
|
|
125
125
|
* @tsplus static fncts.query.ContinueOps collectAllConcurrent
|
|
126
126
|
* @tsplus location "@fncts/query/internal/Continue"
|
package/internal/Parallel.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class Parallel<R> {
|
|
|
23
23
|
* @tsplus pipeable fncts.query.Parallel concat
|
|
24
24
|
* @tsplus location "@fncts/query/internal/Parallel"
|
|
25
25
|
*/
|
|
26
|
-
export declare function concat<R1>(that: Parallel<R1>): <R>(self: Parallel<R>) => Parallel<
|
|
26
|
+
export declare function concat<R1>(that: Parallel<R1>): <R>(self: Parallel<R>) => Parallel<R | R1>;
|
|
27
27
|
/**
|
|
28
28
|
* @tsplus getter fncts.query.Parallel isEmpty
|
|
29
29
|
* @tsplus location "@fncts/query/internal/Parallel"
|
package/internal/Result.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export declare function map<A, B>(f: (a: A) => B, __tsplusTrace?: string): <R, E
|
|
|
82
82
|
* @tsplus pipeable fncts.query.Result mapDataSources
|
|
83
83
|
* @tsplus location "@fncts/query/internal/Result"
|
|
84
84
|
*/
|
|
85
|
-
export declare function mapDataSources<R1>(f: DataSourceAspect<R1>): <R, E, A>(self: Result<R, E, A>) => Result<
|
|
85
|
+
export declare function mapDataSources<R1>(f: DataSourceAspect<R1>): <R, E, A>(self: Result<R, E, A>) => Result<R | R1, E, A>;
|
|
86
86
|
/**
|
|
87
87
|
* @tsplus pipeable fncts.query.Result mapError
|
|
88
88
|
* @tsplus location "@fncts/query/internal/Result"
|
package/internal/Sequential.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare class Sequential<R> {
|
|
|
22
22
|
* @tsplus pipeable fncts.query.Sequential concat
|
|
23
23
|
* @tsplus location "@fncts/query/internal/Sequential"
|
|
24
24
|
*/
|
|
25
|
-
export declare function concat<R1>(that: Sequential<R1>): <R>(self: Sequential<R>) => Sequential<
|
|
25
|
+
export declare function concat<R1>(that: Sequential<R1>): <R>(self: Sequential<R>) => Sequential<R | R1>;
|
|
26
26
|
/**
|
|
27
27
|
* @tsplus getter fncts.query.Sequential isEmpty
|
|
28
28
|
* @tsplus location "@fncts/query/internal/Sequential"
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fncts/query",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@fncts/base": "0.0.
|
|
6
|
-
"@fncts/io": "0.0.
|
|
7
|
-
"@fncts/typelevel": "0.0.
|
|
5
|
+
"@fncts/base": "0.0.33",
|
|
6
|
+
"@fncts/io": "0.0.40",
|
|
7
|
+
"@fncts/typelevel": "0.0.16"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
"./*": {
|