@effect-app/infra 4.0.0-beta.26 → 4.0.0-beta.261

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