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

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