@effect-app/infra 2.68.1 → 2.69.0

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,16 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 2.69.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ba4ad65: update packages; drop ServiceStrict in favour of language-service
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [ba4ad65]
12
+ - effect-app@2.46.0
13
+
3
14
  ## 2.68.1
4
15
 
5
16
  ### Patch Changes
package/dist/CUPS.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare const makePrintJobTempFileArrayBuffer: (buffer: ArrayBuffer, opti
8
8
  export declare const CUPSConfig: Config.Config<{
9
9
  server: import("effect/Option").Option<import("url").URL>;
10
10
  }>;
11
- declare const CUPS_base: import("effect/Effect").Service.Class<CUPS, "effect-app/CUPS", {
11
+ declare const CUPS_base: Effect.Service.Class<CUPS, "effect-app/CUPS", {
12
12
  readonly effect: Effect.Effect<{
13
13
  print: (buffer: ArrayBuffer, printerId: PrinterId, ...options: string[]) => Effect.Effect<{
14
14
  stdout: string;
@@ -10,6 +10,9 @@ export declare function renderMessage(forceFake: boolean): (msg: EmailMsg) => {
10
10
  to: EmailData | EmailData[];
11
11
  cc: EmailData | EmailData[];
12
12
  bcc: EmailData | EmailData[];
13
+ headers?: {
14
+ [key: string]: string;
15
+ };
13
16
  replyTo?: EmailData;
14
17
  sendAt?: number;
15
18
  subject?: string;
@@ -23,9 +26,6 @@ export declare function renderMessage(forceFake: boolean): (msg: EmailMsg) => {
23
26
  sections?: {
24
27
  [key: string]: string;
25
28
  };
26
- headers?: {
27
- [key: string]: string;
28
- };
29
29
  categories?: string[];
30
30
  category?: string;
31
31
  customArgs?: {
@@ -49,6 +49,9 @@ export declare function renderMessage(forceFake: boolean): (msg: EmailMsg) => {
49
49
  to: EmailData | EmailData[];
50
50
  cc: EmailData | EmailData[];
51
51
  bcc: EmailData | EmailData[];
52
+ headers?: {
53
+ [key: string]: string;
54
+ };
52
55
  replyTo?: EmailData;
53
56
  sendAt?: number;
54
57
  subject?: string;
@@ -62,9 +65,6 @@ export declare function renderMessage(forceFake: boolean): (msg: EmailMsg) => {
62
65
  sections?: {
63
66
  [key: string]: string;
64
67
  };
65
- headers?: {
66
- [key: string]: string;
67
- };
68
68
  categories?: string[];
69
69
  category?: string;
70
70
  customArgs?: {
@@ -88,6 +88,9 @@ export declare function renderMessage(forceFake: boolean): (msg: EmailMsg) => {
88
88
  to: EmailData | EmailData[];
89
89
  cc: EmailData | EmailData[];
90
90
  bcc: EmailData | EmailData[];
91
+ headers?: {
92
+ [key: string]: string;
93
+ };
91
94
  replyTo?: EmailData;
92
95
  sendAt?: number;
93
96
  subject?: string;
@@ -101,9 +104,6 @@ export declare function renderMessage(forceFake: boolean): (msg: EmailMsg) => {
101
104
  sections?: {
102
105
  [key: string]: string;
103
106
  };
104
- headers?: {
105
- [key: string]: string;
106
- };
107
107
  categories?: string[];
108
108
  category?: string;
109
109
  customArgs?: {
@@ -127,6 +127,9 @@ export declare function renderMessage(forceFake: boolean): (msg: EmailMsg) => {
127
127
  to: EmailData | EmailData[];
128
128
  cc: EmailData | EmailData[];
129
129
  bcc: EmailData | EmailData[];
130
+ headers?: {
131
+ [key: string]: string;
132
+ };
130
133
  replyTo?: EmailData;
131
134
  sendAt?: number;
132
135
  subject?: string;
@@ -140,9 +143,6 @@ export declare function renderMessage(forceFake: boolean): (msg: EmailMsg) => {
140
143
  sections?: {
141
144
  [key: string]: string;
142
145
  };
143
- headers?: {
144
- [key: string]: string;
145
- };
146
146
  categories?: string[];
147
147
  category?: string;
148
148
  customArgs?: {
@@ -24,7 +24,7 @@ declare const Emailer_base: (abstract new (service: {
24
24
  } & {
25
25
  use: <X>(body: (_: {
26
26
  sendMail: (msg: EmailMsgOptionalFrom) => Effect<void, SendMailError>;
27
- }) => X) => X extends Effect.Effect<infer A_1, infer E_1, infer R_3> ? Effect.Effect<A_1, E_1, Emailer | R_3> : Effect.Effect<X, never, Emailer>;
27
+ }) => X) => X extends Effect.Effect<infer A_1, infer E_1, infer R_3> ? Effect.Effect<A_1, E_1, R_3 | Emailer> : Effect.Effect<X, never, Emailer>;
28
28
  };
29
29
  export declare class Emailer extends Emailer_base {
30
30
  }
@@ -44,7 +44,7 @@ declare const MainFiberSet_base: (abstract new (service: {
44
44
  run: <R_1, XE extends never, XA extends unknown>(effect: Effect.Effect<XA, XE, R_1>) => Effect.Effect<Fiber.RuntimeFiber<XA, XE>, never, R_1>;
45
45
  add: (...fibers: Fiber.RuntimeFiber<never, never>[]) => Effect.Effect<void, never, never>;
46
46
  addAll: (fibers: readonly Fiber.RuntimeFiber<never, never>[]) => Effect.Effect<void, never, never>;
47
- }) => X) => X extends Effect.Effect<infer A_1, infer E_2, infer R_4> ? Effect.Effect<A_1, E_2, R_4 | MainFiberSet> : Effect.Effect<X, never, MainFiberSet>;
47
+ }) => X) => X extends Effect.Effect<infer A_1, infer E_2, infer R_4> ? Effect.Effect<A_1, E_2, MainFiberSet | R_4> : Effect.Effect<X, never, MainFiberSet>;
48
48
  };
49
49
  /**
50
50
  * Whenever you fork long running (e.g worker) fibers via e.g `Effect.forkScoped` or `Effect.forkDaemon`
@@ -20,12 +20,12 @@ export declare function makeRepoInternal<Evt = never>(): <ItemType extends strin
20
20
  config?: Omit<StoreConfig<Encoded>, "partitionValue"> & {
21
21
  partitionValue?: (a: Encoded) => string;
22
22
  };
23
- }) => Effect.Effect<Repository<T, Encoded, Evt, ItemType, IdKey, Exclude<R, RCtx>, RPublish>, E, StoreMaker | R | RInitial>;
23
+ }) => Effect.Effect<Repository<T, Encoded, Evt, ItemType, IdKey, Exclude<R, RCtx>, RPublish>, E, R | RInitial | StoreMaker>;
24
24
  Q: Q.Query<Encoded>;
25
25
  };
26
26
  export declare function makeStore<Encoded extends FieldValues>(): <ItemType extends string, R, E, T, IdKey extends keyof Encoded>(name: ItemType, schema: S.Schema<T, E, R>, mapTo: (e: E, etag: string | undefined) => Encoded, idKey: IdKey) => <RInitial = never, EInitial = never>(makeInitial?: Effect<readonly T[], EInitial, RInitial> | undefined, config?: Omit<StoreConfig<Encoded>, "partitionValue"> & {
27
27
  partitionValue?: (a: Encoded) => string;
28
- }) => Effect.Effect<import("../../../Store.js").Store<IdKey, Encoded, PersistenceModelType<Encoded>>, EInitial, StoreMaker | R | RInitial>;
28
+ }) => Effect.Effect<import("../../../Store.js").Store<IdKey, Encoded, PersistenceModelType<Encoded>>, EInitial, R | RInitial | StoreMaker>;
29
29
  export interface Repos<T, Encoded extends {
30
30
  id: string;
31
31
  }, RSchema, Evt, ItemType extends string, IdKey extends keyof T, RPublish> {
@@ -54,15 +54,15 @@ declare const Operations_base: (abstract new (service: {
54
54
  update: (id: OperationId, progress: OperationProgress) => Effect.Effect<void, never, never>;
55
55
  }>) & {
56
56
  toLayer: {
57
- (): Layer.Layer<Operations, never, RequestFiberSet | OperationsRepo>;
57
+ (): Layer.Layer<Operations, never, OperationsRepo | RequestFiberSet>;
58
58
  <E_1, R_1>(eff: Effect.Effect<Omit<Operations, keyof Context.TagClassShape<any, any>>, E_1, R_1>): Layer.Layer<Operations, E_1, R_1>;
59
59
  };
60
60
  toLayerScoped: {
61
- (): Layer.Layer<Operations, never, RequestFiberSet | OperationsRepo>;
61
+ (): Layer.Layer<Operations, never, OperationsRepo | RequestFiberSet>;
62
62
  <E_1, R_2>(eff: Effect.Effect<Context.TagClassShape<any, any>, E_1, R_2>): Layer.Layer<Operations, E_1, Exclude<R_2, Scope.Scope>>;
63
63
  };
64
64
  of: (service: Context.TagClassShape<any, any>) => Operations;
65
- make: Effect.Effect<Operations, never, RequestFiberSet | OperationsRepo>;
65
+ make: Effect.Effect<Operations, never, OperationsRepo | RequestFiberSet>;
66
66
  } & Context.Tag<Operations, Operations> & {
67
67
  cleanup: Effect.Effect<void[], never, Operations>;
68
68
  register: (title: S.NonEmptyString2k) => Effect.Effect<S.StringId, never, Scope.Scope | Operations>;
@@ -1,8 +1,7 @@
1
1
  import { Effect } from "effect-app";
2
2
  import { Operation } from "effect-app/Operations";
3
- declare const OperationsRepo_base: import("effect/Effect").Service.Class<OperationsRepo, "OperationRepo", {
3
+ declare const OperationsRepo_base: Effect.Service.Class<OperationsRepo, "OperationRepo", {
4
4
  readonly effect: Effect.Effect<import("./Model/Repository.js").ExtendedRepository<Operation, Operation.Encoded, never, "Operation", "id", never, never>, never, import("./Store.js").StoreMaker>;
5
- readonly strict: false;
6
5
  }>;
7
6
  export declare class OperationsRepo extends OperationsRepo_base {
8
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsRepo.d.ts","sourceRoot":"","sources":["../src/OperationsRepo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;;AAGjD,qBAAa,cAAe,SAAQ,mBAYnC;CAAG"}
1
+ {"version":3,"file":"OperationsRepo.d.ts","sourceRoot":"","sources":["../src/OperationsRepo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;AAIjD,qBAAa,cAAe,SAAQ,mBAWnC;CAAG"}
@@ -1,6 +1,7 @@
1
1
  import { Effect } from "effect-app";
2
2
  import { Operation } from "effect-app/Operations";
3
3
  import { makeRepo } from "./Model.js";
4
+ // @effect-diagnostics-next-line missingEffectServiceDependency:off
4
5
  export class OperationsRepo extends Effect.Service()("OperationRepo", {
5
6
  effect: Effect.gen(function* () {
6
7
  return yield* makeRepo("Operation", Operation, {
@@ -8,8 +9,7 @@ export class OperationsRepo extends Effect.Service()("OperationRepo", {
8
9
  allowNamespace: () => true
9
10
  }
10
11
  });
11
- }),
12
- strict: false
12
+ })
13
13
  }) {
14
14
  }
15
- //# sourceMappingURL=data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UFNLFlBQVksQ0FBQTtBQUVyQyxtRUFBbUU7QUFDbkUsTUFBTSxPQUFPLGNBQWUsU0FBUSxNQUFNLENBQUMsT0FBTyxFQUFrQixDQUNsRSxlQUFlLEVBQ2Y7SUFDRSxNQUFNLEVBQUUsTUFBTSxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUM7UUFDMUIsT0FBTyxLQUFLLENBQUMsQ0FBQyxRQUFRLENBQUMsV0FBVyxFQUFFLFNBQVMsRUFBRTtZQUM3QyxNQUFNLEVBQUU7Z0JBQ04sY0FBYyxFQUFFLEdBQUcsRUFBRSxDQUFDLElBQUk7YUFDM0I7U0FDRixDQUFDLENBQUE7SUFDSixDQUFDLENBQUM7Q0FDSCxDQUNGO0NBQUcifQ==
@@ -13,6 +13,6 @@ export declare function makeSQLQueue<Evt extends {
13
13
  _tag: string;
14
14
  }, EvtE, DrainEvtE>(queueName: NonEmptyString255, queueDrainName: NonEmptyString255, schema: S.Schema<Evt, EvtE>, drainSchema: S.Schema<DrainEvt, DrainEvtE>): Effect.Effect<{
15
15
  publish: (messages_0: Evt, ...messages: Evt[]) => Effect.Effect<void, never, never>;
16
- drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>, sessionId?: string) => Effect.Effect<never, never, Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, import("../RequestContext.js").LocaleRef | import("../Store/ContextMapContainer.js").ContextMapContainer | import("../Store/Memory.js").storeId>, Tracer.ParentSpan>>;
16
+ drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>, sessionId?: string) => Effect.Effect<never, never, Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, import("../RequestContext.js").LocaleRef | import("../Store/Memory.js").storeId | import("../Store/ContextMapContainer.js").ContextMapContainer>, Tracer.ParentSpan>>;
17
17
  }, never, SqlClient.SqlClient>;
18
18
  //# sourceMappingURL=SQLQueue.d.ts.map
@@ -9,6 +9,6 @@ export declare function makeMemQueue<Evt extends {
9
9
  _tag: string;
10
10
  }, EvtE, DrainEvtE>(queueName: string, queueDrainName: string, schema: S.Schema<Evt, EvtE>, drainSchema: S.Schema<DrainEvt, DrainEvtE>): Effect.Effect<{
11
11
  publish: (messages_0: Evt, ...messages: Evt[]) => Effect.Effect<void, never, never>;
12
- drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>, sessionId?: string) => Effect.Effect<never, never, Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, import("../RequestContext.js").LocaleRef | import("../Store/ContextMapContainer.js").ContextMapContainer | import("../Store/Memory.js").storeId>, Tracer.ParentSpan>>;
12
+ drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>, sessionId?: string) => Effect.Effect<never, never, Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, import("../RequestContext.js").LocaleRef | import("../Store/Memory.js").storeId | import("../Store/ContextMapContainer.js").ContextMapContainer>, Tracer.ParentSpan>>;
13
13
  }, never, MemQueue>;
14
14
  //# sourceMappingURL=memQueue.d.ts.map
@@ -9,8 +9,8 @@ export declare function makeServiceBusQueue<Evt extends {
9
9
  id: StringId;
10
10
  _tag: string;
11
11
  }, EvtE, DrainEvtE>(queueName: string, queueDrainName: string, schema: S.Schema<Evt, EvtE>, drainSchema: S.Schema<DrainEvt, DrainEvtE>): Effect.Effect<{
12
- drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>, sessionId?: string) => Effect.Effect<never, never, import("effect/Scope").Scope | Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, import("../RequestContext.js").LocaleRef | import("../Store/ContextMapContainer.js").ContextMapContainer | import("../Store/Memory.js").storeId>, ServiceBusReceiverFactory>>;
12
+ drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>, sessionId?: string) => Effect.Effect<never, never, import("effect/Scope").Scope | Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, import("../RequestContext.js").LocaleRef | import("../Store/Memory.js").storeId | import("../Store/ContextMapContainer.js").ContextMapContainer>, ServiceBusReceiverFactory>>;
13
13
  publish: (messages_0: Evt, ...messages: Evt[]) => Effect.Effect<void, never, never>;
14
- }, never, import("@azure/service-bus").ServiceBusSender | ServiceBusReceiverFactory>;
15
- export declare function makeServiceBusLayers(url: string, queueName: string, queueDrainName: string): Layer.Layer<import("@azure/service-bus").ServiceBusSender | ServiceBusReceiverFactory, never, never>;
14
+ }, never, ServiceBusReceiverFactory | import("@azure/service-bus").ServiceBusSender>;
15
+ export declare function makeServiceBusLayers(url: string, queueName: string, queueDrainName: string): Layer.Layer<ServiceBusReceiverFactory | import("@azure/service-bus").ServiceBusSender, never, never>;
16
16
  //# sourceMappingURL=sbqueue.d.ts.map
@@ -27,9 +27,9 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, {
27
27
  } & S.WithDefaults<S.Schema<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never>>;
28
28
  }>>;
29
29
  }, RequestContext.Encoded, never, {
30
- readonly name: string & S.NonEmptyString255Brand;
31
30
  readonly locale: "en" | "de";
32
31
  readonly namespace: string & S.NonEmptyString255Brand;
32
+ readonly name: string & S.NonEmptyString255Brand;
33
33
  readonly span: {
34
34
  readonly traceId: string;
35
35
  readonly spanId: string;
@@ -1,6 +1,6 @@
1
1
  import { Context, Effect, Layer } from "effect-app";
2
2
  import { ContextMap } from "./service.js";
3
- declare const ContextMapContainer_base: Context.ReferenceClass<ContextMapContainer, "ContextMapContainer", "root" | ContextMap>;
3
+ declare const ContextMapContainer_base: Context.ReferenceClass<ContextMapContainer, "ContextMapContainer", ContextMap | "root">;
4
4
  export declare class ContextMapContainer extends ContextMapContainer_base {
5
5
  static readonly layer: Layer.Layer<ContextMapContainer, never, never>;
6
6
  }
@@ -92,7 +92,7 @@ declare const StoreMaker_base: (abstract new (service: {
92
92
  } & Context.Tag<StoreMaker, StoreMaker> & {} & {
93
93
  use: <X>(body: (_: {
94
94
  make: <IdKey extends keyof Encoded, Encoded extends FieldValues, R = never, E = never>(name: string, idKey: IdKey, seed?: Effect<Iterable<Encoded>, E, R>, config?: StoreConfig<Encoded>) => Effect<Store<IdKey, Encoded>, E, R>;
95
- }) => X) => X extends Effect.Effect<infer A_1, infer E_1, infer R_3> ? Effect.Effect<A_1, E_1, R_3 | StoreMaker> : Effect.Effect<X, never, StoreMaker>;
95
+ }) => X) => X extends Effect.Effect<infer A_1, infer E_1, infer R_3> ? Effect.Effect<A_1, E_1, StoreMaker | R_3> : Effect.Effect<X, never, StoreMaker>;
96
96
  };
97
97
  export declare class StoreMaker extends StoreMaker_base {
98
98
  }
@@ -127,7 +127,7 @@ declare const ContextMap_base: (abstract new (service: {
127
127
  use: <X>(body: (_: {
128
128
  get: (id: string) => string | undefined;
129
129
  set: (id: string, eTag: string | undefined) => void;
130
- }) => X) => X extends Effect.Effect<infer A_1, infer E_2, infer R_4> ? Effect.Effect<A_1, E_2, ContextMap | R_4> : Effect.Effect<X, never, ContextMap>;
130
+ }) => X) => X extends Effect.Effect<infer A_1, infer E_2, infer R_4> ? Effect.Effect<A_1, E_2, R_4 | ContextMap> : Effect.Effect<X, never, ContextMap>;
131
131
  };
132
132
  export declare class ContextMap extends ContextMap_base {
133
133
  }
@@ -29,7 +29,7 @@ export declare class ServiceBusReceiverFactory extends ServiceBusReceiverFactory
29
29
  static readonly Live: (queueName: string) => Layer.Layer<ServiceBusReceiverFactory, never, ServiceBusClient>;
30
30
  }
31
31
  export declare function sendMessages(messages: ServiceBusMessage | ServiceBusMessage[] | ServiceBusMessageBatch, options?: OperationOptionsBase): Effect.Effect<void, never, ServiceBusSender>;
32
- export declare function subscribe<RMsg, RErr>(hndlr: MessageHandlers<RMsg, RErr>, sessionId?: string): Effect.Effect<void, never, Scope.Scope | ServiceBusReceiverFactory | RMsg | RErr>;
32
+ export declare function subscribe<RMsg, RErr>(hndlr: MessageHandlers<RMsg, RErr>, sessionId?: string): Effect.Effect<void, never, Scope.Scope | RMsg | RErr | ServiceBusReceiverFactory>;
33
33
  export interface MessageHandlers<RMsg, RErr> {
34
34
  /**
35
35
  * Handler that processes messages from service bus.
@@ -1,5 +1,5 @@
1
1
  import { Effect } from "effect-app";
2
2
  import { HttpServerRequest, HttpServerResponse } from "effect-app/http";
3
3
  import { Locale } from "../../RequestContext.js";
4
- export declare const RequestContextMiddleware: (defaultLocale?: Locale) => <E, R>(app: import("@effect/platform/HttpApp").Default<E, R>) => Effect.Effect<HttpServerResponse.HttpServerResponse, E, HttpServerRequest.HttpServerRequest | Exclude<Exclude<R, import("effect/Tracer").ParentSpan>, import("../../RequestContext.js").LocaleRef | import("../../Store/ContextMapContainer.js").ContextMapContainer | import("../../Store/Memory.js").storeId>>;
4
+ export declare const RequestContextMiddleware: (defaultLocale?: Locale) => <E, R>(app: import("@effect/platform/HttpApp").Default<E, R>) => Effect.Effect<HttpServerResponse.HttpServerResponse, E, HttpServerRequest.HttpServerRequest | Exclude<Exclude<R, import("effect/Tracer").ParentSpan>, import("../../RequestContext.js").LocaleRef | import("../../Store/Memory.js").storeId | import("../../Store/ContextMapContainer.js").ContextMapContainer>>;
5
5
  //# sourceMappingURL=RequestContextMiddleware.d.ts.map
@@ -373,7 +373,7 @@ export declare const contextMaker: <TDeps extends Array.NonEmptyReadonlyArray<(C
373
373
  dependencies: { [K in keyof TDeps]: TDeps[K]["Default"]; };
374
374
  effect: Effect.Effect<Effect.Effect<Context.Context<GetContext<Effect.Success<InstanceType<TDeps[number]>>>>, Effect.Error<InstanceType<TDeps[number]>>, Effect.Context<InstanceType<TDeps[number]>>>, never, InstanceType<TDeps[number]>>;
375
375
  };
376
- declare const DefaultContextMaker_base: import("effect/Effect").Service.Class<DefaultContextMaker, "DefaultContextMaker", {
376
+ declare const DefaultContextMaker_base: Effect.Service.Class<DefaultContextMaker, "DefaultContextMaker", {
377
377
  readonly succeed: Effect.Effect<Context.Context<never>, never, never>;
378
378
  }>;
379
379
  export declare class DefaultContextMaker extends DefaultContextMaker_base {
@@ -9,6 +9,6 @@ export declare const getRC: Effect.Effect<{
9
9
  namespace: NonEmptyString255;
10
10
  }, never, never>;
11
11
  export declare const setupRequestContextFromCurrent: (name?: string, options?: Tracer.SpanOptions) => <R, E, A>(self: Effect<A, E, R>) => Effect.Effect<A, E, Exclude<Exclude<R, Tracer.ParentSpan>, ContextMapContainer>>;
12
- export declare function setupRequestContext<R, E, A>(self: Effect<A, E, R>, requestContext: RequestContext): Effect.Effect<A, E, Exclude<Exclude<R, Tracer.ParentSpan>, LocaleRef | ContextMapContainer | storeId>>;
13
- export declare function setupRequestContextWithCustomSpan<R, E, A>(self: Effect<A, E, R>, requestContext: RequestContext, name: string, options?: Tracer.SpanOptions): Effect.Effect<A, E, Exclude<Exclude<R, Tracer.ParentSpan>, LocaleRef | ContextMapContainer | storeId>>;
12
+ export declare function setupRequestContext<R, E, A>(self: Effect<A, E, R>, requestContext: RequestContext): Effect.Effect<A, E, Exclude<Exclude<R, Tracer.ParentSpan>, LocaleRef | storeId | ContextMapContainer>>;
13
+ export declare function setupRequestContextWithCustomSpan<R, E, A>(self: Effect<A, E, R>, requestContext: RequestContext, name: string, options?: Tracer.SpanOptions): Effect.Effect<A, E, Exclude<Exclude<R, Tracer.ParentSpan>, LocaleRef | storeId | ContextMapContainer>>;
14
14
  //# sourceMappingURL=setupRequest.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "2.68.1",
3
+ "version": "2.69.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -13,7 +13,7 @@
13
13
  "proper-lockfile": "^4.1.2",
14
14
  "pure-rand": "7.0.1",
15
15
  "query-string": "^9.2.2",
16
- "effect-app": "2.45.0"
16
+ "effect-app": "2.46.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@azure/cosmos": "^4.5.0",
@@ -38,7 +38,7 @@
38
38
  "peerDependencies": {
39
39
  "@azure/cosmos": "^4.5.0",
40
40
  "@azure/service-bus": "^7.9.5",
41
- "@effect/experimental": "^0.54.0",
41
+ "@effect/experimental": "^0.54.1",
42
42
  "@effect/platform": "^0.90.0",
43
43
  "@effect/rpc-http": "^0.52.4",
44
44
  "@effect/rpc": "^0.68.0",
@@ -2,6 +2,7 @@ import { Effect } from "effect-app"
2
2
  import { Operation } from "effect-app/Operations"
3
3
  import { makeRepo } from "./Model.js"
4
4
 
5
+ // @effect-diagnostics-next-line missingEffectServiceDependency:off
5
6
  export class OperationsRepo extends Effect.Service<OperationsRepo>()(
6
7
  "OperationRepo",
7
8
  {
@@ -11,7 +12,6 @@ export class OperationsRepo extends Effect.Service<OperationsRepo>()(
11
12
  allowNamespace: () => true
12
13
  }
13
14
  })
14
- }),
15
- strict: false
15
+ })
16
16
  }
17
17
  ) {}
@@ -27,8 +27,8 @@ export interface CTX {
27
27
 
28
28
  export class Some extends Context.TagMakeId("Some", Effect.succeed({ a: 1 }))<Some>() {}
29
29
 
30
+ // @effect-diagnostics-next-line missingEffectServiceDependency:off
30
31
  export class ContextMaker extends Effect.Service<ContextMaker>()("ContextMaker", {
31
- strict: false,
32
32
  effect: Effect.gen(function*() {
33
33
  yield* SomeService
34
34
  const SomeContext = Layer.sync(Some, () => new Some({ a: 1 }))
@@ -1 +1 @@
1
- {"version":3,"file":"controller.test.d.ts","sourceRoot":"","sources":["../controller.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAA8B,MAAM,+BAA+B,CAAA;AAC7G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAEtE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,YAAY,CAAA;AACpE,OAAO,EAAE,KAAK,gBAAgB,EAAoC,KAAK,aAAa,EAAE,iBAAiB,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qFAAiC,CAAA"}
@@ -96,8 +96,8 @@ it("works", () => {
96
96
  expect(processed).toEqual(items.slice(0, 2).toReversed().map(Struct.pick("id", "displayName")))
97
97
  })
98
98
 
99
+ // @effect-diagnostics-next-line missingEffectServiceDependency:off
99
100
  class SomethingRepo extends Effect.Service<SomethingRepo>()("SomethingRepo", {
100
- strict: false,
101
101
  effect: Effect.gen(function*() {
102
102
  return yield* makeRepo("Something", Something, {})
103
103
  })
@@ -47,8 +47,8 @@ const items = [
47
47
  })
48
48
  ]
49
49
 
50
+ // @effect-diagnostics-next-line missingEffectServiceDependency:off
50
51
  class SomethingRepo extends Effect.Service<SomethingRepo>()("SomethingRepo", {
51
- strict: false,
52
52
  effect: Effect.gen(function*() {
53
53
  return yield* makeRepo("Something", Something, {})
54
54
  })