@effect-app/infra 4.0.0-beta.23 → 4.0.0-beta.231

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.
Files changed (339) hide show
  1. package/CHANGELOG.md +1726 -0
  2. package/_check.sh +1 -1
  3. package/dist/CUPS.d.ts +12 -7
  4. package/dist/CUPS.d.ts.map +1 -1
  5. package/dist/CUPS.js +16 -12
  6. package/dist/Emailer/Sendgrid.d.ts +15 -15
  7. package/dist/Emailer/Sendgrid.d.ts.map +1 -1
  8. package/dist/Emailer/Sendgrid.js +21 -17
  9. package/dist/Emailer/fake.d.ts +1 -1
  10. package/dist/Emailer/fake.js +3 -3
  11. package/dist/Emailer/service.d.ts +13 -4
  12. package/dist/Emailer/service.d.ts.map +1 -1
  13. package/dist/Emailer/service.js +4 -3
  14. package/dist/Emailer.d.ts +1 -1
  15. package/dist/MainFiberSet.d.ts +12 -9
  16. package/dist/MainFiberSet.d.ts.map +1 -1
  17. package/dist/MainFiberSet.js +10 -6
  18. package/dist/Model/Repository/Registry.d.ts +21 -0
  19. package/dist/Model/Repository/Registry.d.ts.map +1 -0
  20. package/dist/Model/Repository/Registry.js +18 -0
  21. package/dist/Model/Repository/ext.d.ts +35 -16
  22. package/dist/Model/Repository/ext.d.ts.map +1 -1
  23. package/dist/Model/Repository/ext.js +60 -3
  24. package/dist/Model/Repository/internal/internal.d.ts +9 -6
  25. package/dist/Model/Repository/internal/internal.d.ts.map +1 -1
  26. package/dist/Model/Repository/internal/internal.js +141 -59
  27. package/dist/Model/Repository/legacy.d.ts +4 -2
  28. package/dist/Model/Repository/legacy.d.ts.map +1 -1
  29. package/dist/Model/Repository/makeRepo.d.ts +10 -6
  30. package/dist/Model/Repository/makeRepo.d.ts.map +1 -1
  31. package/dist/Model/Repository/makeRepo.js +5 -2
  32. package/dist/Model/Repository/service.d.ts +32 -24
  33. package/dist/Model/Repository/service.d.ts.map +1 -1
  34. package/dist/Model/Repository/validation.d.ts +47 -18
  35. package/dist/Model/Repository/validation.d.ts.map +1 -1
  36. package/dist/Model/Repository/validation.js +6 -6
  37. package/dist/Model/Repository.d.ts +2 -1
  38. package/dist/Model/Repository.d.ts.map +1 -1
  39. package/dist/Model/Repository.js +2 -1
  40. package/dist/Model/dsl.d.ts +6 -5
  41. package/dist/Model/dsl.d.ts.map +1 -1
  42. package/dist/Model/dsl.js +2 -3
  43. package/dist/Model/filter/filterApi.d.ts +5 -5
  44. package/dist/Model/filter/filterApi.d.ts.map +1 -1
  45. package/dist/Model/filter/types/errors.d.ts +1 -1
  46. package/dist/Model/filter/types/fields.d.ts +1 -1
  47. package/dist/Model/filter/types/path/common.d.ts +1 -1
  48. package/dist/Model/filter/types/path/eager.d.ts +1 -1
  49. package/dist/Model/filter/types/path/eager.d.ts.map +1 -1
  50. package/dist/Model/filter/types/path/eager.js +1 -1
  51. package/dist/Model/filter/types/path/index.d.ts +1 -1
  52. package/dist/Model/filter/types/utils.d.ts +1 -1
  53. package/dist/Model/filter/types/validator.d.ts +1 -1
  54. package/dist/Model/filter/types.d.ts +1 -1
  55. package/dist/Model/query/dsl.d.ts +216 -18
  56. package/dist/Model/query/dsl.d.ts.map +1 -1
  57. package/dist/Model/query/dsl.js +240 -5
  58. package/dist/Model/query/new-kid-interpreter.d.ts +116 -8
  59. package/dist/Model/query/new-kid-interpreter.d.ts.map +1 -1
  60. package/dist/Model/query/new-kid-interpreter.js +177 -6
  61. package/dist/Model/query.d.ts +1 -1
  62. package/dist/Model.d.ts +2 -1
  63. package/dist/Model.d.ts.map +1 -1
  64. package/dist/Model.js +2 -1
  65. package/dist/QueueMaker/SQLQueue.d.ts +7 -8
  66. package/dist/QueueMaker/SQLQueue.d.ts.map +1 -1
  67. package/dist/QueueMaker/SQLQueue.js +135 -117
  68. package/dist/QueueMaker/errors.d.ts +5 -3
  69. package/dist/QueueMaker/errors.d.ts.map +1 -1
  70. package/dist/QueueMaker/errors.js +4 -2
  71. package/dist/QueueMaker/memQueue.d.ts +9 -5
  72. package/dist/QueueMaker/memQueue.d.ts.map +1 -1
  73. package/dist/QueueMaker/memQueue.js +81 -65
  74. package/dist/QueueMaker/sbqueue.d.ts +8 -4
  75. package/dist/QueueMaker/sbqueue.d.ts.map +1 -1
  76. package/dist/QueueMaker/sbqueue.js +57 -55
  77. package/dist/QueueMaker/service.d.ts +4 -2
  78. package/dist/QueueMaker/service.d.ts.map +1 -1
  79. package/dist/QueueMaker/service.js +1 -1
  80. package/dist/RequestContext.d.ts +75 -35
  81. package/dist/RequestContext.d.ts.map +1 -1
  82. package/dist/RequestContext.js +14 -14
  83. package/dist/RequestFiberSet.d.ts +10 -7
  84. package/dist/RequestFiberSet.d.ts.map +1 -1
  85. package/dist/RequestFiberSet.js +12 -7
  86. package/dist/Store/ContextMapContainer.d.ts +22 -3
  87. package/dist/Store/ContextMapContainer.d.ts.map +1 -1
  88. package/dist/Store/ContextMapContainer.js +18 -4
  89. package/dist/Store/Cosmos/query.d.ts +13 -2
  90. package/dist/Store/Cosmos/query.d.ts.map +1 -1
  91. package/dist/Store/Cosmos/query.js +179 -41
  92. package/dist/Store/Cosmos.d.ts +2 -2
  93. package/dist/Store/Cosmos.d.ts.map +1 -1
  94. package/dist/Store/Cosmos.js +343 -244
  95. package/dist/Store/Disk.d.ts +3 -3
  96. package/dist/Store/Disk.d.ts.map +1 -1
  97. package/dist/Store/Disk.js +76 -36
  98. package/dist/Store/Memory.d.ts +7 -4
  99. package/dist/Store/Memory.d.ts.map +1 -1
  100. package/dist/Store/Memory.js +327 -62
  101. package/dist/Store/SQL/Pg.d.ts +4 -0
  102. package/dist/Store/SQL/Pg.d.ts.map +1 -0
  103. package/dist/Store/SQL/Pg.js +233 -0
  104. package/dist/Store/SQL/query.d.ts +49 -0
  105. package/dist/Store/SQL/query.d.ts.map +1 -0
  106. package/dist/Store/SQL/query.js +527 -0
  107. package/dist/Store/SQL.d.ts +21 -0
  108. package/dist/Store/SQL.d.ts.map +1 -0
  109. package/dist/Store/SQL.js +450 -0
  110. package/dist/Store/codeFilter.d.ts +2 -2
  111. package/dist/Store/codeFilter.d.ts.map +1 -1
  112. package/dist/Store/codeFilter.js +6 -3
  113. package/dist/Store/index.d.ts +6 -3
  114. package/dist/Store/index.d.ts.map +1 -1
  115. package/dist/Store/index.js +18 -4
  116. package/dist/Store/service.d.ts +32 -8
  117. package/dist/Store/service.d.ts.map +1 -1
  118. package/dist/Store/service.js +25 -6
  119. package/dist/Store/utils.d.ts +3 -2
  120. package/dist/Store/utils.d.ts.map +1 -1
  121. package/dist/Store/utils.js +5 -5
  122. package/dist/Store.d.ts +1 -1
  123. package/dist/adapters/SQL/Model.d.ts +32 -43
  124. package/dist/adapters/SQL/Model.d.ts.map +1 -1
  125. package/dist/adapters/SQL/Model.js +30 -39
  126. package/dist/adapters/SQL.d.ts +1 -1
  127. package/dist/adapters/ServiceBus.d.ts +14 -11
  128. package/dist/adapters/ServiceBus.d.ts.map +1 -1
  129. package/dist/adapters/ServiceBus.js +30 -21
  130. package/dist/adapters/cosmos-client.d.ts +5 -3
  131. package/dist/adapters/cosmos-client.d.ts.map +1 -1
  132. package/dist/adapters/cosmos-client.js +6 -4
  133. package/dist/adapters/index.d.ts +8 -2
  134. package/dist/adapters/index.d.ts.map +1 -1
  135. package/dist/adapters/index.js +8 -2
  136. package/dist/adapters/logger.d.ts +2 -2
  137. package/dist/adapters/logger.d.ts.map +1 -1
  138. package/dist/adapters/memQueue.d.ts +5 -3
  139. package/dist/adapters/memQueue.d.ts.map +1 -1
  140. package/dist/adapters/memQueue.js +6 -5
  141. package/dist/adapters/mongo-client.d.ts +4 -3
  142. package/dist/adapters/mongo-client.d.ts.map +1 -1
  143. package/dist/adapters/mongo-client.js +5 -3
  144. package/dist/adapters/redis-client.d.ts +6 -3
  145. package/dist/adapters/redis-client.d.ts.map +1 -1
  146. package/dist/adapters/redis-client.js +7 -3
  147. package/dist/api/ContextProvider.d.ts +12 -9
  148. package/dist/api/ContextProvider.d.ts.map +1 -1
  149. package/dist/api/ContextProvider.js +9 -7
  150. package/dist/api/codec.d.ts +1 -1
  151. package/dist/api/internal/RequestContextMiddleware.d.ts +3 -3
  152. package/dist/api/internal/RequestContextMiddleware.d.ts.map +1 -1
  153. package/dist/api/internal/RequestContextMiddleware.js +11 -7
  154. package/dist/api/internal/auth.d.ts +45 -7
  155. package/dist/api/internal/auth.d.ts.map +1 -1
  156. package/dist/api/internal/auth.js +162 -29
  157. package/dist/api/internal/events.d.ts +6 -4
  158. package/dist/api/internal/events.d.ts.map +1 -1
  159. package/dist/api/internal/events.js +16 -9
  160. package/dist/api/internal/health.d.ts +1 -1
  161. package/dist/api/layerUtils.d.ts +15 -7
  162. package/dist/api/layerUtils.d.ts.map +1 -1
  163. package/dist/api/layerUtils.js +7 -6
  164. package/dist/api/middlewares.d.ts +1 -1
  165. package/dist/api/reportError.d.ts +2 -2
  166. package/dist/api/reportError.d.ts.map +1 -1
  167. package/dist/api/reportError.js +3 -2
  168. package/dist/api/routing/middleware/RouterMiddleware.d.ts +5 -4
  169. package/dist/api/routing/middleware/RouterMiddleware.d.ts.map +1 -1
  170. package/dist/api/routing/middleware/middleware.d.ts +42 -3
  171. package/dist/api/routing/middleware/middleware.d.ts.map +1 -1
  172. package/dist/api/routing/middleware/middleware.js +53 -17
  173. package/dist/api/routing/middleware.d.ts +1 -2
  174. package/dist/api/routing/middleware.d.ts.map +1 -1
  175. package/dist/api/routing/middleware.js +1 -2
  176. package/dist/api/routing/schema/jwt.d.ts +1 -1
  177. package/dist/api/routing/schema/jwt.d.ts.map +1 -1
  178. package/dist/api/routing/schema/jwt.js +3 -2
  179. package/dist/api/routing/tsort.d.ts +1 -1
  180. package/dist/api/routing/tsort.d.ts.map +1 -1
  181. package/dist/api/routing/utils.d.ts +4 -4
  182. package/dist/api/routing/utils.d.ts.map +1 -1
  183. package/dist/api/routing/utils.js +3 -2
  184. package/dist/api/routing.d.ts +84 -38
  185. package/dist/api/routing.d.ts.map +1 -1
  186. package/dist/api/routing.js +115 -45
  187. package/dist/api/setupRequest.d.ts +10 -6
  188. package/dist/api/setupRequest.d.ts.map +1 -1
  189. package/dist/api/setupRequest.js +19 -11
  190. package/dist/api/util.d.ts +1 -1
  191. package/dist/arbs.d.ts +2 -2
  192. package/dist/arbs.d.ts.map +1 -1
  193. package/dist/arbs.js +5 -3
  194. package/dist/errorReporter.d.ts +7 -5
  195. package/dist/errorReporter.d.ts.map +1 -1
  196. package/dist/errorReporter.js +22 -26
  197. package/dist/errors.d.ts +1 -1
  198. package/dist/fileUtil.d.ts +2 -2
  199. package/dist/fileUtil.d.ts.map +1 -1
  200. package/dist/fileUtil.js +2 -2
  201. package/dist/index.d.ts +1 -1
  202. package/dist/logger/jsonLogger.d.ts +2 -2
  203. package/dist/logger/jsonLogger.d.ts.map +1 -1
  204. package/dist/logger/jsonLogger.js +4 -2
  205. package/dist/logger/logFmtLogger.d.ts +2 -2
  206. package/dist/logger/logFmtLogger.d.ts.map +1 -1
  207. package/dist/logger/logFmtLogger.js +2 -2
  208. package/dist/logger/shared.d.ts +2 -2
  209. package/dist/logger/shared.d.ts.map +1 -1
  210. package/dist/logger/shared.js +3 -3
  211. package/dist/logger.d.ts +1 -1
  212. package/dist/logger.d.ts.map +1 -1
  213. package/dist/otel.d.ts +75 -0
  214. package/dist/otel.d.ts.map +1 -0
  215. package/dist/otel.js +65 -0
  216. package/dist/rateLimit.d.ts +12 -4
  217. package/dist/rateLimit.d.ts.map +1 -1
  218. package/dist/rateLimit.js +7 -12
  219. package/dist/test.d.ts +3 -3
  220. package/dist/test.d.ts.map +1 -1
  221. package/dist/test.js +2 -2
  222. package/dist/vitest.d.ts +1 -1
  223. package/examples/query.ts +46 -38
  224. package/package.json +46 -37
  225. package/src/CUPS.ts +15 -11
  226. package/src/Emailer/Sendgrid.ts +65 -57
  227. package/src/Emailer/fake.ts +2 -2
  228. package/src/Emailer/service.ts +13 -3
  229. package/src/MainFiberSet.ts +12 -10
  230. package/src/Model/Repository/Registry.ts +34 -0
  231. package/src/Model/Repository/ext.ts +103 -11
  232. package/src/Model/Repository/internal/internal.ts +266 -151
  233. package/src/Model/Repository/legacy.ts +3 -1
  234. package/src/Model/Repository/makeRepo.ts +15 -10
  235. package/src/Model/Repository/service.ts +35 -23
  236. package/src/Model/Repository/validation.ts +5 -5
  237. package/src/Model/Repository.ts +1 -0
  238. package/src/Model/dsl.ts +5 -4
  239. package/src/Model/filter/types/path/eager.ts +1 -2
  240. package/src/Model/query/dsl.ts +456 -20
  241. package/src/Model/query/new-kid-interpreter.ts +281 -7
  242. package/src/Model.ts +1 -0
  243. package/src/QueueMaker/SQLQueue.ts +150 -153
  244. package/src/QueueMaker/errors.ts +3 -1
  245. package/src/QueueMaker/memQueue.ts +111 -105
  246. package/src/QueueMaker/sbqueue.ts +76 -88
  247. package/src/QueueMaker/service.ts +3 -1
  248. package/src/RequestContext.ts +15 -16
  249. package/src/RequestFiberSet.ts +12 -7
  250. package/src/Store/ContextMapContainer.ts +46 -3
  251. package/src/Store/Cosmos/query.ts +214 -50
  252. package/src/Store/Cosmos.ts +491 -350
  253. package/src/Store/Disk.ts +106 -66
  254. package/src/Store/Memory.ts +365 -91
  255. package/src/Store/SQL/Pg.ts +364 -0
  256. package/src/Store/SQL/query.ts +603 -0
  257. package/src/Store/SQL.ts +736 -0
  258. package/src/Store/codeFilter.ts +5 -2
  259. package/src/Store/index.ts +20 -3
  260. package/src/Store/service.ts +51 -10
  261. package/src/Store/utils.ts +25 -23
  262. package/src/adapters/SQL/Model.ts +42 -41
  263. package/src/adapters/ServiceBus.ts +131 -121
  264. package/src/adapters/cosmos-client.ts +5 -3
  265. package/src/adapters/index.ts +7 -0
  266. package/src/adapters/memQueue.ts +5 -4
  267. package/src/adapters/mongo-client.ts +4 -2
  268. package/src/adapters/redis-client.ts +6 -2
  269. package/src/api/ContextProvider.ts +19 -16
  270. package/src/api/internal/RequestContextMiddleware.ts +17 -6
  271. package/src/api/internal/auth.ts +248 -44
  272. package/src/api/internal/events.ts +19 -10
  273. package/src/api/layerUtils.ts +13 -9
  274. package/src/api/reportError.ts +2 -1
  275. package/src/api/routing/middleware/RouterMiddleware.ts +5 -4
  276. package/src/api/routing/middleware/middleware.ts +60 -15
  277. package/src/api/routing/middleware.ts +0 -2
  278. package/src/api/routing/schema/jwt.ts +2 -1
  279. package/src/api/routing/utils.ts +2 -1
  280. package/src/api/routing.ts +309 -139
  281. package/src/api/setupRequest.ts +35 -12
  282. package/src/arbs.ts +5 -3
  283. package/src/errorReporter.ts +65 -75
  284. package/src/fileUtil.ts +1 -1
  285. package/src/logger/jsonLogger.ts +3 -1
  286. package/src/logger/logFmtLogger.ts +1 -1
  287. package/src/logger/shared.ts +3 -2
  288. package/src/otel.ts +152 -0
  289. package/src/rateLimit.ts +34 -23
  290. package/src/test.ts +2 -2
  291. package/test/auth.test.ts +101 -0
  292. package/test/contextProvider.test.ts +14 -11
  293. package/test/controller.test.ts +25 -29
  294. package/test/cosmos-query.test.ts +159 -0
  295. package/test/dist/auth.test.d.ts.map +1 -0
  296. package/test/dist/contextProvider.test.d.ts.map +1 -1
  297. package/test/dist/controller.test.d.ts.map +1 -1
  298. package/test/dist/cosmos-query.test.d.ts.map +1 -0
  299. package/test/dist/date-query.test.d.ts.map +1 -0
  300. package/test/dist/fixtures.d.ts +30 -12
  301. package/test/dist/fixtures.d.ts.map +1 -1
  302. package/test/dist/fixtures.js +17 -10
  303. package/test/dist/query.test.d.ts.map +1 -1
  304. package/test/dist/rawQuery.test.d.ts.map +1 -1
  305. package/test/dist/repository-ext.test.d.ts.map +1 -0
  306. package/test/dist/requires.test.d.ts.map +1 -1
  307. package/test/dist/router-generator.test.d.ts.map +1 -0
  308. package/test/dist/routing-interruptibility.test.d.ts.map +1 -0
  309. package/test/dist/rpc-e2e-invalidation.test.d.ts.map +1 -0
  310. package/test/dist/rpc-multi-middleware.test.d.ts.map +1 -1
  311. package/test/dist/rpc-stream-fullstack.test.d.ts.map +1 -0
  312. package/test/dist/sql-store.test.d.ts.map +1 -0
  313. package/test/fixtures.ts +16 -9
  314. package/test/layerUtils.test.ts +1 -1
  315. package/test/query.test.ts +901 -38
  316. package/test/rawQuery.test.ts +338 -20
  317. package/test/repository-ext.test.ts +62 -0
  318. package/test/requires.test.ts +10 -5
  319. package/test/router-generator.test.ts +187 -0
  320. package/test/routing-interruptibility.test.ts +66 -0
  321. package/test/rpc-e2e-invalidation.test.ts +256 -0
  322. package/test/rpc-multi-middleware.test.ts +84 -9
  323. package/test/rpc-stream-fullstack.test.ts +304 -0
  324. package/test/sql-store.test.ts +1711 -0
  325. package/test/validateSample.test.ts +17 -12
  326. package/tsconfig.examples.json +1 -1
  327. package/tsconfig.json +0 -1
  328. package/tsconfig.json.bak +2 -2
  329. package/tsconfig.src.json +35 -35
  330. package/tsconfig.test.json +2 -2
  331. package/dist/Operations.d.ts +0 -55
  332. package/dist/Operations.d.ts.map +0 -1
  333. package/dist/Operations.js +0 -102
  334. package/dist/OperationsRepo.d.ts +0 -41
  335. package/dist/OperationsRepo.d.ts.map +0 -1
  336. package/dist/OperationsRepo.js +0 -14
  337. package/eslint.config.mjs +0 -24
  338. package/src/Operations.ts +0 -235
  339. package/src/OperationsRepo.ts +0 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,1731 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 4.0.0-beta.231
