@effect-app/infra 2.15.0 → 2.15.1

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.
@@ -15,7 +15,7 @@ export declare const toFilter: <TFieldValues extends FieldValues, A, R, TFieldVa
15
15
  key: import("../filter/types/path/eager.js").Path<TFieldValues>;
16
16
  direction: "ASC" | "DESC";
17
17
  }[]];
18
- ttype: "one" | "count" | "many";
18
+ ttype: "one" | "many" | "count";
19
19
  mode: "project" | "collect" | "transform";
20
20
  filter: FilterResult[];
21
21
  };
@@ -1,7 +1,7 @@
1
1
  import { Effect } from "effect-app";
2
2
  import { Operation } from "effect-app/Operations";
3
3
  declare const OperationsRepo_base: Effect.Service.Class<OperationsRepo, "OperationRepo", {
4
- readonly effect: Effect.Effect<import("./Model/Repository.js").ExtendedRepository<Operation, Operation.From, never, "Operation", "id", never, never>, never, import("./Store.js").StoreMaker>;
4
+ readonly effect: Effect.Effect<import("./Model/Repository.js").ExtendedRepository<Operation, Operation.Encoded, never, "Operation", "id", never, never>, never, import("./Store.js").StoreMaker>;
5
5
  }>;
6
6
  export declare class OperationsRepo extends OperationsRepo_base {
7
7
  }
@@ -24,7 +24,7 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, {
24
24
  withDefault: S.PropertySignature<":", string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, never, ":", string, true, never>;
25
25
  } & S.WithDefaults<S.Schema<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never>>;
26
26
  }>>;
27
- }, RequestContext.From, never, {
27
+ }, RequestContext.Encoded, never, {
28
28
  readonly name: string & S.NonEmptyString255Brand;
29
29
  readonly locale: "en" | "de";
30
30
  readonly namespace: string & S.NonEmptyString255Brand;
@@ -57,7 +57,7 @@ export declare const spanAttributes: (ctx: Pick<RequestContext, "locale" | "name
57
57
  "request.namespace": string & S.NonEmptyString255Brand;
58
58
  };
59
59
  export declare namespace RequestContext {
60
- interface From extends S.Struct.Encoded<typeof RequestContext["fields"]> {
60
+ interface Encoded extends S.Struct.Encoded<typeof RequestContext["fields"]> {
61
61
  }
62
62
  }
63
63
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAIxC,eAAO,MAAM,MAAM,yBAAwB,CAAA;AAC3C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC,eAAO,MAAM,SAAS,gCAAoC,CAAA;;;;;;;;;;;;;IAmBxD,kBAAkB;;;;2BAkBG,iBAElB;;;2BAegC,iBAAiB;;;;;;;;;;;;;;;;;AApDtD;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAelC;IAGA,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc;;;;CAMrD;AAED,eAAO,MAAM,cAAc,QAAS,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;CAgBxG,CAAA;AAKF,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,IAAK,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC;KAAG;CACnF"}
1
+ {"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAIxC,eAAO,MAAM,MAAM,yBAAwB,CAAA;AAC3C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC,eAAO,MAAM,SAAS,gCAAoC,CAAA;;;;;;;;;;;;;IAmBxD,kBAAkB;;;;yBAkBH,EAAG,iBAElB;;;yBAe6B,EAAI,iBAAgB;;;;;;;;;;;;;;;;;AApDnD;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAelC;IAGA,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc;;;;CAMrD;AAED,eAAO,MAAM,cAAc,QAAS,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;CAgBxG,CAAA;AAKF,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,OAAQ,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC;KAAG;CACtF"}
package/examples/query.ts CHANGED
@@ -55,10 +55,8 @@ class SomethingRepo extends Effect.Service<SomethingRepo>()("SomethingRepo", {
55
55
  }) {
56
56
  static readonly Test = Layer
57
57
  .effect(
58
- SomethingRepo,
59
- Effect.gen(function*() {
60
- return SomethingRepo.make(yield* makeRepo("Union", Union, { makeInitial: Effect.sync(() => items) }))
61
- })
58
+ this,
59
+ makeRepo("Union", Union, { makeInitial: Effect.sync(() => items) }).pipe(Effect.map(this.make))
62
60
  )
63
61
  .pipe(
64
62
  Layer.provide(MemoryStoreLive)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {