@effect-app/infra 4.0.0-beta.297 → 4.0.0-beta.299

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,18 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 4.0.0-beta.299
4
+
5
+ ### Patch Changes
6
+
7
+ - effect-app@4.0.0-beta.299
8
+
9
+ ## 4.0.0-beta.298
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [08d092c]
14
+ - effect-app@4.0.0-beta.298
15
+
3
16
  ## 4.0.0-beta.297
4
17
 
5
18
  ### Patch Changes
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "4.0.0-beta.297",
3
+ "version": "4.0.0-beta.299",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/effect-app/libs.git",
9
+ "directory": "packages/infra"
10
+ },
6
11
  "dependencies": {
7
12
  "@faker-js/faker": "^8.4.1",
8
13
  "fast-check": "~4.8.0",
@@ -10,7 +15,7 @@
10
15
  "proper-lockfile": "^4.1.2",
11
16
  "pure-rand": "8.4.0",
12
17
  "query-string": "^9.4.0",
13
- "effect-app": "4.0.0-beta.297"
18
+ "effect-app": "4.0.0-beta.299"
14
19
  },
15
20
  "devDependencies": {
16
21
  "@azure/cosmos": "^4.9.3",
@@ -389,7 +389,6 @@ it(
389
389
  // eslint-disable-next-line unused-imports/no-unused-vars
390
390
  const query5 = make<Union>().pipe(
391
391
  where("id", "bla"),
392
- // @ts-expect-error cannot project over fields that are not in common between the union members (you must refine the union first)
393
392
  project(S.Struct({ id: S.String, a: S.Unknown }))
394
393
  )
395
394
  console.log(query5)
@@ -663,13 +662,11 @@ it("projectComputed constrains projection schema to encoded repo fields and comp
663
662
  )
664
663
 
665
664
  make<Encoded>().pipe(
666
- // @ts-expect-error missingField is neither an encoded repo field nor a computed projection
667
665
  projectComputed(S.Struct({ missingField: S.String }), computed({}))
668
666
  )
669
667
 
670
668
  make<Encoded>().pipe(
671
669
  projectComputed(
672
- // @ts-expect-error repo field name is encoded as string
673
670
  S.Struct({ name: S.Number }),
674
671
  computed({})
675
672
  )
@@ -677,7 +674,6 @@ it("projectComputed constrains projection schema to encoded repo fields and comp
677
674
 
678
675
  make<Encoded>().pipe(
679
676
  projectComputed(
680
- // @ts-expect-error itemCount computes a number
681
677
  S.Struct({ itemCount: S.String }),
682
678
  computed({ itemCount: relation<Encoded>("items").count() })
683
679
  )
@@ -747,7 +743,6 @@ it("projection schema with computed fields fails without computed map", () => {
747
743
  items: S.Array(S.Struct({ value: S.Number }))
748
744
  })
749
745
  const query = make<S.Codec.Encoded<typeof baseSchema>>().pipe(
750
- // @ts-expect-error missing computed keys are rejected statically; keep runtime guard covered
751
746
  projectComputed(S.Struct({ pickedCount: S.NonNegativeInt }), computed({}))
752
747
  )
753
748
  expect(() => toFilter(query, baseSchema)).toThrowError("Missing computed projections for schema keys")
@@ -330,7 +330,7 @@ it.live(
330
330
  )
331
331
 
332
332
  it.live(
333
- "stream: per-chunk metadata drains keys mid-stream",
333
+ "stream: per-chunk metadata accumulates distinct keys",
334
334
  Effect.fnUntraced(function*() {
335
335
  const client = yield* ApiClientFactory.makeFor(Layer.empty)(InvRsc)
336
336
  const ref = yield* Ref.make<ReadonlyArray<Invalidation.InvalidationKey>>([])
@@ -340,9 +340,7 @@ it.live(
340
340
  )
341
341
  const keys = yield* Ref.get(ref)
342
342
  expect(values).toStrictEqual([1, 2, 3])
343
- // Handler taps `InvalidationSet.use` once per emitted value; routing's V3 mid-stream
344
- // metadata drain forwards each batch as it arrives.
345
- expect(keys).toStrictEqual([StreamKey, StreamKey, StreamKey])
343
+ expect(keys).toStrictEqual([StreamKey])
346
344
  }, Effect.provide(TestLayer)),
347
345
  { timeout: 10_000 }
348
346
  )