@effect-app/infra 4.0.0-beta.251 → 4.0.0-beta.253

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,19 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 4.0.0-beta.253
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [b90fa30]
8
+ - effect-app@4.0.0-beta.253
9
+
10
+ ## 4.0.0-beta.252
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [a788432]
15
+ - effect-app@4.0.0-beta.252
16
+
3
17
  ## 4.0.0-beta.251
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "4.0.0-beta.251",
3
+ "version": "4.0.0-beta.253",
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": "8.4.0",
15
15
  "query-string": "^9.3.1",
16
- "effect-app": "4.0.0-beta.251"
16
+ "effect-app": "4.0.0-beta.253"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@azure/cosmos": "^4.9.3",
@@ -172,6 +172,7 @@ it("works with repo", () =>
172
172
  .pipe(
173
173
  Effect.provide(Layer.mergeAll(SomethingRepo.Test, SomeService.Default)),
174
174
  setupRequestContextFromCurrent(),
175
+ Effect.scoped,
175
176
  Effect.runPromise
176
177
  ))
177
178
 
@@ -243,6 +244,7 @@ it("collect", () =>
243
244
  .pipe(
244
245
  Effect.provide(Layer.mergeAll(SomethingRepo.Test, SomeService.Default)),
245
246
  setupRequestContextFromCurrent(),
247
+ Effect.scoped,
246
248
  Effect.runPromise
247
249
  ))
248
250
 
@@ -289,7 +291,7 @@ it(
289
291
  expect(result).toEqual([])
290
292
  expect(result2).toEqual([])
291
293
  })
292
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise)
294
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise)
293
295
  )
294
296
 
295
297
  it(
@@ -475,7 +477,7 @@ it(
475
477
 
476
478
  expect([]).toEqual([])
477
479
  })
478
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise)
480
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise)
479
481
  )
480
482
 
481
483
  it(
@@ -518,7 +520,7 @@ it(
518
520
 
519
521
  expect([]).toEqual([])
520
522
  })
521
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise)
523
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise)
522
524
  )
523
525
 
524
526
  it(
@@ -551,7 +553,7 @@ it(
551
553
 
552
554
  expect(result).toEqual([])
553
555
  })
554
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise)
556
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise)
555
557
  )
556
558
 
557
559
  it(
@@ -578,7 +580,7 @@ it(
578
580
 
579
581
  expect(result).toStrictEqual([{ b: 1 }])
580
582
  })
581
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise)
583
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise)
582
584
  )
583
585
 
584
586
  it("projectComputed sets computed IR and forces project mode", () => {
@@ -818,7 +820,7 @@ it(
818
820
 
819
821
  expect(result).toEqual([])
820
822
  })
821
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise)
823
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise)
822
824
  )
823
825
 
824
826
  it(
@@ -862,7 +864,7 @@ it(
862
864
 
863
865
  expect(result).toEqual([])
864
866
  })
865
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise)
867
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise)
866
868
  )
867
869
 
868
870
  it(
@@ -906,7 +908,7 @@ it(
906
908
 
907
909
  expect(result).toEqual([])
908
910
  })
909
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise)
911
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise)
910
912
  )
911
913
 
912
914
  it("remove null from one constituent of a tagged union", () =>
@@ -955,7 +957,7 @@ it("remove null from one constituent of a tagged union", () =>
955
957
  })[]
956
958
  >()
957
959
  })
958
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
960
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
959
961
 
960
962
  it("refine 3", () =>
961
963
  Effect
@@ -993,7 +995,7 @@ it("refine 3", () =>
993
995
  const resQuer1 = yield* repo.query(where("id", "AA"))
994
996
  expectTypeOf(resQuer1).toEqualTypeOf<readonly AA[]>()
995
997
  })
996
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
998
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
997
999
 
998
1000
  it("my test", () =>
999
1001
  Effect
@@ -1011,7 +1013,7 @@ it("my test", () =>
1011
1013
  )
1012
1014
  expectTypeOf(resQuer1).toEqualTypeOf<readonly AA[]>()
1013
1015
  })
1014
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1016
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1015
1017
 
1016
1018
  it("refine inner without imposing a projection", () =>
1017
1019
  Effect
@@ -1086,7 +1088,7 @@ it("refine inner without imposing a projection", () =>
1086
1088
  }[]
1087
1089
  >()
1088
1090
  })
1089
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1091
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1090
1092
 
