@effect-app/infra 0.100.0 → 0.100.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 0.100.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [5813c6b2]
|
|
8
|
+
- @effect-app/core@0.73.1
|
|
9
|
+
- @effect-app/infra-adapters@0.64.2
|
|
10
|
+
- @effect-app/prelude@0.75.2
|
|
11
|
+
- @effect-app/schema@0.67.2
|
|
12
|
+
|
|
13
|
+
## 0.100.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- a644e7b5: fix methods exports
|
|
18
|
+
- Updated dependencies [a644e7b5]
|
|
19
|
+
- @effect-app/prelude@0.75.1
|
|
20
|
+
- @effect-app/schema@0.67.1
|
|
21
|
+
- @effect-app/infra-adapters@0.64.1
|
|
22
|
+
|
|
3
23
|
## 0.100.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -16,7 +16,7 @@ export type Request<
|
|
|
16
16
|
HeaderA,
|
|
17
17
|
ReqA extends PathA & QueryA & BodyA
|
|
18
18
|
> = MO.ReqResSchemed<unknown, ReqA> & {
|
|
19
|
-
method: Methods.
|
|
19
|
+
method: Methods.Rest
|
|
20
20
|
path: string
|
|
21
21
|
Cookie?: MO.ReqRes<Record<string, string>, CookieA>
|
|
22
22
|
Path?: MO.ReqRes<Record<string, string>, PathA>
|
|
@@ -60,7 +60,7 @@ export interface RouteDescriptor<
|
|
|
60
60
|
HeaderA,
|
|
61
61
|
ReqA extends PathA & QueryA & BodyA,
|
|
62
62
|
ResA,
|
|
63
|
-
METHOD extends Methods.
|
|
63
|
+
METHOD extends Methods.Rest = Methods.Rest
|
|
64
64
|
> {
|
|
65
65
|
_tag: "Schema"
|
|
66
66
|
path: string
|
|
@@ -91,7 +91,7 @@ export function makeRouteDescriptor<
|
|
|
91
91
|
HeaderA,
|
|
92
92
|
ReqA extends PathA & QueryA & BodyA,
|
|
93
93
|
ResA = void,
|
|
94
|
-
METHOD extends Methods.
|
|
94
|
+
METHOD extends Methods.Rest = Methods.Rest
|
|
95
95
|
>(
|
|
96
96
|
path: string,
|
|
97
97
|
method: METHOD,
|
|
@@ -4,7 +4,7 @@ import * as MO from "@effect-app/schema";
|
|
|
4
4
|
import type { Methods } from "@effect-app/schema";
|
|
5
5
|
import type { JSONSchema, ParameterLocation, SubSchema } from "@effect-app/infra-adapters/Openapi/atlas-plutus";
|
|
6
6
|
export type Request<M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA extends PathA & QueryA & BodyA> = MO.ReqResSchemed<unknown, ReqA> & {
|
|
7
|
-
method: Methods.
|
|
7
|
+
method: Methods.Rest;
|
|
8
8
|
path: string;
|
|
9
9
|
Cookie?: MO.ReqRes<Record<string, string>, CookieA>;
|
|
10
10
|
Path?: MO.ReqRes<Record<string, string>, PathA>;
|
|
@@ -20,7 +20,7 @@ export interface RouteRequestHandler<M, PathA, CookieA, QueryA, BodyA, HeaderA,
|
|
|
20
20
|
}
|
|
21
21
|
export declare function asRouteDescriptionAny<R extends RouteDescriptorAny>(i: R): RouteDescriptorAny;
|
|
22
22
|
export declare function arrAsRouteDescriptionAny<R extends RouteDescriptorAny>(arr: ReadonlyArray<R>): RouteDescriptorAny[];
|
|
23
|
-
export interface RouteDescriptor<M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA extends PathA & QueryA & BodyA, ResA, METHOD extends Methods.
|
|
23
|
+
export interface RouteDescriptor<M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA extends PathA & QueryA & BodyA, ResA, METHOD extends Methods.Rest = Methods.Rest> {
|
|
24
24
|
_tag: "Schema";
|
|
25
25
|
path: string;
|
|
26
26
|
method: METHOD;
|
|
@@ -30,7 +30,7 @@ export interface RouteDescriptor<M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export type RouteDescriptorAny = RouteDescriptor<any, any, any, any, any, any, any, any>;
|
|
33
|
-
export declare function makeRouteDescriptor<M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA extends PathA & QueryA & BodyA, ResA = void, METHOD extends Methods.
|
|
33
|
+
export declare function makeRouteDescriptor<M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA extends PathA & QueryA & BodyA, ResA = void, METHOD extends Methods.Rest = Methods.Rest>(path: string, method: METHOD, handler: RouteRequestHandler<M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA, ResA>): RouteDescriptor<M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA, ResA, METHOD>;
|
|
34
34
|
export declare function makeFromSchema<ResA>(e: RouteDescriptor<any, any, any, any, any, any, ResA, any>): import("effect/Effect").Effect<never, never, {
|
|
35
35
|
path: string;
|
|
36
36
|
method: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../../_src/api/express/schema/routing.ts"],"names":[],"mappings":";;AAEA,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAA;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAA;AAI/G,MAAM,MAAM,OAAO,CACjB,CAAC,EACD,KAAK,EACL,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,IAAI,SAAS,KAAK,GAAG,MAAM,GAAG,KAAK,IACjC,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG;IACpC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../../_src/api/express/schema/routing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,MAAM,GAAG,KAAK,EACnC,IAAI,GAAG,IAAI,EACX,MAAM,SAAS,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,EAE1C,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,mBAAmB,CAC1B,CAAC,EACD,KAAK,EACL,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAI,CACL,GACA,eAAe,CAChB,CAAC,EACD,KAAK,EACL,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,MAAM,CACP,CAEA;AAED,wBAAgB,cAAc,CAAC,IAAI,EACjC,CAAC,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;GA4G5D;AAED,cAAM,QAAQ;aAEM,UAAU,EAAE,MAAM;aAClB,IAAI,EAAE,GAAG;gBADT,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,GAAG;CAE5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.100.
|
|
3
|
+
"version": "0.100.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"proper-lockfile": "^4.1.2",
|
|
19
19
|
"pure-rand": "6.0.4",
|
|
20
20
|
"redlock": "^4.2.0",
|
|
21
|
-
"@effect-app/infra-adapters": "0.64.
|
|
22
|
-
"@effect-app/
|
|
23
|
-
"@effect-app/schema": "0.67.
|
|
24
|
-
"@effect-app/
|
|
21
|
+
"@effect-app/infra-adapters": "0.64.2",
|
|
22
|
+
"@effect-app/prelude": "0.75.2",
|
|
23
|
+
"@effect-app/schema": "0.67.2",
|
|
24
|
+
"@effect-app/core": "0.73.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@babel/cli": "^7.23.4",
|