effect-app 4.0.0-beta.33 → 4.0.0-beta.330

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 (369) hide show
  1. package/CHANGELOG.md +1626 -0
  2. package/dist/Array.d.ts +2 -1
  3. package/dist/Array.d.ts.map +1 -1
  4. package/dist/Array.js +4 -4
  5. package/dist/Chunk.d.ts.map +1 -1
  6. package/dist/Config/SecretURL.d.ts +3 -1
  7. package/dist/Config/SecretURL.d.ts.map +1 -1
  8. package/dist/Config/SecretURL.js +3 -6
  9. package/dist/Config/internal/configSecretURL.d.ts.map +1 -1
  10. package/dist/Config/internal/configSecretURL.js +2 -2
  11. package/dist/Config.d.ts +2 -0
  12. package/dist/Config.d.ts.map +1 -0
  13. package/dist/Config.js +8 -0
  14. package/dist/ConfigProvider.d.ts +2 -0
  15. package/dist/ConfigProvider.d.ts.map +1 -0
  16. package/dist/ConfigProvider.js +6 -0
  17. package/dist/{ServiceMap.d.ts → Context.d.ts} +18 -20
  18. package/dist/Context.d.ts.map +1 -0
  19. package/dist/Context.js +67 -0
  20. package/dist/DataDependencies.d.ts +136 -0
  21. package/dist/DataDependencies.d.ts.map +1 -0
  22. package/dist/DataDependencies.js +112 -0
  23. package/dist/Effect.d.ts +10 -9
  24. package/dist/Effect.d.ts.map +1 -1
  25. package/dist/Effect.js +6 -9
  26. package/dist/Emailer.d.ts +51 -0
  27. package/dist/Emailer.d.ts.map +1 -0
  28. package/dist/Emailer.js +7 -0
  29. package/dist/Function.d.ts.map +1 -1
  30. package/dist/Layer.d.ts +10 -6
  31. package/dist/Layer.d.ts.map +1 -1
  32. package/dist/Layer.js +3 -2
  33. package/dist/Model/Repository/Registry.d.ts +22 -0
  34. package/dist/Model/Repository/Registry.d.ts.map +1 -0
  35. package/dist/Model/Repository/Registry.js +18 -0
  36. package/dist/Model/Repository/dependency.d.ts +6 -0
  37. package/dist/Model/Repository/dependency.d.ts.map +1 -0
  38. package/dist/Model/Repository/dependency.js +29 -0
  39. package/dist/Model/Repository/ext.d.ts +60 -0
  40. package/dist/Model/Repository/ext.d.ts.map +1 -0
  41. package/dist/Model/Repository/ext.js +124 -0
  42. package/dist/Model/Repository/internal/internal.d.ts +68 -0
  43. package/dist/Model/Repository/internal/internal.d.ts.map +1 -0
  44. package/dist/Model/Repository/internal/internal.js +611 -0
  45. package/dist/Model/Repository/legacy.d.ts +21 -0
  46. package/dist/Model/Repository/legacy.d.ts.map +1 -0
  47. package/dist/Model/Repository/legacy.js +2 -0
  48. package/dist/Model/Repository/makeRepo.d.ts +71 -0
  49. package/dist/Model/Repository/makeRepo.d.ts.map +1 -0
  50. package/dist/Model/Repository/makeRepo.js +30 -0
  51. package/dist/Model/Repository/service.d.ts +121 -0
  52. package/dist/Model/Repository/service.d.ts.map +1 -0
  53. package/dist/Model/Repository/service.js +2 -0
  54. package/dist/Model/Repository/validation.d.ts +72 -0
  55. package/dist/Model/Repository/validation.d.ts.map +1 -0
  56. package/dist/Model/Repository/validation.js +39 -0
  57. package/dist/Model/Repository.d.ts +8 -0
  58. package/dist/Model/Repository.d.ts.map +1 -0
  59. package/dist/Model/Repository.js +8 -0
  60. package/dist/Model/dsl.d.ts +33 -0
  61. package/dist/Model/dsl.d.ts.map +1 -0
  62. package/dist/Model/dsl.js +43 -0
  63. package/dist/Model/filter/filterApi.d.ts +30 -0
  64. package/dist/Model/filter/filterApi.d.ts.map +1 -0
  65. package/dist/Model/filter/filterApi.js +2 -0
  66. package/dist/Model/filter/types/errors.d.ts +29 -0
  67. package/dist/Model/filter/types/errors.d.ts.map +1 -0
  68. package/dist/Model/filter/types/errors.js +2 -0
  69. package/dist/Model/filter/types/fields.d.ts +15 -0
  70. package/dist/Model/filter/types/fields.d.ts.map +1 -0
  71. package/dist/Model/filter/types/fields.js +2 -0
  72. package/dist/Model/filter/types/path/common.d.ts +316 -0
  73. package/dist/Model/filter/types/path/common.d.ts.map +1 -0
  74. package/dist/Model/filter/types/path/common.js +2 -0
  75. package/dist/Model/filter/types/path/eager.d.ts +94 -0
  76. package/dist/Model/filter/types/path/eager.d.ts.map +1 -0
  77. package/dist/Model/filter/types/path/eager.js +36 -0
  78. package/dist/Model/filter/types/path/index.d.ts +4 -0
  79. package/dist/Model/filter/types/path/index.d.ts.map +1 -0
  80. package/dist/Model/filter/types/path/index.js +3 -0
  81. package/dist/Model/filter/types/utils.d.ts +79 -0
  82. package/dist/Model/filter/types/utils.d.ts.map +1 -0
  83. package/dist/Model/filter/types/utils.js +2 -0
  84. package/dist/Model/filter/types/validator.d.ts +30 -0
  85. package/dist/Model/filter/types/validator.d.ts.map +1 -0
  86. package/dist/Model/filter/types/validator.js +2 -0
  87. package/dist/Model/filter/types.d.ts +5 -0
  88. package/dist/Model/filter/types.d.ts.map +1 -0
  89. package/dist/Model/filter/types.js +7 -0
  90. package/dist/Model/query/dsl.d.ts +630 -0
  91. package/dist/Model/query/dsl.d.ts.map +1 -0
  92. package/dist/Model/query/dsl.js +376 -0
  93. package/dist/Model/query/new-kid-interpreter.d.ts +132 -0
  94. package/dist/Model/query/new-kid-interpreter.d.ts.map +1 -0
  95. package/dist/Model/query/new-kid-interpreter.js +370 -0
  96. package/dist/Model/query.d.ts +15 -0
  97. package/dist/Model/query.d.ts.map +1 -0
  98. package/dist/Model/query.js +3 -0
  99. package/dist/Model.d.ts +6 -0
  100. package/dist/Model.d.ts.map +1 -0
  101. package/dist/Model.js +6 -0
  102. package/dist/NonEmptySet.d.ts +3 -1
  103. package/dist/NonEmptySet.d.ts.map +1 -1
  104. package/dist/NonEmptySet.js +2 -2
  105. package/dist/Option.d.ts +1 -0
  106. package/dist/Option.d.ts.map +1 -1
  107. package/dist/Option.js +3 -1
  108. package/dist/Pure.d.ts +7 -5
  109. package/dist/Pure.d.ts.map +1 -1
  110. package/dist/Pure.js +7 -4
  111. package/dist/QueueMaker.d.ts +11 -0
  112. package/dist/QueueMaker.d.ts.map +1 -0
  113. package/dist/QueueMaker.js +11 -0
  114. package/dist/RequestContext.d.ts +87 -0
  115. package/dist/RequestContext.d.ts.map +1 -0
  116. package/dist/RequestContext.js +45 -0
  117. package/dist/RequestScopedDependencies.d.ts +21 -0
  118. package/dist/RequestScopedDependencies.d.ts.map +1 -0
  119. package/dist/RequestScopedDependencies.js +16 -0
  120. package/dist/Schema/Class.d.ts +200 -20
  121. package/dist/Schema/Class.d.ts.map +1 -1
  122. package/dist/Schema/Class.js +268 -17
  123. package/dist/Schema/FastCheck.d.ts.map +1 -1
  124. package/dist/Schema/SchemaParser.d.ts +5 -0
  125. package/dist/Schema/SchemaParser.d.ts.map +1 -0
  126. package/dist/Schema/SchemaParser.js +6 -0
  127. package/dist/Schema/SpecialJsonSchema.d.ts +34 -0
  128. package/dist/Schema/SpecialJsonSchema.d.ts.map +1 -0
  129. package/dist/Schema/SpecialJsonSchema.js +117 -0
  130. package/dist/Schema/SpecialOpenApi.d.ts +32 -0
  131. package/dist/Schema/SpecialOpenApi.d.ts.map +1 -0
  132. package/dist/Schema/SpecialOpenApi.js +123 -0
  133. package/dist/Schema/brand.d.ts +5 -5
  134. package/dist/Schema/brand.d.ts.map +1 -1
  135. package/dist/Schema/brand.js +3 -1
  136. package/dist/Schema/email.d.ts.map +1 -1
  137. package/dist/Schema/email.js +12 -6
  138. package/dist/Schema/ext.d.ts +335 -61
  139. package/dist/Schema/ext.d.ts.map +1 -1
  140. package/dist/Schema/ext.js +388 -63
  141. package/dist/Schema/moreStrings.d.ts +82 -36
  142. package/dist/Schema/moreStrings.d.ts.map +1 -1
  143. package/dist/Schema/moreStrings.js +90 -53
  144. package/dist/Schema/numbers.d.ts +33 -21
  145. package/dist/Schema/numbers.d.ts.map +1 -1
  146. package/dist/Schema/numbers.js +65 -12
  147. package/dist/Schema/phoneNumber.d.ts.map +1 -1
  148. package/dist/Schema/phoneNumber.js +11 -7
  149. package/dist/Schema/schema.d.ts +1 -1
  150. package/dist/Schema/schema.d.ts.map +1 -1
  151. package/dist/Schema/schema.js +2 -2
  152. package/dist/Schema/strings.d.ts +18 -4
  153. package/dist/Schema/strings.d.ts.map +1 -1
  154. package/dist/Schema/strings.js +1 -5
  155. package/dist/Schema.d.ts +225 -7
  156. package/dist/Schema.d.ts.map +1 -1
  157. package/dist/Schema.js +193 -26
  158. package/dist/SchemaAST.d.ts +2 -0
  159. package/dist/SchemaAST.d.ts.map +1 -0
  160. package/dist/SchemaAST.js +2 -0
  161. package/dist/Set.d.ts +4 -1
  162. package/dist/Set.d.ts.map +1 -1
  163. package/dist/Set.js +3 -2
  164. package/dist/Store.d.ts +215 -0
  165. package/dist/Store.d.ts.map +1 -0
  166. package/dist/Store.js +113 -0
  167. package/dist/_ext/Array.d.ts +1 -1
  168. package/dist/_ext/Array.d.ts.map +1 -1
  169. package/dist/_ext/Array.js +4 -2
  170. package/dist/_ext/misc.d.ts +4 -1
  171. package/dist/_ext/misc.d.ts.map +1 -1
  172. package/dist/_ext/misc.js +4 -2
  173. package/dist/_ext/ord.ext.d.ts +2 -1
  174. package/dist/_ext/ord.ext.d.ts.map +1 -1
  175. package/dist/_ext/ord.ext.js +2 -2
  176. package/dist/builtin.d.ts +2 -14
  177. package/dist/builtin.d.ts.map +1 -1
  178. package/dist/builtin.js +1 -1
  179. package/dist/client/InvalidationKeys.d.ts +30 -0
  180. package/dist/client/InvalidationKeys.d.ts.map +1 -0
  181. package/dist/client/InvalidationKeys.js +37 -0
  182. package/dist/client/apiClientFactory.d.ts +19 -31
  183. package/dist/client/apiClientFactory.d.ts.map +1 -1
  184. package/dist/client/apiClientFactory.js +157 -39
  185. package/dist/client/clientFor.d.ts +54 -18
  186. package/dist/client/clientFor.d.ts.map +1 -1
  187. package/dist/client/clientFor.js +9 -1
  188. package/dist/client/errors.d.ts +82 -27
  189. package/dist/client/errors.d.ts.map +1 -1
  190. package/dist/client/errors.js +75 -19
  191. package/dist/client/makeClient.d.ts +490 -34
  192. package/dist/client/makeClient.d.ts.map +1 -1
  193. package/dist/client/makeClient.js +62 -30
  194. package/dist/client.d.ts +2 -0
  195. package/dist/client.d.ts.map +1 -1
  196. package/dist/client.js +3 -1
  197. package/dist/faker.d.ts.map +1 -1
  198. package/dist/http/Request.d.ts +1 -1
  199. package/dist/http/Request.d.ts.map +1 -1
  200. package/dist/http/Request.js +2 -2
  201. package/dist/ids.d.ts +32 -14
  202. package/dist/ids.d.ts.map +1 -1
  203. package/dist/ids.js +38 -6
  204. package/dist/index.d.ts +6 -7
  205. package/dist/index.d.ts.map +1 -1
  206. package/dist/index.js +8 -8
  207. package/dist/middleware.d.ts +13 -7
  208. package/dist/middleware.d.ts.map +1 -1
  209. package/dist/middleware.js +14 -8
  210. package/dist/rpc/Invalidation.d.ts +1124 -0
  211. package/dist/rpc/Invalidation.d.ts.map +1 -0
  212. package/dist/rpc/Invalidation.js +178 -0
  213. package/dist/rpc/MiddlewareMaker.d.ts +11 -7
  214. package/dist/rpc/MiddlewareMaker.d.ts.map +1 -1
  215. package/dist/rpc/MiddlewareMaker.js +59 -38
  216. package/dist/rpc/RpcContextMap.d.ts +3 -3
  217. package/dist/rpc/RpcContextMap.d.ts.map +1 -1
  218. package/dist/rpc/RpcContextMap.js +4 -4
  219. package/dist/rpc/RpcMiddleware.d.ts +14 -10
  220. package/dist/rpc/RpcMiddleware.d.ts.map +1 -1
  221. package/dist/rpc/RpcMiddleware.js +1 -1
  222. package/dist/rpc.d.ts +1 -1
  223. package/dist/rpc.d.ts.map +1 -1
  224. package/dist/rpc.js +2 -2
  225. package/dist/runtime.d.ts +19 -0
  226. package/dist/runtime.d.ts.map +1 -0
  227. package/dist/runtime.js +40 -0
  228. package/dist/setupRequest.d.ts +20 -0
  229. package/dist/setupRequest.d.ts.map +1 -0
  230. package/dist/setupRequest.js +72 -0
  231. package/dist/toast.d.ts +51 -0
  232. package/dist/toast.d.ts.map +1 -0
  233. package/dist/toast.js +34 -0
  234. package/dist/transform.d.ts +1 -1
  235. package/dist/transform.d.ts.map +1 -1
  236. package/dist/transform.js +4 -5
  237. package/dist/utils/effectify.d.ts +1 -1
  238. package/dist/utils/effectify.d.ts.map +1 -1
  239. package/dist/utils/effectify.js +2 -2
  240. package/dist/utils/extend.d.ts.map +1 -1
  241. package/dist/utils/gen.d.ts +4 -4
  242. package/dist/utils/gen.d.ts.map +1 -1
  243. package/dist/utils/logLevel.d.ts +2 -2
  244. package/dist/utils/logLevel.d.ts.map +1 -1
  245. package/dist/utils/logger.d.ts +4 -3
  246. package/dist/utils/logger.d.ts.map +1 -1
  247. package/dist/utils/logger.js +4 -4
  248. package/dist/utils.d.ts +34 -39
  249. package/dist/utils.d.ts.map +1 -1
  250. package/dist/utils.js +33 -37
  251. package/dist/validation/validators.d.ts.map +1 -1
  252. package/dist/validation.d.ts.map +1 -1
  253. package/dist/withToast.d.ts +30 -0
  254. package/dist/withToast.d.ts.map +1 -0
  255. package/dist/withToast.js +64 -0
  256. package/package.json +27 -251
  257. package/src/Array.ts +5 -5
  258. package/src/Chunk.ts +3 -3
  259. package/src/Config/SecretURL.ts +6 -3
  260. package/src/Config/internal/configSecretURL.ts +2 -2
  261. package/src/Config.ts +7 -0
  262. package/src/ConfigProvider.ts +5 -0
  263. package/src/{ServiceMap.ts → Context.ts} +56 -63
  264. package/src/DataDependencies.ts +171 -0
  265. package/src/Effect.ts +15 -17
  266. package/src/Emailer.ts +51 -0
  267. package/src/Inputify.type.ts +1 -1
  268. package/src/Layer.ts +11 -7
  269. package/src/Model/Repository/Registry.ts +35 -0
  270. package/src/Model/Repository/dependency.ts +32 -0
  271. package/src/Model/Repository/ext.ts +374 -0
  272. package/src/Model/Repository/internal/internal.ts +988 -0
  273. package/src/Model/Repository/legacy.ts +29 -0
  274. package/src/Model/Repository/makeRepo.ts +168 -0
  275. package/src/Model/Repository/service.ts +676 -0
  276. package/src/Model/Repository/validation.ts +38 -0
  277. package/src/Model/Repository.ts +7 -0
  278. package/src/Model/dsl.ts +129 -0
  279. package/src/Model/filter/filterApi.ts +78 -0
  280. package/src/Model/filter/types/errors.ts +47 -0
  281. package/src/Model/filter/types/fields.ts +50 -0
  282. package/src/Model/filter/types/path/common.ts +404 -0
  283. package/src/Model/filter/types/path/eager.ts +329 -0
  284. package/src/Model/filter/types/path/index.ts +4 -0
  285. package/src/Model/filter/types/utils.ts +128 -0
  286. package/src/Model/filter/types/validator.ts +46 -0
  287. package/src/Model/filter/types.ts +6 -0
  288. package/src/Model/query/dsl.ts +3092 -0
  289. package/src/Model/query/new-kid-interpreter.ts +532 -0
  290. package/src/Model/query.ts +13 -0
  291. package/src/Model.ts +5 -0
  292. package/src/NonEmptySet.ts +6 -4
  293. package/src/Option.ts +2 -0
  294. package/src/Pure.ts +10 -7
  295. package/src/QueueMaker.ts +11 -0
  296. package/src/RequestContext.ts +48 -0
  297. package/src/RequestScopedDependencies.ts +45 -0
  298. package/src/Schema/Class.ts +648 -60
  299. package/src/Schema/SchemaParser.ts +12 -0
  300. package/src/Schema/SpecialJsonSchema.ts +137 -0
  301. package/src/Schema/SpecialOpenApi.ts +130 -0
  302. package/src/Schema/brand.ts +24 -9
  303. package/src/Schema/email.ts +14 -7
  304. package/src/Schema/ext.ts +508 -102
  305. package/src/Schema/moreStrings.ts +217 -86
  306. package/src/Schema/numbers.ts +107 -28
  307. package/src/Schema/phoneNumber.ts +13 -9
  308. package/src/Schema/schema.ts +1 -1
  309. package/src/Schema/strings.ts +23 -14
  310. package/src/Schema.ts +403 -46
  311. package/src/SchemaAST.ts +1 -0
  312. package/src/Set.ts +6 -2
  313. package/src/Store.ts +325 -0
  314. package/src/_ext/Array.ts +4 -2
  315. package/src/_ext/misc.ts +4 -1
  316. package/src/_ext/ord.ext.ts +2 -1
  317. package/src/builtin-json.d.ts +24 -0
  318. package/src/builtin.ts +16 -21
  319. package/src/client/InvalidationKeys.ts +55 -0
  320. package/src/client/apiClientFactory.ts +301 -141
  321. package/src/client/clientFor.ts +107 -34
  322. package/src/client/errors.ts +100 -29
  323. package/src/client/makeClient.ts +594 -80
  324. package/src/client.ts +6 -4
  325. package/src/http/Request.ts +3 -3
  326. package/src/http.ts +1 -1
  327. package/src/ids.ts +45 -7
  328. package/src/index.ts +20 -23
  329. package/src/middleware.ts +13 -9
  330. package/src/rpc/Invalidation.ts +278 -0
  331. package/src/rpc/MiddlewareMaker.ts +88 -80
  332. package/src/rpc/README.md +2 -2
  333. package/src/rpc/RpcContextMap.ts +7 -6
  334. package/src/rpc/RpcMiddleware.ts +19 -13
  335. package/src/rpc.ts +4 -4
  336. package/src/runtime.ts +57 -0
  337. package/src/setupRequest.ts +138 -0
  338. package/src/toast.ts +54 -0
  339. package/src/transform.ts +4 -4
  340. package/src/utils/effectify.ts +1 -1
  341. package/src/utils/gen.ts +8 -8
  342. package/src/utils/logLevel.ts +1 -1
  343. package/src/utils/logger.ts +4 -3
  344. package/src/utils.ts +85 -158
  345. package/src/validation.ts +2 -2
  346. package/src/withToast.ts +133 -0
  347. package/test/dist/rpc.test.d.ts.map +1 -1
  348. package/test/dist/rpcMiddlewareContext.test.d.ts.map +1 -0
  349. package/test/dist/secretURL.test.d.ts.map +1 -0
  350. package/test/dist/special.test.d.ts.map +1 -0
  351. package/test/moreStrings.test.ts +55 -10
  352. package/test/rpc.test.ts +38 -10
  353. package/test/rpcMiddlewareContext.test.ts +63 -0
  354. package/test/schema.test.ts +505 -26
  355. package/test/secretURL.test.ts +160 -0
  356. package/test/special.test.ts +1261 -0
  357. package/test/utils.test.ts +7 -7
  358. package/tsconfig.base.json +6 -5
  359. package/tsconfig.json +9 -2
  360. package/tsconfig.src.json +29 -29
  361. package/tsconfig.test.json +2 -2
  362. package/dist/Operations.d.ts +0 -123
  363. package/dist/Operations.d.ts.map +0 -1
  364. package/dist/Operations.js +0 -29
  365. package/dist/ServiceMap.d.ts.map +0 -1
  366. package/dist/ServiceMap.js +0 -91
  367. package/eslint.config.mjs +0 -26
  368. package/src/Operations.ts +0 -55
  369. package/tsconfig.json.bak +0 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,1631 @@
