@effect-app/infra 0.54.7 → 0.54.9
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
|
+
## 0.54.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @effect-app/prelude@0.44.9
|
|
9
|
+
- @effect-app/schema@0.39.9
|
|
10
|
+
- @effect-app/infra-adapters@0.40.9
|
|
11
|
+
|
|
12
|
+
## 0.54.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @effect-app/schema@0.39.8
|
|
18
|
+
- @effect-app/infra-adapters@0.40.8
|
|
19
|
+
- @effect-app/prelude@0.44.8
|
|
20
|
+
|
|
3
21
|
## 0.54.7
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export declare const RequestId: import("@effect-app/prelude/schema").StringIdSch
|
|
|
4
4
|
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
5
5
|
};
|
|
6
6
|
export type RequestId = ParsedShapeOfCustom<typeof RequestId>;
|
|
7
|
-
declare const RequestContextParent_base: import("@effect-app/schema").MNModel<import("@effect-app/schema").SchemaProperties<{
|
|
8
|
-
_tag: import("@effect-app/schema").
|
|
9
|
-
id: import("@effect-app/
|
|
7
|
+
declare const RequestContextParent_base: import("@effect-app/schema").MNModel<import("@effect-app/schema").SchemaProperties<import("@effect-app/schema").ToProps<{
|
|
8
|
+
_tag: import("@effect-app/schema").DefaultSchema<unknown, "RequestContext", "RequestContext", "RequestContext", import("@effect-app/schema").LiteralApi<["RequestContext"]>>;
|
|
9
|
+
id: import("@effect-app/prelude/schema").StringIdSchema & import("@effect-app/schema").Utils<import("@effect-app/prelude/schema").StringIdSchema> & {
|
|
10
10
|
make: () => import("@effect-app/prelude/schema").StringId;
|
|
11
11
|
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
12
|
-
}
|
|
13
|
-
name: import("@effect-app/schema").
|
|
12
|
+
};
|
|
13
|
+
name: import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>> & import("@effect-app/schema").Utils<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>>;
|
|
14
14
|
user: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, {
|
|
15
15
|
readonly id: import("@effect-app/prelude/schema").StringId;
|
|
16
16
|
}, {
|
|
@@ -25,19 +25,19 @@ declare const RequestContextParent_base: import("@effect-app/schema").MNModel<im
|
|
|
25
25
|
}, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
26
26
|
};
|
|
27
27
|
}>, "optional", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
28
|
-
locale: import("@effect-app/schema").
|
|
28
|
+
locale: import("@effect-app/schema").DefaultSchema<unknown, "en" | "de", "en" | "de", "en" | "de", import("@effect-app/schema").LiteralApi<["en", "de"]>>;
|
|
29
29
|
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").Schema<unknown, Date, Date, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => Date]>>;
|
|
30
|
-
}
|
|
30
|
+
}>>, RequestContextParent, RequestContextParent.ConstructorInput, RequestContextParent.Encoded, RequestContextParent.Props> & import("@effect-app/schema").PropsExtensions<RequestContextParent.Props>;
|
|
31
31
|
export declare class RequestContextParent extends RequestContextParent_base {
|
|
32
32
|
}
|
|
33
33
|
/** @ignore @internal @deprecated */
|
|
34
34
|
export type RequestContextParentConstructor = typeof RequestContextParent;
|
|
35
|
-
declare const RequestContext_base: import("@effect-app/schema").MNModel<import("@effect-app/schema").SchemaProperties<{
|
|
35
|
+
declare const RequestContext_base: import("@effect-app/schema").MNModel<import("@effect-app/schema").SchemaProperties<import("@effect-app/schema").ToProps<{
|
|
36
36
|
id: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
37
|
-
rootId: import("@effect-app/
|
|
37
|
+
rootId: import("@effect-app/prelude/schema").StringIdSchema & import("@effect-app/schema").Utils<import("@effect-app/prelude/schema").StringIdSchema> & {
|
|
38
38
|
make: () => import("@effect-app/prelude/schema").StringId;
|
|
39
39
|
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
41
|
parent: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, RequestContextParent, RequestContextParent.ConstructorInput, RequestContextParent.Encoded, {
|
|
42
42
|
props: RequestContextParent.Props;
|
|
43
43
|
}>, "optional", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
@@ -60,7 +60,7 @@ declare const RequestContext_base: import("@effect-app/schema").MNModel<import("
|
|
|
60
60
|
}>, "optional", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
61
61
|
locale: import("@effect-app/schema").Property<import("@effect-app/schema").DefaultSchema<unknown, "en" | "de", "en" | "de", "en" | "de", import("@effect-app/schema").LiteralApi<["en", "de"]>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
62
62
|
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").Schema<unknown, Date, Date, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => Date]>>;
|
|
63
|
-
}
|
|
63
|
+
}>>, RequestContext, RequestContext.ConstructorInput, RequestContext.Encoded, RequestContext.Props> & import("@effect-app/schema").PropsExtensions<RequestContext.Props>;
|
|
64
64
|
/**
|
|
65
65
|
* @tsplus type RequestContext
|
|
66
66
|
* @tsplus companion RequestContext.Ops
|
|
@@ -10,15 +10,15 @@ export declare function createContext<TKey extends string, EA, A extends DBRecor
|
|
|
10
10
|
findByIndex: (index: Index) => import("@effect/io/Effect").Effect<RedisClient, import("@effect-app/infra-adapters/redis-client").ConnectionException, import("@effect/data/Option").Option<TKey>>;
|
|
11
11
|
save: (record: A) => import("@effect/io/Effect").Effect<RedisClient | simpledb.RecordCache | REncode, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
12
12
|
};
|
|
13
|
-
declare const RedisSerializedDBRecord_base: MO.Model<RedisSerializedDBRecord, MO.SchemaProperties<{
|
|
13
|
+
declare const RedisSerializedDBRecord_base: MO.Model<RedisSerializedDBRecord, MO.SchemaProperties<MO.ToProps<{
|
|
14
14
|
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
15
15
|
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
16
16
|
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
17
|
-
}
|
|
17
|
+
}>>> & MO.PropsExtensions<MO.ToProps<{
|
|
18
18
|
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
19
19
|
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
20
20
|
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
21
|
-
}
|
|
21
|
+
}>>;
|
|
22
22
|
export declare class RedisSerializedDBRecord extends RedisSerializedDBRecord_base {
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -27,15 +27,15 @@ export declare class ConnectionException extends Error {
|
|
|
27
27
|
export interface DBRecord<TKey extends string> {
|
|
28
28
|
id: TKey;
|
|
29
29
|
}
|
|
30
|
-
declare const SerializedDBRecord_base: MO.Model<SerializedDBRecord, MO.SchemaProperties<{
|
|
30
|
+
declare const SerializedDBRecord_base: MO.Model<SerializedDBRecord, MO.SchemaProperties<MO.ToProps<{
|
|
31
31
|
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
32
32
|
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
33
33
|
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
34
|
-
}
|
|
34
|
+
}>>> & MO.PropsExtensions<MO.ToProps<{
|
|
35
35
|
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
36
36
|
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
37
37
|
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
38
|
-
}
|
|
38
|
+
}>>;
|
|
39
39
|
export declare class SerializedDBRecord extends SerializedDBRecord_base {
|
|
40
40
|
}
|
|
41
41
|
export declare function makeSerialisedDBRecord(s: SchemaAny): MO.SchemaProperties<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"proper-lockfile": "^4.1.2",
|
|
20
20
|
"pure-rand": "^6.0.1",
|
|
21
21
|
"redlock": "^4.2.0",
|
|
22
|
-
"@effect-app/prelude": "0.44.
|
|
22
|
+
"@effect-app/prelude": "0.44.9",
|
|
23
23
|
"@effect-app/core": "0.47.1",
|
|
24
|
-
"@effect-app/infra-adapters": "0.40.
|
|
25
|
-
"@effect-app/schema": "0.39.
|
|
24
|
+
"@effect-app/infra-adapters": "0.40.9",
|
|
25
|
+
"@effect-app/schema": "0.39.9"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/cli": "^7.21.0",
|