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

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