1
1
  # @effect-app/prelude
2
2
 
3
+ ## 4.0.0-beta.330
4
+
5
+ ### Patch Changes
6
+
7
+ - 48d9f36: Memory, SQLite, and Postgres `Store.queryRaw` now run over stored JSON documents, not Encoded rows. `Repository.queryRaw` already applies `toCodecJson` to the projector output, so native Encoded `Date` / `Map` / `Set` values no longer fail `Expected JSON value`. Cosmos was already JSON and is unchanged.
8
+
9
+ Memory projectors that assumed native Encoded `Date` / `Map` / `Set` values now see the stored JSON form (ISO strings, arrays).
10
+
11
+ ## 4.0.0-beta.329
12
+
13
+ ### Patch Changes
14
+
15
+ - 459697f: Restore native Arbitrary for the schemas that lost custom fast-check `toArbitrary`. `StringId` uses `toCodecArbitrary` (the native replacement): generate a 210-byte `Uint8Array` and run `customRandom(urlAlphabet, 21, …)` — same as the old `StringIdArb`. JSON stays a branded string via `toCodec`. `Url` is `https://…`. `RequestId` samples unique nanoid-shaped ids. `Finite` generation is capped at ±1e6. `generateFromSchema` jumps its master seed per call so successive `count: 1` draws do not collide on attempt-0 edge strings.
16
+
17
+ ## 4.0.0-beta.328
18
+
19
+ ### Minor Changes
20
+
21
+ - 3a8c710: Store document decode fails as a typed `SchemaError` instead of a defect; repositories keep their public error channels by dying at the boundary; `validateSample` reports documents that fail at the store boundary.
22
+
23
+ ## 4.0.0-beta.327
24
+
25
+ ## 4.0.0-beta.326
26
+
27
+ ### Minor Changes
28
+
29
+ - 2ebf8ae: `jitM` runs at the store boundary as JSON → JSON, before the `toCodecJson(toEncoded(schema))` decode; repositories decode the Encoded shape only.
30
+
31
+ `jitM` used to be applied by the repository _after_ the store had already decoded the document, and was typed `(pm: Encoded) => Encoded` - a lie, since jitMs are written against the stored JSON and `Encoded` holds native `Date`/`Map`/`Set` values.
32
+
33
+ The read pipeline is now: raw JSON document → merge `defaultValues` (unchanged: they only fill _absent_ keys, so an explicitly stored `null` reaches `jitM`) → `jitM` (JSON → JSON) → decode `Schema.toCodecJson(Schema.toEncoded(schema))` → Encoded. The repository then decodes Encoded → the domain type with `schema` and no longer applies `jitM` at all. Because `jitM` now runs before any schema decode sees the document, it can repair legacy shapes including explicit `null`s.
34
+
35
+ - `StoreConfig.jitM?: (json: JsonRecord) => JsonRecord` is new, where `JsonRecord` (exported from `effect-app/Store`) is `{ readonly [key: string]: Schema.Json }`. It is not applied on the write/encode path, and never receives `_etag`.
36
+ - `RepositoryOptions.jitM` changes type from `(pm: Encoded) => Encoded` to `(json: JsonRecord) => JsonRecord` and is forwarded into the store config.
37
+ - **Migrating a jitM:** it now receives and must return JSON. A `Date` field arrives as an ISO string (return a string, not a `Date`), a `ReadonlySet` as an array, a `ReadonlyMap` as an array of `[key, value]` pairs. Field access is index-signature based (`json["x"]`) rather than typed property access.
38
+ - The JSON→Encoded decode stays strict: a document `jitM` does not repair fails at the store boundary instead of being read back half-decoded.
39
+ - `ValidationError.jitMResult` is deprecated: `validateSample` only ever sees the store's output, so it is identical to `rawData`.
40
+
41
+ ## 4.0.0-beta.325
42
+
43
+ ### Patch Changes
44
+
45
+ - f233f3d: `PositiveNumber` and `NonNegativeNumber` bound native Arbitrary generation to at most 1,000,000 (`arbitraryConstraint` on their existing checks), so generated fixtures no longer overflow derived totals to `Infinity`. Validation and JSON Schema output are unchanged.
46
+
47
+ ## 4.0.0-beta.324
48
+
49
+ ### Patch Changes
50
+
51
+ - a0075b8: `Email` and `PhoneNumber` carry native `arbitraryConstraint` patterns, so `effect/unstable/arbitrary` (and `generateFromSchema`) can sample them instead of exhausting rejection sampling on their `refine` guards.
52
+
53
+ ## 4.0.0-beta.323
54
+
55
+ ### Minor Changes
56
+
57
+ - ab289d4: Add opt-in `autoscaleMaxThroughput` for Cosmos containers created on demand (`StorageConfig`, `ClusterCosmosConfig`, `WorkflowEngineCosmosConfig`). When set, a missing container is created with autoscale at that max RU/s, unless its database has shared throughput (then it keeps sharing the database pool). Existing containers are untouched; unset keeps the Cosmos default of manual 400 RU/s per container.
58
+
59
+ ## 4.0.0-beta.322
60
+
61
+ ### Patch Changes
62
+
63
+ - 2231ef8: Upgrade Effect packages to npm `4.0.0-rc.115`. Drop the pkg.pr.new pin used while `effect@4.0.0-rc.114` was unpublished.
64
+
65
+ ## 4.0.0-beta.321
66
+
67
+ ### Patch Changes
68
+
69
+ - 18bae5b: Upgrade Effect packages to `4.0.0-rc.114` (core `effect` via pkg.pr.new at `cdb3ac91` until npm publishes that version). Also bump independently versioned `@effect/language-service` to `0.87.2` and `@effect/tsgo` to `0.45.0` (requires `oxlint` `1.82.0`).
70
+
71
+ Breaking API updates from this RC:
72
+
73
+ - PascalCase Config/CLI constructors (`Config.String`, `Flag.File`, `Config.NonEmptyString`, `Config.Redacted`, `Config.Literal`)
74
+ - `Config.Record` now returns a Config
75
+ - Schema `toArbitrary` (fast-check) replaced by native `effect/unstable/arbitrary`
76
+ - `SchemaTransformation.transformOrFail` renamed to `transformEffect`
77
+ - `Fiber.currentSpan` moved to `fiber.cache.span`
78
+ - HTTP server addresses are `InetAddressV4`/`InetAddressV6` instead of `TcpAddress`
79
+ - Object JSON Schema now emits `additionalProperties: true`
80
+ - Schema `Union` AST stores matching as `options.mode` instead of `mode`
81
+
82
+ ## 4.0.0-beta.320
83
+
84
+ ## 4.0.0-beta.319
85
+
86
+ ## 4.0.0-beta.318
87
+
88
+ ### Patch Changes
89
+
90
+ - 8bd5bfe: Update effect packages to `4.0.0-rc.112` (from `beta.107`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`. Sync `repos/effect` subtree from `Effect-TS/effect` at `effect@4.0.0-rc.112`.
91
+
92
+ API adaptations for rc.112:
93
+
94
+ - cluster encoded driver `resetAddress` → batched `resetAddresses`
95
+ - Cosmos `unprocessedMessages` honors optional `limit` / `addresses` (only claimed rows are returned)
96
+ - Service Bus `Runners.make` supplies `codecFor` for schema-aware RPC serialization
97
+ - `pnpm subtree:effect` passes `--url https://github.com/Effect-TS/effect.git` (published CLI still defaults to effect-smol)
98
+ - JSON Schema check constraints are compacted onto the parent (`minLength`/`maxLength` instead of `allOf`)
99
+
100
+ ## 4.0.0-beta.317
101
+
102
+ ### Minor Changes
103
+
104
+ - 186de3a: Stop forcing Date/Map/Set Encoded shapes to JSON.
105
+
106
+ `Schema.Date` / `ReadonlySet` / `ReadonlyMap` now keep native Encoded types (`Date`, `Set`, `Map`). Use `DateFromString`, `ReadonlySetFromArray`, and `ReadonlyMapFromArray` when the Encoded form must be JSON. The query DSL accepts those native values, including array ops (`includes` / `in` / `includes-any`) on `Date[]` and `ReadonlySet` fields. Memory, Disk, SQL, and Cosmos convert Encoded Date/Map/Set through `Schema.toCodecJson` on write/read; query parameters and defaults lower the same way from the store schema. App types such as DateOnly stay native Encoded and JSON-lower via that schema — not a type registry.
107
+
108
+ - 186de3a: Query maps as JSON arrays of `[key, value]` tuples.
109
+
110
+ `where("meta", "hasKey" | "hasValue" | "hasKeyValue", ...)` (and `not*` / `*-any` / `*-all` variants) filter `ReadonlyMap` fields. Memory, Disk, SQLite, Postgres, and Cosmos compile those ops against the encoded tuple array.
111
+
112
+ - 186de3a: JSON stores lower native Encoded values (Date, Map, Set, and app types such as DateOnly) through the store's document schema.
113
+
114
+ `makeRepo` already passes that schema. Adapters encode documents, query parameters, and defaults with `Schema.toCodecJson(toEncoded(schema))` at the field path. No type registry. Schemaless stores still lower Date/Map/Set structurally.
115
+
116
+ ## 4.0.0-beta.316
117
+
118
+ ## 4.0.0-beta.315
119
+
120
+ ## 4.0.0-beta.314
121
+
122
+ ## 4.0.0-beta.313
123
+
124
+ ## 4.0.0-beta.312
125
+
126
+ ### Patch Changes
127
+
128
+ - 9ea024d: Improve repository schema encode/decode telemetry for event-loop tail analysis.
129
+
130
+ - widen `app.schema.{encode,decode}.duration` histogram buckets into multi-second stalls
131
+ - count `app.schema.slow` (duration ≥ 100ms) with `app.entity` / operation attributes for alertable rates
132
+ - annotate spans with `app.schema.slow` and, on encode, `app.entity.state` from the first item's `_tag`
133
+
134
+ ## 4.0.0-beta.311
135
+
136
+ ### Patch Changes
137
+
138
+ - 547e2e1: Update effect packages to `4.0.0-beta.107` (from `beta.90`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`, and `fast-check` to `^4.9.0`. Sync `repos/effect` subtree from `Effect-TS/effect` (effect-smol stopped publishing tags after beta.98).
139
+
140
+ API adaptations for beta.107:
141
+
142
+ - `concurrency: "inherit"` → `"unbounded"`
143
+ - `Schema.ErrorClass` / `TaggedErrorClass` → `Schema.Error` / `TaggedError`
144
+ - `Schema.LazyArbitrary` → `Schema.Arbitrary`
145
+ - `Schema.DateValid` / `isDateValid` removed (`Schema.Date` rejects invalid dates)
146
+ - `SchemaIssue` constructors no longer take `Option` (annotations + input)
147
+ - filter meta via `annotations.representation` instead of `annotations.meta`
148
+ - `context.defaultValue` → `context.constructorDefault` (single Link)
149
+ - Class detection via `~constructor` + static `identifier`
150
+ - Redacted detection via `representation.id`
151
+ - localized StandardSchema hooks updated for new issue/input model
152
+ - provide `NodeCrypto.layer` for cluster sqlite tests
153
+ - default `sync-effect` subtree URL → `Effect-TS/effect`
154
+
155
+ ## 4.0.0-beta.310
156
+
157
+ ## 4.0.0-beta.309
158
+
159
+ ### Patch Changes
160
+
161
+ - 99c43c4: Derive scoped dependency reads and writes from typed query filters and annotated model relationships, including previous aliases.
162
+
163
+ ## 4.0.0-beta.308
164
+
165
+ ## 4.0.0-beta.307
166
+
167
+ ### Patch Changes
168
+
169
+ - 40585ca: Keep tag-aware `ProjectableFromDomain` for `projectComputed` only; restore loose key-presence guard for `project()` so view DTOs with reshaped fields keep typechecking.
170
+ - ad0ede6: Keep tag-aware `ProjectableGuard` on both `project()` and `projectComputed` (no loose key-only paper-over).
171
+
172
+ Hardening:
173
+
174
+ - single-literal tags allow dual same-tag domain variants (KeysOfUnion of matched members)
175
+ - multi-tag / string tags still require keys on every matched member
176
+ - optional projection/domain keys checked by key presence only (not optional-assignability)
177
+
178
+ Call sites must project domain-owned fields per tagged state.
179
+
180
+ ## 4.0.0-beta.306
181
+
182
+ ### Patch Changes
183
+
184
+ - 0fe925d: Tag-aware `ProjectableFromDomain` for `projectComputed`: projection Encoded fields must exist on the matching domain tagged state (or be computed). Prevents Overview.List SchemaErrors when cancel states omit workflow lock fields like `activeRequest`.
185
+
186
+ ## 4.0.0-beta.305
187
+
188
+ ### Minor Changes
189
+
190
+ - 8bd9a11: Support ID-scoped signal dependencies and additive repository dependencies derived from previous and current entities.
191
+
192
+ ## 4.0.0-beta.304
193
+
194
+ ### Patch Changes
195
+
196
+ - 412f08b: Include changed entity IDs in repository data dependencies, with explicit query scopes and configurable write aliases, while retaining coarse collection dependencies.
197
+
198
+ ## 4.0.0-beta.303
199
+
200
+ ### Patch Changes
201
+
202
+ - 33b0544: Replace repository codec child spans with parent-span timing attributes and bounded metrics, and record database operation timing for instrumented stores.
203
+
204
+ ## 4.0.0-beta.302
205
+
206
+ ### Patch Changes
207
+
208
+ - c0e5a1b: Add `Schema.dropConstructorDefault`, a `Struct.Lambda` that clears a field's `withConstructorDefault`. Compose it with `Struct.omit`/`Struct.map` when deriving a partial-update schema from a "create" schema, so omitted fields' constructor defaults don't resurrect themselves in `.make(...)` output.
209
+
210
+ Also, `makeExactOptional` now drops constructor defaults automatically, matching this behavior.
211
+
212
+ ## 4.0.0-beta.301
213
+
214
+ ## 4.0.0-beta.300
215
+
216
+ ## 4.0.0-beta.299
217
+
218
+ ## 4.0.0-beta.298
219
+
220
+ ### Patch Changes
221
+
222
+ - 08d092c: Update Atom query caches in memory and accumulate stream invalidations so live events do not cause repeated RPC refetches.
223
+
224
+ ## 4.0.0-beta.297
225
+
226
+ ### Patch Changes
227
+
228
+ - 30c512d: fix rpc middleware context type issue
229
+
230
+ ## 4.0.0-beta.296
231
+
232
+ ### Patch Changes
233
+
234
+ - e0c4835: revert bs
235
+
236
+ ## 4.0.0-beta.295
237
+
238
+ ### Patch Changes
239
+
240
+ - eb06b32: improve root union select
241
+
242
+ ## 4.0.0-beta.294
243
+
244
+ ### Patch Changes
245
+
246
+ - a211c12: Fix projection schema typing for union members and computed projections.
247
+
248
+ ## 4.0.0-beta.293
249
+
250
+ ### Patch Changes
251
+
252
+ - d1c15d3: Tighten projectComputed projection schema typing against encoded repo fields and computed output types.
253
+
254
+ ## 4.0.0-beta.292
255
+
256
+ ## 4.0.0-beta.291
257
+
258
+ ## 4.0.0-beta.290
259
+
260
+ ### Patch Changes
261
+
262
+ - dc07df5: Fix nested DTO subset projection inference for tagged unions.
263
+
264
+ ## 4.0.0-beta.289
265
+
266
+ ### Patch Changes
267
+
268
+ - a1b59bc: Allow query projections to use a repository's full union schema.
269
+
270
+ ## 4.0.0-beta.288
271
+
272
+ ### Minor Changes
273
+
274
+ - aeb17bc: Add `disableQueryInvalidation` flag to Command config for background saves.
275
+
276
+ Set `disableQueryInvalidation: true` in a `Req.Command` config (3rd argument)
277
+ to suppress all client-side query invalidation for that command — client
278
+ `invalidatesQueries` callbacks, server-returned `metadata.invalidateQueries`,
279
+ and repository-derived write-dependency matching are all skipped. Use for
280
+ background saves (e.g. debounced auto-save) whose writes should not trigger
281
+ query refetches.
282
+
283
+ - `InvalidationConfig` gains `disableQueryInvalidation?: boolean`.
284
+ - `RequestHandlerWithInput` gains `disableQueryInvalidation?: boolean`,
285
+ propagated from `Request.config` by `ApiClientFactory.makeFor`.
286
+ - `invalidateCache` early-returns `Effect.void` when the flag is set,
287
+ applying to both regular and stream mutations.
288
+
289
+ ## 4.0.0-beta.287
290
+
291
+ ### Patch Changes
292
+
293
+ - 261470f: Remove the local `Schema.Void` / `SchemaAST.Void` override. effect `4.0.0-beta.90` ships the TypeScript `void` parser semantics upstream (`SchemaAST.Void.getParser()` → `fromAnyToConst(undefined)`, the effect-smol PR #2475 behavior), so `S.Void` already accepts any present value and discards it to `undefined`. `Schema.Void` now re-uses effect's `S.Void` and `SchemaAST` is a plain re-export of `effect/SchemaAST`. The unused `Void_` alias is dropped. No behavior change.
294
+
295
+ ## 4.0.0-beta.286
296
+
297
+ ### Patch Changes
298
+
299
+ - b6dda09: Update effect packages to `4.0.0-beta.90` (from `beta.88`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`. No source changes required — typecheck and tests pass unchanged.
300
+
301
+ ## 4.0.0-beta.285
302
+
303
+ ### Patch Changes
304
+
305
+ - 7bd8234: Use set-backed data dependencies and provide request-scoped dependency services through a shared root-checked helper.
306
+
307
+ ## 4.0.0-beta.284
308
+
309
+ ## 4.0.0-beta.283
310
+
311
+ ### Minor Changes
312
+
313
+ - 0054611: Derive query invalidation from repository read/write dependencies and propagate dependency metadata through RPC clients.
314
+
315
+ ### Patch Changes
316
+
317
+ - 0054611: Stream RPC: drain read/write data-dependencies per emitted value chunk instead of sending the
318
+ cumulative set on every metadata chunk. Each metadata chunk now carries only the delta recorded
319
+ since the last chunk, the bucket is cleared for the next segment, and the terminal "done"/"error"
320
+ chunks drain the remainder. The emit condition also broadens to include non-empty reads, so stream
321
+ queries forward their read-dependencies mid-stream too. The client already accumulates deltas into
322
+ its per-call recorder, so no FE change is required.
323
+
324
+ ## 4.0.0-beta.282
325
+
326
+ ### Minor Changes
327
+
328
+ - b2df3fa: Align `Schema.Void` with TypeScript `void` return-value semantics (effect-smol PR #2475 / `b7d46ab`).
329
+
330
+ `S.Void` now accepts **any present value** at runtime and discards it to `undefined`, while keeping the decoded/encoded type as `void` — matching a `void` return whose result callers never observe. This is implemented as an override of the AST node in a new `effect-app/SchemaAST` module (`export * from "effect/SchemaAST"` plus a `Void` subclass whose parser mirrors the PR's `fromAnyToConst(undefined)`), so there is a single canonical `Void` used everywhere, including RPC success schemas.
331
+
332
+ - New `effect-app/SchemaAST` module; internal `SchemaAST` imports across the libs now route through it.
333
+ - Removed `ForceVoid` from `effect-app/client/makeClient` — use `S.Void` directly, which now carries this behaviour.
334
+ - `S.Void_` remains available as effect's original (`undefined`-only) Void.
335
+
336
+ ### Patch Changes
337
+
338
+ - f150cf9: Remove obsolete queue machinery left unused after the move to cluster entities: the SB/SQLite/mem `QueueMaker` implementations (`QueueMaker/{SQLQueue,memQueue,sbqueue}.ts`), their `ServiceBus.ts`/`memQueue.ts` transports, and `RequestFiberSet.ts` (its `setRootParentSpan` helper is inlined into `MainFiberSet`). `effect-app/QueueMaker` keeps only `QueueMeta`; the `QueueBase` interface and empty `QueueMaker` ops object are dropped.
339
+ - e8842aa: Update effect packages to `4.0.0-beta.88` (from `beta.86`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`. Also bump `@effect-app/cli` to `2.1.0-beta.35`. No source changes required — typecheck and tests pass unchanged.
340
+
341
+ ## 4.0.0-beta.281
342
+
343
+ ### Patch Changes
344
+
345
+ - ffd140f: Update effect packages to `4.0.0-beta.86` (from `beta.84`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`. No source changes required — typecheck and tests pass unchanged.
346
+
347
+ ## 4.0.0-beta.280
348
+
349
+ ### Patch Changes
350
+
351
+ - 3eda52e: Fix `StructFacade` to extend effect-app's own `Struct`, not `effect/Schema`'s.
352
+
353
+ `StructFacade` was built on `Omit<S.Struct<Fields>, ...>` where `S` is `effect/Schema` (core). Scanner / consumer models are effect-app `S.Struct`, which is a distinct type from effect core's `Struct`, so a facade built on the core `Struct` is not assignable where an effect-app struct is expected — e.g. workflow payloads (`Workflow<…, Struct<Fields & Context>>`) and other effect-app `Struct`-shaped positions failed to type-check. Switch the `Omit` base to effect-app's `Struct` (the `Fields extends S.Struct.Fields` constraint stays effect core, matching effect-app's own `Struct`).
354
+
355
+ ## 4.0.0-beta.279
356
+
357
+ ### Minor Changes
358
+
359
+ - 5f9cd6a: Schema/Class facades: add `StructFacade` and carry `identifier` on the class facades.
360
+
361
+ - Add `StructFacade<Self, Encoded, MakeIn, DecodingServices, EncodingServices, Fields>` = `Omit<S.Struct<Fields>, "Type" | "Encoded" | "~type.make.in" | "DecodingServices" | "EncodingServices"> & { pinned type-level members }`. A top-level `const X = S.Struct(...)` / `S.TaggedStruct(...)` model faceted by the `.d.ts`-emit compiler is retyped to it: still a real `S.Struct<Fields>` (so `Workflow.AnyStructSchema`, the `Struct<Fields & Context>` reconstruction, `Union`, `.fields.x` keep working) while `Type`/`Encoded`/make/services resolve to the named namespace interfaces.
362
+ - Add `readonly identifier: string` to `OpaqueClassFacade` and `OpaqueErrorFacadeClass` (an `S.Class` static lost from the bare emitted interface, which the compiler otherwise had to hand-emit per model). `OpaqueFacade` is intentionally left untouched — `S.Opaque` and requests build on `S.Bottom`, not `S.Class`, so they have no `identifier`.
363
+
364
+ ## 4.0.0-beta.278
365
+
366
+ ### Patch Changes
367
+
368
+ - a354345: Move release tsconfig flattening from publish to pack lifecycle so package configs are restored before registry upload/auth can fail.
369
+ - a69da09: Publish from generated staging directories so release-only files are created outside the source package tree.
370
+
371
+ ## 4.0.0-beta.277
372
+
373
+ ## 4.0.0-beta.276
374
+
375
+ ### Patch Changes
376
+
377
+ - 32f05c8: Remove unused dependency declarations from package manifests.
378
+
379
+ ## 4.0.0-beta.275
380
+
381
+ ## 4.0.0-beta.274
382
+
383
+ ## 4.0.0-beta.273
384
+
385
+ ### Patch Changes
386
+
387
+ - 664e83d: Add Atom-native Vue query APIs, stream query pull atoms, and a TanStack-backed legacy query engine toggle.
388
+ - e4ff9a6: Fix the global `Array`/`ReadonlyArray.map` override breaking union-of-array receivers. The previous `this: NonEmptyArray`/`NonEmptyReadonlyArray` overload was selected-then-rejected on a union receiver (e.g. `(readonly A[] | readonly B[]).map(...)`), raising TS2684. Replaced with a single conditional-return signature (`this extends NonEmpty… ? NonEmpty<U> : U[]`) that preserves NonEmpty refinement without a `this` parameter, so union-array `.map` calls type-check again.
389
+
390
+ ## 4.0.0-beta.272
391
+
392
+ ### Patch Changes
393
+
394
+ - 21ac90a: Unify generated model facades on `OpaqueFacade` and support class facades through encoded-key schema transforms.
395
+
396
+ ## 4.0.0-beta.271
397
+
398
+ ### Patch Changes
399
+
400
+ - 939bebc: Remove the local `Config.nested` / `ConfigProvider.nested` overrides. They worked around an effect v3 bug where the nested namespace segment bypassed the provider's `mapInput`/`constantCase` transform. effect `4.0.0-beta.84` fixes this upstream (its transformation-compose refactor threads the nested prefix through the provider's lookup transform), and the old overrides relied on internals (`Config.make`, `provider.get`/`mapInput`/`prefix`) that no longer exist. Both modules now re-export effect directly; behaviour for consumers (e.g. `Config.nested("cups")` against a `constantCase` env provider) is unchanged and correct.
401
+
402
+ ## 4.0.0-beta.270
403
+
404
+ ### Patch Changes
405
+
406
+ - 78d076a: Update effect packages to `4.0.0-beta.84` (`effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/atom-vue`, `@effect/sql-sqlite-node`, `@effect/vitest`).
407
+
408
+ ## 4.0.0-beta.269
409
+
410
+ ### Patch Changes
411
+
412
+ - 50b022e: Harden model facades and add `OpaqueErrorFacadeClass`.
413
+
414
+ - `OpaqueErrorFacadeClass`: facade `TaggedErrorClass`/`ErrorClass` while keeping
415
+ `Cause.YieldableError` on the constructed instance (so `yield* new Err()`,
416
+ `Effect.fail`, and `instanceof` keep working through the facade).
417
+ - `OpaqueFacadeInput` relaxed to require only the codec service channels, so
418
+ transformed schemas (`.pipe(encodeKeys/annotate/filter/...)`) can be facaded;
419
+ `fields`/`copy`/`mapFields` flow through `OpaqueFacadeStatics` when present, and
420
+ `to` is carried so models that compose via `X.to.fields` keep working.
421
+ - Dropped the wide `fields`/`mapFields` overrides on the facade interfaces so the
422
+ precise statics win (keeps `Q.project(X.mapFields(...))` typed).
423
+ - Codegen (`eslint-codegen-model`): resolver prefers the private `_X` over the
424
+ self-referential facade; converges static service types in one run; per-model
425
+ classification (facade Opaque models, leave `Class` standard in mixed files);
426
+ `Make` emitted as `type X = {...} | void` when the make-input is voidable;
427
+ `readonly`-prefixed array/tuple elements parenthesized; value self-references in
428
+ the moved `_X` body rewritten to `_X`; instance getters surface on `Self`.
429
+
430
+ - 50b022e: Add generated opaque model facades that expose static Type, Encoded, Make, and Schema declarations without leaking the private struct schema type to downstream project references.
431
+
432
+ ## 4.0.0-beta.268
433
+
434
+ ### Patch Changes
435
+
436
+ - acfdc9e: Point development package exports at TypeScript sources while keeping published exports on compiled dist files.
437
+
438
+ ## 4.0.0-beta.267
439
+
440
+ ### Minor Changes
441
+
442
+ - 23a7167: Add a typed, serializable `DatabaseError { message, transient, cause }` for store adapter failures.
443
+
444
+ Store adapters wrapped DB calls in bare `Effect.promise` / `.orDie`, so a transient infra failure (request timeout, throttle, 5xx, dropped socket) became a raw-`Error` defect — which `Effect.retry` can't retry and which breaks JSON encoding of a workflow exit cause ("Expected JSON value, got Error"). `DatabaseError` is now exposed on all `Store` and `Repository` method error channels (writes: `OptimisticConcurrencyException | DatabaseError`) and added to `SupportedErrors` so the api/client/FE treat it as a 500-class error. Each adapter wraps its db-call failures into `DatabaseError` with a `transient` flag (timeout/throttle/5xx ⇒ retryable); the `cause` serializes via `Schema.Defect`. Construction/seed/DDL paths stay `orDie`.
445
+
446
+ ## 4.0.0-beta.266
447
+
448
+ ### Patch Changes
449
+
450
+ - bbaa67e: Fix `TS2589: Type instantiation is excessively deep and possibly infinite` when querying models that embed `Schema.Defect()` (or any field encoded as `Json`).
451
+
452
+ The query path type `Path<T>` (used by `Q.where`/`Q.and`/`Q.order` to type dotted field paths) recursed through object types with no termination for self-referential ones. Under effect `4.0.0-beta.83`, `Schema.Defect()` encodes as `Json`, whose `JsonObject = { readonly [x: string]: Json }` index signature made `Path` descend forever, blowing past TypeScript's instantiation limit on any model with such a field (e.g. carrier-error states carrying `raw: Schema.Defect()`).
453
+
454
+ `Path` now threads a `Seen` set of already-entered object types and stops before re-entering one, so self-referential types terminate (the field itself stays a valid leaf path; only the unbounded descent is cut). Finite models are unaffected.
455
+
456
+ ## 4.0.0-beta.265
457
+
458
+ ### Patch Changes
459
+
460
+ - 3e855bc: Update Effect packages to `4.0.0-beta.83` (from `beta.74`): `effect`, `@effect/platform-node`, `@effect/platform-browser`, `@effect/sql-sqlite-node`, `@effect/atom-vue`, `@effect/vitest`.
461
+
462
+ Adapt the infra workflow engines to beta.83 API changes:
463
+
464
+ - `Schema.Defect` is now a constructor function — use `S.Defect()` when building the deferred-exit codec (the bare constant no longer produces a usable schema and crashed `toType`).
465
+ - `Workflow` exposes its name as `_tag` instead of `name`. `WorkflowEngineSqlite`/`WorkflowEngineCosmos` now key the registry, codec caches, and persisted `workflow_name` off `workflow._tag`, fixing crash-recovery (stale-lease re-drive previously registered under an `undefined` key and never matched).
466
+
467
+ ## 4.0.0-beta.264
468
+
469
+ ## 4.0.0-beta.263
470
+
471
+ ## 4.0.0-beta.262
472
+
473
+ ### Patch Changes
474
+
475
+ - 55c6572: update packages
476
+
477
+ ## 4.0.0-beta.261
478
+
479
+ ## 4.0.0-beta.260
480
+
481
+ ### Patch Changes
482
+
483
+ - bogus
484
+
485
+ ## 4.0.0-beta.259
486
+
487
+ ## 4.0.0-beta.258
488
+
489
+ ## 4.0.0-beta.257
490
+
491
+ ### Minor Changes
492
+
493
+ - e71eb78: Tighten typing of query DSL builders so field/path parameters are constrained to actual field paths instead of bare `string`:
494
+
495
+ - `relation(path)` now infers the relation's element type and constrains `distinctCount`/`sum`/`collect`/`collectDistinct`/`collectFields`/`collectDistinctFields` and the `unit` of `sumExprBy`/`sumExprNormalized` to `FieldPath<Element>`.
496
+ - `relation(path).expr` exposes a scope-bound math-expression builder so `expr.field(...)` inside `sumExpr`/`sumExprBy`/`sumExprNormalized` is typed against the relation element.
497
+ - Top-level `expr.field` accepts an optional generic for opt-in tightening (`expr.field<E>("x")`).
498
+ - `aggregate(schema, build)` accepts a builder callback whose `agg` argument is bound to the source row inferred from the pipe — paths are checked without any explicit generic: `make<Row>().pipe(aggregate(schema, ($) => ({ city: $.field("address.city") })))`. Plain `AggregateMap` form still accepted.
499
+ - `projectComputed(schema, build, mode?)` accepts a builder callback whose `{ relation }` argument is bound to the source row inferred from the pipe: `make<Row>().pipe(projectComputed(out, ({ relation }) => ({ total: relation("items").sum("qty") })))`. Plain `ComputedProjectionMap` form still accepted.
500
+ - `agg<Row>()` factory remains as an escape hatch when the builder is built outside a pipe.
501
+
502
+ ## 4.0.0-beta.256
503
+
504
+ ### Patch Changes
505
+
506
+ - 347af48: Fix schema interface widening regression introduced in 4.0.0-beta.255 (changeset `olive-onions-lose`).
507
+
508
+ The original refactor annotated branded schema constants with interfaces extending `S.Codec<A, primitive> & WithDefaults<...>`. That widened the underlying `BrandedSchema<...>` chain and dropped phantom slots (`Iso`, `~type.make.in`, `~type.parameters`, `Rebuild`, etc.) that downstream combinators read. In consumer projects this surfaced as `DecodingServices` / `EncodingServices` leaking as `unknown` — for example `Q.project(schema, "project")` failing with `Type 'unknown' is not assignable to type 'never'`, and RPC handler / generator-return shape mismatches against `Effect<any, ..., CurrentSettings | ...>`.
509
+
510
+ Each `*Schema` interface now extends the concrete underlying chain (e.g. `BrandedSchema<S.NonEmptyString, NonEmptyString64>`) and adds a call signature for `withDefaultMake` (and an explicit `withConstructorDefault` field for the numeric and `StringId` schemas). The runtime values are unchanged and the type-display improvement is preserved.
511
+
512
+ Affected: `NonEmptyString*`, `Min3String255`, `StringId`, `Url`, `PositiveInt`, `NonNegativeInt`, `Int`, `PositiveNumber`, `NonNegativeNumber`, and `brandedStringId`.
513
+
514
+ ## 4.0.0-beta.255
515
+
516
+ ### Patch Changes
517
+
518
+ - 52a31dd: Reduce schema type complexity by exposing explicit interfaces for branded string and number schemas.
519
+
520
+ Each branded constant in `Schema/strings.ts`, `Schema/moreStrings.ts`, and `Schema/numbers.ts` now has a named interface (e.g. `NonEmptyStringSchema`, `StringIdSchema`, `PositiveIntSchema`, `UrlSchema`) annotating its `export const`. Mirrors the pattern used in `effect/Schema` itself — TypeScript reports the interface name instead of expanding the full pipe/brand/extension chain, which shrinks inferred types in consumer code and speeds up type display.
521
+
522
+ No runtime or API surface changes; `brandedStringId` now returns `BrandedStringIdSchema<Id>` (same shape as before, just named).
523
+
524
+ ## 4.0.0-beta.254
525
+
526
+ ### Patch Changes
527
+
528
+ - 29a1e57: Repository `changeFeed` is now namespace-aware. Events carry the `storeId` namespace as a third tuple element (`ChangeFeedEvent<T> = [items, op, namespace]`). `subscribe` accepts `options.namespace` to register a per-namespace handler; omitting it registers a wildcard handler that receives events from every namespace. Per-namespace handler buckets eliminate cross-namespace fan-out and avoid waking handlers for irrelevant tenants.
529
+
530
+ ## 4.0.0-beta.253
531
+
532
+ ### Patch Changes
533
+
534
+ - b90fa30: Repository `changeFeed` now broadcasts synchronously: `publish` awaits every subscribed handler before resolving. Replaces `PubSub.PubSub` with a `ChangeFeed<T>` interface (`publish` + scoped `subscribe`). Handlers are auto-removed when the subscriber's scope closes, and the full handler set is cleared when the repository's scope closes. Repository construction now requires `Scope` — wire `makeRepo` through `Layer.scoped` / `Effect.scoped`.
535
+
536
+ ## 4.0.0-beta.252
537
+
538
+ ### Patch Changes
539
+
540
+ - a788432: fix circular
541
+
542
+ ## 4.0.0-beta.251
543
+
544
+ ### Patch Changes
545
+
546
+ - 1c858d3: fix request scope problems
547
+
548
+ ## 4.0.0-beta.250
549
+
550
+ ### Patch Changes
551
+
552
+ - 3053760: fix: restore context map container behavior
553
+
554
+ ## 4.0.0-beta.249
555
+
556
+ ### Minor Changes
557
+
558
+ - 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.
559
+
560
+ `@effect-app/infra` no longer re-exports moved core modules such as `./Model`, `./Emailer/service`, `./QueueMaker/service`, `./Store/service`, `./adapters/*`, or `./api/*` entrypoints.
561
+
562
+ ## 4.0.0-beta.248
563
+
564
+ ### Patch Changes
565
+
566
+ - 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`).
567
+
568
+ 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*`).
569
+
570
+ ## 4.0.0-beta.247
571
+
572
+ ### Patch Changes
573
+
574
+ - 01bab22: Work around tsgo failing to reduce `S.Codec.DecodingServices<X>` (`X extends Top ? X["DecodingServices"] : never`) in generic positions, which left `unknown` and polluted the `R` channel of client handlers and RPC middleware failure context. Since the schemas involved are already constrained to `S.Top`, read `["DecodingServices"]` directly in `RequestHandlerFor`, `TagClass.FailureContext`, and the Vue `MutationExt` / `QueryProjection` types.
575
+
576
+ ## 4.0.0-beta.246
577
+
578
+ ## 4.0.0-beta.245
579
+
580
+ ## 4.0.0-beta.244
581
+
582
+ ### Patch Changes
583
+
584
+ - b8b9080: update packages
585
+
586
+ ## 4.0.0-beta.243
587
+
588
+ ## 4.0.0-beta.242
589
+
590
+ ### Patch Changes
591
+
592
+ - da83c1f: Align `InvalidationEntry` (vue) with `InvalidateQueryInstruction` (effect-app).
593
+
594
+ `InvalidateQueryInstruction` is now parametrized over `Filters` / `Options`
595
+ (defaulting to `Record<string, unknown>` so the core stays framework-agnostic).
596
+ `@effect-app/vue` exposes `InvalidationEntry` as a narrowed alias substituting
597
+ `@tanstack/vue-query`'s `InvalidateQueryFilters` and `InvalidateOptions`. Single
598
+ source of truth for the union shape across both packages.
599
+
600
+ - 21017d5: `InvalidationSet.add` accepts arrays and is exposed as a static shortcut.
601
+
602
+ - Single item: `yield* InvalidationSet.add(UserRsc.GetMe)`
603
+ - Batch: `yield* InvalidationSet.add([UserRsc.GetMe, ["custom", "key"]])`
604
+ - Skips the `.use(_ => _.add(...))` boilerplate.
605
+
606
+ Existing `InvalidationSet.use(_ => _.add(...))` form still works; the service
607
+ identity is preserved via `Object.assign` so `Effect.provideService` and
608
+ `.use` / `.useSync` continue to operate on the same `Context.Reference`.
609
+
610
+ - 2495ace: `InvalidationSet.add` accepts RPC handler shorthand.
611
+
612
+ Server-side handlers may now pass an RPC handler object directly to
613
+ `InvalidationSet.add`; its query key is derived via `makeQueryKey`. Raw
614
+ `InvalidationKey` arrays continue to work.
615
+
616
+ ```ts
617
+ // before
618
+ yield *
619
+ Invalidation.InvalidationSet.use((_) => _.add(makeQueryKey(UserRsc.GetMe)));
620
+
621
+ // after
622
+ yield * Invalidation.InvalidationSet.use((_) => _.add(UserRsc.GetMe));
623
+ ```
624
+
625
+ ## 4.0.0-beta.241
626
+
627
+ ### Patch Changes
628
+
629
+ - b035b1c: Isolate per-call `Effect.provide(layers)` / `Stream.provide(layers)` in the
630
+ RPC api client factory via `{ local: true }`.
631
+
632
+ `layers` here is built per RPC invocation from a caller-supplied
633
+ `requestLevelLayers` plus a fresh `RequestName` layer. Today both pieces are
634
+ stateless, so no observable bug — but `Effect.provide(layer)` without
635
+ `local: true` resolves its `MemoMap` from the ambient fiber context, and on a
636
+ long-lived runtime (browser app, server fiber) any stateful layer slipped into
637
+ `requestLevelLayers` by a caller would be memoized and shared across every
638
+ subsequent RPC call. `{ local: true }` builds the layer fresh per call and
639
+ skips the ambient MemoMap entirely.
640
+
641
+ Also documents the rule in `AGENTS.md` ("Per-request `Effect.provide(layer)`
642
+ must isolate its MemoMap") so the pattern is enforceable in code review and
643
+ caught early. Companion to the `provideOnRequestScope` MemoMap fix in
644
+ `@effect-app/infra`.
645
+
646
+ ## 4.0.0-beta.240
647
+
648
+ ## 4.0.0-beta.239
649
+
650
+ ## 4.0.0-beta.238
651
+
652
+ ## 4.0.0-beta.237
653
+
654
+ ## 4.0.0-beta.236
655
+
656
+ ## 4.0.0-beta.235
657
+
658
+ ### Patch Changes
659
+
660
+ - ba4bdc3: improve: support .ts extension
661
+ - 6cfd83d: update effect to latest beta
662
+
663
+ ## 4.0.0-beta.234
664
+
665
+ ## 4.0.0-beta.233
666
+
667
+ ### Patch Changes
668
+
669
+ - 57a1862: Update to effect 4.0.0-beta.67. Switch deps from `pkg.pr.new` snapshot back to npm beta tag.
670
+
671
+ ## 4.0.0-beta.232
672
+
673
+ ### Patch Changes
674
+
675
+ - 0263827: Fix `Date` / `DateValid` default helpers to pipe from their own schema.
676
+
677
+ `withConstructorDefault` and `withDecodingDefaultType` on `DateValid` previously piped from `DateFromString`, dropping the `isDateValid()` check (and, after the recent identifier split, the `DateValid` annotations) from the resulting defaulted schema. Both `Date` and `DateValid` now use `extendM` so the helpers attach to the underlying schema (`DateFromString` / `DateValidFromString`).
678
+
679
+ - 0263827: Distinguish `Date` and `DateValid` in JSON Schema output.
680
+
681
+ - `Date` now emits identifier `DateOrInvalid` with description noting the value may be invalid.
682
+ - `DateValid` now emits its own annotated string (identifier `Date`) with description stating a valid ISO 8601 date is required.
683
+
684
+ - 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).
685
+
686
+ ## 4.0.0-beta.231
687
+
688
+ ### Patch Changes
689
+
690
+ - 7ca66ce: Update to effect 4.0.0-beta.66. Remove `Yieldable` and `asEffect()` (service tags are now `Effect` directly).
691
+
692
+ ## 4.0.0-beta.230
693
+
694
+ ## 4.0.0-beta.229
695
+
696
+ ## 4.0.0-beta.228
697
+
698
+ ## 4.0.0-beta.227
699
+
700
+ ## 4.0.0-beta.226
701
+
702
+ ## 4.0.0-beta.225
703
+
704
+ ## 4.0.0-beta.224
705
+
706
+ ## 4.0.0-beta.223
707
+
708
+ ## 4.0.0-beta.222
709
+
710
+ ## 4.0.0-beta.221
711
+
712
+ ### Patch Changes
713
+
714
+ - 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"`).
715
+
716
+ ## 4.0.0-beta.220
717
+
718
+ ## 4.0.0-beta.219
719
+
720
+ ### Patch Changes
721
+
722
+ - d738811: remove double prefix
723
+
724
+ ## 4.0.0-beta.218
725
+
726
+ ## 4.0.0-beta.217
727
+
728
+ ### Patch Changes
729
+
730
+ - 0e824ef: add missing Brand
731
+
732
+ ## 4.0.0-beta.216
733
+
734
+ ## 4.0.0-beta.215
735
+
736
+ ## 4.0.0-beta.214
737
+
738
+ ## 4.0.0-beta.213
739
+
740
+ ## 4.0.0-beta.212
741
+
742
+ ### Patch Changes
743
+
744
+ - 8792221: Rename `withDefault` schema extensions to `withConstructorDefault` for clarity.
745
+
746
+ Document that `.withConstructorDefault` is **construction-only** (applied during `.make(...)` when a field is omitted) and is **not** applied during decode — it cannot be used to JIT-migrate database fields. Per-property JSDoc on every `.withConstructorDefault` / `.withDecodingDefaultType` exposed by `Schema/ext.ts`, `Schema/numbers.ts`, `Schema/moreStrings.ts`, and `ids.ts` so the caveat is visible on hover.
747
+
748
+ Re-export `withConstructorDefault`, `withDecodingDefault`, `withDecodingDefaultKey`, `withDecodingDefaultType`, and `withDecodingDefaultTypeKey` from `effect-app/Schema` with explicit JSDoc. `withDecodingDefault*` is discouraged for persisted data: a missing field may be data corruption rather than an old-shape document, and silently substituting a default hides the problem. Prefer an explicit, preferably versioned migration of database data over decode-time fallbacks.
749
+
750
+ ## 4.0.0-beta.211
751
+
752
+ ## 4.0.0-beta.210
753
+
754
+ ## 4.0.0-beta.209
755
+
756
+ ### Patch Changes
757
+
758
+ - c991be1: update packages
759
+ - 3bae238: Remove lodash type imports from utils.ts, replacing with native TypeScript equivalents.
760
+
761
+ ## 4.0.0-beta.208
762
+
763
+ ## 4.0.0-beta.207
764
+
765
+ ### Patch Changes
766
+
767
+ - 8fffc3c: cleanup
768
+
769
+ ## 4.0.0-beta.206
770
+
771
+ ### Patch Changes
772
+
773
+ - 54bfc59: Require middleware to flow through `makeRpcClient` and the live layer through `makeRouter`.
774
+
775
+ ### `makeRpcClient(middleware, generalErrors?)`
776
+
777
+ 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.
778
+
779
+ **Migration**:
780
+
781
+ ```diff
782
+ -makeRpcClient(RequestContextMap, undefined, AppMiddleware)
783
+ +makeRpcClient(AppMiddleware)
784
+ ```
785
+
786
+ For tests/clients without a real middleware, build a minimal stub (`{ requestContextMap, requestContext }`) or pass any value satisfying `ClientMiddleware<RCM>`.
787
+
788
+ ### `makeRouter(middlewareLive)`
789
+
790
+ `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.
791
+
792
+ **Migration**:
793
+
794
+ ```diff
795
+ -export const { Router, matchAll } = makeRouter()
796
+ +export const { Router, matchAll } = makeRouter(AppMiddleware.Default)
797
+ ```
798
+
799
+ ## 4.0.0-beta.205
800
+
801
+ ### Patch Changes
802
+
803
+ - f313973: fix type make interface
804
+
805
+ ## 4.0.0-beta.204
806
+
807
+ ### Patch Changes
808
+
809
+ - 0a0030f: fix missing overloads
810
+
811
+ ## 4.0.0-beta.203
812
+
813
+ ### Patch Changes
814
+
815
+ - 992d9fa: fix more branded types
816
+
817
+ ## 4.0.0-beta.202
818
+
819
+ ### Patch Changes
820
+
821
+ - 1186b09: improve branded types, keep types through Rebuild
822
+
823
+ ## 4.0.0-beta.201
824
+
825
+ ### Patch Changes
826
+
827
+ - 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.
828
+
829
+ ### Resource error schemas
830
+
831
+ Three sites that used to fold `RequestContextMap[*].error` into a request's own error schema now stop doing so:
832
+
833
+ - `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).
834
+ - `MiddlewareMaker.rpc()` — `error: options.error` only; the previous union with `rcm.config[*].error` is gone.
835
+ - Routing and `apiClientFactory.makeRpcGroupFromRequestsAndModuleName` — `Invalidation.makeCommandRpc` is called with `error: resource.error` (no widening with the composite middleware error union).
836
+
837
+ 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:
838
+
839
+ - **Server**: `makeRouter(middleware)` attaches the live composite tag (existing behavior).
840
+ - **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.
841
+
842
+ **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.
843
+
844
+ ### Invalidation wrap/unwrap
845
+
846
+ - `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.
847
+ - `apiClientFactory.ts` (client) `unwrapCommand` strips both envelopes and forwards keys to `InvalidationKeysFromServer`.
848
+ - `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.
849
+
850
+ 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.
851
+
852
+ ## 4.0.0-beta.200
853
+
854
+ ### Patch Changes
855
+
856
+ - 8f1cf6a: able to configure schema concurrency
857
+ - 0cff7c1: workaround middleware error issue
858
+
859
+ ## 4.0.0-beta.199
860
+
861
+ ## 4.0.0-beta.198
862
+
863
+ ### Patch Changes
864
+
865
+ - 32dbc54: fix stream type when no success specified
866
+
867
+ ## 4.0.0-beta.197
868
+
869
+ ### Minor Changes
870
+
871
+ - 3dc0d2a: Add streaming as a `stream: true` config option on `Query` / `Command` instead of a separate request type.
872
+
873
+ `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).
874
+
875
+ ```ts
876
+ // Query that streams results
877
+ Req.Query<T>()("Tag", {}, { stream: true, success: ... })
878
+
879
+ // Command that streams results
880
+ Req.Command<T>()("Tag", {}, { stream: true, success: ... })
881
+ ```
882
+
883
+ Vue client mapping (per-handler properties mirror the non-stream API — `.query`, `.fn`, `.mutate`):
884
+
885
+ - `query` + `stream: true` → exposes `.query` (read-only streaming, tracked Vue Query). Helper map key: `${name}Query`.
886
+ - `command` + `stream: true` → exposes `.fn` and `.mutate` (mutating streaming).
887
+ - Plain `query` / `command` unchanged.
888
+
889
+ Server routing dispatches via the new `stream` flag (`makeStreamRpc` for streaming commands/queries, `makeCommandRpc` / `Rpc.make` otherwise).
890
+
891
+ 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.
892
+
893
+ **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.
894
+
895
+ ## 4.0.0-beta.196
896
+
897
+ ## 4.0.0-beta.195
898
+
899
+ ### Patch Changes
900
+
901
+ - 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.
902
+
903
+ 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`.
904
+
905
+ `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".
906
+
907
+ 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.
908
+
909
+ ## 4.0.0-beta.194
910
+
911
+ ## 4.0.0-beta.193
912
+
913
+ ## 4.0.0-beta.192
914
+
915
+ ## 4.0.0-beta.191
916
+
917
+ ### Patch Changes
918
+
919
+ - 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`.
920
+
921
+ ## 4.0.0-beta.190
922
+
923
+ ### Patch Changes
924
+
925
+ - 985176b: Align request handler input typing with the request's `make` signature. Handlers are now classified as no-input only when the request schema declares no payload fields; any payload (even fully-optional) yields a function handler whose input matches `make`'s first parameter. Adds `HandlerInput<I>` and threads it through `CommandFromRequest`.
926
+
927
+ ## 4.0.0-beta.189
928
+
929
+ ### Patch Changes
930
+
931
+ - 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.
932
+
933
+ ## 4.0.0-beta.188
934
+
935
+ ### Patch Changes
936
+
937
+ - b2e438f: Remove Operations service and repo
938
+
939
+ ## 4.0.0-beta.187
940
+
941
+ ### Patch Changes
942
+
943
+ - 0d4e0b8: Fix `isGeneratorFunction` using `isObject` instead of `isFunction`: generator functions have `typeof === "function"`, not `"object"`, so the check always returned `false`. This caused `Command.streamFn` generator-form handlers to silently pass a raw `Generator` object rather than an `Effect<Stream>`, meaning the mutation was never executed.
944
+
945
+ ## 4.0.0-beta.186
946
+
947
+ ## 4.0.0-beta.185
948
+
949
+ ## 4.0.0-beta.184
950
+
951
+ ## 4.0.0-beta.183
952
+
953
+ ## 4.0.0-beta.182
954
+
955
+ ## 4.0.0-beta.181
956
+
957
+ ### Patch Changes
958
+
959
+ - 583393f: Default the stream `mutateStream` execute resolved value to the request's success type when no `final` schema is declared.
960
+
961
+ Previously the type defaulted to `void`, but the runtime already resolves with the last emitted value. Types now match runtime behaviour: `execute` returns `Final` if a `final` schema is set, otherwise the success type.
962
+
963
+ ## 4.0.0-beta.180
964
+
965
+ ### Minor Changes
966
+
967
+ - 7fa3045: V1/V2/V3: stream and command requests carry invalidation metadata
968
+
969
+ **V1** – stream final response includes metadata
970
+
971
+ - `Invalidation.StreamResponseChunk` wraps each stream item as `{ _tag: "value", value }` and appends `{ _tag: "done", metadata }` at the end carrying all accumulated invalidation keys.
972
+
973
+ **V2** – invalidation keys included in failures
974
+
975
+ - `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.
976
+ - `InvalidationMiddlewareLive` wraps command failures; `routing.ts` wraps stream failures.
977
+ - `apiClientFactory.ts` unwraps both on the client side, forwarding keys before re-failing with the original error.
978
+
979
+ **V3** – mid-stream metadata chunks
980
+
981
+ - `Invalidation.StreamResponseChunk` now also includes `{ _tag: "metadata", metadata }` for mid-stream invalidation.
982
+ - 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`).
983
+ - `apiClientFactory.ts` processes "metadata" chunks the same as "done" chunks, forwarding keys to `InvalidationKeysFromServer` immediately.
984
+ - `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.
985
+
986
+ ## 4.0.0-beta.179
987
+
988
+ ### Minor Changes
989
+
990
+ - 828d264: Stream requests now support an optional `final` schema that models the final success type of the stream. When declared, `mutateStream`'s execute effect resolves with the last emitted value typed as `Final` instead of `void`.
991
+
992
+ ```ts
993
+ class MyStream extends SomethingStream<MyStream>()(
994
+ "MyStream",
995
+ { id: S.String },
996
+ {
997
+ success: S.Union([OperationProgress, ExportComplete]),
998
+ final: ExportComplete, // execute now resolves with ExportComplete
999
+ }
1000
+ ) {}
1001
+ ```
1002
+
1003
+ ## 4.0.0-beta.178
1004
+
1005
+ ## 4.0.0-beta.177
1006
+
1007
+ ### Minor Changes
1008
+
1009
+ - 89d8b3a: Add Effect RPC `Stream` support to the wrapper.
1010
+
1011
+ - New `Stream` request constructor on `TaggedRequestFor` parallel to `Query`/`Command`. Emits resources with `type: "stream"`.
1012
+ - 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).
1013
+ - 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.
1014
+ - New `RequestStreamHandler` / `RequestStreamHandlerWithInput` shapes in `clientFor.ts`; `RequestHandlers` dispatches on `type: "stream"`.
1015
+
1016
+ ## 4.0.0-beta.176
1017
+
1018
+ ### Patch Changes
1019
+
1020
+ - pass options
1021
+
1022
+ ## 4.0.0-beta.175
1023
+
1024
+ ## 4.0.0-beta.174
1025
+
1026
+ ### Minor Changes
1027
+
1028
+ - 821468d: Add server-driven cache invalidation via RPC response headers.
1029
+
1030
+ - `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.
1031
+ - `effect-app/middleware`: new `InvalidationMiddleware` RPC middleware tag; included in `DefaultGenericMiddlewares`.
1032
+ - `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`.
1033
+ - `@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.
1034
+ - `@effect-app/vue`: `invalidateQueries` / `useMutation` now reads server-provided invalidation keys from `InvalidationKeysFromServer` after each mutation and applies them alongside the client-side invalidation.
1035
+
1036
+ ## 4.0.0-beta.173
1037
+
1038
+ ## 4.0.0-beta.172
1039
+
1040
+ ## 4.0.0-beta.171
1041
+
1042
+ ### Patch Changes
1043
+
1044
+ - d71d976: fix
1045
+
1046
+ ## 4.0.0-beta.170
1047
+
1048
+ ### Patch Changes
1049
+
1050
+ - 8f09f77: fix
1051
+
1052
+ ## 4.0.0-beta.169
1053
+
1054
+ ### Patch Changes
1055
+
1056
+ - 8ae8b53: input mess
1057
+
1058
+ ## 4.0.0-beta.168
1059
+
1060
+ ### Patch Changes
1061
+
1062
+ - 178480a: Fix request handler input classification to use request schema fields instead of `make` parameters, preventing defaulted/nullable input fields from being treated as no-input handlers.
1063
+
1064
+ ## 4.0.0-beta.167
1065
+
1066
+ ### Patch Changes
1067
+
1068
+ - 140e192: Relax invalidation resource value constraints to allow arbitrary values while preserving query-only filtering in invalidation handling.
1069
+
1070
+ ## 4.0.0-beta.166
1071
+
1072
+ ### Patch Changes
1073
+
1074
+ - dbcc53b: Refactor command invalidation typing: declare resources via `Command<Self, Resources>()`, pass `invalidatesQueries` as the optional 4th argument, and enforce exact `clientFor` invalidation resources when required.
1075
+
1076
+ ## 4.0.0-beta.165
1077
+
1078
+ ### Minor Changes
1079
+
1080
+ - f88ea34: Move `makeQueryKey` into `effect-app/client` and update Vue source and tests to import it from the shared client module. Vue still re-exports `makeQueryKey` from `src/lib` for compatibility.
1081
+
1082
+ ## 4.0.0-beta.164
1083
+
1084
+ ### Minor Changes
1085
+
1086
+ - 8cb3de4: Add command invalidation helpers that preserve query-only resource types and pass mutation input and `Exit` results into invalidation callbacks. Update Vue `clientFor` to merge request-level invalidation config with call-site invalidation and require matching invalidation resources.
1087
+
1088
+ ## 4.0.0-beta.163
1089
+
1090
+ ### Patch Changes
1091
+
1092
+ - b952f19: bye cruft
1093
+
1094
+ ## 4.0.0-beta.162
1095
+
1096
+ ### Patch Changes
1097
+
1098
+ - b52b424: restore annotations for now
1099
+
1100
+ ## 4.0.0-beta.161
1101
+
1102
+ ## 4.0.0-beta.160
1103
+
1104
+ ### Patch Changes
1105
+
1106
+ - 505bfa9: Add concurrent decode helper APIs and migrate decode callsites to use them.
1107
+
1108
+ - Add `withDefaultParseOptions` and keep `DefaultParseOptions` centralized.
1109
+ - Export `decodeEffectConcurrently` and `decodeUnknownEffectConcurrently` from Schema and SchemaParser modules.
1110
+ - Update repository, queue, client, form, and CLI decode paths to use concurrent decode helpers.
1111
+ - Keep schema constructors free of hardcoded parse concurrency overrides.
1112
+
1113
+ ## 4.0.0-beta.159
1114
+
1115
+ ### Patch Changes
1116
+
1117
+ - c1e73de:
1118
+
1119
+ ## 4.0.0-beta.158
1120
+
1121
+ ### Patch Changes
1122
+
1123
+ - 3c1f52d: improve: class strictness enabled by default again, allow `strict: false` as opt out for now.
1124
+ - 6ae3050: Preserve class annotation parseOptions in relaxed declaration struct decoding so custom parse options (including concurrency defaults) are applied consistently.
1125
+
1126
+ ## 4.0.0-beta.157
1127
+
1128
+ ### Patch Changes
1129
+
1130
+ - 6fff09c: unify encoded function for when you use encodedKeys
1131
+
1132
+ ## 4.0.0-beta.156
1133
+
1134
+ ## 4.0.0-beta.155
1135
+
1136
+ ### Patch Changes
1137
+
1138
+ - c215db8: align TaggedUnion with array arg
1139
+
1140
+ ## 4.0.0-beta.154
1141
+
1142
+ ## 4.0.0-beta.153
1143
+
1144
+ ## 4.0.0-beta.152
1145
+
1146
+ ## 4.0.0-beta.151
1147
+
1148
+ ## 4.0.0-beta.150
1149
+
1150
+ ### Patch Changes
1151
+
1152
+ - 85a8275: Expose `make`, `makeOption`, and `makeEffect` static helpers on request classes created via `Query`/`Command`.
1153
+
1154
+ ## 4.0.0-beta.149
1155
+
1156
+ ### Patch Changes
1157
+
1158
+ - f317c5e: Preserve omitted-input make helpers through Schema.Opaque when the wrapped schema allows optional or default-only constructor input.
1159
+
1160
+ ## 4.0.0-beta.148
1161
+
1162
+ ### Patch Changes
1163
+
1164
+ - 199e9a5: Allow Struct and TaggedStruct make helpers to omit input when every constructor field is optional or defaulted, and preserve widening copy typings through a lighter named public type to improve TypeScript editor responsiveness.
1165
+
1166
+ ## 4.0.0-beta.147
1167
+
1168
+ ### Patch Changes
1169
+
1170
+ - 47e3742: Preserve Struct.copy through `annotate`, `annotateKey`, and `mapFields` chains, and add tests covering chained copy behavior on Struct schemas.
1171
+
1172
+ ## 4.0.0-beta.146
1173
+
1174
+ ### Patch Changes
1175
+
1176
+ - a4dff57: Adjust Struct and TaggedStruct copy typing to follow class-style widening constraints while keeping structural copy runtime behavior.
1177
+
1178
+ ## 4.0.0-beta.145
1179
+
1180
+ ### Patch Changes
1181
+
1182
+ - 12abb55: Refine schema copy behavior by keeping class copy constructor-based while using structural copy for Struct and TaggedStruct helpers.
1183
+
1184
+ ## 4.0.0-beta.144
1185
+
1186
+ ### Patch Changes
1187
+
1188
+ - 11422f8: Update request helper typing and runtime invocation to rely on schema `.make` instead of class constructors, avoiding `new`-based assumptions for request schemas.
1189
+ - d31253f: Refactor eligible schema classes and tagged classes to Opaque schemas, and migrate constructor call sites to use `.make` for those models.
1190
+
1191
+ ## 4.0.0-beta.143
1192
+
1193
+ ### Patch Changes
1194
+
1195
+ - 79eb019: Remove redundant schema `title` annotations when they duplicate the schema `identifier`.
1196
+
1197
+ ## 4.0.0-beta.142
1198
+
1199
+ ### Minor Changes
1200
+
1201
+ - 025de47: Fold the encoded-override support from `ExtendedClass` and `ExtendedTaggedClass` into `Class`, `TaggedClass`, `ErrorClass`, and `TaggedErrorClass`, and update model codegen to detect the new second-generic form.
1202
+
1203
+ ### Patch Changes
1204
+
1205
+ - 3436d44: Extend `Schema.Opaque` in `effect-app/Schema` to support an optional encoded-type generic while preserving the original single-generic behavior.
1206
+
1207
+ ## 4.0.0-beta.141
1208
+
1209
+ ### Patch Changes
1210
+
1211
+ - 7c25dbb: Add relaxed wrapper support for `ErrorClass` and `TaggedErrorClass` in `effect-app/Schema`, matching the existing class wrapper behavior (`copy`, cached `ast`, and unbounded parse concurrency).
1212
+
1213
+ ## 4.0.0-beta.140
1214
+
1215
+ ## 4.0.0-beta.139
1216
+
1217
+ ## 4.0.0-beta.138
1218
+
1219
+ ## 4.0.0-beta.137
1220
+
1221
+ ## 4.0.0-beta.136
1222
+
1223
+ ## 4.0.0-beta.135
1224
+
1225
+ ### Patch Changes
1226
+
1227
+ - c7bbc41: fix - class should check type side
1228
+
1229
+ ## 4.0.0-beta.134
1230
+
1231
+ ### Patch Changes
1232
+
1233
+ - 9d3495e: Preserve field-level schema decode errors for relaxed Class and TaggedClass declarations so decode failures report nested constraints (for example min-length violations) instead of only a generic class-type mismatch.
1234
+ - f353d48: Rename the Class/TaggedClass relaxed declaration option to `strict` (default `false`) and apply it to `Class`, `TaggedClass`, `ExtendedClass`, and `ExtendedTaggedClass`.
1235
+
1236
+ When `strict: true`, class decoding keeps strict class-level declaration behavior; by default, decoding remains relaxed and preserves field-level schema errors.
1237
+
1238
+ ## 4.0.0-beta.133
1239
+
1240
+ ### Patch Changes
1241
+
1242
+ - c3299f7: update packages
1243
+
1244
+ ## 4.0.0-beta.132
1245
+
1246
+ ## 4.0.0-beta.131
1247
+
1248
+ ## 4.0.0-beta.130
1249
+
1250
+ ### Patch Changes
1251
+
1252
+ - ea1bd46: fix: prevent expansion of nominal brands
1253
+
1254
+ ## 4.0.0-beta.129
1255
+
1256
+ ## 4.0.0-beta.128
1257
+
1258
+ ### Patch Changes
1259
+
1260
+ - 57db551: Split `TaggedRequestFor` into `Query` and `Command` factories, and mark generated request classes with `type: "query" | "command"`.
1261
+
1262
+ Vue client helpers now expose query-only helpers (`query`, `suspense`, `fetch`) for query requests and mutation-only helpers (`mutate`, `fetch`) for command requests.
1263
+
1264
+ ## 4.0.0-beta.127
1265
+
1266
+ ## 4.0.0-beta.126
1267
+
1268
+ ### Patch Changes
1269
+
1270
+ - 458bb1b: fix type
1271
+
1272
+ ## 4.0.0-beta.125
1273
+
1274
+ ## 4.0.0-beta.124
1275
+
1276
+ ### Patch Changes
1277
+
1278
+ - 256ae85: cleanup
1279
+
1280
+ ## 4.0.0-beta.123
1281
+
1282
+ ### Patch Changes
1283
+
1284
+ - 14aba14: fix: clientFor
1285
+
1286
+ ## 4.0.0-beta.122
1287
+
1288
+ ### Patch Changes
1289
+
1290
+ - f052d38: Replace `(...) => Effect.gen` with `Effect.fnUntraced` in `apiClientFactory`.
1291
+
1292
+ ## 4.0.0-beta.121
1293
+
1294
+ ### Patch Changes
1295
+
1296
+ - 5ac46cb: Make `Schema.provide` dual (pipeable)
1297
+
1298
+ ## 4.0.0-beta.120
1299
+
1300
+ ### Minor Changes
1301
+
1302
+ - f21190c: Add `copy` property to `Class` and `TaggedClass` for creating modified instances with updated fields. The `copy` method is cached per-class and supports both object and function-based updates, with pipeline support.
1303
+
1304
+ ## 4.0.0-beta.119
1305
+
1306
+ ## 4.0.0-beta.118
1307
+
1308
+ ### Minor Changes
1309
+
1310
+ - 08d2e70: Add `concurrency: "unbounded"` parseOptions annotation to Schema constructors (Struct, Array, NonEmptyArray, Record, TaggedStruct, ReadonlySet, ReadonlyMap, Class, TaggedClass) so all encode/decode operations automatically run with unbounded concurrency. Also override `mapFields` on Struct and Class/TaggedClass to preserve the annotation.
1311
+
1312
+ ### Patch Changes
1313
+
1314
+ - bd26832: Add nested anyOf flattening to JSON Schema post-processing
1315
+ - Update effect packages to 4.0.0-beta.52
1316
+
1317
+ ## 4.0.0-beta.117
1318
+
1319
+ ## 4.0.0-beta.116
1320
+
1321
+ ## 4.0.0-beta.115
1322
+
1323
+ ## 4.0.0-beta.114
1324
+
1325
+ ## 4.0.0-beta.113
1326
+
1327
+ ## 4.0.0-beta.112
1328
+
1329
+ ## 4.0.0-beta.111
1330
+
1331
+ ### Patch Changes
1332
+
1333
+ - ca94edf: fix typo
1334
+
1335
+ ## 4.0.0-beta.110
1336
+
1337
+ ## 4.0.0-beta.109
1338
+
1339
+ ## 4.0.0-beta.108
1340
+
1341
+ ### Patch Changes
1342
+
1343
+ - 3e46e7b: allow excess props in openapi schemas
1344
+
1345
+ ## 4.0.0-beta.107
1346
+
1347
+ ## 4.0.0-beta.106
1348
+
1349
+ ## 4.0.0-beta.105
1350
+
1351
+ ## 4.0.0-beta.104
1352
+
1353
+ ### Minor Changes
1354
+
1355
+ - e944bca: Add `generateGuards` and `generateGuardsFor` to `TaggedUnion` / `ExtendTaggedUnion` for property-scoped type guards.
1356
+
1357
+ - `generateGuards("key")` — generic per-guard, no need to specify the container type
1358
+ - `generateGuardsFor<A>()("key")` — curried, fixes `A` for concrete guard signatures
1359
+
1360
+ Both return `{ is{Tag}, isAnyOf }` guards that narrow the container type by its tagged union property.
1361
+
1362
+ ## 4.0.0-beta.103
1363
+
1364
+ ### Minor Changes
1365
+
1366
+ - 7119320: Add `generateGuards` to `TaggedUnion` / `ExtendTaggedUnion` for generating property-scoped type guards.
1367
+
1368
+ Usage: `MyUnion.generateGuards<MyType>()("propertyKey")` returns `{ is{Tag}, isAnyOf }` guards that narrow the container type by its tagged union property.
1369
+
1370
+ ## 4.0.0-beta.102
1371
+
1372
+ ## 4.0.0-beta.101
1373
+
1374
+ ## 4.0.0-beta.100
1375
+
1376
+ ## 4.0.0-beta.99
1377
+
1378
+ ## 4.0.0-beta.98
1379
+
1380
+ ## 4.0.0-beta.97
1381
+
1382
+ ## 4.0.0-beta.96
1383
+
1384
+ ### Patch Changes
1385
+
1386
+ - 5615e47: bs
1387
+
1388
+ ## 4.0.0-beta.95
1389
+
1390
+ ### Patch Changes
1391
+
1392
+ - 88838fb: Remove pick/omit customizations from Class/TaggedClass/Struct/TaggedStruct. Use `Struct.pick(X.fields, [...])` from `effect-app` instead.
1393
+
1394
+ ## 4.0.0-beta.94
1395
+
1396
+ ## 4.0.0-beta.93
1397
+
1398
+ ## 4.0.0-beta.92
1399
+
1400
+ ## 4.0.0-beta.91
1401
+
1402
+ ### Minor Changes
1403
+
1404
+ - 738b482: Add pick/omit to Struct and TaggedStruct
1405
+
1406
+ ## 4.0.0-beta.90
1407
+
1408
+ ## 4.0.0-beta.89
1409
+
1410
+ ## 4.0.0-beta.88
1411
+
1412
+ ## 4.0.0-beta.87
1413
+
1414
+ ## 4.0.0-beta.86
1415
+
1416
+ ## 4.0.0-beta.85
1417
+
1418
+ ## 4.0.0-beta.84
1419
+
1420
+ ## 4.0.0-beta.83
1421
+
1422
+ ## 4.0.0-beta.82
1423
+
1424
+ ## 4.0.0-beta.81
1425
+
1426
+ ## 4.0.0-beta.80
1427
+
1428
+ ## 4.0.0-beta.79
1429
+
1430
+ ### Minor Changes
1431
+
1432
+ - 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).
1433
+
1434
+ ## 4.0.0-beta.78
1435
+
1436
+ ## 4.0.0-beta.77
1437
+
1438
+ ### Minor Changes
1439
+
1440
+ - 3613e87: Add `TaggedRequestFor` helper to `makeRpcClient` that curries a `moduleName`, producing request classes with static `id` and `moduleName` properties. This enables passing request classes directly to `makeQueryKey` without going through `clientFor` first. The `clientFor` function no longer requires a `meta` property on the module when requests carry `moduleName`. The meta codegen preset now generates `Req = TaggedRequestFor(moduleName)`. Original `TaggedRequest` remains for backwards compatibility.
1441
+
1442
+ ## 4.0.0-beta.76
1443
+
1444
+ ### Patch Changes
1445
+
1446
+ - a5248a9: use new schema features
1447
+ - fac725d: update effect to latest beta
1448
+
1449
+ ## 4.0.0-beta.75
1450
+
1451
+ ### Patch Changes
1452
+
1453
+ - 24f0a5a: rename Literal to Literals, no longer hiding Schema's singular Literal.
1454
+
1455
+ ## 4.0.0-beta.74
1456
+
1457
+ ### Patch Changes
1458
+
1459
+ - 54ec1ef: fix bs
1460
+
1461
+ ## 4.0.0-beta.73
1462
+
1463
+ ## 4.0.0-beta.72
1464
+
1465
+ ### Patch Changes
1466
+
1467
+ - 0541f0d: fix withDefault types
1468
+
1469
+ ## 4.0.0-beta.71
1470
+
1471
+ ### Minor Changes
1472
+
1473
+ - beae3a0: Remove `withDefaultConstructor` wrapper, use `S.withConstructorDefault` directly with `Effect.succeed`/`Effect.sync`.
1474
+
1475
+ ## 4.0.0-beta.70
1476
+
1477
+ ## 4.0.0-beta.69
1478
+
1479
+ ### Patch Changes
1480
+
1481
+ - dc465e3: update to latest effect beta
1482
+
1483
+ ## 4.0.0-beta.68
1484
+
1485
+ ### Patch Changes
1486
+
1487
+ - e6f2341: Add SecretURL tests and switch secretURL config to use Config.nonEmptyString
1488
+
1489
+ ## 4.0.0-beta.67
1490
+
1491
+ ## 4.0.0-beta.66
1492
+
1493
+ ### Patch Changes
1494
+
1495
+ - edc52e4: update
1496
+
1497
+ ## 4.0.0-beta.65
1498
+
1499
+ ### Minor Changes
1500
+
1501
+ - 1f103b2: Replace `proxify` with explicit service accessor helpers: `accessFn`, `accessEffectFn`, `accessCn`, `accessEffectCn`.
1502
+
1503
+ ### Patch Changes
1504
+
1505
+ - 31739d7: Fix JSON schema output for Email, Date, PhoneNumber, and Url schemas. The `jsonSchema` annotation key is not recognized by Effect v4's JSON schema generator — use proper v4 annotations (`format`, `description`) and built-in checks (`isMinLength`, `isMaxLength`) instead.
1506
+
1507
+ ## 4.0.0-beta.64
1508
+
1509
+ ### Patch Changes
1510
+
1511
+ - c1a6fdc: fix proxify
1512
+
1513
+ ## 4.0.0-beta.63
1514
+
1515
+ ## 4.0.0-beta.62
1516
+
1517
+ ### Patch Changes
1518
+
1519
+ - 0b21a02: fix: flatten simple allOf constraints in JSON Schema output for better codegen compatibility
1520
+
1521
+ ## 4.0.0-beta.61
1522
+
1523
+ ## 4.0.0-beta.60
1524
+
1525
+ ## 4.0.0-beta.59
1526
+
1527
+ ### Patch Changes
1528
+
1529
+ - cec026d: update packages
1530
+
1531
+ ## 4.0.0-beta.58
1532
+
1533
+ ## 4.0.0-beta.57
1534
+
1535
+ ## 4.0.0-beta.56
1536
+
1537
+ ## 4.0.0-beta.55
1538
+
1539
+ ## 4.0.0-beta.54
1540
+
1541
+ ### Patch Changes
1542
+
1543
+ - d867272: the return of `Context`
1544
+
1545
+ ## 4.0.0-beta.53
1546
+
1547
+ ### Patch Changes
1548
+
1549
+ - ee9694e: fix type issue?
1550
+
1551
+ ## 4.0.0-beta.52
1552
+
1553
+ ### Minor Changes
1554
+
1555
+ - 6252808: Add `ReadonlySetFromArray` and `ReadonlyMapFromArray` schema transformations that decode from annotated arrays to Set/Map. Update `ReadonlySet` and `ReadonlyMap` to use these internally.
1556
+
1557
+ ## 4.0.0-beta.51
1558
+
1559
+ ## 4.0.0-beta.50
1560
+
1561
+ ## 4.0.0-beta.49
1562
+
1563
+ ### Patch Changes
1564
+
1565
+ - e585c9c: fix config nested
1566
+
1567
+ ## 4.0.0-beta.48
1568
+
1569
+ ### Patch Changes
1570
+
1571
+ - 0c88f78: Remove `TaggedError` compatibility re-export, use `TaggedErrorClass` directly
1572
+
1573
+ ## 4.0.0-beta.47
1574
+
1575
+ ### Patch Changes
1576
+
1577
+ - 3365758: workaround effect error messages
1578
+
1579
+ ## 4.0.0-beta.46
1580
+
1581
+ ## 4.0.0-beta.45
1582
+
1583
+ ### Patch Changes
1584
+
1585
+ - 10b55ff: update packages
1586
+
1587
+ ## 4.0.0-beta.44
1588
+
1589
+ ### Patch Changes
1590
+
1591
+ - a37aa38: Update to effect beta 43
1592
+
1593
+ ## 4.0.0-beta.43
1594
+
1595
+ ## 4.0.0-beta.42
1596
+
1597
+ ## 4.0.0-beta.41
1598
+
1599
+ ## 4.0.0-beta.40
1600
+
1601
+ ## 4.0.0-beta.39
1602
+
1603
+ ### Patch Changes
1604
+
1605
+ - 10e90d5: fix: TaggedRequest should be an Opaque Schema Class
1606
+
1607
+ ## 4.0.0-beta.38
1608
+
1609
+ ### Patch Changes
1610
+
1611
+ - 0b3e00e: fix bug
1612
+
1613
+ ## 4.0.0-beta.37
1614
+
1615
+ ### Patch Changes
1616
+
1617
+ - 947fe20: fix input date
1618
+
1619
+ ## 4.0.0-beta.36
1620
+
1621
+ ## 4.0.0-beta.35
1622
+
1623
+ ## 4.0.0-beta.34
1624
+
1625
+ ### Patch Changes
1626
+
1627
+ - 8c645d5: update to latest effect
1628
+
3
1629
  ## 4.0.0-beta.33
4
1630
 
5
1631
  ### Patch Changes