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

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