@effect-app/infra 1.6.1 → 1.6.3
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,23 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 1.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [24c3fe9]
|
|
8
|
+
- effect-app@1.4.3
|
|
9
|
+
- @effect-app/schema@1.2.5
|
|
10
|
+
- @effect-app/infra-adapters@1.2.5
|
|
11
|
+
|
|
12
|
+
## 1.6.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @effect-app/schema@1.2.4
|
|
18
|
+
- @effect-app/infra-adapters@1.2.4
|
|
19
|
+
- effect-app@1.4.2
|
|
20
|
+
|
|
3
21
|
## 1.6.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare const RequestContextParent_base: S.EnhancedClass<RequestContextParent, {
|
|
|
12
12
|
};
|
|
13
13
|
name: S.WithDefaults<S.Schema<string & S.NonEmptyString255Brand, string, never>> & S.Schema<string & S.NonEmptyString255Brand, string, never>;
|
|
14
14
|
userProfile: S.PropertySignature<"?:", {
|
|
15
|
-
readonly sub: string & import("effect-app/ids").UserProfileIdBrand;
|
|
15
|
+
readonly sub: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
16
16
|
} | undefined, never, "?:", {
|
|
17
17
|
readonly sub: string;
|
|
18
18
|
} | undefined, false, never>;
|
|
@@ -23,7 +23,7 @@ declare const RequestContextParent_base: S.EnhancedClass<RequestContextParent, {
|
|
|
23
23
|
readonly name: string & S.NonEmptyString255Brand;
|
|
24
24
|
readonly createdAt?: Date;
|
|
25
25
|
readonly userProfile?: {
|
|
26
|
-
readonly sub: string & import("effect-app/ids").UserProfileIdBrand;
|
|
26
|
+
readonly sub: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
27
27
|
} | undefined;
|
|
28
28
|
readonly locale: "en" | "de";
|
|
29
29
|
}, {}, {}>;
|
|
@@ -46,7 +46,7 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, {
|
|
|
46
46
|
name: S.WithDefaults<S.Schema<string & S.NonEmptyString255Brand, string, never>> & S.Schema<string & S.NonEmptyString255Brand, string, never>;
|
|
47
47
|
createdAt: S.PropertySignature<":", Date, never, ":", string, true, never>;
|
|
48
48
|
userProfile: S.PropertySignature<"?:", {
|
|
49
|
-
readonly sub: string & import("effect-app/ids").UserProfileIdBrand;
|
|
49
|
+
readonly sub: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
50
50
|
} | undefined, never, "?:", {
|
|
51
51
|
readonly sub: string;
|
|
52
52
|
} | undefined, false, never>;
|
|
@@ -56,7 +56,7 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, {
|
|
|
56
56
|
readonly name: string & S.NonEmptyString255Brand;
|
|
57
57
|
readonly createdAt?: Date;
|
|
58
58
|
readonly userProfile?: {
|
|
59
|
-
readonly sub: string & import("effect-app/ids").UserProfileIdBrand;
|
|
59
|
+
readonly sub: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
60
60
|
} | undefined;
|
|
61
61
|
readonly locale: "en" | "de";
|
|
62
62
|
readonly rootId: NonEmptyString255;
|
|
@@ -78,7 +78,7 @@ export declare class RequestContext extends RequestContext_base {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
export declare const spanAttributes: (ctx: RequestContext) => {
|
|
81
|
-
"request.user.sub"?: string & import("effect-app/ids").UserProfileIdBrand;
|
|
81
|
+
"request.user.sub"?: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
82
82
|
"request.user.roles"?: unknown;
|
|
83
83
|
"request.source.id"?: string & S.NonEmptyString255Brand;
|
|
84
84
|
"request.id": string & S.NonEmptyString255Brand;
|
|
@@ -76,7 +76,7 @@ export declare class RepositoryBaseC2<T extends {
|
|
|
76
76
|
changeFeed: PubSub.PubSub<[T[], "save" | "remove"]>;
|
|
77
77
|
mapped: Mapped<Encoded>;
|
|
78
78
|
query: {
|
|
79
|
-
<A, R, Encoded2 extends FieldValues, TType extends "one" | "many" | "count" = "many">(q: (initial: Query<Encoded>) => QueryProjection<Encoded extends Encoded2 ? Encoded2 : never, A, R, TType>): Effect.Effect<TType extends "many" ? readonly A[] : TType extends "count" ?
|
|
79
|
+
<A, R, Encoded2 extends FieldValues, TType extends "one" | "many" | "count" = "many">(q: (initial: Query<Encoded>) => QueryProjection<Encoded extends Encoded2 ? Encoded2 : never, A, R, TType>): Effect.Effect<TType extends "many" ? readonly A[] : TType extends "count" ? NonNegativeInt : A, (TType extends "many" ? never : NotFoundError<ItemType>) | (TType extends "count" ? never : ParseResult.ParseError), R>;
|
|
80
80
|
<R_1 = never, TType_1 extends "one" | "many" = "many">(q: (initial: Query<Encoded>) => QAll<Encoded, T, R_1, TType_1>): Effect.Effect<TType_1 extends "many" ? readonly T[] : T, TType_1 extends "many" ? never : NotFoundError<ItemType>, R_1>;
|
|
81
81
|
};
|
|
82
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"pure-rand": "6.1.0",
|
|
20
20
|
"redlock": "^4.2.0",
|
|
21
21
|
"@effect-app/core": "1.2.1",
|
|
22
|
-
"@effect-app/schema": "1.2.
|
|
23
|
-
"effect-app": "1.
|
|
24
|
-
"
|
|
22
|
+
"@effect-app/schema": "1.2.5",
|
|
23
|
+
"@effect-app/infra-adapters": "1.2.5",
|
|
24
|
+
"effect-app": "1.4.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@babel/cli": "^7.24.5",
|