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

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