@effect-app/infra 4.0.0-beta.31 → 4.0.0-beta.310

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 (473) hide show
  1. package/CHANGELOG.md +2361 -0
  2. package/_check.sh +1 -1
  3. package/dist/CUPS.d.ts +29 -10
  4. package/dist/CUPS.d.ts.map +1 -1
  5. package/dist/CUPS.js +35 -14
  6. package/dist/ClusterCosmos.d.ts +64 -0
  7. package/dist/ClusterCosmos.d.ts.map +1 -0
  8. package/dist/ClusterCosmos.js +547 -0
  9. package/dist/ClusterServiceBus.d.ts +67 -0
  10. package/dist/ClusterServiceBus.d.ts.map +1 -0
  11. package/dist/ClusterServiceBus.js +82 -0
  12. package/dist/ContextProvider.d.ts +34 -0
  13. package/dist/ContextProvider.d.ts.map +1 -0
  14. package/dist/ContextProvider.js +40 -0
  15. package/dist/Emailer/Sendgrid.d.ts +110 -146
  16. package/dist/Emailer/Sendgrid.d.ts.map +1 -1
  17. package/dist/Emailer/Sendgrid.js +24 -19
  18. package/dist/Emailer/fake.d.ts +1 -1
  19. package/dist/Emailer/fake.d.ts.map +1 -1
  20. package/dist/Emailer/fake.js +4 -4
  21. package/dist/MainFiberSet.d.ts +12 -8
  22. package/dist/MainFiberSet.d.ts.map +1 -1
  23. package/dist/MainFiberSet.js +23 -7
  24. package/dist/QueueMaker/errors.d.ts +4 -2
  25. package/dist/QueueMaker/errors.d.ts.map +1 -1
  26. package/dist/QueueMaker/errors.js +4 -2
  27. package/dist/{adapters/SQL → SQL}/Model.d.ts +31 -42
  28. package/dist/SQL/Model.d.ts.map +1 -0
  29. package/dist/SQL/Model.js +469 -0
  30. package/dist/SQL.d.ts.map +1 -0
  31. package/dist/{adapters/SQL.js → SQL.js} +1 -1
  32. package/dist/Store/Cosmos/query.d.ts +14 -3
  33. package/dist/Store/Cosmos/query.d.ts.map +1 -1
  34. package/dist/Store/Cosmos/query.js +179 -41
  35. package/dist/Store/Cosmos.d.ts +2 -2
  36. package/dist/Store/Cosmos.d.ts.map +1 -1
  37. package/dist/Store/Cosmos.js +385 -254
  38. package/dist/Store/Disk.d.ts +4 -4
  39. package/dist/Store/Disk.d.ts.map +1 -1
  40. package/dist/Store/Disk.js +79 -39
  41. package/dist/Store/Memory.d.ts +5 -9
  42. package/dist/Store/Memory.d.ts.map +1 -1
  43. package/dist/Store/Memory.js +324 -67
  44. package/dist/Store/SQL/Pg.d.ts +4 -0
  45. package/dist/Store/SQL/Pg.d.ts.map +1 -0
  46. package/dist/Store/SQL/Pg.js +253 -0
  47. package/dist/Store/SQL/query.d.ts +49 -0
  48. package/dist/Store/SQL/query.d.ts.map +1 -0
  49. package/dist/Store/SQL/query.js +527 -0
  50. package/dist/Store/SQL.d.ts +21 -0
  51. package/dist/Store/SQL.d.ts.map +1 -0
  52. package/dist/Store/SQL.js +472 -0
  53. package/dist/Store/codeFilter.d.ts +4 -4
  54. package/dist/Store/codeFilter.d.ts.map +1 -1
  55. package/dist/Store/codeFilter.js +6 -4
  56. package/dist/Store/index.d.ts +6 -4
  57. package/dist/Store/index.d.ts.map +1 -1
  58. package/dist/Store/index.js +18 -5
  59. package/dist/Store/utils.d.ts +5 -2
  60. package/dist/Store/utils.d.ts.map +1 -1
  61. package/dist/Store/utils.js +9 -5
  62. package/dist/WorkflowEngineCosmos.d.ts +29 -0
  63. package/dist/WorkflowEngineCosmos.d.ts.map +1 -0
  64. package/dist/WorkflowEngineCosmos.js +542 -0
  65. package/dist/WorkflowEngineSqlite.d.ts +24 -0
  66. package/dist/WorkflowEngineSqlite.d.ts.map +1 -0
  67. package/dist/WorkflowEngineSqlite.js +550 -0
  68. package/dist/arbs.d.ts +1 -1
  69. package/dist/arbs.d.ts.map +1 -1
  70. package/dist/arbs.js +5 -3
  71. package/dist/codec.d.ts.map +1 -0
  72. package/dist/codec.js +5 -0
  73. package/dist/{adapters/cosmos-client.d.ts → cosmos-client.d.ts} +4 -2
  74. package/dist/cosmos-client.d.ts.map +1 -0
  75. package/dist/cosmos-client.js +11 -0
  76. package/dist/errorReporter.d.ts +6 -4
  77. package/dist/errorReporter.d.ts.map +1 -1
  78. package/dist/errorReporter.js +23 -27
  79. package/dist/fileUtil.d.ts +1 -1
  80. package/dist/fileUtil.d.ts.map +1 -1
  81. package/dist/fileUtil.js +2 -2
  82. package/dist/index.d.ts +2 -1
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +3 -2
  85. package/dist/internal/RequestContextMiddleware.d.ts +5 -0
  86. package/dist/internal/RequestContextMiddleware.d.ts.map +1 -0
  87. package/dist/internal/RequestContextMiddleware.js +45 -0
  88. package/dist/internal/auth.d.ts +53 -0
  89. package/dist/internal/auth.d.ts.map +1 -0
  90. package/dist/internal/auth.js +180 -0
  91. package/dist/internal/events.d.ts +11 -0
  92. package/dist/internal/events.d.ts.map +1 -0
  93. package/dist/internal/events.js +49 -0
  94. package/dist/internal/health.d.ts.map +1 -0
  95. package/dist/internal/health.js +5 -0
  96. package/dist/{api/layerUtils.d.ts → layerUtils.d.ts} +14 -6
  97. package/dist/layerUtils.d.ts.map +1 -0
  98. package/dist/layerUtils.js +17 -0
  99. package/dist/logger/jsonLogger.d.ts +1 -1
  100. package/dist/logger/jsonLogger.d.ts.map +1 -1
  101. package/dist/logger/jsonLogger.js +5 -3
  102. package/dist/logger/logFmtLogger.d.ts +1 -1
  103. package/dist/logger/logFmtLogger.d.ts.map +1 -1
  104. package/dist/logger/logFmtLogger.js +3 -3
  105. package/dist/logger/shared.d.ts +2 -2
  106. package/dist/logger/shared.d.ts.map +1 -1
  107. package/dist/logger/shared.js +5 -5
  108. package/dist/logger.d.ts.map +1 -1
  109. package/dist/middlewares.d.ts.map +1 -0
  110. package/dist/{api/middlewares.js → middlewares.js} +1 -1
  111. package/dist/{adapters/mongo-client.d.ts → mongo-client.d.ts} +3 -2
  112. package/dist/mongo-client.d.ts.map +1 -0
  113. package/dist/mongo-client.js +15 -0
  114. package/dist/otel.d.ts +75 -0
  115. package/dist/otel.d.ts.map +1 -0
  116. package/dist/otel.js +84 -0
  117. package/dist/rateLimit.d.ts +11 -3
  118. package/dist/rateLimit.d.ts.map +1 -1
  119. package/dist/rateLimit.js +7 -12
  120. package/dist/{adapters/redis-client.d.ts → redis-client.d.ts} +5 -2
  121. package/dist/redis-client.d.ts.map +1 -0
  122. package/dist/redis-client.js +98 -0
  123. package/dist/{api/reportError.d.ts → reportError.d.ts} +1 -1
  124. package/dist/reportError.d.ts.map +1 -0
  125. package/dist/reportError.js +28 -0
  126. package/dist/{api/routing → routing}/middleware/RouterMiddleware.d.ts +4 -3
  127. package/dist/routing/middleware/RouterMiddleware.d.ts.map +1 -0
  128. package/dist/{api/routing → routing}/middleware/RouterMiddleware.js +1 -1
  129. package/dist/routing/middleware/middleware.d.ts +48 -0
  130. package/dist/routing/middleware/middleware.d.ts.map +1 -0
  131. package/dist/routing/middleware/middleware.js +152 -0
  132. package/dist/{api/routing → routing}/middleware.d.ts +0 -1
  133. package/dist/routing/middleware.d.ts.map +1 -0
  134. package/dist/{api/routing → routing}/middleware.js +1 -2
  135. package/dist/routing/schema/jwt.d.ts.map +1 -0
  136. package/dist/routing/schema/jwt.js +13 -0
  137. package/dist/routing/tsort.d.ts.map +1 -0
  138. package/dist/routing/tsort.js +51 -0
  139. package/dist/{api/routing → routing}/utils.d.ts +3 -3
  140. package/dist/routing/utils.d.ts.map +1 -0
  141. package/dist/routing/utils.js +45 -0
  142. package/dist/routing.d.ts +182 -0
  143. package/dist/routing.d.ts.map +1 -0
  144. package/dist/routing.js +256 -0
  145. package/dist/test.d.ts +2 -2
  146. package/dist/test.d.ts.map +1 -1
  147. package/dist/test.js +2 -2
  148. package/dist/util.d.ts.map +1 -0
  149. package/dist/util.js +14 -0
  150. package/docs/cluster-storage.md +26 -0
  151. package/docs/workflow-engine.md +262 -0
  152. package/examples/query.ts +47 -39
  153. package/package.json +38 -352
  154. package/src/CUPS.ts +53 -14
  155. package/src/ClusterCosmos.ts +1118 -0
  156. package/src/ClusterServiceBus.ts +242 -0
  157. package/src/{api/ContextProvider.ts → ContextProvider.ts} +20 -17
  158. package/src/Emailer/Sendgrid.ts +83 -60
  159. package/src/Emailer/fake.ts +4 -4
  160. package/src/MainFiberSet.ts +32 -13
  161. package/src/QueueMaker/errors.ts +3 -1
  162. package/src/{adapters/SQL → SQL}/Model.ts +42 -41
  163. package/src/SQL.ts +1 -0
  164. package/src/Store/Cosmos/query.ts +218 -54
  165. package/src/Store/Cosmos.ts +529 -365
  166. package/src/Store/Disk.ts +112 -70
  167. package/src/Store/Memory.ts +365 -99
  168. package/src/Store/SQL/Pg.ts +389 -0
  169. package/src/Store/SQL/query.ts +603 -0
  170. package/src/Store/SQL.ts +766 -0
  171. package/src/Store/codeFilter.ts +8 -6
  172. package/src/Store/index.ts +25 -10
  173. package/src/Store/utils.ts +32 -25
  174. package/src/WorkflowEngineCosmos.ts +749 -0
  175. package/src/WorkflowEngineSqlite.ts +813 -0
  176. package/src/arbs.ts +5 -3
  177. package/src/{adapters/cosmos-client.ts → cosmos-client.ts} +5 -3
  178. package/src/errorReporter.ts +68 -78
  179. package/src/fileUtil.ts +1 -1
  180. package/src/index.ts +2 -1
  181. package/src/{api/internal → internal}/RequestContextMiddleware.ts +23 -6
  182. package/src/internal/auth.ts +272 -0
  183. package/src/{api/internal → internal}/events.ts +22 -13
  184. package/src/{api/layerUtils.ts → layerUtils.ts} +14 -10
  185. package/src/logger/jsonLogger.ts +5 -3
  186. package/src/logger/logFmtLogger.ts +3 -3
  187. package/src/logger/shared.ts +5 -4
  188. package/src/middlewares.ts +10 -0
  189. package/src/{adapters/mongo-client.ts → mongo-client.ts} +4 -2
  190. package/src/otel.ts +177 -0
  191. package/src/rateLimit.ts +34 -23
  192. package/src/{adapters/redis-client.ts → redis-client.ts} +7 -3
  193. package/src/{api/reportError.ts → reportError.ts} +3 -2
  194. package/src/{api/routing → routing}/middleware/RouterMiddleware.ts +5 -4
  195. package/src/routing/middleware/middleware.ts +196 -0
  196. package/src/routing/middleware.ts +4 -0
  197. package/src/{api/routing → routing}/schema/jwt.ts +2 -1
  198. package/src/{api/routing → routing}/utils.ts +2 -1
  199. package/src/routing.ts +823 -0
  200. package/src/test.ts +4 -4
  201. package/src/vitest.ts +1 -1
  202. package/test/auth.test.ts +101 -0
  203. package/test/cluster-cosmos.test.ts +612 -0
  204. package/test/cluster-servicebus.test.ts +180 -0
  205. package/test/cluster-sqlite.test.ts +205 -0
  206. package/test/contextProvider.test.ts +15 -12
  207. package/test/controller.test.ts +28 -32
  208. package/test/cosmos-query.test.ts +228 -0
  209. package/test/dist/auth.test.d.ts.map +1 -0
  210. package/test/dist/cluster-cosmos.test.d.ts.map +1 -0
  211. package/test/dist/cluster-servicebus.test.d.ts.map +1 -0
  212. package/test/dist/cluster-sqlite.test.d.ts.map +1 -0
  213. package/test/dist/contextProvider.test.d.ts.map +1 -1
  214. package/test/dist/controller.test.d.ts.map +1 -1
  215. package/test/dist/cosmos-query.test.d.ts.map +1 -0
  216. package/test/dist/fixtures.d.ts +29 -11
  217. package/test/dist/fixtures.d.ts.map +1 -1
  218. package/test/dist/fixtures.js +17 -10
  219. package/test/dist/query.test.d.ts.map +1 -1
  220. package/test/dist/rawQuery.test.d.ts.map +1 -1
  221. package/test/dist/repository-ext.test.d.ts.map +1 -0
  222. package/test/dist/requires.test.d.ts.map +1 -1
  223. package/test/dist/router-generator.test.d.ts.map +1 -0
  224. package/test/dist/routing-interruptibility.test.d.ts.map +1 -0
  225. package/test/dist/rpc-context-map-streaming.test.d.ts.map +1 -0
  226. package/test/dist/rpc-e2e-invalidation.test.d.ts.map +1 -0
  227. package/test/dist/rpc-multi-middleware.test.d.ts.map +1 -1
  228. package/test/dist/rpc-stream-fullstack.test.d.ts.map +1 -0
  229. package/test/dist/sql-store.test.d.ts.map +1 -0
  230. package/test/dist/workflow-engine-cosmos.test.d.ts.map +1 -0
  231. package/test/dist/workflow-engine-sqlite.test.d.ts.map +1 -0
  232. package/test/fixtures.ts +16 -9
  233. package/test/layerUtils.test.ts +2 -2
  234. package/test/query.test.ts +1130 -41
  235. package/test/rawQuery.test.ts +340 -22
  236. package/test/repository-ext.test.ts +426 -0
  237. package/test/requires.test.ts +10 -5
  238. package/test/router-generator.test.ts +187 -0
  239. package/test/routing-interruptibility.test.ts +66 -0
  240. package/test/rpc-context-map-streaming.test.ts +262 -0
  241. package/test/rpc-e2e-invalidation.test.ts +418 -0
  242. package/test/rpc-multi-middleware.test.ts +85 -10
  243. package/test/rpc-stream-fullstack.test.ts +304 -0
  244. package/test/sql-store.test.ts +1711 -0
  245. package/test/validateSample.test.ts +26 -14
  246. package/test/workflow-engine-cosmos.test.ts +345 -0
  247. package/test/workflow-engine-sqlite.test.ts +297 -0
  248. package/tsconfig.examples.json +1 -1
  249. package/tsconfig.json +9 -2
  250. package/tsconfig.src.json +35 -35
  251. package/tsconfig.test.json +2 -2
  252. package/dist/Emailer/service.d.ts +0 -55
  253. package/dist/Emailer/service.d.ts.map +0 -1
  254. package/dist/Emailer/service.js +0 -6
  255. package/dist/Emailer.d.ts +0 -2
  256. package/dist/Emailer.d.ts.map +0 -1
  257. package/dist/Emailer.js +0 -2
  258. package/dist/Model/Repository/ext.d.ts +0 -41
  259. package/dist/Model/Repository/ext.d.ts.map +0 -1
  260. package/dist/Model/Repository/ext.js +0 -65
  261. package/dist/Model/Repository/internal/internal.d.ts +0 -59
  262. package/dist/Model/Repository/internal/internal.d.ts.map +0 -1
  263. package/dist/Model/Repository/internal/internal.js +0 -316
  264. package/dist/Model/Repository/legacy.d.ts +0 -19
  265. package/dist/Model/Repository/legacy.d.ts.map +0 -1
  266. package/dist/Model/Repository/legacy.js +0 -2
  267. package/dist/Model/Repository/makeRepo.d.ts +0 -49
  268. package/dist/Model/Repository/makeRepo.d.ts.map +0 -1
  269. package/dist/Model/Repository/makeRepo.js +0 -24
  270. package/dist/Model/Repository/service.d.ts +0 -89
  271. package/dist/Model/Repository/service.d.ts.map +0 -1
  272. package/dist/Model/Repository/service.js +0 -2
  273. package/dist/Model/Repository/validation.d.ts +0 -42
  274. package/dist/Model/Repository/validation.d.ts.map +0 -1
  275. package/dist/Model/Repository/validation.js +0 -32
  276. package/dist/Model/Repository.d.ts +0 -6
  277. package/dist/Model/Repository.d.ts.map +0 -1
  278. package/dist/Model/Repository.js +0 -6
  279. package/dist/Model/dsl.d.ts +0 -32
  280. package/dist/Model/dsl.d.ts.map +0 -1
  281. package/dist/Model/dsl.js +0 -44
  282. package/dist/Model/filter/filterApi.d.ts +0 -30
  283. package/dist/Model/filter/filterApi.d.ts.map +0 -1
  284. package/dist/Model/filter/filterApi.js +0 -2
  285. package/dist/Model/filter/types/errors.d.ts +0 -29
  286. package/dist/Model/filter/types/errors.d.ts.map +0 -1
  287. package/dist/Model/filter/types/errors.js +0 -2
  288. package/dist/Model/filter/types/fields.d.ts +0 -15
  289. package/dist/Model/filter/types/fields.d.ts.map +0 -1
  290. package/dist/Model/filter/types/fields.js +0 -2
  291. package/dist/Model/filter/types/path/common.d.ts +0 -316
  292. package/dist/Model/filter/types/path/common.d.ts.map +0 -1
  293. package/dist/Model/filter/types/path/common.js +0 -2
  294. package/dist/Model/filter/types/path/eager.d.ts +0 -95
  295. package/dist/Model/filter/types/path/eager.d.ts.map +0 -1
  296. package/dist/Model/filter/types/path/eager.js +0 -31
  297. package/dist/Model/filter/types/path/index.d.ts +0 -4
  298. package/dist/Model/filter/types/path/index.d.ts.map +0 -1
  299. package/dist/Model/filter/types/path/index.js +0 -3
  300. package/dist/Model/filter/types/utils.d.ts +0 -79
  301. package/dist/Model/filter/types/utils.d.ts.map +0 -1
  302. package/dist/Model/filter/types/utils.js +0 -2
  303. package/dist/Model/filter/types/validator.d.ts +0 -30
  304. package/dist/Model/filter/types/validator.d.ts.map +0 -1
  305. package/dist/Model/filter/types/validator.js +0 -2
  306. package/dist/Model/filter/types.d.ts +0 -5
  307. package/dist/Model/filter/types.d.ts.map +0 -1
  308. package/dist/Model/filter/types.js +0 -7
  309. package/dist/Model/query/dsl.d.ts +0 -248
  310. package/dist/Model/query/dsl.d.ts.map +0 -1
  311. package/dist/Model/query/dsl.js +0 -104
  312. package/dist/Model/query/new-kid-interpreter.d.ts +0 -28
  313. package/dist/Model/query/new-kid-interpreter.d.ts.map +0 -1
  314. package/dist/Model/query/new-kid-interpreter.js +0 -165
  315. package/dist/Model/query.d.ts +0 -15
  316. package/dist/Model/query.d.ts.map +0 -1
  317. package/dist/Model/query.js +0 -3
  318. package/dist/Model.d.ts +0 -4
  319. package/dist/Model.d.ts.map +0 -1
  320. package/dist/Model.js +0 -4
  321. package/dist/Operations.d.ts +0 -55
  322. package/dist/Operations.d.ts.map +0 -1
  323. package/dist/Operations.js +0 -102
  324. package/dist/OperationsRepo.d.ts +0 -41
  325. package/dist/OperationsRepo.d.ts.map +0 -1
  326. package/dist/OperationsRepo.js +0 -14
  327. package/dist/QueueMaker/SQLQueue.d.ts +0 -16
  328. package/dist/QueueMaker/SQLQueue.d.ts.map +0 -1
  329. package/dist/QueueMaker/SQLQueue.js +0 -130
  330. package/dist/QueueMaker/memQueue.d.ts +0 -11
  331. package/dist/QueueMaker/memQueue.d.ts.map +0 -1
  332. package/dist/QueueMaker/memQueue.js +0 -76
  333. package/dist/QueueMaker/sbqueue.d.ts +0 -12
  334. package/dist/QueueMaker/sbqueue.d.ts.map +0 -1
  335. package/dist/QueueMaker/sbqueue.js +0 -91
  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/RequestFiberSet.d.ts +0 -36
  343. package/dist/RequestFiberSet.d.ts.map +0 -1
  344. package/dist/RequestFiberSet.js +0 -78
  345. package/dist/Store/ContextMapContainer.d.ts +0 -14
  346. package/dist/Store/ContextMapContainer.d.ts.map +0 -1
  347. package/dist/Store/ContextMapContainer.js +0 -16
  348. package/dist/Store/service.d.ts +0 -108
  349. package/dist/Store/service.d.ts.map +0 -1
  350. package/dist/Store/service.js +0 -71
  351. package/dist/Store.d.ts +0 -2
  352. package/dist/Store.d.ts.map +0 -1
  353. package/dist/Store.js +0 -2
  354. package/dist/adapters/SQL/Model.d.ts.map +0 -1
  355. package/dist/adapters/SQL/Model.js +0 -478
  356. package/dist/adapters/SQL.d.ts.map +0 -1
  357. package/dist/adapters/ServiceBus.d.ts +0 -58
  358. package/dist/adapters/ServiceBus.d.ts.map +0 -1
  359. package/dist/adapters/ServiceBus.js +0 -99
  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.map +0 -1
  372. package/dist/adapters/mongo-client.js +0 -13
  373. package/dist/adapters/redis-client.d.ts.map +0 -1
  374. package/dist/adapters/redis-client.js +0 -94
  375. package/dist/api/ContextProvider.d.ts +0 -31
  376. package/dist/api/ContextProvider.d.ts.map +0 -1
  377. package/dist/api/ContextProvider.js +0 -38
  378. package/dist/api/codec.d.ts.map +0 -1
  379. package/dist/api/codec.js +0 -5
  380. package/dist/api/internal/RequestContextMiddleware.d.ts +0 -5
  381. package/dist/api/internal/RequestContextMiddleware.d.ts.map +0 -1
  382. package/dist/api/internal/RequestContextMiddleware.js +0 -35
  383. package/dist/api/internal/auth.d.ts +0 -15
  384. package/dist/api/internal/auth.d.ts.map +0 -1
  385. package/dist/api/internal/auth.js +0 -47
  386. package/dist/api/internal/events.d.ts +0 -9
  387. package/dist/api/internal/events.d.ts.map +0 -1
  388. package/dist/api/internal/events.js +0 -42
  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.map +0 -1
  392. package/dist/api/layerUtils.js +0 -16
  393. package/dist/api/middlewares.d.ts.map +0 -1
  394. package/dist/api/reportError.d.ts.map +0 -1
  395. package/dist/api/reportError.js +0 -27
  396. package/dist/api/routing/middleware/RouterMiddleware.d.ts.map +0 -1
  397. package/dist/api/routing/middleware/middleware.d.ts +0 -9
  398. package/dist/api/routing/middleware/middleware.d.ts.map +0 -1
  399. package/dist/api/routing/middleware/middleware.js +0 -92
  400. package/dist/api/routing/middleware.d.ts.map +0 -1
  401. package/dist/api/routing/schema/jwt.d.ts.map +0 -1
  402. package/dist/api/routing/schema/jwt.js +0 -12
  403. package/dist/api/routing/tsort.d.ts.map +0 -1
  404. package/dist/api/routing/tsort.js +0 -51
  405. package/dist/api/routing/utils.d.ts.map +0 -1
  406. package/dist/api/routing/utils.js +0 -44
  407. package/dist/api/routing.d.ts +0 -138
  408. package/dist/api/routing.d.ts.map +0 -1
  409. package/dist/api/routing.js +0 -166
  410. package/dist/api/setupRequest.d.ts +0 -12
  411. package/dist/api/setupRequest.d.ts.map +0 -1
  412. package/dist/api/setupRequest.js +0 -44
  413. package/dist/api/util.d.ts.map +0 -1
  414. package/dist/api/util.js +0 -14
  415. package/eslint.config.mjs +0 -24
  416. package/src/Emailer/service.ts +0 -52
  417. package/src/Emailer.ts +0 -1
  418. package/src/Model/Repository/ext.ts +0 -283
  419. package/src/Model/Repository/internal/internal.ts +0 -577
  420. package/src/Model/Repository/legacy.ts +0 -27
  421. package/src/Model/Repository/makeRepo.ts +0 -139
  422. package/src/Model/Repository/service.ts +0 -627
  423. package/src/Model/Repository/validation.ts +0 -31
  424. package/src/Model/Repository.ts +0 -5
  425. package/src/Model/dsl.ts +0 -128
  426. package/src/Model/filter/filterApi.ts +0 -60
  427. package/src/Model/filter/types/errors.ts +0 -47
  428. package/src/Model/filter/types/fields.ts +0 -50
  429. package/src/Model/filter/types/path/common.ts +0 -404
  430. package/src/Model/filter/types/path/eager.ts +0 -298
  431. package/src/Model/filter/types/path/index.ts +0 -4
  432. package/src/Model/filter/types/utils.ts +0 -128
  433. package/src/Model/filter/types/validator.ts +0 -46
  434. package/src/Model/filter/types.ts +0 -6
  435. package/src/Model/query/dsl.ts +0 -2110
  436. package/src/Model/query/new-kid-interpreter.ts +0 -210
  437. package/src/Model/query.ts +0 -13
  438. package/src/Model.ts +0 -3
  439. package/src/Operations.ts +0 -235
  440. package/src/OperationsRepo.ts +0 -16
  441. package/src/QueueMaker/SQLQueue.ts +0 -189
  442. package/src/QueueMaker/memQueue.ts +0 -130
  443. package/src/QueueMaker/sbqueue.ts +0 -137
  444. package/src/QueueMaker/service.ts +0 -17
  445. package/src/RequestContext.ts +0 -63
  446. package/src/RequestFiberSet.ts +0 -105
  447. package/src/Store/ContextMapContainer.ts +0 -20
  448. package/src/Store/index.test.ts.bak +0 -112
  449. package/src/Store/service.ts +0 -184
  450. package/src/Store.ts +0 -1
  451. package/src/adapters/SQL.ts +0 -1
  452. package/src/adapters/ServiceBus.ts +0 -209
  453. package/src/adapters/index.ts +0 -0
  454. package/src/adapters/logger.ts +0 -3
  455. package/src/adapters/memQueue.ts +0 -21
  456. package/src/api/internal/auth.ts +0 -68
  457. package/src/api/middlewares.ts +0 -10
  458. package/src/api/routing/middleware/middleware.ts +0 -128
  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/tsconfig.json.bak +0 -12
  463. /package/dist/{adapters/SQL.d.ts → SQL.d.ts} +0 -0
  464. /package/dist/{api/codec.d.ts → codec.d.ts} +0 -0
  465. /package/dist/{api/internal → internal}/health.d.ts +0 -0
  466. /package/dist/{api/middlewares.d.ts → middlewares.d.ts} +0 -0
  467. /package/dist/{api/routing → routing}/schema/jwt.d.ts +0 -0
  468. /package/dist/{api/routing → routing}/tsort.d.ts +0 -0
  469. /package/dist/{api/util.d.ts → util.d.ts} +0 -0
  470. /package/src/{api/codec.ts → codec.ts} +0 -0
  471. /package/src/{api/internal → internal}/health.ts +0 -0
  472. /package/src/{api/routing → routing}/tsort.ts +0 -0
  473. /package/src/{api/util.ts → util.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,2366 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 4.0.0-beta.310
4
+
5
+ ### Patch Changes
6
+
7
+ - effect-app@4.0.0-beta.310
8
+
9
+ ## 4.0.0-beta.309
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [99c43c4]
14
+ - effect-app@4.0.0-beta.309
15
+
16
+ ## 4.0.0-beta.308
17
+
18
+ ### Patch Changes
19
+
20
+ - b4d5f55: fix DatabaseError typing
21
+ - effect-app@4.0.0-beta.308
22
+
23
+ ## 4.0.0-beta.307
24
+
25
+ ### Patch Changes
26
+
27
+ - 40585ca: Keep tag-aware `ProjectableFromDomain` for `projectComputed` only; restore loose key-presence guard for `project()` so view DTOs with reshaped fields keep typechecking.
28
+ - ad0ede6: Keep tag-aware `ProjectableGuard` on both `project()` and `projectComputed` (no loose key-only paper-over).
29
+
30
+ Hardening:
31
+
32
+ - single-literal tags allow dual same-tag domain variants (KeysOfUnion of matched members)
33
+ - multi-tag / string tags still require keys on every matched member
34
+ - optional projection/domain keys checked by key presence only (not optional-assignability)
35
+
36
+ Call sites must project domain-owned fields per tagged state.
37
+
38
+ - Updated dependencies [40585ca]
39
+ - Updated dependencies [ad0ede6]
40
+ - effect-app@4.0.0-beta.307
41
+
42
+ ## 4.0.0-beta.306
43
+
44
+ ### Patch Changes
45
+
46
+ - 0fe925d: Tag-aware `ProjectableFromDomain` for `projectComputed`: projection Encoded fields must exist on the matching domain tagged state (or be computed). Prevents Overview.List SchemaErrors when cancel states omit workflow lock fields like `activeRequest`.
47
+ - Updated dependencies [0fe925d]
48
+ - effect-app@4.0.0-beta.306
49
+
50
+ ## 4.0.0-beta.305
51
+
52
+ ### Patch Changes
53
+
54
+ - 8bd9a11: Support ID-scoped signal dependencies and additive repository dependencies derived from previous and current entities.
55
+ - Updated dependencies [8bd9a11]
56
+ - effect-app@4.0.0-beta.305
57
+
58
+ ## 4.0.0-beta.304
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [412f08b]
63
+ - effect-app@4.0.0-beta.304
64
+
65
+ ## 4.0.0-beta.303
66
+
67
+ ### Patch Changes
68
+
69
+ - 33b0544: Replace repository codec child spans with parent-span timing attributes and bounded metrics, and record database operation timing for instrumented stores.
70
+ - Updated dependencies [33b0544]
71
+ - effect-app@4.0.0-beta.303
72
+
73
+ ## 4.0.0-beta.302
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [c0e5a1b]
78
+ - effect-app@4.0.0-beta.302
79
+
80
+ ## 4.0.0-beta.301
81
+
82
+ ### Patch Changes
83
+
84
+ - effect-app@4.0.0-beta.301
85
+
86
+ ## 4.0.0-beta.300
87
+
88
+ ### Patch Changes
89
+
90
+ - effect-app@4.0.0-beta.300
91
+
92
+ ## 4.0.0-beta.299
93
+
94
+ ### Patch Changes
95
+
96
+ - effect-app@4.0.0-beta.299
97
+
98
+ ## 4.0.0-beta.298
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [08d092c]
103
+ - effect-app@4.0.0-beta.298
104
+
105
+ ## 4.0.0-beta.297
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [30c512d]
110
+ - effect-app@4.0.0-beta.297
111
+
112
+ ## 4.0.0-beta.296
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [e0c4835]
117
+ - effect-app@4.0.0-beta.296
118
+
119
+ ## 4.0.0-beta.295
120
+
121
+ ### Patch Changes
122
+
123
+ - eb06b32: improve root union select
124
+ - Updated dependencies [eb06b32]
125
+ - effect-app@4.0.0-beta.295
126
+
127
+ ## 4.0.0-beta.294
128
+
129
+ ### Patch Changes
130
+
131
+ - Updated dependencies [a211c12]
132
+ - effect-app@4.0.0-beta.294
133
+
134
+ ## 4.0.0-beta.293
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies [d1c15d3]
139
+ - effect-app@4.0.0-beta.293
140
+
141
+ ## 4.0.0-beta.292
142
+
143
+ ### Patch Changes
144
+
145
+ - effect-app@4.0.0-beta.292
146
+
147
+ ## 4.0.0-beta.291
148
+
149
+ ### Patch Changes
150
+
151
+ - 848d26d: Capture more of the rpc request payload in the `rpc.request.payload` span
152
+ attribute.
153
+
154
+ The summarizer was one level deep: top-level scalars were kept, but any nested
155
+ object collapsed to `Object[N]` and any array to `Array[N]`, hiding useful
156
+ inputs (carrier, packageType, dimensions, ids, per-item amounts, …).
157
+
158
+ It now recurses into nested objects up to `PAYLOAD_MAX_DEPTH` (4) and samples
159
+ arrays to their first `PAYLOAD_ARRAY_HEAD` (20) elements, appending a `…N more`
160
+ marker when longer — so item arrays stay diagnosable without dumping the whole
161
+ tail on high-frequency commands. Long strings are still snipped at 256 chars,
162
+ and `password`/`secret`/`token` keys are redacted at any depth (previously only
163
+ a top-level `password`).
164
+
165
+ - effect-app@4.0.0-beta.291
166
+
167
+ ## 4.0.0-beta.290
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [dc07df5]
172
+ - effect-app@4.0.0-beta.290
173
+
174
+ ## 4.0.0-beta.289
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies [a1b59bc]
179
+ - effect-app@4.0.0-beta.289
180
+
181
+ ## 4.0.0-beta.288
182
+
183
+ ### Patch Changes
184
+
185
+ - Updated dependencies [aeb17bc]
186
+ - effect-app@4.0.0-beta.288
187
+
188
+ ## 4.0.0-beta.287
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [261470f]
193
+ - effect-app@4.0.0-beta.287
194
+
195
+ ## 4.0.0-beta.286
196
+
197
+ ### Patch Changes
198
+
199
+ - b6dda09: Update effect packages to `4.0.0-beta.90` (from `beta.88`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`. No source changes required — typecheck and tests pass unchanged.
200
+ - Updated dependencies [b6dda09]
201
+ - effect-app@4.0.0-beta.286
202
+
203
+ ## 4.0.0-beta.285
204
+
205
+ ### Patch Changes
206
+
207
+ - 7bd8234: Use set-backed data dependencies and provide request-scoped dependency services through a shared root-checked helper.
208
+ - Updated dependencies [7bd8234]
209
+ - effect-app@4.0.0-beta.285
210
+
211
+ ## 4.0.0-beta.284
212
+
213
+ ### Patch Changes
214
+
215
+ - dd239fa: fix atom invalidation
216
+ - effect-app@4.0.0-beta.284
217
+
218
+ ## 4.0.0-beta.283
219
+
220
+ ### Minor Changes
221
+
222
+ - 0054611: Derive query invalidation from repository read/write dependencies and propagate dependency metadata through RPC clients.
223
+
224
+ ### Patch Changes
225
+
226
+ - 0054611: Stream RPC: drain read/write data-dependencies per emitted value chunk instead of sending the
227
+ cumulative set on every metadata chunk. Each metadata chunk now carries only the delta recorded
228
+ since the last chunk, the bucket is cleared for the next segment, and the terminal "done"/"error"
229
+ chunks drain the remainder. The emit condition also broadens to include non-empty reads, so stream
230
+ queries forward their read-dependencies mid-stream too. The client already accumulates deltas into
231
+ its per-call recorder, so no FE change is required.
232
+ - Updated dependencies [0054611]
233
+ - Updated dependencies [0054611]
234
+ - effect-app@4.0.0-beta.283
235
+
236
+ ## 4.0.0-beta.282
237
+
238
+ ### Patch Changes
239
+
240
+ - b2df3fa: Align `Schema.Void` with TypeScript `void` return-value semantics (effect-smol PR #2475 / `b7d46ab`).
241
+
242
+ `S.Void` now accepts **any present value** at runtime and discards it to `undefined`, while keeping the decoded/encoded type as `void` — matching a `void` return whose result callers never observe. This is implemented as an override of the AST node in a new `effect-app/SchemaAST` module (`export * from "effect/SchemaAST"` plus a `Void` subclass whose parser mirrors the PR's `fromAnyToConst(undefined)`), so there is a single canonical `Void` used everywhere, including RPC success schemas.
243
+
244
+ - New `effect-app/SchemaAST` module; internal `SchemaAST` imports across the libs now route through it.
245
+ - Removed `ForceVoid` from `effect-app/client/makeClient` — use `S.Void` directly, which now carries this behaviour.
246
+ - `S.Void_` remains available as effect's original (`undefined`-only) Void.
247
+
248
+ - f150cf9: Remove obsolete queue machinery left unused after the move to cluster entities: the SB/SQLite/mem `QueueMaker` implementations (`QueueMaker/{SQLQueue,memQueue,sbqueue}.ts`), their `ServiceBus.ts`/`memQueue.ts` transports, and `RequestFiberSet.ts` (its `setRootParentSpan` helper is inlined into `MainFiberSet`). `effect-app/QueueMaker` keeps only `QueueMeta`; the `QueueBase` interface and empty `QueueMaker` ops object are dropped.
249
+ - e8842aa: Update effect packages to `4.0.0-beta.88` (from `beta.86`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`. Also bump `@effect-app/cli` to `2.1.0-beta.35`. No source changes required — typecheck and tests pass unchanged.
250
+ - Updated dependencies [b2df3fa]
251
+ - Updated dependencies [f150cf9]
252
+ - Updated dependencies [e8842aa]
253
+ - effect-app@4.0.0-beta.282
254
+
255
+ ## 4.0.0-beta.281
256
+
257
+ ### Patch Changes
258
+
259
+ - ffd140f: Update effect packages to `4.0.0-beta.86` (from `beta.84`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`. No source changes required — typecheck and tests pass unchanged.
260
+ - Updated dependencies [ffd140f]
261
+ - effect-app@4.0.0-beta.281
262
+
263
+ ## 4.0.0-beta.280
264
+
265
+ ### Patch Changes
266
+
267
+ - Updated dependencies [3eda52e]
268
+ - effect-app@4.0.0-beta.280
269
+
270
+ ## 4.0.0-beta.279
271
+
272
+ ### Patch Changes
273
+
274
+ - Updated dependencies [5f9cd6a]
275
+ - effect-app@4.0.0-beta.279
276
+
277
+ ## 4.0.0-beta.278
278
+
279
+ ### Patch Changes
280
+
281
+ - a354345: Move release tsconfig flattening from publish to pack lifecycle so package configs are restored before registry upload/auth can fail.
282
+ - a69da09: Publish from generated staging directories so release-only files are created outside the source package tree.
283
+ - Updated dependencies [a354345]
284
+ - Updated dependencies [a69da09]
285
+ - effect-app@4.0.0-beta.278
286
+
287
+ ## 4.0.0-beta.277
288
+
289
+ ### Patch Changes
290
+
291
+ - effect-app@4.0.0-beta.277
292
+
293
+ ## 4.0.0-beta.276
294
+
295
+ ### Patch Changes
296
+
297
+ - 32f05c8: Remove unused dependency declarations from package manifests.
298
+ - Updated dependencies [32f05c8]
299
+ - effect-app@4.0.0-beta.276
300
+
301
+ ## 4.0.0-beta.275
302
+
303
+ ### Patch Changes
304
+
305
+ - effect-app@4.0.0-beta.275
306
+
307
+ ## 4.0.0-beta.274
308
+
309
+ ### Patch Changes
310
+
311
+ - effect-app@4.0.0-beta.274
312
+
313
+ ## 4.0.0-beta.273
314
+
315
+ ### Patch Changes
316
+
317
+ - Updated dependencies [664e83d]
318
+ - Updated dependencies [e4ff9a6]
319
+ - effect-app@4.0.0-beta.273
320
+
321
+ ## 4.0.0-beta.272
322
+
323
+ ### Patch Changes
324
+
325
+ - Updated dependencies [21ac90a]
326
+ - effect-app@4.0.0-beta.272
327
+
328
+ ## 4.0.0-beta.271
329
+
330
+ ### Patch Changes
331
+
332
+ - Updated dependencies [939bebc]
333
+ - effect-app@4.0.0-beta.271
334
+
335
+ ## 4.0.0-beta.270
336
+
337
+ ### Patch Changes
338
+
339
+ - 78d076a: Update effect packages to `4.0.0-beta.84` (`effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`).
340
+ - Updated dependencies [78d076a]
341
+ - effect-app@4.0.0-beta.270
342
+
343
+ ## 4.0.0-beta.269
344
+
345
+ ### Patch Changes
346
+
347
+ - Updated dependencies [50b022e]
348
+ - Updated dependencies [50b022e]
349
+ - effect-app@4.0.0-beta.269
350
+
351
+ ## 4.0.0-beta.268
352
+
353
+ ### Patch Changes
354
+
355
+ - 38289e0: Break the circular dependency between the memory store and code filter modules.
356
+ - acfdc9e: Point development package exports at TypeScript sources while keeping published exports on compiled dist files.
357
+ - Updated dependencies [acfdc9e]
358
+ - effect-app@4.0.0-beta.268
359
+
360
+ ## 4.0.0-beta.267
361
+
362
+ ### Minor Changes
363
+
364
+ - 23a7167: Add a typed, serializable `DatabaseError { message, transient, cause }` for store adapter failures.
365
+
366
+ Store adapters wrapped DB calls in bare `Effect.promise` / `.orDie`, so a transient infra failure (request timeout, throttle, 5xx, dropped socket) became a raw-`Error` defect — which `Effect.retry` can't retry and which breaks JSON encoding of a workflow exit cause ("Expected JSON value, got Error"). `DatabaseError` is now exposed on all `Store` and `Repository` method error channels (writes: `OptimisticConcurrencyException | DatabaseError`) and added to `SupportedErrors` so the api/client/FE treat it as a 500-class error. Each adapter wraps its db-call failures into `DatabaseError` with a `transient` flag (timeout/throttle/5xx ⇒ retryable); the `cause` serializes via `Schema.Defect`. Construction/seed/DDL paths stay `orDie`.
367
+
368
+ ### Patch Changes
369
+
370
+ - Updated dependencies [23a7167]
371
+ - effect-app@4.0.0-beta.267
372
+
373
+ ## 4.0.0-beta.266
374
+
375
+ ### Patch Changes
376
+
377
+ - Updated dependencies [bbaa67e]
378
+ - effect-app@4.0.0-beta.266
379
+
380
+ ## 4.0.0-beta.265
381
+
382
+ ### Patch Changes
383
+
384
+ - fce6ee9: Fix machine-id allocation in the Cosmos cluster `RunnerStorage`. It derived the machine id from a 31-multiplier string hash of the runner address, so two distinct runners could hash to the same value mod 1024 — and since the machine id feeds the Snowflake generator mod 1024, those runners would emit colliding Snowflake ids (corrupting request/reply identity across the cluster).
385
+
386
+ Machine ids are now allocated from a single counter document via an atomic server-side `incr`, mirroring SQL's auto-increment `machine_id` primary key: unique across distinct runners and stable per address (a re-registering runner reuses its persisted id). Verified against a live Cosmos account.
387
+
388
+ - be3300d: Fix correctness bugs in the Cosmos `WorkflowEngine`, found by running the adapter against a real Cosmos account. The Cosmos workflow engine now passes the same conformance suite as the in-memory and SQLite engines.
389
+
390
+ - **OCC conflicts were fatal.** `replaceExec` used `Effect.promise` + a `statusCode` check, but single-item Cosmos `replace` _throws_ on 409/412/404 (only `read` and batch ops surface the code), so every conflict became an unrecoverable defect and the `OptimisticConcurrencyException` catch was dead code. It now uses `Effect.tryPromise` and matches the thrown error (mirrors `ClusterCosmos`), so lease claims, completions, and interrupts lose gracefully under contention.
391
+ - **Illegal resource ids.** Activity/deferred/clock doc ids embedded workflow/deferred names containing `/`, which Cosmos rejects. Ids are now URI-encoded via `cosmosId` (mirrors `ClusterCosmos`).
392
+ - **Interrupt could be lost under Cosmos latency.** A concurrent `interrupt` racing a suspending driver's `onComplete` could have its `interrupted` flag swallowed (OCC) or downgraded, leaving the re-drive unable to collapse the suspension. `interrupt`/`interruptUnsafe` now persist the flag with OCC retry (`markInterrupted`), and `onComplete` never downgrades a persisted `interrupted: true`.
393
+ - **`execute` now drives unconditionally** (matching SQLite), letting `drive`'s own guard short-circuit a running/completed fiber and re-drive a suspended one, instead of skipping re-drive when a stale local entry existed.
394
+
395
+ - 3e855bc: Update Effect packages to `4.0.0-beta.83` (from `beta.74`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/sql-sqlite-node`, `@effect/atom-vue`, `@effect/vitest`.
396
+
397
+ Adapt the infra workflow engines to beta.83 API changes:
398
+
399
+ - `Schema.Defect` is now a constructor function — use `S.Defect()` when building the deferred-exit codec (the bare constant no longer produces a usable schema and crashed `toType`).
400
+ - `Workflow` exposes its name as `_tag` instead of `name`. `WorkflowEngineSqlite`/`WorkflowEngineCosmos` now key the registry, codec caches, and persisted `workflow_name` off `workflow._tag`, fixing crash-recovery (stale-lease re-drive previously registered under an `undefined` key and never matched).
401
+
402
+ - Updated dependencies [3e855bc]
403
+ - effect-app@4.0.0-beta.265
404
+
405
+ ## 4.0.0-beta.264
406
+
407
+ ### Patch Changes
408
+
409
+ - 1587bfc: Batch more Cosmos cluster storage updates.
410
+ - effect-app@4.0.0-beta.264
411
+
412
+ ## 4.0.0-beta.263
413
+
414
+ ### Patch Changes
415
+
416
+ - abb9c99: Batch Cosmos ack message processing updates.
417
+ - effect-app@4.0.0-beta.263
418
+
419
+ ## 4.0.0-beta.262
420
+
421
+ ### Patch Changes
422
+
423
+ - 55c6572: update packages
424
+ - Updated dependencies [55c6572]
425
+ - effect-app@4.0.0-beta.262
426
+
427
+ ## 4.0.0-beta.261
428
+
429
+ ### Patch Changes
430
+
431
+ - c31c673: Tighten Cosmos cluster OCC handling for concurrent node polling.
432
+ - effect-app@4.0.0-beta.261
433
+
434
+ ## 4.0.0-beta.260
435
+
436
+ ### Patch Changes
437
+
438
+ - bogus
439
+ - Updated dependencies
440
+ - effect-app@4.0.0-beta.260
441
+
442
+ ## 4.0.0-beta.259
443
+
444
+ ### Minor Changes
445
+
446
+ - 6884a32: Add Azure Service Bus topic notifications for persisted cluster storage polling.
447
+
448
+ ### Patch Changes
449
+
450
+ - 6821fc5: Add Cosmos DB backed storage layers for Effect Cluster message and runner state.
451
+ - b6cb25b: Fix Cosmos cluster workflow resume after durable deferred completion.
452
+ - effect-app@4.0.0-beta.259
453
+
454
+ ## 4.0.0-beta.258
455
+
456
+ ### Minor Changes
457
+
458
+ - 0520dd4: Add Cosmos DB backed `WorkflowEngine` adapter (`layerCosmos` in `WorkflowEngineCosmos.ts`). Persists workflow state in a single container partitioned by `executionId` so per-execution writes share a partition key (TransactionalBatch-eligible). Optimistic concurrency via `_etag` + `IfMatch` on Replace; first-writer-wins via create-only batch ops for activity results and durable-deferred completions; a persisted _suspended_ activity is overwritten via upsert on resume. Values crossing the storage boundary round-trip through `Schema` codecs (`S.fromJsonString(S.toCodecJson(...))`) using the workflow's own `payloadSchema` / `successSchema` / `errorSchema` for typed values, and the cluster engine's opaque `AnyOrVoid` codec for activity / deferred payloads. Includes time-bound lease + heartbeat fiber, scope-bound recovery poller for crashed-driver takeover, and cross-partition clock poller for restart-survivable durable timers.
459
+ - 0ddda6f: Add SQLite backed `WorkflowEngine` adapter (`layerSqlite` in `WorkflowEngineSqlite.ts`). Persists workflow state across `workflow_exec` / `workflow_activity` / `workflow_deferred` / `workflow_clock` tables via `SqlClient`. Uses `sql.withTransaction` for atomicity, etag-based optimistic concurrency (`UPDATE ... WHERE etag = ? RETURNING etag`), and `INSERT ... ON CONFLICT DO NOTHING RETURNING` for first-writer-wins on activity / deferred / clock writes. Values crossing the storage boundary round-trip through `Schema` codecs (`S.fromJsonString(S.toCodecJson(...))`) using the workflow's own `payloadSchema` / `successSchema` / `errorSchema` for typed values, and the cluster engine's opaque `AnyOrVoid` codec for activity / deferred payloads. Includes time-bound lease + heartbeat fiber, scope-bound recovery poller for crashed-driver takeover, and cross-partition clock poller for restart-survivable durable timers.
460
+
461
+ ### Patch Changes
462
+
463
+ - effect-app@4.0.0-beta.258
464
+
465
+ ## 4.0.0-beta.257
466
+
467
+ ### Patch Changes
468
+
469
+ - Updated dependencies [e71eb78]
470
+ - effect-app@4.0.0-beta.257
471
+
472
+ ## 4.0.0-beta.256
473
+
474
+ ### Patch Changes
475
+
476
+ - Updated dependencies [347af48]
477
+ - effect-app@4.0.0-beta.256
478
+
479
+ ## 4.0.0-beta.255
480
+
481
+ ### Patch Changes
482
+
483
+ - Updated dependencies [52a31dd]
484
+ - effect-app@4.0.0-beta.255
485
+
486
+ ## 4.0.0-beta.254
487
+
488
+ ### Patch Changes
489
+
490
+ - Updated dependencies [29a1e57]
491
+ - effect-app@4.0.0-beta.254
492
+
493
+ ## 4.0.0-beta.253
494
+
495
+ ### Patch Changes
496
+
497
+ - Updated dependencies [b90fa30]
498
+ - effect-app@4.0.0-beta.253
499
+
500
+ ## 4.0.0-beta.252
501
+
502
+ ### Patch Changes
503
+
504
+ - Updated dependencies [a788432]
505
+ - effect-app@4.0.0-beta.252
506
+
507
+ ## 4.0.0-beta.251
508
+
509
+ ### Patch Changes
510
+
511
+ - 1c858d3: fix request scope problems
512
+ - Updated dependencies [1c858d3]
513
+ - effect-app@4.0.0-beta.251
514
+
515
+ ## 4.0.0-beta.250
516
+
517
+ ### Patch Changes
518
+
519
+ - 3053760: fix: restore context map container behavior
520
+ - Updated dependencies [3053760]
521
+ - effect-app@4.0.0-beta.250
522
+
523
+ ## 4.0.0-beta.249
524
+
525
+ ### Major Changes
526
+
527
+ - 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.
528
+
529
+ `@effect-app/infra` no longer re-exports moved core modules such as `./Model`, `./Emailer/service`, `./QueueMaker/service`, `./Store/service`, `./adapters/*`, or `./api/*` entrypoints.
530
+
531
+ ### Patch Changes
532
+
533
+ - Updated dependencies [ba789a2]
534
+ - effect-app@4.0.0-beta.249
535
+
536
+ ## 4.0.0-beta.248
537
+
538
+ ### Patch Changes
539
+
540
+ - 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`).
541
+
542
+ 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*`).
543
+
544
+ - Updated dependencies [2a86a17]
545
+ - effect-app@4.0.0-beta.248
546
+
547
+ ## 4.0.0-beta.247
548
+
549
+ ### Patch Changes
550
+
551
+ - Updated dependencies [01bab22]
552
+ - effect-app@4.0.0-beta.247
553
+
554
+ ## 4.0.0-beta.246
555
+
556
+ ### Patch Changes
557
+
558
+ - 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.).
559
+ - effect-app@4.0.0-beta.246
560
+
561
+ ## 4.0.0-beta.245
562
+
563
+ ### Patch Changes
564
+
565
+ - effect-app@4.0.0-beta.245
566
+
567
+ ## 4.0.0-beta.244
568
+
569
+ ### Patch Changes
570
+
571
+ - b8b9080: update packages
572
+ - Updated dependencies [b8b9080]
573
+ - effect-app@4.0.0-beta.244
574
+
575
+ ## 4.0.0-beta.243
576
+
577
+ ### Patch Changes
578
+
579
+ - 8eb6737: Wrap `CUPS` exec failures in tagged `CUPSError` instead of `UnknownException`.
580
+
581
+ Retains `command`, `message`, exit `code`, `signal`, `killed`, `stdout`,
582
+ `stderr`, and original `cause` from the underlying `child_process.exec`
583
+ rejection so callers can branch on real failure detail.
584
+
585
+ - effect-app@4.0.0-beta.243
586
+
587
+ ## 4.0.0-beta.242
588
+
589
+ ### Patch Changes
590
+
591
+ - Updated dependencies [da83c1f]
592
+ - Updated dependencies [21017d5]
593
+ - Updated dependencies [2495ace]
594
+ - effect-app@4.0.0-beta.242
595
+
596
+ ## 4.0.0-beta.241
597
+
598
+ ### Patch Changes
599
+
600
+ - Updated dependencies [b035b1c]
601
+ - effect-app@4.0.0-beta.241
602
+
603
+ ## 4.0.0-beta.240
604
+
605
+ ### Patch Changes
606
+
607
+ - c5e348f: Fix `provideOnRequestScope` leaking a single `ContextMap` across concurrent requests.
608
+
609
+ `Layer.buildWithScope(layer, requestScope)` resolves its `MemoMap` from the
610
+ ambient fiber context, which lives on the HTTP server fiber and is therefore
611
+ shared by every request that server handles. With the resulting memoization,
612
+ the first request to land on a freshly-started server built
613
+ `ContextMapContainer.layer` once; every subsequent overlapping request received
614
+ the same `ContextMap` instance — etags written by one request were observed
615
+ (or overwritten) by another, and the finalizer was anchored to the first
616
+ request's scope.
617
+
618
+ `provideOnRequestScope` now allocates a fresh `MemoMap` per call via
619
+ `Layer.makeMemoMap` and builds with `Layer.buildWithMemoMap(layer, memoMap,
620
+ requestScope)`. Each request gets its own `ContextMap`, the request-scope
621
+ binding from the earlier SSE fix is preserved, and the finalizer still only
622
+ fires once the response body has fully drained.
623
+
624
+ Adds regression coverage in `rpc-context-map-streaming.test.ts` for three
625
+ properties: mid-stream survival of ContextMap state, a fresh map on each
626
+ succeeding request, and isolation between overlapping concurrent requests.
627
+
628
+ - effect-app@4.0.0-beta.240
629
+
630
+ ## 4.0.0-beta.239
631
+
632
+ ### Patch Changes
633
+
634
+ - 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.
635
+ - effect-app@4.0.0-beta.239
636
+
637
+ ## 4.0.0-beta.238
638
+
639
+ ### Patch Changes
640
+
641
+ - b63f10f: fix: nasty request scope bug
642
+ - effect-app@4.0.0-beta.238
643
+
644
+ ## 4.0.0-beta.237
645
+
646
+ ### Patch Changes
647
+
648
+ - 3cf0c42: Fix `ContextMap` memory leak: tie its lifecycle to the request scope.
649
+
650
+ `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.
651
+
652
+ `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.
653
+
654
+ - effect-app@4.0.0-beta.237
655
+
656
+ ## 4.0.0-beta.236
657
+
658
+ ### Patch Changes
659
+
660
+ - effect-app@4.0.0-beta.236
661
+
662
+ ## 4.0.0-beta.235
663
+
664
+ ### Patch Changes
665
+
666
+ - 6cfd83d: update effect to latest beta
667
+ - Updated dependencies [ba4bdc3]
668
+ - Updated dependencies [6cfd83d]
669
+ - effect-app@4.0.0-beta.235
670
+
671
+ ## 4.0.0-beta.234
672
+
673
+ ### Patch Changes
674
+
675
+ - effect-app@4.0.0-beta.234
676
+
677
+ ## 4.0.0-beta.233
678
+
679
+ ### Patch Changes
680
+
681
+ - 57a1862: Update to effect 4.0.0-beta.67. Switch deps from `pkg.pr.new` snapshot back to npm beta tag.
682
+ - Updated dependencies [57a1862]
683
+ - effect-app@4.0.0-beta.233
684
+
685
+ ## 4.0.0-beta.232
686
+
687
+ ### Patch Changes
688
+
689
+ - 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).
690
+ - Updated dependencies [0263827]
691
+ - Updated dependencies [0263827]
692
+ - Updated dependencies [0263827]
693
+ - effect-app@4.0.0-beta.232
694
+
695
+ ## 4.0.0-beta.231
696
+
697
+ ### Patch Changes
698
+
699
+ - 7ca66ce: Update to effect 4.0.0-beta.66. Remove `Yieldable` and `asEffect()` (service tags are now `Effect` directly).
700
+ - Updated dependencies [7ca66ce]
701
+ - effect-app@4.0.0-beta.231
702
+
703
+ ## 4.0.0-beta.230
704
+
705
+ ### Minor Changes
706
+
707
+ - 1cee480: Add aggregate query support: `Q.aggregate(schema, aggregateMap)` performs GROUP BY + aggregate functions at the database level (Memory, SQL, Cosmos).
708
+
709
+ - New `agg` DSL namespace: `agg.field(path)` (group-by), `agg.count()`, `agg.countWhen(op)`, `agg.sum(field)`, `agg.min(field)`, `agg.max(field)`
710
+ - New `aggregate(schema, aggregateMap)` query operator replaces in-memory grouping with a single DB-level query
711
+ - Memory store: pure JS group-by + aggregation
712
+ - SQL store: `GROUP BY` + `COUNT(CASE WHEN ...)` / `SUM` / `MIN` / `MAX`
713
+ - Cosmos store: `GROUP BY` + `SUM(IIF(...))` for conditional counts
714
+
715
+ ### Patch Changes
716
+
717
+ - effect-app@4.0.0-beta.230
718
+
719
+ ## 4.0.0-beta.229
720
+
721
+ ### Patch Changes
722
+
723
+ - effect-app@4.0.0-beta.229
724
+
725
+ ## 4.0.0-beta.228
726
+
727
+ ### Patch Changes
728
+
729
+ - effect-app@4.0.0-beta.228
730
+
731
+ ## 4.0.0-beta.227
732
+
733
+ ### Patch Changes
734
+
735
+ - 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.
736
+ - effect-app@4.0.0-beta.227
737
+
738
+ ## 4.0.0-beta.226
739
+
740
+ ### Patch Changes
741
+
742
+ - 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).
743
+
744
+ ```ts
745
+ projectComputed(
746
+ S.Struct({ id: S.String, packageCount: S.NonNegativeInt }),
747
+ computed({ packageCount: relation<OrderEnc>("packages").length() })
748
+ );
749
+ ```
750
+
751
+ - 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"`).
752
+ - effect-app@4.0.0-beta.226
753
+
754
+ ## 4.0.0-beta.225
755
+
756
+ ### Patch Changes
757
+
758
+ - 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.
759
+ - effect-app@4.0.0-beta.225
760
+
761
+ ## 4.0.0-beta.224
762
+
763
+ ### Patch Changes
764
+
765
+ - effect-app@4.0.0-beta.224
766
+
767
+ ## 4.0.0-beta.223
768
+
769
+ ### Patch Changes
770
+
771
+ - 2871841: RequestContextMiddleware: set request name to `HTTP <method> <path>` (strip query string) for clearer span/trace names.
772
+ - effect-app@4.0.0-beta.223
773
+
774
+ ## 4.0.0-beta.222
775
+
776
+ ### Patch Changes
777
+
778
+ - effect-app@4.0.0-beta.222
779
+
780
+ ## 4.0.0-beta.221
781
+
782
+ ### Patch Changes
783
+
784
+ - 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"`).
785
+ - Updated dependencies [439cbeb]
786
+ - effect-app@4.0.0-beta.221
787
+
788
+ ## 4.0.0-beta.220
789
+
790
+ ### Patch Changes
791
+
792
+ - aa436d3: fix bs span
793
+ - effect-app@4.0.0-beta.220
794
+
795
+ ## 4.0.0-beta.219
796
+
797
+ ### Patch Changes
798
+
799
+ - 13c2fd9: doc span
800
+ - d738811: remove double prefix
801
+ - 724da29: replace useless span
802
+ - Updated dependencies [d738811]
803
+ - effect-app@4.0.0-beta.219
804
+
805
+ ## 4.0.0-beta.218
806
+
807
+ ### Minor Changes
808
+
809
+ - 95995d5: Add `collectFields`/`collectDistinctFields` to `relation()` DSL for collecting values from multiple fields of relation items into a single flattened array.
810
+
811
+ 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[]`:
812
+
813
+ ```ts
814
+ relation("items").collectDistinctFields(["x", "y"]);
815
+ ```
816
+
817
+ ### Patch Changes
818
+
819
+ - effect-app@4.0.0-beta.218
820
+
821
+ ## 4.0.0-beta.217
822
+
823
+ ### Patch Changes
824
+
825
+ - e3ceaba: Add computed projection expression sums with grouped and normalized variants for projectComputed relation aggregations.
826
+ - Updated dependencies [0e824ef]
827
+ - effect-app@4.0.0-beta.217
828
+
829
+ ## 4.0.0-beta.216
830
+
831
+ ### Patch Changes
832
+
833
+ - f28fce5: fix sqlite
834
+ - effect-app@4.0.0-beta.216
835
+
836
+ ## 4.0.0-beta.215
837
+
838
+ ### Patch Changes
839
+
840
+ - 24f5dd0: fix memory computation
841
+ - effect-app@4.0.0-beta.215
842
+
843
+ ## 4.0.0-beta.214
844
+
845
+ ### Minor Changes
846
+
847
+ - fb93244: Extend computed projections with additional relation operators:
848
+
849
+ - `relation(path).every(op)` — boolean, all elements match the filter (compiled as `NOT EXISTS(... WHERE NOT (filter))`).
850
+ - `relation(path).distinctCount(field, op?)` — distinct count of values at `field` within the relation.
851
+ - `relation(path).sum(field, op?)` — numeric sum over a relation field.
852
+ - `relation(path).collect(field, op?)` / `collectDistinct(field, op?)` — collect values into an array (with optional dedup).
853
+
854
+ All operators compile to native subqueries on SQL (sqlite/pg) and Cosmos, and to in-memory equivalents on the Memory store.
855
+
856
+ ### Patch Changes
857
+
858
+ - effect-app@4.0.0-beta.214
859
+
860
+ ## 4.0.0-beta.213
861
+
862
+ ### Minor Changes
863
+
864
+ - aac6308: Add computed projections for repository queries with adapter-level compilation for memory, SQL, and Cosmos stores.
865
+
866
+ ### Patch Changes
867
+
868
+ - 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`.
869
+ - effect-app@4.0.0-beta.213
870
+
871
+ ## 4.0.0-beta.212
872
+
873
+ ### Patch Changes
874
+
875
+ - Updated dependencies [8792221]
876
+ - effect-app@4.0.0-beta.212
877
+
878
+ ## 4.0.0-beta.211
879
+
880
+ ### Patch Changes
881
+
882
+ - 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.
883
+ - 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`.
884
+ - effect-app@4.0.0-beta.211
885
+
886
+ ## 4.0.0-beta.210
887
+
888
+ ### Minor Changes
889
+
890
+ - 3a588e4: Standardize span attributes on OpenTelemetry semantic conventions.
891
+
892
+ All Store adapters (Cosmos, PostgreSQL, SQLite, Memory, Disk) and Queue adapters
893
+ (Service Bus, SQL, Memory) now emit OTel-compliant span names and attributes via
894
+ the new `@effect-app/infra/otel` helper module.
895
+
896
+ Span name convention: `<operation> <collection|destination>` (low cardinality).
897
+
898
+ Attribute key migration:
899
+
900
+ | Old | New |
901
+ | --------------------------------------------------- | --------------------------------------------------------------------------------- |
902
+ | `repository.table_name` / `repository.container_id` | `db.collection.name` |
903
+ | `repository.namespace` | `db.namespace` |
904
+ | `repository.model_name` / `itemType` | `app.entity` |
905
+ | `id` / `itemId` (entity span attr) | `app.entity.id` |
906
+ | `itemIds` | `app.entity.ids` |
907
+ | `db.cosmos.request_charge` | `azure.cosmosdb.operation.request_charge` |
908
+ | `db.cosmos.resource_count` | `db.response.returned_rows` |
909
+ | `db.cosmos.response_bytes` | `db.response.body.size` |
910
+ | `disk.file` / `disk.file_size` | `disk.file.path` / `disk.file.size` |
911
+ | `queue.name` | `messaging.destination.name` |
912
+ | `queue.sessionId` | `messaging.message.conversation_id` |
913
+ | `queue.type` | `messaging.system` |
914
+ | `queue.input` (full body) | `messaging.message.body` (+ `messaging.message.id`, `messaging.message.type`) |
915
+ | `message_tags` | `messaging.message.types` + `messaging.batch.message_count` |
916
+ | `request.name` | `code.function.name` (from `spanAttributes`) / `rpc.method` (middleware) |
917
+ | `request.locale` | `app.locale` |
918
+ | `request.namespace` | `app.tenant.id` |
919
+ | `request.source.id` | `client.id` |
920
+ | `request.user.sub` / `.roles` | `user.id` / `user.roles` |
921
+ | `requestInput` | `rpc.request.payload` |
922
+ | `connectionId` | `network.connection.id` |
923
+ | Span `Request.<module>.<method>` | Span `<module>/<method>` + `rpc.system`/`rpc.service`/`rpc.method` (kind: server) |
924
+ | `<spanPrefix>.<op>` (SQL/Model) | OTel db span via `withDbSpan`, with `dbSystem?` option |
925
+
926
+ New attributes added:
927
+
928
+ - `db.system.name` — e.g. `postgresql`, `sqlite`, `cosmosdb`, `memory`, `disk`
929
+ - `db.operation.name` — e.g. `find`, `all`, `filter`, `set`
930
+ - `db.query.text` — sanitized / parameterized SQL or Cosmos query (no bound values)
931
+ - `messaging.operation.name` — `publish`, `process`, `receive`
932
+
933
+ Breaking: dashboards/alerts keying on the previous attribute names must be
934
+ updated. Queue consumer spans no longer log raw message bodies — use
935
+ `messaging.message.id` and `messaging.message.type` instead.
936
+
937
+ ### Patch Changes
938
+
939
+ - effect-app@4.0.0-beta.210
940
+
941
+ ## 4.0.0-beta.209
942
+
943
+ ### Patch Changes
944
+
945
+ - c991be1: update packages
946
+ - Updated dependencies [c991be1]
947
+ - Updated dependencies [3bae238]
948
+ - effect-app@4.0.0-beta.209
949
+
950
+ ## 4.0.0-beta.208
951
+
952
+ ### Patch Changes
953
+
954
+ - effect-app@4.0.0-beta.208
955
+
956
+ ## 4.0.0-beta.207
957
+
958
+ ### Patch Changes
959
+
960
+ - b0db40f: Router handlers are now discriminated by `Resource[K]["stream"]`:
961
+
962
+ - Stream resources (`stream: true`) accept only `(req) => Stream<...>` handlers.
963
+ - Non-stream resources accept only `(req) => Effect<...>` (or generator yielding `Yieldable`).
964
+
965
+ Mixing — e.g. returning `Effect.fail(...)` or `Effect<Stream<...>>` from a stream handler — no longer type-checks.
966
+
967
+ 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)`.
968
+
969
+ - Updated dependencies [8fffc3c]
970
+ - effect-app@4.0.0-beta.207
971
+
972
+ ## 4.0.0-beta.206
973
+
974
+ ### Patch Changes
975
+
976
+ - 54bfc59: Require middleware to flow through `makeRpcClient` and the live layer through `makeRouter`.
977
+
978
+ ### `makeRpcClient(middleware, generalErrors?)`
979
+
980
+ 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.
981
+
982
+ **Migration**:
983
+
984
+ ```diff
985
+ -makeRpcClient(RequestContextMap, undefined, AppMiddleware)
986
+ +makeRpcClient(AppMiddleware)
987
+ ```
988
+
989
+ For tests/clients without a real middleware, build a minimal stub (`{ requestContextMap, requestContext }`) or pass any value satisfying `ClientMiddleware<RCM>`.
990
+
991
+ ### `makeRouter(middlewareLive)`
992
+
993
+ `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.
994
+
995
+ **Migration**:
996
+
997
+ ```diff
998
+ -export const { Router, matchAll } = makeRouter()
999
+ +export const { Router, matchAll } = makeRouter(AppMiddleware.Default)
1000
+ ```
1001
+
1002
+ - Updated dependencies [54bfc59]
1003
+ - effect-app@4.0.0-beta.206
1004
+
1005
+ ## 4.0.0-beta.205
1006
+
1007
+ ### Patch Changes
1008
+
1009
+ - Updated dependencies [f313973]
1010
+ - effect-app@4.0.0-beta.205
1011
+
1012
+ ## 4.0.0-beta.204
1013
+
1014
+ ### Patch Changes
1015
+
1016
+ - Updated dependencies [0a0030f]
1017
+ - effect-app@4.0.0-beta.204
1018
+
1019
+ ## 4.0.0-beta.203
1020
+
1021
+ ### Patch Changes
1022
+
1023
+ - Updated dependencies [992d9fa]
1024
+ - effect-app@4.0.0-beta.203
1025
+
1026
+ ## 4.0.0-beta.202
1027
+
1028
+ ### Patch Changes
1029
+
1030
+ - Updated dependencies [1186b09]
1031
+ - effect-app@4.0.0-beta.202
1032
+
1033
+ ## 4.0.0-beta.201
1034
+
1035
+ ### Patch Changes
1036
+
1037
+ - 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.
1038
+
1039
+ ### Resource error schemas
1040
+
1041
+ Three sites that used to fold `RequestContextMap[*].error` into a request's own error schema now stop doing so:
1042
+
1043
+ - `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).
1044
+ - `MiddlewareMaker.rpc()` — `error: options.error` only; the previous union with `rcm.config[*].error` is gone.
1045
+ - Routing and `apiClientFactory.makeRpcGroupFromRequestsAndModuleName` — `Invalidation.makeCommandRpc` is called with `error: resource.error` (no widening with the composite middleware error union).
1046
+
1047
+ 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:
1048
+
1049
+ - **Server**: `makeRouter(middleware)` attaches the live composite tag (existing behavior).
1050
+ - **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.
1051
+
1052
+ **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.
1053
+
1054
+ ### Invalidation wrap/unwrap
1055
+
1056
+ - `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.
1057
+ - `apiClientFactory.ts` (client) `unwrapCommand` strips both envelopes and forwards keys to `InvalidationKeysFromServer`.
1058
+ - `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.
1059
+
1060
+ 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.
1061
+
1062
+ - Updated dependencies [d67d17a]
1063
+ - effect-app@4.0.0-beta.201
1064
+
1065
+ ## 4.0.0-beta.200
1066
+
1067
+ ### Patch Changes
1068
+
1069
+ - 0cff7c1: workaround middleware error issue
1070
+ - Updated dependencies [8f1cf6a]
1071
+ - Updated dependencies [0cff7c1]
1072
+ - effect-app@4.0.0-beta.200
1073
+
1074
+ ## 4.0.0-beta.199
1075
+
1076
+ ### Patch Changes
1077
+
1078
+ - de9fb83: Annotate Cosmos read spans with response size, resource count, and request charge.
1079
+
1080
+ `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.
1081
+
1082
+ - effect-app@4.0.0-beta.199
1083
+
1084
+ ## 4.0.0-beta.198
1085
+
1086
+ ### Patch Changes
1087
+
1088
+ - 32dbc54: fix stream type when no success specified
1089
+ - Updated dependencies [32dbc54]
1090
+ - effect-app@4.0.0-beta.198
1091
+
1092
+ ## 4.0.0-beta.197
1093
+
1094
+ ### Minor Changes
1095
+
1096
+ - 3dc0d2a: Add streaming as a `stream: true` config option on `Query` / `Command` instead of a separate request type.
1097
+
1098
+ `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).
1099
+
1100
+ ```ts
1101
+ // Query that streams results
1102
+ Req.Query<T>()("Tag", {}, { stream: true, success: ... })
1103
+
1104
+ // Command that streams results
1105
+ Req.Command<T>()("Tag", {}, { stream: true, success: ... })
1106
+ ```
1107
+
1108
+ Vue client mapping (per-handler properties mirror the non-stream API — `.query`, `.fn`, `.mutate`):
1109
+
1110
+ - `query` + `stream: true` → exposes `.query` (read-only streaming, tracked Vue Query). Helper map key: `${name}Query`.
1111
+ - `command` + `stream: true` → exposes `.fn` and `.mutate` (mutating streaming).
1112
+ - Plain `query` / `command` unchanged.
1113
+
1114
+ Server routing dispatches via the new `stream` flag (`makeStreamRpc` for streaming commands/queries, `makeCommandRpc` / `Rpc.make` otherwise).
1115
+
1116
+ 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.
1117
+
1118
+ **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.
1119
+
1120
+ ### Patch Changes
1121
+
1122
+ - Updated dependencies [3dc0d2a]
1123
+ - effect-app@4.0.0-beta.197
1124
+
1125
+ ## 4.0.0-beta.196
1126
+
1127
+ ### Patch Changes
1128
+
1129
+ - effect-app@4.0.0-beta.196
1130
+
1131
+ ## 4.0.0-beta.195
1132
+
1133
+ ### Patch Changes
1134
+
1135
+ - 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.
1136
+
1137
+ 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`.
1138
+
1139
+ `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".
1140
+
1141
+ 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.
1142
+
1143
+ - Updated dependencies [774a9b3]
1144
+ - effect-app@4.0.0-beta.195
1145
+
1146
+ ## 4.0.0-beta.194
1147
+
1148
+ ### Patch Changes
1149
+
1150
+ - effect-app@4.0.0-beta.194
1151
+
1152
+ ## 4.0.0-beta.193
1153
+
1154
+ ### Patch Changes
1155
+
1156
+ - 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`.
1157
+ - effect-app@4.0.0-beta.193
1158
+
1159
+ ## 4.0.0-beta.192
1160
+
1161
+ ### Patch Changes
1162
+
1163
+ - dba5779: namespaces
1164
+ - effect-app@4.0.0-beta.192
1165
+
1166
+ ## 4.0.0-beta.191
1167
+
1168
+ ### Patch Changes
1169
+
1170
+ - 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`.
1171
+ - Updated dependencies [50ce7e6]
1172
+ - effect-app@4.0.0-beta.191
1173
+
1174
+ ## 4.0.0-beta.190
1175
+
1176
+ ### Patch Changes
1177
+
1178
+ - Updated dependencies [985176b]
1179
+ - effect-app@4.0.0-beta.190
1180
+
1181
+ ## 4.0.0-beta.189
1182
+
1183
+ ### Patch Changes
1184
+
1185
+ - 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.
1186
+ - Updated dependencies [ea32222]
1187
+ - effect-app@4.0.0-beta.189
1188
+
1189
+ ## 4.0.0-beta.188
1190
+
1191
+ ### Patch Changes
1192
+
1193
+ - b2e438f: Remove Operations service and repo
1194
+ - Updated dependencies [b2e438f]
1195
+ - effect-app@4.0.0-beta.188
1196
+
1197
+ ## 4.0.0-beta.187
1198
+
1199
+ ### Patch Changes
1200
+
1201
+ - Updated dependencies [0d4e0b8]
1202
+ - effect-app@4.0.0-beta.187
1203
+
1204
+ ## 4.0.0-beta.186
1205
+
1206
+ ### Patch Changes
1207
+
1208
+ - effect-app@4.0.0-beta.186
1209
+
1210
+ ## 4.0.0-beta.185
1211
+
1212
+ ### Patch Changes
1213
+
1214
+ - effect-app@4.0.0-beta.185
1215
+
1216
+ ## 4.0.0-beta.184
1217
+
1218
+ ### Patch Changes
1219
+
1220
+ - effect-app@4.0.0-beta.184
1221
+
1222
+ ## 4.0.0-beta.183
1223
+
1224
+ ### Patch Changes
1225
+
1226
+ - effect-app@4.0.0-beta.183
1227
+
1228
+ ## 4.0.0-beta.182
1229
+
1230
+ ### Patch Changes
1231
+
1232
+ - effect-app@4.0.0-beta.182
1233
+
1234
+ ## 4.0.0-beta.181
1235
+
1236
+ ### Patch Changes
1237
+
1238
+ - Updated dependencies [583393f]
1239
+ - effect-app@4.0.0-beta.181
1240
+
1241
+ ## 4.0.0-beta.180
1242
+
1243
+ ### Minor Changes
1244
+
1245
+ - 7fa3045: V1/V2/V3: stream and command requests carry invalidation metadata
1246
+
1247
+ **V1** – stream final response includes metadata
1248
+
1249
+ - `Invalidation.StreamResponseChunk` wraps each stream item as `{ _tag: "value", value }` and appends `{ _tag: "done", metadata }` at the end carrying all accumulated invalidation keys.
1250
+
1251
+ **V2** – invalidation keys included in failures
1252
+
1253
+ - `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.
1254
+ - `InvalidationMiddlewareLive` wraps command failures; `routing.ts` wraps stream failures.
1255
+ - `apiClientFactory.ts` unwraps both on the client side, forwarding keys before re-failing with the original error.
1256
+
1257
+ **V3** – mid-stream metadata chunks
1258
+
1259
+ - `Invalidation.StreamResponseChunk` now also includes `{ _tag: "metadata", metadata }` for mid-stream invalidation.
1260
+ - 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`).
1261
+ - `apiClientFactory.ts` processes "metadata" chunks the same as "done" chunks, forwarding keys to `InvalidationKeysFromServer` immediately.
1262
+ - `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.
1263
+
1264
+ ### Patch Changes
1265
+
1266
+ - Updated dependencies [7fa3045]
1267
+ - effect-app@4.0.0-beta.180
1268
+
1269
+ ## 4.0.0-beta.179
1270
+
1271
+ ### Patch Changes
1272
+
1273
+ - Updated dependencies [828d264]
1274
+ - effect-app@4.0.0-beta.179
1275
+
1276
+ ## 4.0.0-beta.178
1277
+
1278
+ ### Patch Changes
1279
+
1280
+ - effect-app@4.0.0-beta.178
1281
+
1282
+ ## 4.0.0-beta.177
1283
+
1284
+ ### Minor Changes
1285
+
1286
+ - 89d8b3a: Add Effect RPC `Stream` support to the wrapper.
1287
+
1288
+ - New `Stream` request constructor on `TaggedRequestFor` parallel to `Query`/`Command`. Emits resources with `type: "stream"`.
1289
+ - 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).
1290
+ - 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.
1291
+ - New `RequestStreamHandler` / `RequestStreamHandlerWithInput` shapes in `clientFor.ts`; `RequestHandlers` dispatches on `type: "stream"`.
1292
+
1293
+ ### Patch Changes
1294
+
1295
+ - Updated dependencies [89d8b3a]
1296
+ - effect-app@4.0.0-beta.177
1297
+
1298
+ ## 4.0.0-beta.176
1299
+
1300
+ ### Patch Changes
1301
+
1302
+ - pass options
1303
+ - Updated dependencies
1304
+ - effect-app@4.0.0-beta.176
1305
+
1306
+ ## 4.0.0-beta.175
1307
+
1308
+ ### Patch Changes
1309
+
1310
+ - effect-app@4.0.0-beta.175
1311
+
1312
+ ## 4.0.0-beta.174
1313
+
1314
+ ### Minor Changes
1315
+
1316
+ - 821468d: Add server-driven cache invalidation via RPC response headers.
1317
+
1318
+ - `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.
1319
+ - `effect-app/middleware`: new `InvalidationMiddleware` RPC middleware tag; included in `DefaultGenericMiddlewares`.
1320
+ - `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`.
1321
+ - `@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.
1322
+ - `@effect-app/vue`: `invalidateQueries` / `useMutation` now reads server-provided invalidation keys from `InvalidationKeysFromServer` after each mutation and applies them alongside the client-side invalidation.
1323
+
1324
+ ### Patch Changes
1325
+
1326
+ - Updated dependencies [821468d]
1327
+ - effect-app@4.0.0-beta.174
1328
+
1329
+ ## 4.0.0-beta.173
1330
+
1331
+ ### Patch Changes
1332
+
1333
+ - effect-app@4.0.0-beta.173
1334
+
1335
+ ## 4.0.0-beta.172
1336
+
1337
+ ### Patch Changes
1338
+
1339
+ - improve sentry
1340
+ - effect-app@4.0.0-beta.172
1341
+
1342
+ ## 4.0.0-beta.171
1343
+
1344
+ ### Patch Changes
1345
+
1346
+ - Updated dependencies [d71d976]
1347
+ - effect-app@4.0.0-beta.171
1348
+
1349
+ ## 4.0.0-beta.170
1350
+
1351
+ ### Patch Changes
1352
+
1353
+ - Updated dependencies [8f09f77]
1354
+ - effect-app@4.0.0-beta.170
1355
+
1356
+ ## 4.0.0-beta.169
1357
+
1358
+ ### Patch Changes
1359
+
1360
+ - Updated dependencies [8ae8b53]
1361
+ - effect-app@4.0.0-beta.169
1362
+
1363
+ ## 4.0.0-beta.168
1364
+
1365
+ ### Patch Changes
1366
+
1367
+ - Updated dependencies [178480a]
1368
+ - effect-app@4.0.0-beta.168
1369
+
1370
+ ## 4.0.0-beta.167
1371
+
1372
+ ### Patch Changes
1373
+
1374
+ - Updated dependencies [140e192]
1375
+ - effect-app@4.0.0-beta.167
1376
+
1377
+ ## 4.0.0-beta.166
1378
+
1379
+ ### Patch Changes
1380
+
1381
+ - Updated dependencies [dbcc53b]
1382
+ - effect-app@4.0.0-beta.166
1383
+
1384
+ ## 4.0.0-beta.165
1385
+
1386
+ ### Patch Changes
1387
+
1388
+ - Updated dependencies [f88ea34]
1389
+ - effect-app@4.0.0-beta.165
1390
+
1391
+ ## 4.0.0-beta.164
1392
+
1393
+ ### Patch Changes
1394
+
1395
+ - Updated dependencies [8cb3de4]
1396
+ - effect-app@4.0.0-beta.164
1397
+
1398
+ ## 4.0.0-beta.163
1399
+
1400
+ ### Patch Changes
1401
+
1402
+ - Updated dependencies [b952f19]
1403
+ - effect-app@4.0.0-beta.163
1404
+
1405
+ ## 4.0.0-beta.162
1406
+
1407
+ ### Patch Changes
1408
+
1409
+ - Updated dependencies [b52b424]
1410
+ - effect-app@4.0.0-beta.162
1411
+
1412
+ ## 4.0.0-beta.161
1413
+
1414
+ ### Patch Changes
1415
+
1416
+ - effect-app@4.0.0-beta.161
1417
+
1418
+ ## 4.0.0-beta.160
1419
+
1420
+ ### Patch Changes
1421
+
1422
+ - 505bfa9: Add concurrent decode helper APIs and migrate decode callsites to use them.
1423
+
1424
+ - Add `withDefaultParseOptions` and keep `DefaultParseOptions` centralized.
1425
+ - Export `decodeEffectConcurrently` and `decodeUnknownEffectConcurrently` from Schema and SchemaParser modules.
1426
+ - Update repository, queue, client, form, and CLI decode paths to use concurrent decode helpers.
1427
+ - Keep schema constructors free of hardcoded parse concurrency overrides.
1428
+
1429
+ - Updated dependencies [505bfa9]
1430
+ - effect-app@4.0.0-beta.160
1431
+
1432
+ ## 4.0.0-beta.159
1433
+
1434
+ ### Patch Changes
1435
+
1436
+ - c1e73de:
1437
+ - Updated dependencies [c1e73de]
1438
+ - effect-app@4.0.0-beta.159
1439
+
1440
+ ## 4.0.0-beta.158
1441
+
1442
+ ### Patch Changes
1443
+
1444
+ - Updated dependencies [3c1f52d]
1445
+ - Updated dependencies [6ae3050]
1446
+ - effect-app@4.0.0-beta.158
1447
+
1448
+ ## 4.0.0-beta.157
1449
+
1450
+ ### Patch Changes
1451
+
1452
+ - 6fff09c: unify encoded function for when you use encodedKeys
1453
+ - Updated dependencies [6fff09c]
1454
+ - effect-app@4.0.0-beta.157
1455
+
1456
+ ## 4.0.0-beta.156
1457
+
1458
+ ### Patch Changes
1459
+
1460
+ - effect-app@4.0.0-beta.156
1461
+
1462
+ ## 4.0.0-beta.155
1463
+
1464
+ ### Patch Changes
1465
+
1466
+ - Updated dependencies [c215db8]
1467
+ - effect-app@4.0.0-beta.155
1468
+
1469
+ ## 4.0.0-beta.154
1470
+
1471
+ ### Patch Changes
1472
+
1473
+ - effect-app@4.0.0-beta.154
1474
+
1475
+ ## 4.0.0-beta.153
1476
+
1477
+ ### Patch Changes
1478
+
1479
+ - effect-app@4.0.0-beta.153
1480
+
1481
+ ## 4.0.0-beta.152
1482
+
1483
+ ### Patch Changes
1484
+
1485
+ - effect-app@4.0.0-beta.152
1486
+
1487
+ ## 4.0.0-beta.151
1488
+
1489
+ ### Patch Changes
1490
+
1491
+ - 925214b: update packages
1492
+ - effect-app@4.0.0-beta.151
1493
+
1494
+ ## 4.0.0-beta.150
1495
+
1496
+ ### Patch Changes
1497
+
1498
+ - Updated dependencies [85a8275]
1499
+ - effect-app@4.0.0-beta.150
1500
+
1501
+ ## 4.0.0-beta.149
1502
+
1503
+ ### Patch Changes
1504
+
1505
+ - Updated dependencies [f317c5e]
1506
+ - effect-app@4.0.0-beta.149
1507
+
1508
+ ## 4.0.0-beta.148
1509
+
1510
+ ### Patch Changes
1511
+
1512
+ - Updated dependencies [199e9a5]
1513
+ - effect-app@4.0.0-beta.148
1514
+
1515
+ ## 4.0.0-beta.147
1516
+
1517
+ ### Patch Changes
1518
+
1519
+ - Updated dependencies [47e3742]
1520
+ - effect-app@4.0.0-beta.147
1521
+
1522
+ ## 4.0.0-beta.146
1523
+
1524
+ ### Patch Changes
1525
+
1526
+ - Updated dependencies [a4dff57]
1527
+ - effect-app@4.0.0-beta.146
1528
+
1529
+ ## 4.0.0-beta.145
1530
+
1531
+ ### Patch Changes
1532
+
1533
+ - Updated dependencies [12abb55]
1534
+ - effect-app@4.0.0-beta.145
1535
+
1536
+ ## 4.0.0-beta.144
1537
+
1538
+ ### Patch Changes
1539
+
1540
+ - d31253f: Refactor eligible schema classes and tagged classes to Opaque schemas, and migrate constructor call sites to use `.make` for those models.
1541
+ - Updated dependencies [11422f8]
1542
+ - Updated dependencies [d31253f]
1543
+ - effect-app@4.0.0-beta.144
1544
+
1545
+ ## 4.0.0-beta.143
1546
+
1547
+ ### Patch Changes
1548
+
1549
+ - Updated dependencies [79eb019]
1550
+ - effect-app@4.0.0-beta.143
1551
+
1552
+ ## 4.0.0-beta.142
1553
+
1554
+ ### Patch Changes
1555
+
1556
+ - Updated dependencies [3436d44]
1557
+ - Updated dependencies [025de47]
1558
+ - effect-app@4.0.0-beta.142
1559
+
1560
+ ## 4.0.0-beta.141
1561
+
1562
+ ### Patch Changes
1563
+
1564
+ - Updated dependencies [7c25dbb]
1565
+ - effect-app@4.0.0-beta.141
1566
+
1567
+ ## 4.0.0-beta.140
1568
+
1569
+ ### Patch Changes
1570
+
1571
+ - 1576688: Add configurable `fakeMailAddress` to `SendgridConfig`. Supports `{i}` placeholder for unique addresses, e.g. `"test+{i}@example.com"`.
1572
+ - effect-app@4.0.0-beta.140
1573
+
1574
+ ## 4.0.0-beta.139
1575
+
1576
+ ### Patch Changes
1577
+
1578
+ - effect-app@4.0.0-beta.139
1579
+
1580
+ ## 4.0.0-beta.138
1581
+
1582
+ ### Patch Changes
1583
+
1584
+ - effect-app@4.0.0-beta.138
1585
+
1586
+ ## 4.0.0-beta.137
1587
+
1588
+ ### Patch Changes
1589
+
1590
+ - effect-app@4.0.0-beta.137
1591
+
1592
+ ## 4.0.0-beta.136
1593
+
1594
+ ### Patch Changes
1595
+
1596
+ - effect-app@4.0.0-beta.136
1597
+
1598
+ ## 4.0.0-beta.135
1599
+
1600
+ ### Patch Changes
1601
+
1602
+ - Updated dependencies [c7bbc41]
1603
+ - effect-app@4.0.0-beta.135
1604
+
1605
+ ## 4.0.0-beta.134
1606
+
1607
+ ### Patch Changes
1608
+
1609
+ - 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.
1610
+ - Updated dependencies [9d3495e]
1611
+ - Updated dependencies [f353d48]
1612
+ - effect-app@4.0.0-beta.134
1613
+
1614
+ ## 4.0.0-beta.133
1615
+
1616
+ ### Patch Changes
1617
+
1618
+ - 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).
1619
+ - c3299f7: update packages
1620
+ - Updated dependencies [c3299f7]
1621
+ - effect-app@4.0.0-beta.133
1622
+
1623
+ ## 4.0.0-beta.132
1624
+
1625
+ ### Patch Changes
1626
+
1627
+ - effect-app@4.0.0-beta.132
1628
+
1629
+ ## 4.0.0-beta.131
1630
+
1631
+ ### Patch Changes
1632
+
1633
+ - 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.
1634
+ - effect-app@4.0.0-beta.131
1635
+
1636
+ ## 4.0.0-beta.130
1637
+
1638
+ ### Patch Changes
1639
+
1640
+ - Updated dependencies [ea1bd46]
1641
+ - effect-app@4.0.0-beta.130
1642
+
1643
+ ## 4.0.0-beta.129
1644
+
1645
+ ### Patch Changes
1646
+
1647
+ - effect-app@4.0.0-beta.129
1648
+
1649
+ ## 4.0.0-beta.128
1650
+
1651
+ ### Patch Changes
1652
+
1653
+ - Updated dependencies [57db551]
1654
+ - effect-app@4.0.0-beta.128
1655
+
1656
+ ## 4.0.0-beta.127
1657
+
1658
+ ### Patch Changes
1659
+
1660
+ - 71a0719: Merge `batchPar` into `batch`, expose `concurrency` via an optional `BatchOptions` argument, and make `batch` dual (data-first + data-last).
1661
+ - 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.
1662
+ - effect-app@4.0.0-beta.127
1663
+
1664
+ ## 4.0.0-beta.126
1665
+
1666
+ ### Patch Changes
1667
+
1668
+ - Updated dependencies [458bb1b]
1669
+ - effect-app@4.0.0-beta.126
1670
+
1671
+ ## 4.0.0-beta.125
1672
+
1673
+ ### Patch Changes
1674
+
1675
+ - 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`.
1676
+ - effect-app@4.0.0-beta.125
1677
+
1678
+ ## 4.0.0-beta.124
1679
+
1680
+ ### Patch Changes
1681
+
1682
+ - c9e0c44: cleanup auth
1683
+ - 256ae85: cleanup
1684
+ - Updated dependencies [256ae85]
1685
+ - effect-app@4.0.0-beta.124
1686
+
1687
+ ## 4.0.0-beta.123
1688
+
1689
+ ### Patch Changes
1690
+
1691
+ - Updated dependencies [14aba14]
1692
+ - effect-app@4.0.0-beta.123
1693
+
1694
+ ## 4.0.0-beta.122
1695
+
1696
+ ### Patch Changes
1697
+
1698
+ - 27bf9b6: Fix `Repository.query` environment typing to exclude schema context provided through `makeRepo` options.
1699
+ - e02a258: Add optional batching overloads for repository `save` and `remove` helpers.
1700
+ - f052d38: Replace `(...) => Effect.gen` with `Effect.fnUntraced` and convert select multi-step `pipe` chains to `Effect.gen` across infra.
1701
+ - Updated dependencies [f052d38]
1702
+ - effect-app@4.0.0-beta.122
1703
+
1704
+ ## 4.0.0-beta.121
1705
+
1706
+ ### Patch Changes
1707
+
1708
+ - 1015582: Fix `Q.project` field selection with `Schema.encodeKeys` by deriving selected fields from the encoded schema shape.
1709
+ - Updated dependencies [5ac46cb]
1710
+ - effect-app@4.0.0-beta.121
1711
+
1712
+ ## 4.0.0-beta.120
1713
+
1714
+ ### Patch Changes
1715
+
1716
+ - Updated dependencies [f21190c]
1717
+ - effect-app@4.0.0-beta.120
1718
+
1719
+ ## 4.0.0-beta.119
1720
+
1721
+ ### Patch Changes
1722
+
1723
+ - db7ba34: Filter SSE events stream by storeId namespace
1724
+ - effect-app@4.0.0-beta.119
1725
+
1726
+ ## 4.0.0-beta.118
1727
+
1728
+ ### Patch Changes
1729
+
1730
+ - Update effect packages to 4.0.0-beta.52
1731
+ - Updated dependencies [bd26832]
1732
+ - Updated dependencies [08d2e70]
1733
+ - Updated dependencies
1734
+ - effect-app@4.0.0-beta.118
1735
+
1736
+ ## 4.0.0-beta.117
1737
+
1738
+ ### Patch Changes
1739
+
1740
+ - 1d85785: Wrap store seed effects with `Effect.uninterruptible` to prevent interruption during seeding
1741
+ - effect-app@4.0.0-beta.117
1742
+
1743
+ ## 4.0.0-beta.116
1744
+
1745
+ ### Patch Changes
1746
+
1747
+ - 7d5cefc: SQL and Pg stores now scope seed migration records by namespace and table name in shared databases to avoid cross-namespace seed collisions.
1748
+ - effect-app@4.0.0-beta.116
1749
+
1750
+ ## 4.0.0-beta.115
1751
+
1752
+ ### Patch Changes
1753
+
1754
+ - 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.
1755
+ - effect-app@4.0.0-beta.115
1756
+
1757
+ ## 4.0.0-beta.114
1758
+
1759
+ ### Patch Changes
1760
+
1761
+ - 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.
1762
+ - effect-app@4.0.0-beta.114
1763
+
1764
+ ## 4.0.0-beta.113
1765
+
1766
+ ### Minor Changes
1767
+
1768
+ - 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.
1769
+
1770
+ 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.
1771
+
1772
+ 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.
1773
+
1774
+ ### Patch Changes
1775
+
1776
+ - effect-app@4.0.0-beta.113
1777
+
1778
+ ## 4.0.0-beta.112
1779
+
1780
+ ### Patch Changes
1781
+
1782
+ - 8a4a6d2: fup
1783
+ - effect-app@4.0.0-beta.112
1784
+
1785
+ ## 4.0.0-beta.111
1786
+
1787
+ ### Patch Changes
1788
+
1789
+ - ca94edf: fix typo
1790
+ - Updated dependencies [ca94edf]
1791
+ - effect-app@4.0.0-beta.111
1792
+
1793
+ ## 4.0.0-beta.110
1794
+
1795
+ ### Minor Changes
1796
+
1797
+ - 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`.
1798
+
1799
+ ### Patch Changes
1800
+
1801
+ - effect-app@4.0.0-beta.110
1802
+
1803
+ ## 4.0.0-beta.109
1804
+
1805
+ ### Patch Changes
1806
+
1807
+ - 82f66f1: use uninterruptiple
1808
+ - effect-app@4.0.0-beta.109
1809
+
1810
+ ## 4.0.0-beta.108
1811
+
1812
+ ### Patch Changes
1813
+
1814
+ - Updated dependencies [3e46e7b]
1815
+ - effect-app@4.0.0-beta.108
1816
+
1817
+ ## 4.0.0-beta.107
1818
+
1819
+ ### Patch Changes
1820
+
1821
+ - 902ca1b: fix
1822
+ - effect-app@4.0.0-beta.107
1823
+
1824
+ ## 4.0.0-beta.106
1825
+
1826
+ ### Patch Changes
1827
+
1828
+ - f22a026: Use `Effect.cached` in `getOrCreateStoreEffect` for proper memoization of the resolver effect.
1829
+ - effect-app@4.0.0-beta.106
1830
+
1831
+ ## 4.0.0-beta.105
1832
+
1833
+ ### Minor Changes
1834
+
1835
+ - 3d732b1: Rewrite `withRequestResolverCache` to use official `RequestResolver.withCache`, creating a cached resolver per ContextMap via `getOrCreateStoreEffect` with semaphore-guarded initialization.
1836
+
1837
+ ### Patch Changes
1838
+
1839
+ - 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.
1840
+ - 5773159: Add `itemType` annotation to all repository spans
1841
+ - effect-app@4.0.0-beta.105
1842
+
1843
+ ## 4.0.0-beta.104
1844
+
1845
+ ### Patch Changes
1846
+
1847
+ - Updated dependencies [e944bca]
1848
+ - effect-app@4.0.0-beta.104
1849
+
1850
+ ## 4.0.0-beta.103
1851
+
1852
+ ### Patch Changes
1853
+
1854
+ - Updated dependencies [7119320]
1855
+ - effect-app@4.0.0-beta.103
1856
+
1857
+ ## 4.0.0-beta.102
1858
+
1859
+ ### Patch Changes
1860
+
1861
+ - 62627e9: Fix boolean handling in SQL SELECT and WHERE
1862
+ - effect-app@4.0.0-beta.102
1863
+
1864
+ ## 4.0.0-beta.101
1865
+
1866
+ ### Patch Changes
1867
+
1868
+ - effect-app@4.0.0-beta.101
1869
+
1870
+ ## 4.0.0-beta.100
1871
+
1872
+ ### Patch Changes
1873
+
1874
+ - 43611c7: enable cosmosdb large partition key hashes
1875
+ - effect-app@4.0.0-beta.100
1876
+
1877
+ ## 4.0.0-beta.99
1878
+
1879
+ ### Patch Changes
1880
+
1881
+ - 6a0e008: remove artificial Cosmos bulkSet delays
1882
+ - effect-app@4.0.0-beta.99
1883
+
1884
+ ## 4.0.0-beta.98
1885
+
1886
+ ### Patch Changes
1887
+
1888
+ - 5aed2e3: Add span to Cosmos `batchRemove` and include `namespace` attribute on all Cosmos store spans.
1889
+ - effect-app@4.0.0-beta.98
1890
+
1891
+ ## 4.0.0-beta.97
1892
+
1893
+ ### Patch Changes
1894
+
1895
+ - 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.
1896
+ - effect-app@4.0.0-beta.97
1897
+
1898
+ ## 4.0.0-beta.96
1899
+
1900
+ ### Patch Changes
1901
+
1902
+ - Updated dependencies [5615e47]
1903
+ - effect-app@4.0.0-beta.96
1904
+
1905
+ ## 4.0.0-beta.95
1906
+
1907
+ ### Patch Changes
1908
+
1909
+ - 88838fb: Remove pick/omit customizations from Class/TaggedClass/Struct/TaggedStruct. Use `Struct.pick(X.fields, [...])` from `effect-app` instead.
1910
+ - Updated dependencies [88838fb]
1911
+ - effect-app@4.0.0-beta.95
1912
+
1913
+ ## 4.0.0-beta.94
1914
+
1915
+ ### Patch Changes
1916
+
1917
+ - effect-app@4.0.0-beta.94
1918
+
1919
+ ## 4.0.0-beta.93
1920
+
1921
+ ### Patch Changes
1922
+
1923
+ - 2d85646: fix SQL includes-any/all double-quoting values for SQLite (JSON.stringify only needed for Postgres jsonb)
1924
+ - effect-app@4.0.0-beta.93
1925
+
1926
+ ## 4.0.0-beta.92
1927
+
1928
+ ### Patch Changes
1929
+
1930
+ - b4ffee0: fix SQL whereEvery double-negation bug causing wrong query when operators like notIn are used (especially with empty arrays)
1931
+ - effect-app@4.0.0-beta.92
1932
+
1933
+ ## 4.0.0-beta.91
1934
+
1935
+ ### Patch Changes
1936
+
1937
+ - Updated dependencies [738b482]
1938
+ - effect-app@4.0.0-beta.91
1939
+
1940
+ ## 4.0.0-beta.90
1941
+
1942
+ ### Patch Changes
1943
+
1944
+ - d786b91: Fix SQL `whereSome`/`whereEvery` array relation queries using `EXISTS` with `json_each` (SQLite) / `jsonb_array_elements` (Pg).
1945
+ - effect-app@4.0.0-beta.90
1946
+
1947
+ ## 4.0.0-beta.89
1948
+
1949
+ ### Patch Changes
1950
+
1951
+ - 9a9e46c: Fix SQL select queries to read `_etag` from column instead of JSON data, preventing INSERT on update.
1952
+ - effect-app@4.0.0-beta.89
1953
+
1954
+ ## 4.0.0-beta.88
1955
+
1956
+ ### Patch Changes
1957
+
1958
+ - dfd5562: Fix SQL `IN`/`NOT IN` with null values to use `IS NULL`/`IS NOT NULL` instead of `IN (NULL, ...)`.
1959
+ - effect-app@4.0.0-beta.88
1960
+
1961
+ ## 4.0.0-beta.87
1962
+
1963
+ ### Patch Changes
1964
+
1965
+ - 5a709d1: Fix SQLite select query type coercion using `json_quote` and apply defaultValues in SQL WHERE clauses via `COALESCE`.
1966
+ - effect-app@4.0.0-beta.87
1967
+
1968
+ ## 4.0.0-beta.86
1969
+
1970
+ ### Patch Changes
1971
+
1972
+ - 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.
1973
+ - effect-app@4.0.0-beta.86
1974
+
1975
+ ## 4.0.0-beta.85
1976
+
1977
+ ### Patch Changes
1978
+
1979
+ - 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.
1980
+ - effect-app@4.0.0-beta.85
1981
+
1982
+ ## 4.0.0-beta.84
1983
+
1984
+ ### Patch Changes
1985
+
1986
+ - 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).
1987
+ - effect-app@4.0.0-beta.84
1988
+
1989
+ ## 4.0.0-beta.83
1990
+
1991
+ ### Patch Changes
1992
+
1993
+ - 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.
1994
+ - effect-app@4.0.0-beta.83
1995
+
1996
+ ## 4.0.0-beta.82
1997
+
1998
+ ### Minor Changes
1999
+
2000
+ - 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.
2001
+ - 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.
2002
+ - 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.
2003
+ - 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`.
2004
+
2005
+ ### Patch Changes
2006
+
2007
+ - effect-app@4.0.0-beta.82
2008
+
2009
+ ## 4.0.0-beta.81
2010
+
2011
+ ### Minor Changes
2012
+
2013
+ - fd67f0b: Add `withRequestResolverCache` to scope RequestResolver cache to the ContextMap (request-scoped). Add `getOrCreateStore` to ContextMap for generic scoped storage.
2014
+
2015
+ ### Patch Changes
2016
+
2017
+ - effect-app@4.0.0-beta.81
2018
+
2019
+ ## 4.0.0-beta.80
2020
+
2021
+ ### Patch Changes
2022
+
2023
+ - eaf0115: enforce local
2024
+ - effect-app@4.0.0-beta.80
2025
+
2026
+ ## 4.0.0-beta.79
2027
+
2028
+ ### Patch Changes
2029
+
2030
+ - 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).
2031
+ - Updated dependencies [d16845e]
2032
+ - effect-app@4.0.0-beta.79
2033
+
2034
+ ## 4.0.0-beta.78
2035
+
2036
+ ### Minor Changes
2037
+
2038
+ - 818e047: Router `matchFor` no longer requires `meta` property on resource when requests carry `moduleName` from `TaggedRequestFor`
2039
+
2040
+ ### Patch Changes
2041
+
2042
+ - effect-app@4.0.0-beta.78
2043
+
2044
+ ## 4.0.0-beta.77
2045
+
2046
+ ### Patch Changes
2047
+
2048
+ - Updated dependencies [3613e87]
2049
+ - effect-app@4.0.0-beta.77
2050
+
2051
+ ## 4.0.0-beta.76
2052
+
2053
+ ### Patch Changes
2054
+
2055
+ - fac725d: update effect to latest beta
2056
+ - Updated dependencies [a5248a9]
2057
+ - Updated dependencies [fac725d]
2058
+ - effect-app@4.0.0-beta.76
2059
+
2060
+ ## 4.0.0-beta.75
2061
+
2062
+ ### Patch Changes
2063
+
2064
+ - Updated dependencies [24f0a5a]
2065
+ - effect-app@4.0.0-beta.75
2066
+
2067
+ ## 4.0.0-beta.74
2068
+
2069
+ ### Patch Changes
2070
+
2071
+ - Updated dependencies [54ec1ef]
2072
+ - effect-app@4.0.0-beta.74
2073
+
2074
+ ## 4.0.0-beta.73
2075
+
2076
+ ### Patch Changes
2077
+
2078
+ - b53c59e: fix signature
2079
+ - effect-app@4.0.0-beta.73
2080
+
2081
+ ## 4.0.0-beta.72
2082
+
2083
+ ### Patch Changes
2084
+
2085
+ - Updated dependencies [0541f0d]
2086
+ - effect-app@4.0.0-beta.72
2087
+
2088
+ ## 4.0.0-beta.71
2089
+
2090
+ ### Patch Changes
2091
+
2092
+ - beae3a0: Remove `withDefaultConstructor` wrapper, use `S.withConstructorDefault` directly with `Effect.succeed`/`Effect.sync`.
2093
+ - Updated dependencies [beae3a0]
2094
+ - effect-app@4.0.0-beta.71
2095
+
2096
+ ## 4.0.0-beta.70
2097
+
2098
+ ### Patch Changes
2099
+
2100
+ - fdb9cb3: cleanup
2101
+ - effect-app@4.0.0-beta.70
2102
+
2103
+ ## 4.0.0-beta.69
2104
+
2105
+ ### Patch Changes
2106
+
2107
+ - dc465e3: update to latest effect beta
2108
+ - Updated dependencies [dc465e3]
2109
+ - effect-app@4.0.0-beta.69
2110
+
2111
+ ## 4.0.0-beta.68
2112
+
2113
+ ### Patch Changes
2114
+
2115
+ - Updated dependencies [e6f2341]
2116
+ - effect-app@4.0.0-beta.68
2117
+
2118
+ ## 4.0.0-beta.67
2119
+
2120
+ ### Patch Changes
2121
+
2122
+ - effect-app@4.0.0-beta.67
2123
+
2124
+ ## 4.0.0-beta.66
2125
+
2126
+ ### Patch Changes
2127
+
2128
+ - Updated dependencies [edc52e4]
2129
+ - effect-app@4.0.0-beta.66
2130
+
2131
+ ## 4.0.0-beta.65
2132
+
2133
+ ### Patch Changes
2134
+
2135
+ - Updated dependencies [31739d7]
2136
+ - Updated dependencies [1f103b2]
2137
+ - effect-app@4.0.0-beta.65
2138
+
2139
+ ## 4.0.0-beta.64
2140
+
2141
+ ### Patch Changes
2142
+
2143
+ - Updated dependencies [c1a6fdc]
2144
+ - effect-app@4.0.0-beta.64
2145
+
2146
+ ## 4.0.0-beta.63
2147
+
2148
+ ### Patch Changes
2149
+
2150
+ - 1f9d7da: fix missing toCodecJson usages
2151
+ - effect-app@4.0.0-beta.63
2152
+
2153
+ ## 4.0.0-beta.62
2154
+
2155
+ ### Patch Changes
2156
+
2157
+ - Updated dependencies [0b21a02]
2158
+ - effect-app@4.0.0-beta.62
2159
+
2160
+ ## 4.0.0-beta.61
2161
+
2162
+ ### Patch Changes
2163
+
2164
+ - effect-app@4.0.0-beta.61
2165
+
2166
+ ## 4.0.0-beta.60
2167
+
2168
+ ### Patch Changes
2169
+
2170
+ - 29c39d2: Fix repository `find` with transformed id fields in tagged union schemas
2171
+ - effect-app@4.0.0-beta.60
2172
+
2173
+ ## 4.0.0-beta.59
2174
+
2175
+ ### Patch Changes
2176
+
2177
+ - cec026d: update packages
2178
+ - Updated dependencies [cec026d]
2179
+ - effect-app@4.0.0-beta.59
2180
+
2181
+ ## 4.0.0-beta.58
2182
+
2183
+ ### Patch Changes
2184
+
2185
+ - effect-app@4.0.0-beta.58
2186
+
2187
+ ## 4.0.0-beta.57
2188
+
2189
+ ### Patch Changes
2190
+
2191
+ - fbf47b8: Fix repository `find` with transformed id fields (e.g. composite ids using `decodeTo`)
2192
+ - effect-app@4.0.0-beta.57
2193
+
2194
+ ## 4.0.0-beta.56
2195
+
2196
+ ### Patch Changes
2197
+
2198
+ - effect-app@4.0.0-beta.56
2199
+
2200
+ ## 4.0.0-beta.55
2201
+
2202
+ ### Patch Changes
2203
+
2204
+ - effect-app@4.0.0-beta.55
2205
+
2206
+ ## 4.0.0-beta.54
2207
+
2208
+ ### Patch Changes
2209
+
2210
+ - d867272: the return of `Context`
2211
+ - Updated dependencies [d867272]
2212
+ - effect-app@4.0.0-beta.54
2213
+
2214
+ ## 4.0.0-beta.53
2215
+
2216
+ ### Patch Changes
2217
+
2218
+ - Updated dependencies [ee9694e]
2219
+ - effect-app@4.0.0-beta.53
2220
+
2221
+ ## 4.0.0-beta.52
2222
+
2223
+ ### Patch Changes
2224
+
2225
+ - Updated dependencies [6252808]
2226
+ - effect-app@4.0.0-beta.52
2227
+
2228
+ ## 4.0.0-beta.51
2229
+
2230
+ ### Patch Changes
2231
+
2232
+ - effect-app@4.0.0-beta.51
2233
+
2234
+ ## 4.0.0-beta.50
2235
+
2236
+ ### Patch Changes
2237
+
2238
+ - effect-app@4.0.0-beta.50
2239
+
2240
+ ## 4.0.0-beta.49
2241
+
2242
+ ### Patch Changes
2243
+
2244
+ - Updated dependencies [e585c9c]
2245
+ - effect-app@4.0.0-beta.49
2246
+
2247
+ ## 4.0.0-beta.48
2248
+
2249
+ ### Patch Changes
2250
+
2251
+ - Updated dependencies [0c88f78]
2252
+ - effect-app@4.0.0-beta.48
2253
+
2254
+ ## 4.0.0-beta.47
2255
+
2256
+ ### Patch Changes
2257
+
2258
+ - Updated dependencies [3365758]
2259
+ - effect-app@4.0.0-beta.47
2260
+
2261
+ ## 4.0.0-beta.46
2262
+
2263
+ ### Patch Changes
2264
+
2265
+ - effect-app@4.0.0-beta.46
2266
+
2267
+ ## 4.0.0-beta.45
2268
+
2269
+ ### Patch Changes
2270
+
2271
+ - 10b55ff: update packages
2272
+ - Updated dependencies [10b55ff]
2273
+ - effect-app@4.0.0-beta.45
2274
+
2275
+ ## 4.0.0-beta.44
2276
+
2277
+ ### Patch Changes
2278
+
2279
+ - a37aa38: Update to effect beta 43
2280
+ - Updated dependencies [a37aa38]
2281
+ - effect-app@4.0.0-beta.44
2282
+
2283
+ ## 4.0.0-beta.43
2284
+
2285
+ ### Patch Changes
2286
+
2287
+ - dab6992: no need for .lock.lock
2288
+ - effect-app@4.0.0-beta.43
2289
+
2290
+ ## 4.0.0-beta.42
2291
+
2292
+ ### Patch Changes
2293
+
2294
+ - effect-app@4.0.0-beta.42
2295
+
2296
+ ## 4.0.0-beta.41
2297
+
2298
+ ### Patch Changes
2299
+
2300
+ - effect-app@4.0.0-beta.41
2301
+
2302
+ ## 4.0.0-beta.40
2303
+
2304
+ ### Patch Changes
2305
+
2306
+ - effect-app@4.0.0-beta.40
2307
+
2308
+ ## 4.0.0-beta.39
2309
+
2310
+ ### Patch Changes
2311
+
2312
+ - Updated dependencies [10e90d5]
2313
+ - effect-app@4.0.0-beta.39
2314
+
2315
+ ## 4.0.0-beta.38
2316
+
2317
+ ### Patch Changes
2318
+
2319
+ - Updated dependencies [0b3e00e]
2320
+ - effect-app@4.0.0-beta.38
2321
+
2322
+ ## 4.0.0-beta.37
2323
+
2324
+ ### Patch Changes
2325
+
2326
+ - Updated dependencies [947fe20]
2327
+ - effect-app@4.0.0-beta.37
2328
+
2329
+ ## 4.0.0-beta.36
2330
+
2331
+ ### Patch Changes
2332
+
2333
+ - effect-app@4.0.0-beta.36
2334
+
2335
+ ## 4.0.0-beta.35
2336
+
2337
+ ### Patch Changes
2338
+
2339
+ - effect-app@4.0.0-beta.35
2340
+
2341
+ ## 4.0.0-beta.34
2342
+
2343
+ ### Patch Changes
2344
+
2345
+ - 8c645d5: update to latest effect
2346
+ - Updated dependencies [8c645d5]
2347
+ - effect-app@4.0.0-beta.34
2348
+
2349
+ ## 4.0.0-beta.33
2350
+
2351
+ ### Patch Changes
2352
+
2353
+ - 4b95009: use Finite instead of Number
2354
+ - Updated dependencies [4b95009]
2355
+ - effect-app@4.0.0-beta.33
2356
+
2357
+ ## 4.0.0-beta.32
2358
+
2359
+ ### Patch Changes
2360
+
2361
+ - Updated dependencies [01d862a]
2362
+ - effect-app@4.0.0-beta.32
2363
+
3
2364
  ## 4.0.0-beta.31
4
2365
 
5
2366
  ### Patch Changes