@effect-app/infra 1.44.6 → 1.45.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.
@@ -2,7 +2,7 @@ import { Context, Effect, flow, Layer, Option, pipe, S, Struct } from "effect-ap
2
2
  import { inspect } from "util"
3
3
  import { expect, it } from "vitest"
4
4
  import { and, make, one, or, order, page, project, toFilter, where } from "../src/services/query.js"
5
- import { RepositoryDefaultImpl } from "../src/services/RepositoryBase.js"
5
+ import { RepositoryDefaultImpl2 } from "../src/services/RepositoryBase.js"
6
6
  import { ContextMapContainer } from "../src/services/Store/ContextMapContainer.js"
7
7
  import { memFilter, MemoryStoreLive } from "../src/services/Store/Memory.js"
8
8
 
@@ -85,9 +85,10 @@ it("works", () => {
85
85
  expect(processed).toEqual(items.slice(0, 2).toReversed().map(Struct.pick("id", "displayName")))
86
86
  })
87
87
 
88
- class SomethingRepo extends RepositoryDefaultImpl<SomethingRepo>()(
88
+ class SomethingRepo extends RepositoryDefaultImpl2<SomethingRepo>()(
89
89
  "test",
90
- Something
90
+ Something,
91
+ { idKey: "id" }
91
92
  ) {
92
93
  static readonly Test = Layer.effect(SomethingRepo, SomethingRepo.makeWith({}, (_) => new SomethingRepo(_))).pipe(
93
94
  Layer.provide(Layer.merge(MemoryStoreLive, ContextMapContainer.live))