4
+
5
+ ### Patch Changes
6
+
7
+ - 7ca66ce: Update to effect 4.0.0-beta.66. Remove `Yieldable` and `asEffect()` (service tags are now `Effect` directly).
8
+ - Updated dependencies [7ca66ce]
9
+ - effect-app@4.0.0-beta.231
10
+
11
+ ## 4.0.0-beta.230
12
+
13
+ ### Minor Changes
14
+
15
+ - 1cee480: Add aggregate query support: `Q.aggregate(schema, aggregateMap)` performs GROUP BY + aggregate functions at the database level (Memory, SQL, Cosmos).
16
+
17
+ - New `agg` DSL namespace: `agg.field(path)` (group-by), `agg.count()`, `agg.countWhen(op)`, `agg.sum(field)`, `agg.min(field)`, `agg.max(field)`
18
+ - New `aggregate(schema, aggregateMap)` query operator replaces in-memory grouping with a single DB-level query
19
+ - Memory store: pure JS group-by + aggregation
20
+ - SQL store: `GROUP BY` + `COUNT(CASE WHEN ...)` / `SUM` / `MIN` / `MAX`
21
+ - Cosmos store: `GROUP BY` + `SUM(IIF(...))` for conditional counts
22
+
23
+ ### Patch Changes
24
+
25
+ - effect-app@4.0.0-beta.230
26
+
27
+ ## 4.0.0-beta.229
28
+
29
+ ### Patch Changes
30
+
31
+ - effect-app@4.0.0-beta.229
32
+
33
+ ## 4.0.0-beta.228
34
+
35
+ ### Patch Changes
36
+
37
+ - effect-app@4.0.0-beta.228
38
+
39
+ ## 4.0.0-beta.227
40
+
41
+ ### Patch Changes
42
+
43
+ - bac9f1a: Fix Cosmos `projectComputed` parameter index shift when `relation(...).every(...)` is present. The shared filter `print` was invoked twice per `relation-every` (once eagerly for the `where` variable, again inside the `NOT EXISTS(... WHERE NOT (...))` branch), bumping the outer `@v` counter beyond the bound parameter array and producing SQL that referenced unbound placeholders — queries returned 0 rows on Cosmos while SQLite/Memory adapters were unaffected.
44
+ - effect-app@4.0.0-beta.227
45
+
46
+ ## 4.0.0-beta.226
47
+
48
+ ### Patch Changes
49
+
50
+ - f7290aa: Add `relation(...).length()` computed projection — emits `ARRAY_LENGTH` on Cosmos / `arrayLength` on SQL / native `.length` on Memory. Cheaper than `relation.count()` for unconditional array sizing (no subquery scan, just metadata read).
51
+
52
+ ```ts
53
+ projectComputed(
54
+ S.Struct({ id: S.String, packageCount: S.NonNegativeInt }),
55
+ computed({ packageCount: relation<OrderEnc>("packages").length() })
56
+ );
57
+ ```
58
+
59
+ - 8062ad3: Unify Emailer `sendMail` spans across implementations. `Fake.sendMail` and `Sendgrid.sendMail` now both emit as `Emailer.sendMail` with OTel-standard `messaging.system` attribute (`"fake"` / `"sendgrid"`).
60
+ - effect-app@4.0.0-beta.226
61
+
62
+ ## 4.0.0-beta.225
63
+
64
+ ### Patch Changes
65
+
66
+ - 39996f7: Unify `parseMany` span variants under a single span name. The four prior spans (`parseMany`, `parseMany2`, `parseManyProject`, `parseManyCollect`) now all emit as `parseMany` with `app.entity` and `app.query.mode` attributes (`"transform" | "project" | "collect"`). Reuses the same attribute key already set on the parent `Repository.query` span for consistency. `parseManyProject`/`parseManyCollect` previously lacked `app.entity` — now included.
67
+ - effect-app@4.0.0-beta.225
68
+
69
+ ## 4.0.0-beta.224
70
+
71
+ ### Patch Changes
72
+
73
+ - effect-app@4.0.0-beta.224
74
+
75
+ ## 4.0.0-beta.223
76
+
77
+ ### Patch Changes
78
+
79
+ - 2871841: RequestContextMiddleware: set request name to `HTTP <method> <path>` (strip query string) for clearer span/trace names.
80
+ - effect-app@4.0.0-beta.223
81
+
82
+ ## 4.0.0-beta.222
83
+
84
+ ### Patch Changes
85
+
86
+ - effect-app@4.0.0-beta.222
87
+
88
+ ## 4.0.0-beta.221
89
+
90
+ ### Patch Changes
91
+
92
+ - 439cbeb: Adopt module system from effect-smol: replace barrel imports with specific submodule imports (`import * as X from "effect-app/X"` / `import * as X from "effect/X"`).
93
+ - Updated dependencies [439cbeb]
94
+ - effect-app@4.0.0-beta.221
95
+
96
+ ## 4.0.0-beta.220
97
+
98
+ ### Patch Changes
99
+
100
+ - aa436d3: fix bs span
101
+ - effect-app@4.0.0-beta.220
102
+
103
+ ## 4.0.0-beta.219
104
+
105
+ ### Patch Changes
106
+
107
+ - 13c2fd9: doc span
108
+ - d738811: remove double prefix
109
+ - 724da29: replace useless span
110
+ - Updated dependencies [d738811]
111
+ - effect-app@4.0.0-beta.219
112
+
113
+ ## 4.0.0-beta.218
114
+
115
+ ### Minor Changes
116
+
117
+ - 95995d5: Add `collectFields`/`collectDistinctFields` to `relation()` DSL for collecting values from multiple fields of relation items into a single flattened array.
118
+
119
+ Example: given `T = { a: boolean, items: { x: string, y: string, z: number }[] }[]`, you can now collect all distinct `x` and `y` values into a single `string[]`:
120
+
121
+ ```ts
122
+ relation("items").collectDistinctFields(["x", "y"]);
123
+ ```
124
+
125
+ ### Patch Changes
126
+
127
+ - effect-app@4.0.0-beta.218
128
+
129
+ ## 4.0.0-beta.217
130
+
131
+ ### Patch Changes
132
+
133
+ - e3ceaba: Add computed projection expression sums with grouped and normalized variants for projectComputed relation aggregations.
134
+ - Updated dependencies [0e824ef]
135
+ - effect-app@4.0.0-beta.217
136
+
137
+ ## 4.0.0-beta.216
138
+
139
+ ### Patch Changes
140
+
141
+ - f28fce5: fix sqlite
142
+ - effect-app@4.0.0-beta.216
143
+
144
+ ## 4.0.0-beta.215
145
+
146
+ ### Patch Changes
147
+
148
+ - 24f5dd0: fix memory computation
149
+ - effect-app@4.0.0-beta.215
150
+
151
+ ## 4.0.0-beta.214
152
+
153
+ ### Minor Changes
154
+
155
+ - fb93244: Extend computed projections with additional relation operators:
156
+
157
+ - `relation(path).every(op)` — boolean, all elements match the filter (compiled as `NOT EXISTS(... WHERE NOT (filter))`).
158
+ - `relation(path).distinctCount(field, op?)` — distinct count of values at `field` within the relation.
159
+ - `relation(path).sum(field, op?)` — numeric sum over a relation field.
160
+ - `relation(path).collect(field, op?)` / `collectDistinct(field, op?)` — collect values into an array (with optional dedup).
161
+
162
+ All operators compile to native subqueries on SQL (sqlite/pg) and Cosmos, and to in-memory equivalents on the Memory store.
163
+
164
+ ### Patch Changes
165
+
166
+ - effect-app@4.0.0-beta.214
167
+
168
+ ## 4.0.0-beta.213
169
+
170
+ ### Minor Changes
171
+
172
+ - aac6308: Add computed projections for repository queries with adapter-level compilation for memory, SQL, and Cosmos stores.
173
+
174
+ ### Patch Changes
175
+
176
+ - 6613f3d: Document `Q.project` modes (`transform` / `project` / `collect`): how `select` is derived from the schema AST, the PM reverse-mapping behaviour per mode, and which decode errors surface vs `orDie`.
177
+ - effect-app@4.0.0-beta.213
178
+
179
+ ## 4.0.0-beta.212
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies [8792221]
184
+ - effect-app@4.0.0-beta.212
185
+
186
+ ## 4.0.0-beta.211
187
+
188
+ ### Patch Changes
189
+
190
+ - ebbb799: Repository owns OTel span topology; store adapters annotate db._ semconv attrs on the current span instead of opening their own child spans. Eliminates 1-1 nested span chains (e.g. `Repository.query` → `Cosmos.filter`). Adds `annotateDb` helper alongside `withDbSpan` in `otel.ts`. Repo public ops (`find`, `all`, `query`, `queryRaw`, `mapped._`) get explicit `Repository.<op>` spans; internal codec steps (`encodeMany`, `parseMany`, `parseMany2`) keep bare names. `validateSample`opens per-iteration sub-spans to prevent attribute clobber. Adds WeakMap decoder cache for`parseMany2` schemas.
191
+ - e33f1eb: Drop OTel spans from ServiceBus client/sender/receiver/subscription lifecycle wrappers; keep `withLogSpan` + info logs only. Removes high-cardinality `sessionId` from log span names; promotes it to `messaging.session.id` log attribute via `Effect.annotateLogs`.
192
+ - effect-app@4.0.0-beta.211
193
+
194
+ ## 4.0.0-beta.210
195
+
196
+ ### Minor Changes
197
+
198
+ - 3a588e4: Standardize span attributes on OpenTelemetry semantic conventions.
199
+
200
+ All Store adapters (Cosmos, PostgreSQL, SQLite, Memory, Disk) and Queue adapters
201
+ (Service Bus, SQL, Memory) now emit OTel-compliant span names and attributes via
202
+ the new `@effect-app/infra/otel` helper module.
203
+
204
+ Span name convention: `<operation> <collection|destination>` (low cardinality).
205
+
206
+ Attribute key migration:
207
+
208
+ | Old | New |
209
+ | --------------------------------------------------- | --------------------------------------------------------------------------------- |
210
+ | `repository.table_name` / `repository.container_id` | `db.collection.name` |
211
+ | `repository.namespace` | `db.namespace` |
212
+ | `repository.model_name` / `itemType` | `app.entity` |
213
+ | `id` / `itemId` (entity span attr) | `app.entity.id` |
214
+ | `itemIds` | `app.entity.ids` |
215
+ | `db.cosmos.request_charge` | `azure.cosmosdb.operation.request_charge` |
216
+ | `db.cosmos.resource_count` | `db.response.returned_rows` |
217
+ | `db.cosmos.response_bytes` | `db.response.body.size` |
218
+ | `disk.file` / `disk.file_size` | `disk.file.path` / `disk.file.size` |
219
+ | `queue.name` | `messaging.destination.name` |
220
+ | `queue.sessionId` | `messaging.message.conversation_id` |
221
+ | `queue.type` | `messaging.system` |
222
+ | `queue.input` (full body) | `messaging.message.body` (+ `messaging.message.id`, `messaging.message.type`) |
223
+ | `message_tags` | `messaging.message.types` + `messaging.batch.message_count` |
224
+ | `request.name` | `code.function.name` (from `spanAttributes`) / `rpc.method` (middleware) |
225
+ | `request.locale` | `app.locale` |
226
+ | `request.namespace` | `app.tenant.id` |
227
+ | `request.source.id` | `client.id` |
228
+ | `request.user.sub` / `.roles` | `user.id` / `user.roles` |
229
+ | `requestInput` | `rpc.request.payload` |
230
+ | `connectionId` | `network.connection.id` |
231
+ | Span `Request.<module>.<method>` | Span `<module>/<method>` + `rpc.system`/`rpc.service`/`rpc.method` (kind: server) |
232
+ | `<spanPrefix>.<op>` (SQL/Model) | OTel db span via `withDbSpan`, with `dbSystem?` option |
233
+
234
+ New attributes added:
235
+
236
+ - `db.system.name` — e.g. `postgresql`, `sqlite`, `cosmosdb`, `memory`, `disk`
237
+ - `db.operation.name` — e.g. `find`, `all`, `filter`, `set`
238
+ - `db.query.text` — sanitized / parameterized SQL or Cosmos query (no bound values)
239
+ - `messaging.operation.name` — `publish`, `process`, `receive`
240
+
241
+ Breaking: dashboards/alerts keying on the previous attribute names must be
242
+ updated. Queue consumer spans no longer log raw message bodies — use
243
+ `messaging.message.id` and `messaging.message.type` instead.
244
+
245
+ ### Patch Changes
246
+
247
+ - effect-app@4.0.0-beta.210
248
+
249
+ ## 4.0.0-beta.209
250
+
251
+ ### Patch Changes
252
+
253
+ - c991be1: update packages
254
+ - Updated dependencies [c991be1]
255
+ - Updated dependencies [3bae238]
256
+ - effect-app@4.0.0-beta.209
257
+
258
+ ## 4.0.0-beta.208
259
+
260
+ ### Patch Changes
261
+
262
+ - effect-app@4.0.0-beta.208
263
+
264
+ ## 4.0.0-beta.207
265
+
266
+ ### Patch Changes
267
+
268
+ - b0db40f: Router handlers are now discriminated by `Resource[K]["stream"]`:
269
+
270
+ - Stream resources (`stream: true`) accept only `(req) => Stream<...>` handlers.
271
+ - Non-stream resources accept only `(req) => Effect<...>` (or generator yielding `Yieldable`).
272
+
273
+ Mixing — e.g. returning `Effect.fail(...)` or `Effect<Stream<...>>` from a stream handler — no longer type-checks.
274
+
275
+ The runtime `Stream.unwrap` branch that lifted `Effect`/`Effect<Stream>` returns into a `Stream` is removed; handlers for stream resources must return a `Stream` directly. Migrate `Effect.gen(...).pipe(Stream.unwrap)` patterns by returning the `Stream` directly, and convert `Effect.fail(err)` in stream handlers to `Stream.fail(err)`.
276
+
277
+ - Updated dependencies [8fffc3c]
278
+ - effect-app@4.0.0-beta.207
279
+
280
+ ## 4.0.0-beta.206
281
+
282
+ ### Patch Changes
283
+
284
+ - 54bfc59: Require middleware to flow through `makeRpcClient` and the live layer through `makeRouter`.
285
+
286
+ ### `makeRpcClient(middleware, generalErrors?)`
287
+
288
+ Signature drops the `rcs` (request-context map wrapper) parameter. `rcs` was only load-bearing on the type side for `RequestConfig` inference; that information is now derived from `middleware.requestContextMap`. `middleware` is required — the previous "rcs + optional middleware" overload is gone.
289
+
290
+ **Migration**:
291
+
292
+ ```diff
293
+ -makeRpcClient(RequestContextMap, undefined, AppMiddleware)
294
+ +makeRpcClient(AppMiddleware)
295
+ ```
296
+
297
+ For tests/clients without a real middleware, build a minimal stub (`{ requestContextMap, requestContext }`) or pass any value satisfying `ClientMiddleware<RCM>`.
298
+
299
+ ### `makeRouter(middlewareLive)`
300
+
301
+ `makeRouter()` no longer infers the live middleware layer from `meta.middleware.Default`. The Live layer is now passed explicitly to `makeRouter`, and the request classes only carry the middleware tag (schema-only). This decouples the router from any assumption that the middleware tag exposes a `Default` static.
302
+
303
+ **Migration**:
304
+
305
+ ```diff
306
+ -export const { Router, matchAll } = makeRouter()
307
+ +export const { Router, matchAll } = makeRouter(AppMiddleware.Default)
308
+ ```
309
+
310
+ - Updated dependencies [54bfc59]
311
+ - effect-app@4.0.0-beta.206
312
+
313
+ ## 4.0.0-beta.205
314
+
315
+ ### Patch Changes
316
+
317
+ - Updated dependencies [f313973]
318
+ - effect-app@4.0.0-beta.205
319
+
320
+ ## 4.0.0-beta.204
321
+
322
+ ### Patch Changes
323
+
324
+ - Updated dependencies [0a0030f]
325
+ - effect-app@4.0.0-beta.204
326
+
327
+ ## 4.0.0-beta.203
328
+
329
+ ### Patch Changes
330
+
331
+ - Updated dependencies [992d9fa]
332
+ - effect-app@4.0.0-beta.203
333
+
334
+ ## 4.0.0-beta.202
335
+
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [1186b09]
339
+ - effect-app@4.0.0-beta.202
340
+
341
+ ## 4.0.0-beta.201
342
+
343
+ ### Patch Changes
344
+
345
+ - d67d17a: Source middleware errors exclusively from the rpc middleware tag, and move command/stream invalidation wrap/unwrap entirely into the routing layer (server) and `apiClientFactory` (client). `InvalidationMiddleware` and `InvalidationMiddlewareLive` are removed.
346
+
347
+ ### Resource error schemas
348
+
349
+ Three sites that used to fold `RequestContextMap[*].error` into a request's own error schema now stop doing so:
350
+
351
+ - `makeRpcClient` / `makeRequestClass` — `failureSchema` is just `config.error` (still merged with the optional `generalErrors` parameter, which is the only remaining error mix on both type and runtime levels).
352
+ - `MiddlewareMaker.rpc()` — `error: options.error` only; the previous union with `rcm.config[*].error` is gone.
353
+ - Routing and `apiClientFactory.makeRpcGroupFromRequestsAndModuleName` — `Invalidation.makeCommandRpc` is called with `error: resource.error` (no widening with the composite middleware error union).
354
+
355
+ Middleware errors reach the client through the rpc's `middlewares[*].error` failure-union channel of `Rpc.exitSchema`, exposed by attaching the middleware tag to the rpc on both sides:
356
+
357
+ - **Server**: `makeRouter(middleware)` attaches the live composite tag (existing behavior).
358
+ - **Client**: new `middleware` option on `ClientForOptions` / `ApiClientFactory.makeFor(layer, { middleware })` attaches the same tag schema-only (no Live invoked). Threaded through `makeRpcGroupFromRequestsAndModuleName` to `RpcGroup.middleware(tag)`. Without it, stream rpcs (whose top-level `errorSchema` is forced to `Never` by effect-rpc) hit `SchemaError: Expected never | { _tag: "error", ... }` decoding middleware-thrown errors that bypass the in-stream `Stream.catch` wrap.
359
+
360
+ **Migration**: handlers that yield errors previously sourced from rcm (e.g. `yield* new UnauthorizedError()`) now require those errors to be declared explicitly on the resource — `Req.Query<T>()("...", fields, { success, error: UnauthorizedError })`. The handler error type no longer auto-includes the rcm union.
361
+
362
+ ### Invalidation wrap/unwrap
363
+
364
+ - `routing.ts` (server) provides a per-request `InvalidationSet` for commands, wraps the success value as `CommandResponseWithMetaData`, and converts handler-thrown failures into `CommandFailureWithMetaData` so accumulated invalidation keys reach the client on either path. Stream wrap (per-chunk envelope + final `done` chunk) was already in routing and is unchanged.
365
+ - `apiClientFactory.ts` (client) `unwrapCommand` strips both envelopes and forwards keys to `InvalidationKeysFromServer`.
366
+ - `InvalidationMiddleware` (the tag) and `InvalidationMiddlewareLive` (the layer) are **removed**. The middleware was the previous home of the wrap; with the wrap moved to routing/apiClientFactory, the middleware became a thin pass-through and is no longer needed. `DefaultGenericMiddlewares` and `DefaultGenericMiddlewaresLive` shrink accordingly — no migration needed for callers that used the defaults; callers that referenced `InvalidationMiddleware` / `InvalidationMiddlewareLive` directly should drop those imports.
367
+
368
+ Middleware-thrown errors are never wrapped: by definition the handler never ran, so there is nothing to invalidate. They flow raw on the Cause and the client decodes them via the middleware-tag failure-union channel described above.
369
+
370
+ - Updated dependencies [d67d17a]
371
+ - effect-app@4.0.0-beta.201
372
+
373
+ ## 4.0.0-beta.200
374
+
375
+ ### Patch Changes
376
+
377
+ - 0cff7c1: workaround middleware error issue
378
+ - Updated dependencies [8f1cf6a]
379
+ - Updated dependencies [0cff7c1]
380
+ - effect-app@4.0.0-beta.200
381
+
382
+ ## 4.0.0-beta.199
383
+
384
+ ### Patch Changes
385
+
386
+ - de9fb83: Annotate Cosmos read spans with response size, resource count, and request charge.
387
+
388
+ `Cosmos.queryRaw`, `Cosmos.all`, `Cosmos.filter`, and `Cosmos.find` now set `db.cosmos.request_charge`, `db.cosmos.response_bytes`, and (where applicable) `db.cosmos.resource_count` on the active span. Bytes are sourced from `diagnostics.clientSideRequestStatistics.totalResponsePayloadLengthInBytes` — no payload stringification.
389
+
390
+ - effect-app@4.0.0-beta.199
391
+
392
+ ## 4.0.0-beta.198
393
+
394
+ ### Patch Changes
395
+
396
+ - 32dbc54: fix stream type when no success specified
397
+ - Updated dependencies [32dbc54]
398
+ - effect-app@4.0.0-beta.198
399
+
400
+ ## 4.0.0-beta.197
401
+
402
+ ### Minor Changes
403
+
404
+ - 3dc0d2a: Add streaming as a `stream: true` config option on `Query` / `Command` instead of a separate request type.
405
+
406
+ `TaggedRequestFor` now exposes only `Query` and `Command` factories — the standalone `Stream` factory is removed. To produce a Stream of `success` values, pass `stream: true` in the request config. The request `type` field stays `"command" | "query"`; a new `stream: boolean` field carries the streaming flag (stripped from the stored handler config).
407
+
408
+ ```ts
409
+ // Query that streams results
410
+ Req.Query<T>()("Tag", {}, { stream: true, success: ... })
411
+
412
+ // Command that streams results
413
+ Req.Command<T>()("Tag", {}, { stream: true, success: ... })
414
+ ```
415
+
416
+ Vue client mapping (per-handler properties mirror the non-stream API — `.query`, `.fn`, `.mutate`):
417
+
418
+ - `query` + `stream: true` → exposes `.query` (read-only streaming, tracked Vue Query). Helper map key: `${name}Query`.
419
+ - `command` + `stream: true` → exposes `.fn` and `.mutate` (mutating streaming).
420
+ - Plain `query` / `command` unchanged.
421
+
422
+ Server routing dispatches via the new `stream` flag (`makeStreamRpc` for streaming commands/queries, `makeCommandRpc` / `Rpc.make` otherwise).
423
+
424
+ Also lifts the `Struct` / `TaggedStruct` and `Opaque` definitions in `effect-app/Schema` to use `S.Bottom` / `S.Opaque` directly, exposing `fields`, `mapFields`, and a `MakeIn` that allows `void` when all fields are optional. `TaggedRequestFor` request classes now use `Opaque(TaggedStruct(...))` instead of `TaggedClass`, and decoding/encoding services are derived from `success` / `error` rather than stored on the request.
425
+
426
+ **Migration**: replace `Req.Stream` with `Req.Query` or `Req.Command` and add `stream: true` to the config — `Query` for read-only streams, `Command` for mutating streams.
427
+
428
+ ### Patch Changes
429
+
430
+ - Updated dependencies [3dc0d2a]
431
+ - effect-app@4.0.0-beta.197
432
+
433
+ ## 4.0.0-beta.196
434
+
435
+ ### Patch Changes
436
+
437
+ - effect-app@4.0.0-beta.196
438
+
439
+ ## 4.0.0-beta.195
440
+
441
+ ### Patch Changes
442
+
443
+ - 774a9b3: `MiddlewareMaker.makeMiddlewareBasic` now derives each middleware's effective error from both the static `error` field on the tag AND the `rcm` config entry referenced by `dynamic.key`, rather than relying on the static field alone.
444
+
445
+ Middlewares declared with `dynamic: RequestContextMap.get("foo")` (instead of an explicit static `error: ...`) end up with `tag.error = Schema.Never` at runtime — `RpcMiddleware.Tag` defaults the static error to `Never` when not provided. The composite `MiddlewareMaker.Tag(...).middleware(...)` walked `make[*].error` to build its own error union, collapsing to `Union<Never, ...> ≡ Never`.
446
+
447
+ `Rpc.exitSchema` walks `rpc.middlewares[*].error` when building the wire-level failure union for every rpc kind. Empty-union meant middleware-thrown errors (`NotLoggedInError`, `UnauthorizedError`, etc.) never reached the wire schema. Query/command happened to work because their wire `errorSchema = resource.error` already covered the merge from `makeRpcClient`. Stream rpcs have `errorSchema` force-set to `Schema.Never` by effect-rpc, so the resource-level merge never reached the wire — middleware errors decoded as "Expected never, got X".
448
+
449
+ Per middleware, the new logic pushes both the static `_.error` (if non-`Never`) and `rcm[_.dynamic.key].error` (if non-`Never`) into the composite's failure union.
450
+
451
+ - Updated dependencies [774a9b3]
452
+ - effect-app@4.0.0-beta.195
453
+
454
+ ## 4.0.0-beta.194
455
+
456
+ ### Patch Changes
457
+
458
+ - effect-app@4.0.0-beta.194
459
+
460
+ ## 4.0.0-beta.193
461
+
462
+ ### Patch Changes
463
+
464
+ - 9569911: Stream resources accept `Effect.fail(...)` (and `Effect<Stream>`) from controller handlers — previously only `Stream.fail(...)` / a returned `Stream` worked. The router now lifts an Effect result to a Stream via `Stream.unwrap`, so failures from an `Effect` propagate as a failing Stream on the client, matching `Stream.fail(...)` behavior. Also removes the need for manual `.pipe(Stream.unwrap)` on generator handlers that return a `Stream`.
465
+ - effect-app@4.0.0-beta.193
466
+
467
+ ## 4.0.0-beta.192
468
+
469
+ ### Patch Changes
470
+
471
+ - dba5779: namespaces
472
+ - effect-app@4.0.0-beta.192
473
+
474
+ ## 4.0.0-beta.191
475
+
476
+ ### Patch Changes
477
+
478
+ - 50ce7e6: Replace typescript-eslint with oxlint-tsgolint for type-aware lint. Drop ESLint entirely from non-vue packages (cli, effect-app, infra) — they now use only `oxlint --type-aware`. Vue packages keep ESLint to run `@effect-app/no-await-effect` (no tsgolint equivalent) via `@typescript-eslint/parser` + `vue-eslint-parser`.
479
+ - Updated dependencies [50ce7e6]
480
+ - effect-app@4.0.0-beta.191
481
+
482
+ ## 4.0.0-beta.190
483
+
484
+ ### Patch Changes
485
+
486
+ - Updated dependencies [985176b]
487
+ - effect-app@4.0.0-beta.190
488
+
489
+ ## 4.0.0-beta.189
490
+
491
+ ### Patch Changes
492
+
493
+ - ea32222: Update to effect 4.0.0-beta.60 and use native `Rpc.custom` constructors (`makeCommandRpc`, `makeStreamRpc`) for metadata-wrapped RPC schemas instead of manually wrapping/unwrapping schemas inline.
494
+ - Updated dependencies [ea32222]
495
+ - effect-app@4.0.0-beta.189
496
+
497
+ ## 4.0.0-beta.188
498
+
499
+ ### Patch Changes
500
+
501
+ - b2e438f: Remove Operations service and repo
502
+ - Updated dependencies [b2e438f]
503
+ - effect-app@4.0.0-beta.188
504
+
505
+ ## 4.0.0-beta.187
506
+
507
+ ### Patch Changes
508
+
509
+ - Updated dependencies [0d4e0b8]
510
+ - effect-app@4.0.0-beta.187
511
+
512
+ ## 4.0.0-beta.186
513
+
514
+ ### Patch Changes
515
+
516
+ - effect-app@4.0.0-beta.186
517
+
518
+ ## 4.0.0-beta.185
519
+
520
+ ### Patch Changes
521
+
522
+ - effect-app@4.0.0-beta.185
523
+
524
+ ## 4.0.0-beta.184
525
+
526
+ ### Patch Changes
527
+
528
+ - effect-app@4.0.0-beta.184
529
+
530
+ ## 4.0.0-beta.183
531
+
532
+ ### Patch Changes
533
+
534
+ - effect-app@4.0.0-beta.183
535
+
536
+ ## 4.0.0-beta.182
537
+
538
+ ### Patch Changes
539
+
540
+ - effect-app@4.0.0-beta.182
541
+
542
+ ## 4.0.0-beta.181
543
+
544
+ ### Patch Changes
545
+
546
+ - Updated dependencies [583393f]
547
+ - effect-app@4.0.0-beta.181
548
+
549
+ ## 4.0.0-beta.180
550
+
551
+ ### Minor Changes
552
+
553
+ - 7fa3045: V1/V2/V3: stream and command requests carry invalidation metadata
554
+
555
+ **V1** – stream final response includes metadata
556
+
557
+ - `Invalidation.StreamResponseChunk` wraps each stream item as `{ _tag: "value", value }` and appends `{ _tag: "done", metadata }` at the end carrying all accumulated invalidation keys.
558
+
559
+ **V2** – invalidation keys included in failures
560
+
561
+ - `Invalidation.CommandFailureWithMetaData` and `Invalidation.StreamFailureChunk` carry keys accumulated up to the point of failure, so clients can invalidate queries even when a command or stream errors.
562
+ - `InvalidationMiddlewareLive` wraps command failures; `routing.ts` wraps stream failures.
563
+ - `apiClientFactory.ts` unwraps both on the client side, forwarding keys before re-failing with the original error.
564
+
565
+ **V3** – mid-stream metadata chunks
566
+
567
+ - `Invalidation.StreamResponseChunk` now also includes `{ _tag: "metadata", metadata }` for mid-stream invalidation.
568
+ - After each emitted value, the server drains accumulated keys and emits a "metadata" chunk if any keys were collected since the last drain (bucket reset via `InvalidationSet.drain`).
569
+ - `apiClientFactory.ts` processes "metadata" chunks the same as "done" chunks, forwarding keys to `InvalidationKeysFromServer` immediately.
570
+ - `makeInvalidationKeysService` accepts an optional `onAdded` callback that fires after each key addition, enabling `mutate.ts` to trigger query invalidation mid-stream without waiting for the stream to complete.
571
+
572
+ ### Patch Changes
573
+
574
+ - Updated dependencies [7fa3045]
575
+ - effect-app@4.0.0-beta.180
576
+
577
+ ## 4.0.0-beta.179
578
+
579
+ ### Patch Changes
580
+
581
+ - Updated dependencies [828d264]
582
+ - effect-app@4.0.0-beta.179
583
+
584
+ ## 4.0.0-beta.178
585
+
586
+ ### Patch Changes
587
+
588
+ - effect-app@4.0.0-beta.178
589
+
590
+ ## 4.0.0-beta.177
591
+
592
+ ### Minor Changes
593
+
594
+ - 89d8b3a: Add Effect RPC `Stream` support to the wrapper.
595
+
596
+ - New `Stream` request constructor on `TaggedRequestFor` parallel to `Query`/`Command`. Emits resources with `type: "stream"`.
597
+ - Server router (`@effect-app/infra` `routing.ts`) accepts stream resources whose handlers return a `Stream.Stream<A, E, R>` (or a function from input to one). Forwards `stream: true` to `Rpc.make` so `RpcSchema.Stream` wrapping is applied. Streams bypass `applyRequestTypeInterruptibility` and the `Effect.withSpan` wrapping (the RPC server adds its own span).
598
+ - Client (`apiClientFactory.ts`) detects stream resources, forwards `stream: true` when constructing `RpcGroup`, and exposes the per-request `handler` as a `Stream.Stream` (via `Stream.unwrap` over the `ManagedRuntime` context) instead of an `Effect`. `Invalidation.CommandResponseWithMetaData` continues to apply only to commands.
599
+ - New `RequestStreamHandler` / `RequestStreamHandlerWithInput` shapes in `clientFor.ts`; `RequestHandlers` dispatches on `type: "stream"`.
600
+
601
+ ### Patch Changes
602
+
603
+ - Updated dependencies [89d8b3a]
604
+ - effect-app@4.0.0-beta.177
605
+
606
+ ## 4.0.0-beta.176
607
+
608
+ ### Patch Changes
609
+
610
+ - pass options
611
+ - Updated dependencies
612
+ - effect-app@4.0.0-beta.176
613
+
614
+ ## 4.0.0-beta.175
615
+
616
+ ### Patch Changes
617
+
618
+ - effect-app@4.0.0-beta.175
619
+
620
+ ## 4.0.0-beta.174
621
+
622
+ ### Minor Changes
623
+
624
+ - 821468d: Add server-driven cache invalidation via RPC response headers.
625
+
626
+ - `effect-app/rpc`: new `Invalidation` module with `InvalidationKey` / `InvalidationKeys` schemas, `Invalidates` annotation (for declaring static invalidation on Rpc definitions), `InvalidationSet` reference (request-scoped accumulator), and `makeInvalidationSet` helper.
627
+ - `effect-app/middleware`: new `InvalidationMiddleware` RPC middleware tag; included in `DefaultGenericMiddlewares`.
628
+ - `effect-app/client`: new `InvalidationKeys` module with `InvalidationKeysFromServer` reference and `makeInvalidationKeysService` helper; `apiClientFactory` now taps HTTP responses to read the `x-invalidate` header and forward keys to `InvalidationKeysFromServer`.
629
+ - `@effect-app/infra`: new `InvalidationMiddlewareLive` RPC middleware implementation that owns the full lifecycle — creates a request-scoped `InvalidationSet` (backed by a `Ref`), pre-populates it from the `Invalidates` annotation, provides it to the handler, and after the handler completes registers an HTTP pre-response handler (via `appendPreResponseHandlerUnsafe`) to write the accumulated keys as an `x-invalidate` response header. No separate HTTP middleware is needed.
630
+ - `@effect-app/vue`: `invalidateQueries` / `useMutation` now reads server-provided invalidation keys from `InvalidationKeysFromServer` after each mutation and applies them alongside the client-side invalidation.
631
+
632
+ ### Patch Changes
633
+
634
+ - Updated dependencies [821468d]
635
+ - effect-app@4.0.0-beta.174
636
+
637
+ ## 4.0.0-beta.173
638
+
639
+ ### Patch Changes
640
+
641
+ - effect-app@4.0.0-beta.173
642
+
643
+ ## 4.0.0-beta.172
644
+
645
+ ### Patch Changes
646
+
647
+ - improve sentry
648
+ - effect-app@4.0.0-beta.172
649
+
650
+ ## 4.0.0-beta.171
651
+
652
+ ### Patch Changes
653
+
654
+ - Updated dependencies [d71d976]
655
+ - effect-app@4.0.0-beta.171
656
+
657
+ ## 4.0.0-beta.170
658
+
659
+ ### Patch Changes
660
+
661
+ - Updated dependencies [8f09f77]
662
+ - effect-app@4.0.0-beta.170
663
+
664
+ ## 4.0.0-beta.169
665
+
666
+ ### Patch Changes
667
+
668
+ - Updated dependencies [8ae8b53]
669
+ - effect-app@4.0.0-beta.169
670
+
671
+ ## 4.0.0-beta.168
672
+
673
+ ### Patch Changes
674
+
675
+ - Updated dependencies [178480a]
676
+ - effect-app@4.0.0-beta.168
677
+
678
+ ## 4.0.0-beta.167
679
+
680
+ ### Patch Changes
681
+
682
+ - Updated dependencies [140e192]
683
+ - effect-app@4.0.0-beta.167
684
+
685
+ ## 4.0.0-beta.166
686
+
687
+ ### Patch Changes
688
+
689
+ - Updated dependencies [dbcc53b]
690
+ - effect-app@4.0.0-beta.166
691
+
692
+ ## 4.0.0-beta.165
693
+
694
+ ### Patch Changes
695
+
696
+ - Updated dependencies [f88ea34]
697
+ - effect-app@4.0.0-beta.165
698
+
699
+ ## 4.0.0-beta.164
700
+
701
+ ### Patch Changes
702
+
703
+ - Updated dependencies [8cb3de4]
704
+ - effect-app@4.0.0-beta.164
705
+
706
+ ## 4.0.0-beta.163
707
+
708
+ ### Patch Changes
709
+
710
+ - Updated dependencies [b952f19]
711
+ - effect-app@4.0.0-beta.163
712
+
713
+ ## 4.0.0-beta.162
714
+
715
+ ### Patch Changes
716
+
717
+ - Updated dependencies [b52b424]
718
+ - effect-app@4.0.0-beta.162
719
+
720
+ ## 4.0.0-beta.161
721
+
722
+ ### Patch Changes
723
+
724
+ - effect-app@4.0.0-beta.161
725
+
726
+ ## 4.0.0-beta.160
727
+
728
+ ### Patch Changes
729
+
730
+ - 505bfa9: Add concurrent decode helper APIs and migrate decode callsites to use them.
731
+
732
+ - Add `withDefaultParseOptions` and keep `DefaultParseOptions` centralized.
733
+ - Export `decodeEffectConcurrently` and `decodeUnknownEffectConcurrently` from Schema and SchemaParser modules.
734
+ - Update repository, queue, client, form, and CLI decode paths to use concurrent decode helpers.
735
+ - Keep schema constructors free of hardcoded parse concurrency overrides.
736
+
737
+ - Updated dependencies [505bfa9]
738
+ - effect-app@4.0.0-beta.160
739
+
740
+ ## 4.0.0-beta.159
741
+
742
+ ### Patch Changes
743
+
744
+ - c1e73de:
745
+ - Updated dependencies [c1e73de]
746
+ - effect-app@4.0.0-beta.159
747
+
748
+ ## 4.0.0-beta.158
749
+
750
+ ### Patch Changes
751
+
752
+ - Updated dependencies [3c1f52d]
753
+ - Updated dependencies [6ae3050]
754
+ - effect-app@4.0.0-beta.158
755
+
756
+ ## 4.0.0-beta.157
757
+
758
+ ### Patch Changes
759
+
760
+ - 6fff09c: unify encoded function for when you use encodedKeys
761
+ - Updated dependencies [6fff09c]
762
+ - effect-app@4.0.0-beta.157
763
+
764
+ ## 4.0.0-beta.156
765
+
766
+ ### Patch Changes
767
+
768
+ - effect-app@4.0.0-beta.156
769
+
770
+ ## 4.0.0-beta.155
771
+
772
+ ### Patch Changes
773
+
774
+ - Updated dependencies [c215db8]
775
+ - effect-app@4.0.0-beta.155
776
+
777
+ ## 4.0.0-beta.154
778
+
779
+ ### Patch Changes
780
+
781
+ - effect-app@4.0.0-beta.154
782
+
783
+ ## 4.0.0-beta.153
784
+
785
+ ### Patch Changes
786
+
787
+ - effect-app@4.0.0-beta.153
788
+
789
+ ## 4.0.0-beta.152
790
+
791
+ ### Patch Changes
792
+
793
+ - effect-app@4.0.0-beta.152
794
+
795
+ ## 4.0.0-beta.151
796
+
797
+ ### Patch Changes
798
+
799
+ - 925214b: update packages
800
+ - effect-app@4.0.0-beta.151
801
+
802
+ ## 4.0.0-beta.150
803
+
804
+ ### Patch Changes
805
+
806
+ - Updated dependencies [85a8275]
807
+ - effect-app@4.0.0-beta.150
808
+
809
+ ## 4.0.0-beta.149
810
+
811
+ ### Patch Changes
812
+
813
+ - Updated dependencies [f317c5e]
814
+ - effect-app@4.0.0-beta.149
815
+
816
+ ## 4.0.0-beta.148
817
+
818
+ ### Patch Changes
819
+
820
+ - Updated dependencies [199e9a5]
821
+ - effect-app@4.0.0-beta.148
822
+
823
+ ## 4.0.0-beta.147
824
+
825
+ ### Patch Changes
826
+
827
+ - Updated dependencies [47e3742]
828
+ - effect-app@4.0.0-beta.147
829
+
830
+ ## 4.0.0-beta.146
831
+
832
+ ### Patch Changes
833
+
834
+ - Updated dependencies [a4dff57]
835
+ - effect-app@4.0.0-beta.146
836
+
837
+ ## 4.0.0-beta.145
838
+
839
+ ### Patch Changes
840
+
841
+ - Updated dependencies [12abb55]
842
+ - effect-app@4.0.0-beta.145
843
+
844
+ ## 4.0.0-beta.144
845
+
846
+ ### Patch Changes
847
+
848
+ - d31253f: Refactor eligible schema classes and tagged classes to Opaque schemas, and migrate constructor call sites to use `.make` for those models.
849
+ - Updated dependencies [11422f8]
850
+ - Updated dependencies [d31253f]
851
+ - effect-app@4.0.0-beta.144
852
+
853
+ ## 4.0.0-beta.143
854
+
855
+ ### Patch Changes
856
+
857
+ - Updated dependencies [79eb019]
858
+ - effect-app@4.0.0-beta.143
859
+
860
+ ## 4.0.0-beta.142
861
+
862
+ ### Patch Changes
863
+
864
+ - Updated dependencies [3436d44]
865
+ - Updated dependencies [025de47]
866
+ - effect-app@4.0.0-beta.142
867
+
868
+ ## 4.0.0-beta.141
869
+
870
+ ### Patch Changes
871
+
872
+ - Updated dependencies [7c25dbb]
873
+ - effect-app@4.0.0-beta.141
874
+
875
+ ## 4.0.0-beta.140
876
+
877
+ ### Patch Changes
878
+
879
+ - 1576688: Add configurable `fakeMailAddress` to `SendgridConfig`. Supports `{i}` placeholder for unique addresses, e.g. `"test+{i}@example.com"`.
880
+ - effect-app@4.0.0-beta.140
881
+
882
+ ## 4.0.0-beta.139
883
+
884
+ ### Patch Changes
885
+
886
+ - effect-app@4.0.0-beta.139
887
+
888
+ ## 4.0.0-beta.138
889
+
890
+ ### Patch Changes
891
+
892
+ - effect-app@4.0.0-beta.138
893
+
894
+ ## 4.0.0-beta.137
895
+
896
+ ### Patch Changes
897
+
898
+ - effect-app@4.0.0-beta.137
899
+
900
+ ## 4.0.0-beta.136
901
+
902
+ ### Patch Changes
903
+
904
+ - effect-app@4.0.0-beta.136
905
+
906
+ ## 4.0.0-beta.135
907
+
908
+ ### Patch Changes
909
+
910
+ - Updated dependencies [c7bbc41]
911
+ - effect-app@4.0.0-beta.135
912
+
913
+ ## 4.0.0-beta.134
914
+
915
+ ### Patch Changes
916
+
917
+ - eed57c6: Fix `R` inference in `OneDSL`, `OneDSLExt.modify` and `OneDSLExt.update`. The callback's effect type was annotated as `Effect<…, E, FixEnv<R, Evt, S1, S2>>`, which deadlocked inference of `R` (TS6 fell back to `never`, tsgo to `unknown`, leaking `unknown` into yielded effects in generator handlers). Now matches the existing `AllDSLExt` pattern: bare `R` in the callback, `FixEnv<R, …>` only in the return type.
918
+ - Updated dependencies [9d3495e]
919
+ - Updated dependencies [f353d48]
920
+ - effect-app@4.0.0-beta.134
921
+
922
+ ## 4.0.0-beta.133
923
+
924
+ ### Patch Changes
925
+
926
+ - 2f862a4: Apply `toCodecJson` in `SQLModel.JsonFromString` so SQL JSON string fields use the proper JSON-safe codec at the encode/decode boundary (aligns with queue, event, and gist call sites).
927
+ - c3299f7: update packages
928
+ - Updated dependencies [c3299f7]
929
+ - effect-app@4.0.0-beta.133
930
+
931
+ ## 4.0.0-beta.132
932
+
933
+ ### Patch Changes
934
+
935
+ - effect-app@4.0.0-beta.132
936
+
937
+ ## 4.0.0-beta.131
938
+
939
+ ### Patch Changes
940
+
941
+ - 4a7d95a: Use request-type RPC annotations to drive interruptibility and retry behavior, apply command uninterruptibility through the router wrapper path, and add an in-memory E2E test covering command vs query interruption behavior.
942
+ - effect-app@4.0.0-beta.131
943
+
944
+ ## 4.0.0-beta.130
945
+
946
+ ### Patch Changes
947
+
948
+ - Updated dependencies [ea1bd46]
949
+ - effect-app@4.0.0-beta.130
950
+
951
+ ## 4.0.0-beta.129
952
+
953
+ ### Patch Changes
954
+
955
+ - effect-app@4.0.0-beta.129
956
+
957
+ ## 4.0.0-beta.128
958
+
959
+ ### Patch Changes
960
+
961
+ - Updated dependencies [57db551]
962
+ - effect-app@4.0.0-beta.128
963
+
964
+ ## 4.0.0-beta.127
965
+
966
+ ### Patch Changes
967
+
968
+ - 71a0719: Merge `batchPar` into `batch`, expose `concurrency` via an optional `BatchOptions` argument, and make `batch` dual (data-first + data-last).
969
+ - 4bc3d05: Repository `save`, `remove`, and `removeById` now accept plain `ReadonlyArray` instead of `NonEmptyReadonlyArray`. Callers no longer need to narrow or guard for non-emptiness before invoking — empty inputs short-circuit to a no-op, making it ergonomic to pass through query results directly.
970
+ - effect-app@4.0.0-beta.127
971
+
972
+ ## 4.0.0-beta.126
973
+
974
+ ### Patch Changes
975
+
976
+ - Updated dependencies [458bb1b]
977
+ - effect-app@4.0.0-beta.126
978
+
979
+ ## 4.0.0-beta.125
980
+
981
+ ### Patch Changes
982
+
983
+ - 7191fc1: `removeById` now takes `id | NonEmptyReadonlyArray<id>` instead of a variadic rest, and the extended repo's `removeById` accepts a `batch` option to chunk large deletes — consistent with `save` and `remove`.
984
+ - effect-app@4.0.0-beta.125
985
+
986
+ ## 4.0.0-beta.124
987
+
988
+ ### Patch Changes
989
+
990
+ - c9e0c44: cleanup auth
991
+ - 256ae85: cleanup
992
+ - Updated dependencies [256ae85]
993
+ - effect-app@4.0.0-beta.124
994
+
995
+ ## 4.0.0-beta.123
996
+
997
+ ### Patch Changes
998
+
999
+ - Updated dependencies [14aba14]
1000
+ - effect-app@4.0.0-beta.123
1001
+
1002
+ ## 4.0.0-beta.122
1003
+
1004
+ ### Patch Changes
1005
+
1006
+ - 27bf9b6: Fix `Repository.query` environment typing to exclude schema context provided through `makeRepo` options.
1007
+ - e02a258: Add optional batching overloads for repository `save` and `remove` helpers.
1008
+ - f052d38: Replace `(...) => Effect.gen` with `Effect.fnUntraced` and convert select multi-step `pipe` chains to `Effect.gen` across infra.
1009
+ - Updated dependencies [f052d38]
1010
+ - effect-app@4.0.0-beta.122
1011
+
1012
+ ## 4.0.0-beta.121
1013
+
1014
+ ### Patch Changes
1015
+
1016
+ - 1015582: Fix `Q.project` field selection with `Schema.encodeKeys` by deriving selected fields from the encoded schema shape.
1017
+ - Updated dependencies [5ac46cb]
1018
+ - effect-app@4.0.0-beta.121
1019
+
1020
+ ## 4.0.0-beta.120
1021
+
1022
+ ### Patch Changes
1023
+
1024
+ - Updated dependencies [f21190c]
1025
+ - effect-app@4.0.0-beta.120
1026
+
1027
+ ## 4.0.0-beta.119
1028
+
1029
+ ### Patch Changes
1030
+
1031
+ - db7ba34: Filter SSE events stream by storeId namespace
1032
+ - effect-app@4.0.0-beta.119
1033
+
1034
+ ## 4.0.0-beta.118
1035
+
1036
+ ### Patch Changes
1037
+
1038
+ - Update effect packages to 4.0.0-beta.52
1039
+ - Updated dependencies [bd26832]
1040
+ - Updated dependencies [08d2e70]
1041
+ - Updated dependencies
1042
+ - effect-app@4.0.0-beta.118
1043
+
1044
+ ## 4.0.0-beta.117
1045
+
1046
+ ### Patch Changes
1047
+
1048
+ - 1d85785: Wrap store seed effects with `Effect.uninterruptible` to prevent interruption during seeding
1049
+ - effect-app@4.0.0-beta.117
1050
+
1051
+ ## 4.0.0-beta.116
1052
+
1053
+ ### Patch Changes
1054
+
1055
+ - 7d5cefc: SQL and Pg stores now scope seed migration records by namespace and table name in shared databases to avoid cross-namespace seed collisions.
1056
+ - effect-app@4.0.0-beta.116
1057
+
1058
+ ## 4.0.0-beta.115
1059
+
1060
+ ### Patch Changes
1061
+
1062
+ - fe2caba: SQL and Pg stores: use separate `_migrations` table for seed tracking instead of inserting a marker row into the data table, preventing it from appearing in `all`/`filter` queries.
1063
+ - effect-app@4.0.0-beta.115
1064
+
1065
+ ## 4.0.0-beta.114
1066
+
1067
+ ### Patch Changes
1068
+
1069
+ - 1ab3cf7: SQLite per-namespace adapter: use separate `_migrations` table for seed tracking instead of inserting a marker row into the data table, preventing it from appearing in `all`/`filter` queries.
1070
+ - effect-app@4.0.0-beta.114
1071
+
1072
+ ## 4.0.0-beta.113
1073
+
1074
+ ### Minor Changes
1075
+
1076
+ - ddc5492: Add RepositoryRegistry service that tracks all repositories by modelName, with `seedNamespace` to seed all registered repos in parallel and `entries` to inspect the registry.
1077
+
1078
+ Make non-primary namespace seeding explicit: Store and Repository now expose `seedNamespace` instead of auto-seeding on access. Primary namespace is still seeded eagerly on initialization.
1079
+
1080
+ SQL stores: table creation (`CREATE TABLE IF NOT EXISTS`) is now part of `seedNamespace` instead of running eagerly at store construction, ensuring tables for non-primary namespaces are only created when explicitly seeded.
1081
+
1082
+ ### Patch Changes
1083
+
1084
+ - effect-app@4.0.0-beta.113
1085
+
1086
+ ## 4.0.0-beta.112
1087
+
1088
+ ### Patch Changes
1089
+
1090
+ - 8a4a6d2: fup
1091
+ - effect-app@4.0.0-beta.112
1092
+
1093
+ ## 4.0.0-beta.111
1094
+
1095
+ ### Patch Changes
1096
+
1097
+ - ca94edf: fix typo
1098
+ - Updated dependencies [ca94edf]
1099
+ - effect-app@4.0.0-beta.111
1100
+
1101
+ ## 4.0.0-beta.110
1102
+
1103
+ ### Minor Changes
1104
+
1105
+ - c313c07: Add per-namespace in-memory SQLite adapter via LayerMap. When `makeSqlClientLayer` option is provided to `SQLiteStoreLayer`, each namespace gets its own SQLite database instance managed by a `LayerMap`. Introduces `WithNsTransaction` service for namespace-aware SQL transactions, used by `makeSqlTransactionMiddleware`.
1106
+
1107
+ ### Patch Changes
1108
+
1109
+ - effect-app@4.0.0-beta.110
1110
+
1111
+ ## 4.0.0-beta.109
1112
+
1113
+ ### Patch Changes
1114
+
1115
+ - 82f66f1: use uninterruptiple
1116
+ - effect-app@4.0.0-beta.109
1117
+
1118
+ ## 4.0.0-beta.108
1119
+
1120
+ ### Patch Changes
1121
+
1122
+ - Updated dependencies [3e46e7b]
1123
+ - effect-app@4.0.0-beta.108
1124
+
1125
+ ## 4.0.0-beta.107
1126
+
1127
+ ### Patch Changes
1128
+
1129
+ - 902ca1b: fix
1130
+ - effect-app@4.0.0-beta.107
1131
+
1132
+ ## 4.0.0-beta.106
1133
+
1134
+ ### Patch Changes
1135
+
1136
+ - f22a026: Use `Effect.cached` in `getOrCreateStoreEffect` for proper memoization of the resolver effect.
1137
+ - effect-app@4.0.0-beta.106
1138
+
1139
+ ## 4.0.0-beta.105
1140
+
1141
+ ### Minor Changes
1142
+
1143
+ - 3d732b1: Rewrite `withRequestResolverCache` to use official `RequestResolver.withCache`, creating a cached resolver per ContextMap via `getOrCreateStoreEffect` with semaphore-guarded initialization.
1144
+
1145
+ ### Patch Changes
1146
+
1147
+ - 47e53f5: Fix `withRequestResolverCache` causing "RequestResolver did not complete request" errors by using the `preCheck` hook instead of handling cache in `runAll`. Cache hits for in-flight or completed requests are now handled before entries enter the batch, preventing uncompleted entries.
1148
+ - 5773159: Add `itemType` annotation to all repository spans
1149
+ - effect-app@4.0.0-beta.105
1150
+
1151
+ ## 4.0.0-beta.104
1152
+
1153
+ ### Patch Changes
1154
+
1155
+ - Updated dependencies [e944bca]
1156
+ - effect-app@4.0.0-beta.104
1157
+
1158
+ ## 4.0.0-beta.103
1159
+
1160
+ ### Patch Changes
1161
+
1162
+ - Updated dependencies [7119320]
1163
+ - effect-app@4.0.0-beta.103
1164
+
1165
+ ## 4.0.0-beta.102
1166
+
1167
+ ### Patch Changes
1168
+
1169
+ - 62627e9: Fix boolean handling in SQL SELECT and WHERE
1170
+ - effect-app@4.0.0-beta.102
1171
+
1172
+ ## 4.0.0-beta.101
1173
+
1174
+ ### Patch Changes
1175
+
1176
+ - effect-app@4.0.0-beta.101
1177
+
1178
+ ## 4.0.0-beta.100
1179
+
1180
+ ### Patch Changes
1181
+
1182
+ - 43611c7: enable cosmosdb large partition key hashes
1183
+ - effect-app@4.0.0-beta.100
1184
+
1185
+ ## 4.0.0-beta.99
1186
+
1187
+ ### Patch Changes
1188
+
1189
+ - 6a0e008: remove artificial Cosmos bulkSet delays
1190
+ - effect-app@4.0.0-beta.99
1191
+
1192
+ ## 4.0.0-beta.98
1193
+
1194
+ ### Patch Changes
1195
+
1196
+ - 5aed2e3: Add span to Cosmos `batchRemove` and include `namespace` attribute on all Cosmos store spans.
1197
+ - effect-app@4.0.0-beta.98
1198
+
1199
+ ## 4.0.0-beta.97
1200
+
1201
+ ### Patch Changes
1202
+
1203
+ - 3eb66e9: Fix CosmosDB store `filter` to trigger namespace seeding on first access. Previously, if `filter` was the first operation called on a namespace, seed data was never created.
1204
+ - effect-app@4.0.0-beta.97
1205
+
1206
+ ## 4.0.0-beta.96
1207
+
1208
+ ### Patch Changes
1209
+
1210
+ - Updated dependencies [5615e47]
1211
+ - effect-app@4.0.0-beta.96
1212
+
1213
+ ## 4.0.0-beta.95
1214
+
1215
+ ### Patch Changes
1216
+
1217
+ - 88838fb: Remove pick/omit customizations from Class/TaggedClass/Struct/TaggedStruct. Use `Struct.pick(X.fields, [...])` from `effect-app` instead.
1218
+ - Updated dependencies [88838fb]
1219
+ - effect-app@4.0.0-beta.95
1220
+
1221
+ ## 4.0.0-beta.94
1222
+
1223
+ ### Patch Changes
1224
+
1225
+ - effect-app@4.0.0-beta.94
1226
+
1227
+ ## 4.0.0-beta.93
1228
+
1229
+ ### Patch Changes
1230
+
1231
+ - 2d85646: fix SQL includes-any/all double-quoting values for SQLite (JSON.stringify only needed for Postgres jsonb)
1232
+ - effect-app@4.0.0-beta.93
1233
+
1234
+ ## 4.0.0-beta.92
1235
+
1236
+ ### Patch Changes
1237
+
1238
+ - b4ffee0: fix SQL whereEvery double-negation bug causing wrong query when operators like notIn are used (especially with empty arrays)
1239
+ - effect-app@4.0.0-beta.92
1240
+
1241
+ ## 4.0.0-beta.91
1242
+
1243
+ ### Patch Changes
1244
+
1245
+ - Updated dependencies [738b482]
1246
+ - effect-app@4.0.0-beta.91
1247
+
1248
+ ## 4.0.0-beta.90
1249
+
1250
+ ### Patch Changes
1251
+
1252
+ - d786b91: Fix SQL `whereSome`/`whereEvery` array relation queries using `EXISTS` with `json_each` (SQLite) / `jsonb_array_elements` (Pg).
1253
+ - effect-app@4.0.0-beta.90
1254
+
1255
+ ## 4.0.0-beta.89
1256
+
1257
+ ### Patch Changes
1258
+
1259
+ - 9a9e46c: Fix SQL select queries to read `_etag` from column instead of JSON data, preventing INSERT on update.
1260
+ - effect-app@4.0.0-beta.89
1261
+
1262
+ ## 4.0.0-beta.88
1263
+
1264
+ ### Patch Changes
1265
+
1266
+ - dfd5562: Fix SQL `IN`/`NOT IN` with null values to use `IS NULL`/`IS NOT NULL` instead of `IN (NULL, ...)`.
1267
+ - effect-app@4.0.0-beta.88
1268
+
1269
+ ## 4.0.0-beta.87
1270
+
1271
+ ### Patch Changes
1272
+
1273
+ - 5a709d1: Fix SQLite select query type coercion using `json_quote` and apply defaultValues in SQL WHERE clauses via `COALESCE`.
1274
+ - effect-app@4.0.0-beta.87
1275
+
1276
+ ## 4.0.0-beta.86
1277
+
1278
+ ### Patch Changes
1279
+
1280
+ - 70f1f27: Fix store seeding: break circular dependency where bulkSet re-entered seedNamespace, and add explicit seed markers to SQL/Pg stores using a dedicated `__seed__` namespace.
1281
+ - effect-app@4.0.0-beta.86
1282
+
1283
+ ## 4.0.0-beta.85
1284
+
1285
+ ### Patch Changes
1286
+
1287
+ - db285e9: Add per-namespace seeding to SQL (SQLite/PostgreSQL) and CosmosDB store adapters. Previously only the `primary` namespace was seeded at initialization; now each namespace is lazily seeded on first access using `Effect.cached` to guarantee at-most-once execution. Primary namespace continues to seed eagerly on initialization. CosmosDB uses namespace-specific marker documents for backward compatibility.
1288
+ - effect-app@4.0.0-beta.85
1289
+
1290
+ ## 4.0.0-beta.84
1291
+
1292
+ ### Patch Changes
1293
+
1294
+ - c80e781: Fix SQLite store namespace parameter ordering in filter queries. The `_namespace` placeholder was prepended to the WHERE clause but its value was appended to the end of the positional params array, causing it to bind to the wrong placeholder. PostgreSQL was unaffected (uses indexed `$N` placeholders).
1295
+ - effect-app@4.0.0-beta.84
1296
+
1297
+ ## 4.0.0-beta.83
1298
+
1299
+ ### Patch Changes
1300
+
1301
+ - d1fc90a: Strip `_etag` and `id` from the `data` JSON column in SQL store adapters (SQLite + PostgreSQL). These fields are already stored as dedicated columns and were redundantly duplicated inside the JSON blob. On read, `parseRow` now re-injects `id` from the row column. Backward compatible: existing rows with `_etag`/`id` in `data` continue to work as the column values take precedence.
1302
+ - effect-app@4.0.0-beta.83
1303
+
1304
+ ## 4.0.0-beta.82
1305
+
1306
+ ### Minor Changes
1307
+
1308
+ - 48f1457: Add storage namespace support to CosmosDB adapter via partition key prefixing. When `allowNamespace` is configured, the namespace from `storeId` is prepended to partition key values (e.g., `test-ns::primary`), isolating data per namespace within the same container.
1309
+ - 48f1457: Add storage namespace support to SQL adapters (SQLite and Postgres) via a `_namespace` column. When `allowNamespace` is configured, a `_namespace` column with composite primary key `(id, _namespace)` isolates data per namespace within the same table. New tables get the schema automatically; existing tables require manual migration.
1310
+ - 48f1457: Add SQL Store adapter for Effect SQL (SQLite + PostgreSQL). Table-per-repo with id/etag/data JSON columns, query DSL translation to SQL WHERE clauses, optimistic concurrency via etag.
1311
+ - 48f1457: Make `withSqlTransaction` in `setupRequest` configurable via `withTransaction` option (defaults to `false`). Add `requiresTransactionConfig` and `makeSqlTransactionMiddleware` for per-RPC transaction control as a dynamic middleware that requires `SqlClient` directly. Transactions are disabled by default; opt in with `withTransaction: true` or `requiresTransaction: true`.
1312
+
1313
+ ### Patch Changes
1314
+
1315
+ - effect-app@4.0.0-beta.82
1316
+
1317
+ ## 4.0.0-beta.81
1318
+
1319
+ ### Minor Changes
1320
+
1321
+ - fd67f0b: Add `withRequestResolverCache` to scope RequestResolver cache to the ContextMap (request-scoped). Add `getOrCreateStore` to ContextMap for generic scoped storage.
1322
+
1323
+ ### Patch Changes
1324
+
1325
+ - effect-app@4.0.0-beta.81
1326
+
1327
+ ## 4.0.0-beta.80
1328
+
1329
+ ### Patch Changes
1330
+
1331
+ - eaf0115: enforce local
1332
+ - effect-app@4.0.0-beta.80
1333
+
1334
+ ## 4.0.0-beta.79
1335
+
1336
+ ### Patch Changes
1337
+
1338
+ - d16845e: Remove `TaggedRequest` from `makeRpcClient`, now only `TaggedRequestFor` is returned. Remove all legacy `meta.moduleName` support — `id` and `moduleName` are now required on `Req` type. Remove `makeRpcGroup` (use `makeRpcGroupFromRequestsAndModuleName` instead).
1339
+ - Updated dependencies [d16845e]
1340
+ - effect-app@4.0.0-beta.79
1341
+
1342
+ ## 4.0.0-beta.78
1343
+
1344
+ ### Minor Changes
1345
+
1346
+ - 818e047: Router `matchFor` no longer requires `meta` property on resource when requests carry `moduleName` from `TaggedRequestFor`
1347
+
1348
+ ### Patch Changes
1349
+
1350
+ - effect-app@4.0.0-beta.78
1351
+
1352
+ ## 4.0.0-beta.77
1353
+
1354
+ ### Patch Changes
1355
+
1356
+ - Updated dependencies [3613e87]
1357
+ - effect-app@4.0.0-beta.77
1358
+
1359
+ ## 4.0.0-beta.76
1360
+
1361
+ ### Patch Changes
1362
+
1363
+ - fac725d: update effect to latest beta
1364
+ - Updated dependencies [a5248a9]
1365
+ - Updated dependencies [fac725d]
1366
+ - effect-app@4.0.0-beta.76
1367
+
1368
+ ## 4.0.0-beta.75
1369
+
1370
+ ### Patch Changes
1371
+
1372
+ - Updated dependencies [24f0a5a]
1373
+ - effect-app@4.0.0-beta.75
1374
+
1375
+ ## 4.0.0-beta.74
1376
+
1377
+ ### Patch Changes
1378
+
1379
+ - Updated dependencies [54ec1ef]
1380
+ - effect-app@4.0.0-beta.74
1381
+
1382
+ ## 4.0.0-beta.73
1383
+
1384
+ ### Patch Changes
1385
+
1386
+ - b53c59e: fix signature
1387
+ - effect-app@4.0.0-beta.73
1388
+
1389
+ ## 4.0.0-beta.72
1390
+
1391
+ ### Patch Changes
1392
+
1393
+ - Updated dependencies [0541f0d]
1394
+ - effect-app@4.0.0-beta.72
1395
+
1396
+ ## 4.0.0-beta.71
1397
+
1398
+ ### Patch Changes
1399
+
1400
+ - beae3a0: Remove `withDefaultConstructor` wrapper, use `S.withConstructorDefault` directly with `Effect.succeed`/`Effect.sync`.
1401
+ - Updated dependencies [beae3a0]
1402
+ - effect-app@4.0.0-beta.71
1403
+
1404
+ ## 4.0.0-beta.70
1405
+
1406
+ ### Patch Changes
1407
+
1408
+ - fdb9cb3: cleanup
1409
+ - effect-app@4.0.0-beta.70
1410
+
1411
+ ## 4.0.0-beta.69
1412
+
1413
+ ### Patch Changes
1414
+
1415
+ - dc465e3: update to latest effect beta
1416
+ - Updated dependencies [dc465e3]
1417
+ - effect-app@4.0.0-beta.69
1418
+
1419
+ ## 4.0.0-beta.68
1420
+
1421
+ ### Patch Changes
1422
+
1423
+ - Updated dependencies [e6f2341]
1424
+ - effect-app@4.0.0-beta.68
1425
+
1426
+ ## 4.0.0-beta.67
1427
+
1428
+ ### Patch Changes
1429
+
1430
+ - effect-app@4.0.0-beta.67
1431
+
1432
+ ## 4.0.0-beta.66
1433
+
1434
+ ### Patch Changes
1435
+
1436
+ - Updated dependencies [edc52e4]
1437
+ - effect-app@4.0.0-beta.66
1438
+
1439
+ ## 4.0.0-beta.65
1440
+
1441
+ ### Patch Changes
1442
+
1443
+ - Updated dependencies [31739d7]
1444
+ - Updated dependencies [1f103b2]
1445
+ - effect-app@4.0.0-beta.65
1446
+
1447
+ ## 4.0.0-beta.64
1448
+
1449
+ ### Patch Changes
1450
+
1451
+ - Updated dependencies [c1a6fdc]
1452
+ - effect-app@4.0.0-beta.64
1453
+
1454
+ ## 4.0.0-beta.63
1455
+
1456
+ ### Patch Changes
1457
+
1458
+ - 1f9d7da: fix missing toCodecJson usages
1459
+ - effect-app@4.0.0-beta.63
1460
+
1461
+ ## 4.0.0-beta.62
1462
+
1463
+ ### Patch Changes
1464
+
1465
+ - Updated dependencies [0b21a02]
1466
+ - effect-app@4.0.0-beta.62
1467
+
1468
+ ## 4.0.0-beta.61
1469
+
1470
+ ### Patch Changes
1471
+
1472
+ - effect-app@4.0.0-beta.61
1473
+
1474
+ ## 4.0.0-beta.60
1475
+
1476
+ ### Patch Changes
1477
+
1478
+ - 29c39d2: Fix repository `find` with transformed id fields in tagged union schemas
1479
+ - effect-app@4.0.0-beta.60
1480
+
1481
+ ## 4.0.0-beta.59
1482
+
1483
+ ### Patch Changes
1484
+
1485
+ - cec026d: update packages
1486
+ - Updated dependencies [cec026d]
1487
+ - effect-app@4.0.0-beta.59
1488
+
1489
+ ## 4.0.0-beta.58
1490
+
1491
+ ### Patch Changes
1492
+
1493
+ - effect-app@4.0.0-beta.58
1494
+
1495
+ ## 4.0.0-beta.57
1496
+
1497
+ ### Patch Changes
1498
+
1499
+ - fbf47b8: Fix repository `find` with transformed id fields (e.g. composite ids using `decodeTo`)
1500
+ - effect-app@4.0.0-beta.57
1501
+
1502
+ ## 4.0.0-beta.56
1503
+
1504
+ ### Patch Changes
1505
+
1506
+ - effect-app@4.0.0-beta.56
1507
+
1508
+ ## 4.0.0-beta.55
1509
+
1510
+ ### Patch Changes
1511
+
1512
+ - effect-app@4.0.0-beta.55
1513
+
1514
+ ## 4.0.0-beta.54
1515
+
1516
+ ### Patch Changes
1517
+
1518
+ - d867272: the return of `Context`
1519
+ - Updated dependencies [d867272]
1520
+ - effect-app@4.0.0-beta.54
1521
+
1522
+ ## 4.0.0-beta.53
1523
+
1524
+ ### Patch Changes
1525
+
1526
+ - Updated dependencies [ee9694e]
1527
+ - effect-app@4.0.0-beta.53
1528
+
1529
+ ## 4.0.0-beta.52
1530
+
1531
+ ### Patch Changes
1532
+
1533
+ - Updated dependencies [6252808]
1534
+ - effect-app@4.0.0-beta.52
1535
+
1536
+ ## 4.0.0-beta.51
1537
+
1538
+ ### Patch Changes
1539
+
1540
+ - effect-app@4.0.0-beta.51
1541
+
1542
+ ## 4.0.0-beta.50
1543
+
1544
+ ### Patch Changes
1545
+
1546
+ - effect-app@4.0.0-beta.50
1547
+
1548
+ ## 4.0.0-beta.49
1549
+
1550
+ ### Patch Changes
1551
+
1552
+ - Updated dependencies [e585c9c]
1553
+ - effect-app@4.0.0-beta.49
1554
+
1555
+ ## 4.0.0-beta.48
1556
+
1557
+ ### Patch Changes
1558
+
1559
+ - Updated dependencies [0c88f78]
1560
+ - effect-app@4.0.0-beta.48
1561
+
1562
+ ## 4.0.0-beta.47
1563
+
1564
+ ### Patch Changes
1565
+
1566
+ - Updated dependencies [3365758]
1567
+ - effect-app@4.0.0-beta.47
1568
+
1569
+ ## 4.0.0-beta.46
1570
+
1571
+ ### Patch Changes
1572
+
1573
+ - effect-app@4.0.0-beta.46
1574
+
1575
+ ## 4.0.0-beta.45
1576
+
1577
+ ### Patch Changes
1578
+
1579
+ - 10b55ff: update packages
1580
+ - Updated dependencies [10b55ff]
1581
+ - effect-app@4.0.0-beta.45
1582
+
1583
+ ## 4.0.0-beta.44
1584
+
1585
+ ### Patch Changes
1586
+
1587
+ - a37aa38: Update to effect beta 43
1588
+ - Updated dependencies [a37aa38]
1589
+ - effect-app@4.0.0-beta.44
1590
+
1591
+ ## 4.0.0-beta.43
1592
+
1593
+ ### Patch Changes
1594
+
1595
+ - dab6992: no need for .lock.lock
1596
+ - effect-app@4.0.0-beta.43
1597
+
1598
+ ## 4.0.0-beta.42
1599
+
1600
+ ### Patch Changes
1601
+
1602
+ - effect-app@4.0.0-beta.42
1603
+
1604
+ ## 4.0.0-beta.41
1605
+
1606
+ ### Patch Changes
1607
+
1608
+ - effect-app@4.0.0-beta.41
1609
+
1610
+ ## 4.0.0-beta.40
1611
+
1612
+ ### Patch Changes
1613
+
1614
+ - effect-app@4.0.0-beta.40
1615
+
1616
+ ## 4.0.0-beta.39
1617
+
1618
+ ### Patch Changes
1619
+
1620
+ - Updated dependencies [10e90d5]
1621
+ - effect-app@4.0.0-beta.39
1622
+
1623
+ ## 4.0.0-beta.38
1624
+
1625
+ ### Patch Changes
1626
+
1627
+ - Updated dependencies [0b3e00e]
1628
+ - effect-app@4.0.0-beta.38
1629
+
1630
+ ## 4.0.0-beta.37
1631
+
1632
+ ### Patch Changes
1633
+
1634
+ - Updated dependencies [947fe20]
1635
+ - effect-app@4.0.0-beta.37
1636
+
1637
+ ## 4.0.0-beta.36
1638
+
1639
+ ### Patch Changes
1640
+
1641
+ - effect-app@4.0.0-beta.36
1642
+
1643
+ ## 4.0.0-beta.35
1644
+
1645
+ ### Patch Changes
1646
+
1647
+ - effect-app@4.0.0-beta.35
1648
+
1649
+ ## 4.0.0-beta.34
1650
+
1651
+ ### Patch Changes
1652
+
1653
+ - 8c645d5: update to latest effect
1654
+ - Updated dependencies [8c645d5]
1655
+ - effect-app@4.0.0-beta.34
1656
+
1657
+ ## 4.0.0-beta.33
1658
+
1659
+ ### Patch Changes
1660
+
1661
+ - 4b95009: use Finite instead of Number
1662
+ - Updated dependencies [4b95009]
1663
+ - effect-app@4.0.0-beta.33
1664
+
1665
+ ## 4.0.0-beta.32
1666
+
1667
+ ### Patch Changes
1668
+
1669
+ - Updated dependencies [01d862a]
1670
+ - effect-app@4.0.0-beta.32
1671
+
1672
+ ## 4.0.0-beta.31
1673
+
1674
+ ### Patch Changes
1675
+
1676
+ - Updated dependencies [6b6d601]
1677
+ - effect-app@4.0.0-beta.31
1678
+
1679
+ ## 4.0.0-beta.30
1680
+
1681
+ ### Patch Changes
1682
+
1683
+ - Updated dependencies [5ec1f45]
1684
+ - effect-app@4.0.0-beta.30
1685
+
1686
+ ## 4.0.0-beta.29
1687
+
1688
+ ### Patch Changes
1689
+
1690
+ - Updated dependencies [a899d46]
1691
+ - effect-app@4.0.0-beta.29
1692
+
1693
+ ## 4.0.0-beta.28
1694
+
1695
+ ### Patch Changes
1696
+
1697
+ - Updated dependencies [0099208]
1698
+ - effect-app@4.0.0-beta.28
1699
+
1700
+ ## 4.0.0-beta.27
1701
+
1702
+ ### Patch Changes
1703
+
1704
+ - 601a1ff: update effect to 4.0.0-beta.37 and drop the Schema Class disableValidation workaround now that the patched effect schema covers it
1705
+ - Updated dependencies [601a1ff]
1706
+ - effect-app@4.0.0-beta.27
1707
+
1708
+ ## 4.0.0-beta.26
1709
+
1710
+ ### Patch Changes
1711
+
1712
+ - Updated dependencies [4da28e2]
1713
+ - effect-app@4.0.0-beta.26
1714
+
1715
+ ## 4.0.0-beta.25
1716
+
1717
+ ### Patch Changes
1718
+
1719
+ - Updated dependencies [6282d4b]
1720
+ - effect-app@4.0.0-beta.25
1721
+
1722
+ ## 4.0.0-beta.24
1723
+
1724
+ ### Patch Changes
1725
+
1726
+ - Updated dependencies [32f71bf]
1727
+ - effect-app@4.0.0-beta.24
1728
+
3
1729
  ## 4.0.0-beta.23
4
1730
 
5
1731
  ### Patch Changes