@effect-app/infra 0.210.2 → 0.210.4

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,27 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 0.210.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f4bea89]
8
+ - @effect-app/fluent-extensions@0.143.4
9
+ - @effect-app/core@0.150.5
10
+ - @effect-app/infra-adapters@0.137.14
11
+ - effect-app@0.181.3
12
+ - @effect-app/schema@0.202.5
13
+
14
+ ## 0.210.3
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [ea3dd75]
19
+ - @effect-app/fluent-extensions@0.143.3
20
+ - @effect-app/core@0.150.4
21
+ - @effect-app/infra-adapters@0.137.13
22
+ - effect-app@0.181.2
23
+ - @effect-app/schema@0.202.4
24
+
3
25
  ## 0.210.2
4
26
 
5
27
  ### Patch Changes
@@ -2,8 +2,8 @@ import { NonEmptyString255 } from "@effect-app/schema";
2
2
  import { S } from "effect-app";
3
3
  declare const RequestContextParent_base: S.EnhancedClass<{
4
4
  readonly _tag: "RequestContext";
5
- readonly id: NonEmptyString255;
6
5
  readonly name: string & S.NonEmptyString255Brand;
6
+ readonly id: NonEmptyString255;
7
7
  readonly locale: "en" | "de";
8
8
  readonly createdAt: Date;
9
9
  readonly userProfile?: {
@@ -11,16 +11,16 @@ declare const RequestContextParent_base: S.EnhancedClass<{
11
11
  } | undefined;
12
12
  }, {
13
13
  readonly _tag: "RequestContext";
14
- readonly id: string;
15
14
  readonly name: string;
15
+ readonly id: string;
16
16
  readonly locale: "en" | "de";
17
17
  readonly createdAt: string;
18
18
  readonly userProfile?: {
19
19
  readonly sub: string;
20
20
  } | undefined;
21
21
  }, never, {
22
- readonly id: NonEmptyString255;
23
22
  readonly name: string & S.NonEmptyString255Brand;
23
+ readonly id: NonEmptyString255;
24
24
  readonly locale: "en" | "de";
25
25
  readonly userProfile?: {
26
26
  readonly sub: string & import("effect-app/ids").UserProfileIdBrand;
@@ -49,8 +49,8 @@ export declare class RequestContextParent extends RequestContextParent_base {
49
49
  }
50
50
  declare const RequestContext_base: S.EnhancedClass<{
51
51
  readonly _tag: "RequestContext";
52
- readonly id: NonEmptyString255;
53
52
  readonly name: string & S.NonEmptyString255Brand;
53
+ readonly id: NonEmptyString255;
54
54
  readonly locale: "en" | "de";
55
55
  readonly createdAt: Date;
56
56
  readonly rootId: NonEmptyString255;
@@ -61,8 +61,8 @@ declare const RequestContext_base: S.EnhancedClass<{
61
61
  readonly namespace?: (string & S.NonEmptyString255Brand) | undefined;
62
62
  }, {
63
63
  readonly _tag: "RequestContext";
64
- readonly id: string;
65
64
  readonly name: string;
65
+ readonly id: string;
66
66
  readonly locale: "en" | "de";
67
67
  readonly createdAt: string;
68
68
  readonly rootId: string;
@@ -71,8 +71,8 @@ declare const RequestContext_base: S.EnhancedClass<{
71
71
  } | undefined;
72
72
  readonly parent?: {
73
73
  readonly _tag: "RequestContext";
74
- readonly id: string;
75
74
  readonly name: string;
75
+ readonly id: string;
76
76
  readonly locale: "en" | "de";
77
77
  readonly createdAt: string;
78
78
  readonly userProfile?: {
@@ -102,8 +102,8 @@ declare const RequestContext_base: S.EnhancedClass<{
102
102
  };
103
103
  parent: S.PropertySignature<{
104
104
  readonly _tag: "RequestContext";
105
- readonly id: string;
106
105
  readonly name: string;
106
+ readonly id: string;
107
107
  readonly locale: "en" | "de";
108
108
  readonly createdAt: string;
109
109
  readonly userProfile?: {
@@ -12,7 +12,7 @@ export declare function makeServiceBusQueue<Evt extends {
12
12
  id: StringId;
13
13
  _tag: string;
14
14
  }, EvtE, DrainEvtE>(_queueName: string, queueDrainName: string, schema: S.Schema<Evt, EvtE>, drainSchema: S.Schema<DrainEvt, DrainEvtE>): Effect.Effect<{
15
- drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>) => Effect.Effect<never, never, import("effect/Scope").Scope | RequestContextContainer | import("../Store/ContextMapContainer.js").ContextMapContainer | Exclude<Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, never>, Tracer.ParentSpan>, import("@azure/service-bus").ServiceBusReceiver>>;
15
+ drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>) => Effect.Effect<never, never, RequestContextContainer | import("effect/Scope").Scope | import("../Store/ContextMapContainer.js").ContextMapContainer | Exclude<Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, never>, Tracer.ParentSpan>, import("@azure/service-bus").ServiceBusReceiver>>;
16
16
  publish: (messages_0: Evt, ...messages_1: Evt[]) => Effect.Effect<void, never, never>;
17
17
  }, never, RequestContextContainer | import("@azure/service-bus").ServiceBusReceiver | import("@azure/service-bus").ServiceBusSender>;
18
18
  /**
@@ -23,8 +23,8 @@ export declare const QueueMeta: S.Schema<{
23
23
  }, {
24
24
  readonly requestContext: {
25
25
  readonly _tag: "RequestContext";
26
- readonly id: string;
27
26
  readonly name: string;
27
+ readonly id: string;
28
28
  readonly locale: "en" | "de";
29
29
  readonly createdAt: string;
30
30
  readonly rootId: string;
@@ -33,8 +33,8 @@ export declare const QueueMeta: S.Schema<{
33
33
  } | undefined;
34
34
  readonly parent?: {
35
35
  readonly _tag: "RequestContext";
36
- readonly id: string;
37
36
  readonly name: string;
37
+ readonly id: string;
38
38
  readonly locale: "en" | "de";
39
39
  readonly createdAt: string;
40
40
  readonly userProfile?: {
@@ -200,7 +200,7 @@ export declare function makeRepo<PM extends {
200
200
  value: A_1;
201
201
  readonly S: PM;
202
202
  };
203
- }) => Where | readonly [Where, ...Where[]], mode?: "or" | "and" | undefined) => Filter<PM>;
203
+ }) => Where | readonly [Where, ...Where[]], mode?: "and" | "or" | undefined) => Filter<PM>;
204
204
  Query: (fn: (f: QB.FilterTest<PM>, fields: QB.Filter<PM, never>) => QB.QueryBuilder<PM>) => QB.QueryBuilder<PM>;
205
205
  Q: Query<Omit<PM, "_etag">>;
206
206
  };
@@ -39,7 +39,7 @@ declare const RequestContextContainer_base: {
39
39
  requestContext: Effect<RequestContext>;
40
40
  update: (f: (rc: RequestContext) => RequestContext) => Effect<RequestContext>;
41
41
  start: (f: RequestContext) => Effect<void>;
42
- }) => X) => X extends Effect<infer A_3, infer E_4, infer R_4> ? Effect<A_3, E_4, R_4 | RequestContextContainer> : Effect<X, never, RequestContextContainer>;
42
+ }) => X) => X extends Effect<infer A_3, infer E_4, infer R_4> ? Effect<A_3, E_4, RequestContextContainer | R_4> : Effect<X, never, RequestContextContainer>;
43
43
  };
44
44
  /**
45
45
  * @tsplus type RequestContextContainer
@@ -116,7 +116,7 @@ declare const StoreMaker_base: {
116
116
  } & import("effect/Context").Tag<StoreMaker, StoreMaker> & {} & {
117
117
  use: <X>(body: (_: {
118
118
  make: <PM extends PersistenceModelType<Id>, Id extends string, R = never, E = never>(name: string, seed?: Effect<Iterable<PM>, E, R> | undefined, config?: StoreConfig<PM> | undefined) => Effect<Store<PM, Id>, E, R>;
119
- }) => X) => X extends Effect<infer A_3, infer E_4, infer R_4> ? Effect<A_3, E_4, StoreMaker | R_4> : Effect<X, never, StoreMaker>;
119
+ }) => X) => X extends Effect<infer A_3, infer E_4, infer R_4> ? Effect<A_3, E_4, R_4 | StoreMaker> : Effect<X, never, StoreMaker>;
120
120
  };
121
121
  /**
122
122
  * @tsplus type StoreMaker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "0.210.2",
3
+ "version": "0.210.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -18,11 +18,11 @@
18
18
  "proper-lockfile": "^4.1.2",
19
19
  "pure-rand": "6.0.4",
20
20
  "redlock": "^4.2.0",
21
- "@effect-app/core": "0.150.3",
22
- "@effect-app/fluent-extensions": "0.143.2",
23
- "@effect-app/infra-adapters": "0.137.12",
24
- "effect-app": "0.181.1",
25
- "@effect-app/schema": "0.202.3"
21
+ "@effect-app/core": "0.150.5",
22
+ "@effect-app/infra-adapters": "0.137.14",
23
+ "@effect-app/fluent-extensions": "0.143.4",
24
+ "effect-app": "0.181.3",
25
+ "@effect-app/schema": "0.202.5"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/cli": "^7.23.9",