1091
1093
  it("does not allow string queries on arrays", () =>
1092
1094
  Effect
@@ -1121,7 +1123,7 @@ it("does not allow string queries on arrays", () =>
1121
1123
  expectTypeOf(good3).toEqualTypeOf<QueryWhere<Some, Some>>()
1122
1124
  expectTypeOf(good4).toEqualTypeOf<QueryWhere<Some, Some>>()
1123
1125
  })
1124
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1126
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1125
1127
 
1126
1128
  it("test array.length", () =>
1127
1129
  Effect
@@ -1162,7 +1164,7 @@ it("test array.length", () =>
1162
1164
  QueryWhere<Something, Something>
1163
1165
  >()
1164
1166
  })
1165
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1167
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1166
1168
 
1167
1169
  it("distribution over union", () =>
1168
1170
  Effect
@@ -1186,7 +1188,7 @@ it("distribution over union", () =>
1186
1188
  })[]
1187
1189
  >()
1188
1190
  })
1189
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1191
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1190
1192
 
1191
1193
  it("refine nested union", () =>
1192
1194
  Effect
@@ -1227,7 +1229,7 @@ it("refine nested union", () =>
1227
1229
  }[]
1228
1230
  >()
1229
1231
  })
1230
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1232
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1231
1233
 
1232
1234
  it("find with transformed id", () =>
1233
1235
  Effect
@@ -1285,7 +1287,7 @@ it("find with transformed id", () =>
1285
1287
  )
1286
1288
  expect(Option.isNone(notFound)).toBe(true)
1287
1289
  })
1288
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1290
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1289
1291
 
1290
1292
  it("find with transformed id in tagged union", () =>
1291
1293
  Effect
@@ -1378,7 +1380,7 @@ it("find with transformed id in tagged union", () =>
1378
1380
  )
1379
1381
  expect(Option.isNone(notFound)).toBe(true)
1380
1382
  })
1381
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1383
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1382
1384
 
1383
1385
  it("refine union with nested union", () =>
1384
1386
  Effect
@@ -1493,7 +1495,7 @@ it("refine union with nested union", () =>
1493
1495
  })[]
1494
1496
  >()
1495
1497
  })
1496
- .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.runPromise))
1498
+ .pipe(Effect.provide(TestStoreLive), setupRequestContextFromCurrent(), Effect.scoped, Effect.runPromise))
1497
1499
 
1498
1500
  // ---------------------------------------------------------------------------
1499
1501
  // memFilter: computed projection execution (in-memory) and code filter coverage
@@ -39,6 +39,7 @@ describe("validateSample", () => {
39
39
  .pipe(
40
40
  Effect.provide(TestStoreLive),
41
41
  setupRequestContextFromCurrent(),
42
+ Effect.scoped,
42
43
  Effect.runPromise
43
44
  ))
44
45
 
@@ -87,6 +88,7 @@ describe("validateSample", () => {
87
88
  .pipe(
88
89
  Effect.provide(TestStoreLive),
89
90
  setupRequestContextFromCurrent(),
91
+ Effect.scoped,
90
92
  Effect.runPromise
91
93
  ))
92
94
 
@@ -105,6 +107,7 @@ describe("validateSample", () => {
105
107
  .pipe(
106
108
  Effect.provide(TestStoreLive),
107
109
  setupRequestContextFromCurrent(),
110
+ Effect.scoped,
108
111
  Effect.runPromise
109
112
  ))
110
113
 
@@ -134,6 +137,7 @@ describe("validateSample", () => {
134
137
  .pipe(
135
138
  Effect.provide(TestStoreLive),
136
139
  setupRequestContextFromCurrent(),
140
+ Effect.scoped,
137
141
  Effect.runPromise
138
142
  ))
139
143
 
@@ -168,6 +172,7 @@ describe("validateSample", () => {
168
172
  .pipe(
169
173
  Effect.provide(TestStoreLive),
170
174
  setupRequestContextFromCurrent(),
175
+ Effect.scoped,
171
176
  Effect.runPromise
172
177
  ))
173
178
 
@@ -215,6 +220,7 @@ describe("validateSample", () => {
215
220
  .pipe(
216
221
  Effect.provide(TestStoreLive),
217
222
  setupRequestContextFromCurrent(),
223
+ Effect.scoped,
218
224
  Effect.runPromise
219
225
  ))
220
226
 
@@ -237,6 +243,7 @@ describe("validateSample", () => {
237
243
  .pipe(
238
244
  Effect.provide(TestStoreLive),
239
245
  setupRequestContextFromCurrent(),
246
+ Effect.scoped,
240
247
  Effect.runPromise
241
248
  ))
242
249
  })