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

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