effect-app 4.0.0-beta.27 → 4.0.0-beta.272

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 (342) hide show
  1. package/CHANGELOG.md +1275 -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/Effect.d.ts +10 -9
  21. package/dist/Effect.d.ts.map +1 -1
  22. package/dist/Effect.js +5 -8
  23. package/dist/Emailer.d.ts +51 -0
  24. package/dist/Emailer.d.ts.map +1 -0
  25. package/dist/Emailer.js +7 -0
  26. package/dist/Function.d.ts.map +1 -1
  27. package/dist/Layer.d.ts +10 -6
  28. package/dist/Layer.d.ts.map +1 -1
  29. package/dist/Layer.js +3 -2
  30. package/dist/Model/Repository/Registry.d.ts +22 -0
  31. package/dist/Model/Repository/Registry.d.ts.map +1 -0
  32. package/dist/Model/Repository/Registry.js +18 -0
  33. package/dist/Model/Repository/ext.d.ts +60 -0
  34. package/dist/Model/Repository/ext.d.ts.map +1 -0
  35. package/dist/Model/Repository/ext.js +122 -0
  36. package/dist/Model/Repository/internal/internal.d.ts +63 -0
  37. package/dist/Model/Repository/internal/internal.d.ts.map +1 -0
  38. package/dist/Model/Repository/internal/internal.js +430 -0
  39. package/dist/Model/Repository/legacy.d.ts +21 -0
  40. package/dist/Model/Repository/legacy.d.ts.map +1 -0
  41. package/dist/Model/Repository/legacy.js +2 -0
  42. package/dist/Model/Repository/makeRepo.d.ts +54 -0
  43. package/dist/Model/Repository/makeRepo.d.ts.map +1 -0
  44. package/dist/Model/Repository/makeRepo.js +27 -0
  45. package/dist/Model/Repository/service.d.ts +121 -0
  46. package/dist/Model/Repository/service.d.ts.map +1 -0
  47. package/dist/Model/Repository/service.js +2 -0
  48. package/dist/Model/Repository/validation.d.ts +58 -0
  49. package/dist/Model/Repository/validation.d.ts.map +1 -0
  50. package/dist/Model/Repository/validation.js +32 -0
  51. package/dist/Model/Repository.d.ts +7 -0
  52. package/dist/Model/Repository.d.ts.map +1 -0
  53. package/dist/Model/Repository.js +7 -0
  54. package/dist/Model/dsl.d.ts +33 -0
  55. package/dist/Model/dsl.d.ts.map +1 -0
  56. package/dist/Model/dsl.js +43 -0
  57. package/dist/Model/filter/filterApi.d.ts +30 -0
  58. package/dist/Model/filter/filterApi.d.ts.map +1 -0
  59. package/dist/Model/filter/filterApi.js +2 -0
  60. package/dist/Model/filter/types/errors.d.ts +29 -0
  61. package/dist/Model/filter/types/errors.d.ts.map +1 -0
  62. package/dist/Model/filter/types/errors.js +2 -0
  63. package/dist/Model/filter/types/fields.d.ts +15 -0
  64. package/dist/Model/filter/types/fields.d.ts.map +1 -0
  65. package/dist/Model/filter/types/fields.js +2 -0
  66. package/dist/Model/filter/types/path/common.d.ts +316 -0
  67. package/dist/Model/filter/types/path/common.d.ts.map +1 -0
  68. package/dist/Model/filter/types/path/common.js +2 -0
  69. package/dist/Model/filter/types/path/eager.d.ts +94 -0
  70. package/dist/Model/filter/types/path/eager.d.ts.map +1 -0
  71. package/dist/Model/filter/types/path/eager.js +36 -0
  72. package/dist/Model/filter/types/path/index.d.ts +4 -0
  73. package/dist/Model/filter/types/path/index.d.ts.map +1 -0
  74. package/dist/Model/filter/types/path/index.js +3 -0
  75. package/dist/Model/filter/types/utils.d.ts +79 -0
  76. package/dist/Model/filter/types/utils.d.ts.map +1 -0
  77. package/dist/Model/filter/types/utils.js +2 -0
  78. package/dist/Model/filter/types/validator.d.ts +30 -0
  79. package/dist/Model/filter/types/validator.d.ts.map +1 -0
  80. package/dist/Model/filter/types/validator.js +2 -0
  81. package/dist/Model/filter/types.d.ts +5 -0
  82. package/dist/Model/filter/types.d.ts.map +1 -0
  83. package/dist/Model/filter/types.js +7 -0
  84. package/dist/Model/query/dsl.d.ts +493 -0
  85. package/dist/Model/query/dsl.d.ts.map +1 -0
  86. package/dist/Model/query/dsl.js +376 -0
  87. package/dist/Model/query/new-kid-interpreter.d.ts +136 -0
  88. package/dist/Model/query/new-kid-interpreter.d.ts.map +1 -0
  89. package/dist/Model/query/new-kid-interpreter.js +336 -0
  90. package/dist/Model/query.d.ts +15 -0
  91. package/dist/Model/query.d.ts.map +1 -0
  92. package/dist/Model/query.js +3 -0
  93. package/dist/Model.d.ts +5 -0
  94. package/dist/Model.d.ts.map +1 -0
  95. package/dist/Model.js +5 -0
  96. package/dist/NonEmptySet.d.ts +3 -1
  97. package/dist/NonEmptySet.d.ts.map +1 -1
  98. package/dist/NonEmptySet.js +2 -2
  99. package/dist/Option.d.ts +1 -0
  100. package/dist/Option.d.ts.map +1 -1
  101. package/dist/Option.js +3 -1
  102. package/dist/Pure.d.ts +7 -5
  103. package/dist/Pure.d.ts.map +1 -1
  104. package/dist/Pure.js +17 -14
  105. package/dist/QueueMaker.d.ts +13 -0
  106. package/dist/QueueMaker.d.ts.map +1 -0
  107. package/dist/QueueMaker.js +4 -0
  108. package/dist/RequestContext.d.ts +154 -0
  109. package/dist/RequestContext.d.ts.map +1 -0
  110. package/dist/RequestContext.js +54 -0
  111. package/dist/Schema/Class.d.ts +160 -19
  112. package/dist/Schema/Class.d.ts.map +1 -1
  113. package/dist/Schema/Class.js +260 -17
  114. package/dist/Schema/FastCheck.d.ts.map +1 -1
  115. package/dist/Schema/SchemaParser.d.ts +5 -0
  116. package/dist/Schema/SchemaParser.d.ts.map +1 -0
  117. package/dist/Schema/SchemaParser.js +6 -0
  118. package/dist/Schema/SpecialJsonSchema.d.ts +34 -0
  119. package/dist/Schema/SpecialJsonSchema.d.ts.map +1 -0
  120. package/dist/Schema/SpecialJsonSchema.js +118 -0
  121. package/dist/Schema/SpecialOpenApi.d.ts +32 -0
  122. package/dist/Schema/SpecialOpenApi.d.ts.map +1 -0
  123. package/dist/Schema/SpecialOpenApi.js +123 -0
  124. package/dist/Schema/brand.d.ts +4 -2
  125. package/dist/Schema/brand.d.ts.map +1 -1
  126. package/dist/Schema/brand.js +3 -1
  127. package/dist/Schema/email.d.ts.map +1 -1
  128. package/dist/Schema/email.js +7 -4
  129. package/dist/Schema/ext.d.ts +338 -55
  130. package/dist/Schema/ext.d.ts.map +1 -1
  131. package/dist/Schema/ext.js +358 -53
  132. package/dist/Schema/moreStrings.d.ts +82 -36
  133. package/dist/Schema/moreStrings.d.ts.map +1 -1
  134. package/dist/Schema/moreStrings.js +49 -42
  135. package/dist/Schema/numbers.d.ts +34 -21
  136. package/dist/Schema/numbers.d.ts.map +1 -1
  137. package/dist/Schema/numbers.js +55 -12
  138. package/dist/Schema/phoneNumber.d.ts.map +1 -1
  139. package/dist/Schema/phoneNumber.js +6 -3
  140. package/dist/Schema/strings.d.ts +18 -4
  141. package/dist/Schema/strings.d.ts.map +1 -1
  142. package/dist/Schema/strings.js +1 -5
  143. package/dist/Schema.d.ts +213 -7
  144. package/dist/Schema.d.ts.map +1 -1
  145. package/dist/Schema.js +190 -11
  146. package/dist/Set.d.ts +4 -1
  147. package/dist/Set.d.ts.map +1 -1
  148. package/dist/Set.js +3 -2
  149. package/dist/Store.d.ts +170 -0
  150. package/dist/Store.d.ts.map +1 -0
  151. package/dist/Store.js +121 -0
  152. package/dist/_ext/Array.d.ts +1 -1
  153. package/dist/_ext/Array.d.ts.map +1 -1
  154. package/dist/_ext/Array.js +4 -2
  155. package/dist/_ext/misc.d.ts +4 -1
  156. package/dist/_ext/misc.d.ts.map +1 -1
  157. package/dist/_ext/misc.js +4 -2
  158. package/dist/_ext/ord.ext.d.ts +2 -1
  159. package/dist/_ext/ord.ext.d.ts.map +1 -1
  160. package/dist/_ext/ord.ext.js +2 -2
  161. package/dist/client/InvalidationKeys.d.ts +29 -0
  162. package/dist/client/InvalidationKeys.d.ts.map +1 -0
  163. package/dist/client/InvalidationKeys.js +33 -0
  164. package/dist/client/apiClientFactory.d.ts +19 -31
  165. package/dist/client/apiClientFactory.d.ts.map +1 -1
  166. package/dist/client/apiClientFactory.js +104 -34
  167. package/dist/client/clientFor.d.ts +52 -18
  168. package/dist/client/clientFor.d.ts.map +1 -1
  169. package/dist/client/clientFor.js +9 -1
  170. package/dist/client/errors.d.ts +82 -27
  171. package/dist/client/errors.d.ts.map +1 -1
  172. package/dist/client/errors.js +75 -19
  173. package/dist/client/makeClient.d.ts +494 -32
  174. package/dist/client/makeClient.d.ts.map +1 -1
  175. package/dist/client/makeClient.js +66 -24
  176. package/dist/client.d.ts +1 -0
  177. package/dist/client.d.ts.map +1 -1
  178. package/dist/client.js +2 -1
  179. package/dist/faker.d.ts.map +1 -1
  180. package/dist/http/Request.d.ts +1 -1
  181. package/dist/http/Request.d.ts.map +1 -1
  182. package/dist/http/Request.js +2 -2
  183. package/dist/ids.d.ts +42 -14
  184. package/dist/ids.d.ts.map +1 -1
  185. package/dist/ids.js +30 -5
  186. package/dist/index.d.ts +6 -7
  187. package/dist/index.d.ts.map +1 -1
  188. package/dist/index.js +8 -8
  189. package/dist/middleware.d.ts +13 -7
  190. package/dist/middleware.d.ts.map +1 -1
  191. package/dist/middleware.js +14 -8
  192. package/dist/rpc/Invalidation.d.ts +420 -0
  193. package/dist/rpc/Invalidation.d.ts.map +1 -0
  194. package/dist/rpc/Invalidation.js +168 -0
  195. package/dist/rpc/MiddlewareMaker.d.ts +11 -7
  196. package/dist/rpc/MiddlewareMaker.d.ts.map +1 -1
  197. package/dist/rpc/MiddlewareMaker.js +59 -38
  198. package/dist/rpc/RpcContextMap.d.ts +3 -3
  199. package/dist/rpc/RpcContextMap.d.ts.map +1 -1
  200. package/dist/rpc/RpcContextMap.js +4 -4
  201. package/dist/rpc/RpcMiddleware.d.ts +14 -10
  202. package/dist/rpc/RpcMiddleware.d.ts.map +1 -1
  203. package/dist/rpc/RpcMiddleware.js +1 -1
  204. package/dist/rpc.d.ts +1 -1
  205. package/dist/rpc.d.ts.map +1 -1
  206. package/dist/rpc.js +2 -2
  207. package/dist/runtime.d.ts +19 -0
  208. package/dist/runtime.d.ts.map +1 -0
  209. package/dist/runtime.js +40 -0
  210. package/dist/setupRequest.d.ts +19 -0
  211. package/dist/setupRequest.d.ts.map +1 -0
  212. package/dist/setupRequest.js +69 -0
  213. package/dist/toast.d.ts +51 -0
  214. package/dist/toast.d.ts.map +1 -0
  215. package/dist/toast.js +34 -0
  216. package/dist/transform.d.ts +1 -1
  217. package/dist/transform.d.ts.map +1 -1
  218. package/dist/transform.js +4 -5
  219. package/dist/utils/effectify.d.ts +1 -1
  220. package/dist/utils/effectify.d.ts.map +1 -1
  221. package/dist/utils/effectify.js +2 -2
  222. package/dist/utils/extend.d.ts.map +1 -1
  223. package/dist/utils/gen.d.ts +4 -4
  224. package/dist/utils/gen.d.ts.map +1 -1
  225. package/dist/utils/logLevel.d.ts +2 -2
  226. package/dist/utils/logLevel.d.ts.map +1 -1
  227. package/dist/utils/logger.d.ts +4 -3
  228. package/dist/utils/logger.d.ts.map +1 -1
  229. package/dist/utils/logger.js +4 -4
  230. package/dist/utils.d.ts +34 -39
  231. package/dist/utils.d.ts.map +1 -1
  232. package/dist/utils.js +33 -37
  233. package/dist/validation/validators.d.ts.map +1 -1
  234. package/dist/validation.d.ts.map +1 -1
  235. package/dist/withToast.d.ts +30 -0
  236. package/dist/withToast.d.ts.map +1 -0
  237. package/dist/withToast.js +64 -0
  238. package/package.json +22 -247
  239. package/src/Array.ts +5 -5
  240. package/src/Chunk.ts +3 -3
  241. package/src/Config/SecretURL.ts +6 -3
  242. package/src/Config/internal/configSecretURL.ts +2 -2
  243. package/src/Config.ts +7 -0
  244. package/src/ConfigProvider.ts +5 -0
  245. package/src/{ServiceMap.ts → Context.ts} +56 -63
  246. package/src/Effect.ts +14 -16
  247. package/src/Emailer.ts +51 -0
  248. package/src/Inputify.type.ts +1 -1
  249. package/src/Layer.ts +11 -7
  250. package/src/Model/Repository/Registry.ts +35 -0
  251. package/src/Model/Repository/ext.ts +375 -0
  252. package/src/Model/Repository/internal/internal.ts +741 -0
  253. package/src/Model/Repository/legacy.ts +29 -0
  254. package/src/Model/Repository/makeRepo.ts +145 -0
  255. package/src/Model/Repository/service.ts +676 -0
  256. package/src/Model/Repository/validation.ts +31 -0
  257. package/src/Model/Repository.ts +6 -0
  258. package/src/Model/dsl.ts +129 -0
  259. package/src/Model/filter/filterApi.ts +60 -0
  260. package/src/Model/filter/types/errors.ts +47 -0
  261. package/src/Model/filter/types/fields.ts +50 -0
  262. package/src/Model/filter/types/path/common.ts +404 -0
  263. package/src/Model/filter/types/path/eager.ts +329 -0
  264. package/src/Model/filter/types/path/index.ts +4 -0
  265. package/src/Model/filter/types/utils.ts +128 -0
  266. package/src/Model/filter/types/validator.ts +46 -0
  267. package/src/Model/filter/types.ts +6 -0
  268. package/src/Model/query/dsl.ts +2694 -0
  269. package/src/Model/query/new-kid-interpreter.ts +484 -0
  270. package/src/Model/query.ts +13 -0
  271. package/src/Model.ts +4 -0
  272. package/src/NonEmptySet.ts +6 -4
  273. package/src/Option.ts +2 -0
  274. package/src/Pure.ts +22 -20
  275. package/src/QueueMaker.ts +19 -0
  276. package/src/RequestContext.ts +95 -0
  277. package/src/Schema/Class.ts +593 -59
  278. package/src/Schema/SchemaParser.ts +12 -0
  279. package/src/Schema/SpecialJsonSchema.ts +139 -0
  280. package/src/Schema/SpecialOpenApi.ts +130 -0
  281. package/src/Schema/brand.ts +22 -2
  282. package/src/Schema/email.ts +9 -4
  283. package/src/Schema/ext.ts +446 -91
  284. package/src/Schema/moreStrings.ts +147 -68
  285. package/src/Schema/numbers.ts +97 -28
  286. package/src/Schema/phoneNumber.ts +9 -5
  287. package/src/Schema/strings.ts +23 -14
  288. package/src/Schema.ts +389 -25
  289. package/src/Set.ts +6 -2
  290. package/src/Store.ts +277 -0
  291. package/src/_ext/Array.ts +4 -2
  292. package/src/_ext/misc.ts +4 -1
  293. package/src/_ext/ord.ext.ts +2 -1
  294. package/src/client/InvalidationKeys.ts +50 -0
  295. package/src/client/apiClientFactory.ts +234 -135
  296. package/src/client/clientFor.ts +105 -34
  297. package/src/client/errors.ts +100 -29
  298. package/src/client/makeClient.ts +594 -73
  299. package/src/client.ts +5 -4
  300. package/src/http/Request.ts +3 -3
  301. package/src/http.ts +1 -1
  302. package/src/ids.ts +33 -6
  303. package/src/index.ts +20 -23
  304. package/src/middleware.ts +13 -9
  305. package/src/rpc/Invalidation.ts +261 -0
  306. package/src/rpc/MiddlewareMaker.ts +88 -80
  307. package/src/rpc/README.md +2 -2
  308. package/src/rpc/RpcContextMap.ts +7 -6
  309. package/src/rpc/RpcMiddleware.ts +19 -13
  310. package/src/rpc.ts +4 -4
  311. package/src/runtime.ts +56 -0
  312. package/src/setupRequest.ts +134 -0
  313. package/src/toast.ts +54 -0
  314. package/src/transform.ts +4 -4
  315. package/src/utils/effectify.ts +1 -1
  316. package/src/utils/gen.ts +8 -8
  317. package/src/utils/logLevel.ts +1 -1
  318. package/src/utils/logger.ts +4 -3
  319. package/src/utils.ts +85 -158
  320. package/src/validation.ts +2 -2
  321. package/src/withToast.ts +133 -0
  322. package/test/dist/rpc.test.d.ts.map +1 -1
  323. package/test/dist/secretURL.test.d.ts.map +1 -0
  324. package/test/dist/special.test.d.ts.map +1 -0
  325. package/test/moreStrings.test.ts +1 -1
  326. package/test/rpc.test.ts +46 -6
  327. package/test/schema.test.ts +459 -30
  328. package/test/secretURL.test.ts +160 -0
  329. package/test/special.test.ts +1258 -0
  330. package/test/utils.test.ts +7 -7
  331. package/tsconfig.base.json +6 -5
  332. package/tsconfig.json +3 -1
  333. package/tsconfig.json.bak +2 -2
  334. package/tsconfig.src.json +29 -29
  335. package/tsconfig.test.json +2 -2
  336. package/dist/Operations.d.ts +0 -123
  337. package/dist/Operations.d.ts.map +0 -1
  338. package/dist/Operations.js +0 -29
  339. package/dist/ServiceMap.d.ts.map +0 -1
  340. package/dist/ServiceMap.js +0 -91
  341. package/eslint.config.mjs +0 -26
  342. package/src/Operations.ts +0 -55
package/CHANGELOG.md CHANGED
@@ -1,5 +1,1280 @@
1
1
  # @effect-app/prelude
2
2
 
3
+ ## 4.0.0-beta.272
4
+
5
+ ### Patch Changes
6
+
7
+ - 21ac90a: Unify generated model facades on `OpaqueFacade` and support class facades through encoded-key schema transforms.
8
+
9
+ ## 4.0.0-beta.271
10
+
11
+ ### Patch Changes
12
+
13
+ - 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.
14
+
15
+ ## 4.0.0-beta.270
16
+
17
+ ### Patch Changes
18
+
19
+ - 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`).
20
+
21
+ ## 4.0.0-beta.269
22
+
23
+ ### Patch Changes
24
+
25
+ - 50b022e: Harden model facades and add `OpaqueErrorFacadeClass`.
26
+
27
+ - `OpaqueErrorFacadeClass`: facade `TaggedErrorClass`/`ErrorClass` while keeping
28
+ `Cause.YieldableError` on the constructed instance (so `yield* new Err()`,
29
+ `Effect.fail`, and `instanceof` keep working through the facade).
30
+ - `OpaqueFacadeInput` relaxed to require only the codec service channels, so
31
+ transformed schemas (`.pipe(encodeKeys/annotate/filter/...)`) can be facaded;
32
+ `fields`/`copy`/`mapFields` flow through `OpaqueFacadeStatics` when present, and
33
+ `to` is carried so models that compose via `X.to.fields` keep working.
34
+ - Dropped the wide `fields`/`mapFields` overrides on the facade interfaces so the
35
+ precise statics win (keeps `Q.project(X.mapFields(...))` typed).
36
+ - Codegen (`eslint-codegen-model`): resolver prefers the private `_X` over the
37
+ self-referential facade; converges static service types in one run; per-model
38
+ classification (facade Opaque models, leave `Class` standard in mixed files);
39
+ `Make` emitted as `type X = {...} | void` when the make-input is voidable;
40
+ `readonly`-prefixed array/tuple elements parenthesized; value self-references in
41
+ the moved `_X` body rewritten to `_X`; instance getters surface on `Self`.
42
+
43
+ - 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.
44
+
45
+ ## 4.0.0-beta.268
46
+
47
+ ### Patch Changes
48
+
49
+ - acfdc9e: Point development package exports at TypeScript sources while keeping published exports on compiled dist files.
50
+
51
+ ## 4.0.0-beta.267
52
+
53
+ ### Minor Changes
54
+
55
+ - 23a7167: Add a typed, serializable `DatabaseError { message, transient, cause }` for store adapter failures.
56
+
57
+ 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`.
58
+
59
+ ## 4.0.0-beta.266
60
+
61
+ ### Patch Changes
62
+
63
+ - bbaa67e: Fix `TS2589: Type instantiation is excessively deep and possibly infinite` when querying models that embed `Schema.Defect()` (or any field encoded as `Json`).
64
+
65
+ 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()`).
66
+
67
+ `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.
68
+
69
+ ## 4.0.0-beta.265
70
+
71
+ ### Patch Changes
72
+
73
+ - 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`.
74
+
75
+ Adapt the infra workflow engines to beta.83 API changes:
76
+
77
+ - `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`).
78
+ - `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).
79
+
80
+ ## 4.0.0-beta.264
81
+
82
+ ## 4.0.0-beta.263
83
+
84
+ ## 4.0.0-beta.262
85
+
86
+ ### Patch Changes
87
+
88
+ - 55c6572: update packages
89
+
90
+ ## 4.0.0-beta.261
91
+
92
+ ## 4.0.0-beta.260
93
+
94
+ ### Patch Changes
95
+
96
+ - bogus
97
+
98
+ ## 4.0.0-beta.259
99
+
100
+ ## 4.0.0-beta.258
101
+
102
+ ## 4.0.0-beta.257
103
+
104
+ ### Minor Changes
105
+
106
+ - e71eb78: Tighten typing of query DSL builders so field/path parameters are constrained to actual field paths instead of bare `string`:
107
+
108
+ - `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>`.
109
+ - `relation(path).expr` exposes a scope-bound math-expression builder so `expr.field(...)` inside `sumExpr`/`sumExprBy`/`sumExprNormalized` is typed against the relation element.
110
+ - Top-level `expr.field` accepts an optional generic for opt-in tightening (`expr.field<E>("x")`).
111
+ - `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.
112
+ - `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.
113
+ - `agg<Row>()` factory remains as an escape hatch when the builder is built outside a pipe.
114
+
115
+ ## 4.0.0-beta.256
116
+
117
+ ### Patch Changes
118
+
119
+ - 347af48: Fix schema interface widening regression introduced in 4.0.0-beta.255 (changeset `olive-onions-lose`).
120
+
121
+ 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 | ...>`.
122
+
123
+ 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.
124
+
125
+ Affected: `NonEmptyString*`, `Min3String255`, `StringId`, `Url`, `PositiveInt`, `NonNegativeInt`, `Int`, `PositiveNumber`, `NonNegativeNumber`, and `brandedStringId`.
126
+
127
+ ## 4.0.0-beta.255
128
+
129
+ ### Patch Changes
130
+
131
+ - 52a31dd: Reduce schema type complexity by exposing explicit interfaces for branded string and number schemas.
132
+
133
+ 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.
134
+
135
+ No runtime or API surface changes; `brandedStringId` now returns `BrandedStringIdSchema<Id>` (same shape as before, just named).
136
+
137
+ ## 4.0.0-beta.254
138
+
139
+ ### Patch Changes
140
+
141
+ - 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.
142
+
143
+ ## 4.0.0-beta.253
144
+
145
+ ### Patch Changes
146
+
147
+ - 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`.
148
+
149
+ ## 4.0.0-beta.252
150
+
151
+ ### Patch Changes
152
+
153
+ - a788432: fix circular
154
+
155
+ ## 4.0.0-beta.251
156
+
157
+ ### Patch Changes
158
+
159
+ - 1c858d3: fix request scope problems
160
+
161
+ ## 4.0.0-beta.250
162
+
163
+ ### Patch Changes
164
+
165
+ - 3053760: fix: restore context map container behavior
166
+
167
+ ## 4.0.0-beta.249
168
+
169
+ ### Minor Changes
170
+
171
+ - 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.
172
+
173
+ `@effect-app/infra` no longer re-exports moved core modules such as `./Model`, `./Emailer/service`, `./QueueMaker/service`, `./Store/service`, `./adapters/*`, or `./api/*` entrypoints.
174
+
175
+ ## 4.0.0-beta.248
176
+
177
+ ### Patch Changes
178
+
179
+ - 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`).
180
+
181
+ 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*`).
182
+
183
+ ## 4.0.0-beta.247
184
+
185
+ ### Patch Changes
186
+
187
+ - 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.
188
+
189
+ ## 4.0.0-beta.246
190
+
191
+ ## 4.0.0-beta.245
192
+
193
+ ## 4.0.0-beta.244
194
+
195
+ ### Patch Changes
196
+
197
+ - b8b9080: update packages
198
+
199
+ ## 4.0.0-beta.243
200
+
201
+ ## 4.0.0-beta.242
202
+
203
+ ### Patch Changes
204
+
205
+ - da83c1f: Align `InvalidationEntry` (vue) with `InvalidateQueryInstruction` (effect-app).
206
+
207
+ `InvalidateQueryInstruction` is now parametrized over `Filters` / `Options`
208
+ (defaulting to `Record<string, unknown>` so the core stays framework-agnostic).
209
+ `@effect-app/vue` exposes `InvalidationEntry` as a narrowed alias substituting
210
+ `@tanstack/vue-query`'s `InvalidateQueryFilters` and `InvalidateOptions`. Single
211
+ source of truth for the union shape across both packages.
212
+
213
+ - 21017d5: `InvalidationSet.add` accepts arrays and is exposed as a static shortcut.
214
+
215
+ - Single item: `yield* InvalidationSet.add(UserRsc.GetMe)`
216
+ - Batch: `yield* InvalidationSet.add([UserRsc.GetMe, ["custom", "key"]])`
217
+ - Skips the `.use(_ => _.add(...))` boilerplate.
218
+
219
+ Existing `InvalidationSet.use(_ => _.add(...))` form still works; the service
220
+ identity is preserved via `Object.assign` so `Effect.provideService` and
221
+ `.use` / `.useSync` continue to operate on the same `Context.Reference`.
222
+
223
+ - 2495ace: `InvalidationSet.add` accepts RPC handler shorthand.
224
+
225
+ Server-side handlers may now pass an RPC handler object directly to
226
+ `InvalidationSet.add`; its query key is derived via `makeQueryKey`. Raw
227
+ `InvalidationKey` arrays continue to work.
228
+
229
+ ```ts
230
+ // before
231
+ yield *
232
+ Invalidation.InvalidationSet.use((_) => _.add(makeQueryKey(UserRsc.GetMe)));
233
+
234
+ // after
235
+ yield * Invalidation.InvalidationSet.use((_) => _.add(UserRsc.GetMe));
236
+ ```
237
+
238
+ ## 4.0.0-beta.241
239
+
240
+ ### Patch Changes
241
+
242
+ - b035b1c: Isolate per-call `Effect.provide(layers)` / `Stream.provide(layers)` in the
243
+ RPC api client factory via `{ local: true }`.
244
+
245
+ `layers` here is built per RPC invocation from a caller-supplied
246
+ `requestLevelLayers` plus a fresh `RequestName` layer. Today both pieces are
247
+ stateless, so no observable bug — but `Effect.provide(layer)` without
248
+ `local: true` resolves its `MemoMap` from the ambient fiber context, and on a
249
+ long-lived runtime (browser app, server fiber) any stateful layer slipped into
250
+ `requestLevelLayers` by a caller would be memoized and shared across every
251
+ subsequent RPC call. `{ local: true }` builds the layer fresh per call and
252
+ skips the ambient MemoMap entirely.
253
+
254
+ Also documents the rule in `AGENTS.md` ("Per-request `Effect.provide(layer)`
255
+ must isolate its MemoMap") so the pattern is enforceable in code review and
256
+ caught early. Companion to the `provideOnRequestScope` MemoMap fix in
257
+ `@effect-app/infra`.
258
+
259
+ ## 4.0.0-beta.240
260
+
261
+ ## 4.0.0-beta.239
262
+
263
+ ## 4.0.0-beta.238
264
+
265
+ ## 4.0.0-beta.237
266
+
267
+ ## 4.0.0-beta.236
268
+
269
+ ## 4.0.0-beta.235
270
+
271
+ ### Patch Changes
272
+
273
+ - ba4bdc3: improve: support .ts extension
274
+ - 6cfd83d: update effect to latest beta
275
+
276
+ ## 4.0.0-beta.234
277
+
278
+ ## 4.0.0-beta.233
279
+
280
+ ### Patch Changes
281
+
282
+ - 57a1862: Update to effect 4.0.0-beta.67. Switch deps from `pkg.pr.new` snapshot back to npm beta tag.
283
+
284
+ ## 4.0.0-beta.232
285
+
286
+ ### Patch Changes
287
+
288
+ - 0263827: Fix `Date` / `DateValid` default helpers to pipe from their own schema.
289
+
290
+ `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`).
291
+
292
+ - 0263827: Distinguish `Date` and `DateValid` in JSON Schema output.
293
+
294
+ - `Date` now emits identifier `DateOrInvalid` with description noting the value may be invalid.
295
+ - `DateValid` now emits its own annotated string (identifier `Date`) with description stating a valid ISO 8601 date is required.
296
+
297
+ - 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).
298
+
299
+ ## 4.0.0-beta.231
300
+
301
+ ### Patch Changes
302
+
303
+ - 7ca66ce: Update to effect 4.0.0-beta.66. Remove `Yieldable` and `asEffect()` (service tags are now `Effect` directly).
304
+
305
+ ## 4.0.0-beta.230
306
+
307
+ ## 4.0.0-beta.229
308
+
309
+ ## 4.0.0-beta.228
310
+
311
+ ## 4.0.0-beta.227
312
+
313
+ ## 4.0.0-beta.226
314
+
315
+ ## 4.0.0-beta.225
316
+
317
+ ## 4.0.0-beta.224
318
+
319
+ ## 4.0.0-beta.223
320
+
321
+ ## 4.0.0-beta.222
322
+
323
+ ## 4.0.0-beta.221
324
+
325
+ ### Patch Changes
326
+
327
+ - 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"`).
328
+
329
+ ## 4.0.0-beta.220
330
+
331
+ ## 4.0.0-beta.219
332
+
333
+ ### Patch Changes
334
+
335
+ - d738811: remove double prefix
336
+
337
+ ## 4.0.0-beta.218
338
+
339
+ ## 4.0.0-beta.217
340
+
341
+ ### Patch Changes
342
+
343
+ - 0e824ef: add missing Brand
344
+
345
+ ## 4.0.0-beta.216
346
+
347
+ ## 4.0.0-beta.215
348
+
349
+ ## 4.0.0-beta.214
350
+
351
+ ## 4.0.0-beta.213
352
+
353
+ ## 4.0.0-beta.212
354
+
355
+ ### Patch Changes
356
+
357
+ - 8792221: Rename `withDefault` schema extensions to `withConstructorDefault` for clarity.
358
+
359
+ 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.
360
+
361
+ 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.
362
+
363
+ ## 4.0.0-beta.211
364
+
365
+ ## 4.0.0-beta.210
366
+
367
+ ## 4.0.0-beta.209
368
+
369
+ ### Patch Changes
370
+
371
+ - c991be1: update packages
372
+ - 3bae238: Remove lodash type imports from utils.ts, replacing with native TypeScript equivalents.
373
+
374
+ ## 4.0.0-beta.208
375
+
376
+ ## 4.0.0-beta.207
377
+
378
+ ### Patch Changes
379
+
380
+ - 8fffc3c: cleanup
381
+
382
+ ## 4.0.0-beta.206
383
+
384
+ ### Patch Changes
385
+
386
+ - 54bfc59: Require middleware to flow through `makeRpcClient` and the live layer through `makeRouter`.
387
+
388
+ ### `makeRpcClient(middleware, generalErrors?)`
389
+
390
+ 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.
391
+
392
+ **Migration**:
393
+
394
+ ```diff
395
+ -makeRpcClient(RequestContextMap, undefined, AppMiddleware)
396
+ +makeRpcClient(AppMiddleware)
397
+ ```
398
+
399
+ For tests/clients without a real middleware, build a minimal stub (`{ requestContextMap, requestContext }`) or pass any value satisfying `ClientMiddleware<RCM>`.
400
+
401
+ ### `makeRouter(middlewareLive)`
402
+
403
+ `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.
404
+
405
+ **Migration**:
406
+
407
+ ```diff
408
+ -export const { Router, matchAll } = makeRouter()
409
+ +export const { Router, matchAll } = makeRouter(AppMiddleware.Default)
410
+ ```
411
+
412
+ ## 4.0.0-beta.205
413
+
414
+ ### Patch Changes
415
+
416
+ - f313973: fix type make interface
417
+
418
+ ## 4.0.0-beta.204
419
+
420
+ ### Patch Changes
421
+
422
+ - 0a0030f: fix missing overloads
423
+
424
+ ## 4.0.0-beta.203
425
+
426
+ ### Patch Changes
427
+
428
+ - 992d9fa: fix more branded types
429
+
430
+ ## 4.0.0-beta.202
431
+
432
+ ### Patch Changes
433
+
434
+ - 1186b09: improve branded types, keep types through Rebuild
435
+
436
+ ## 4.0.0-beta.201
437
+
438
+ ### Patch Changes
439
+
440
+ - 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.
441
+
442
+ ### Resource error schemas
443
+
444
+ Three sites that used to fold `RequestContextMap[*].error` into a request's own error schema now stop doing so:
445
+
446
+ - `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).
447
+ - `MiddlewareMaker.rpc()` — `error: options.error` only; the previous union with `rcm.config[*].error` is gone.
448
+ - Routing and `apiClientFactory.makeRpcGroupFromRequestsAndModuleName` — `Invalidation.makeCommandRpc` is called with `error: resource.error` (no widening with the composite middleware error union).
449
+
450
+ 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:
451
+
452
+ - **Server**: `makeRouter(middleware)` attaches the live composite tag (existing behavior).
453
+ - **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.
454
+
455
+ **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.
456
+
457
+ ### Invalidation wrap/unwrap
458
+
459
+ - `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.
460
+ - `apiClientFactory.ts` (client) `unwrapCommand` strips both envelopes and forwards keys to `InvalidationKeysFromServer`.
461
+ - `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.
462
+
463
+ 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.
464
+
465
+ ## 4.0.0-beta.200
466
+
467
+ ### Patch Changes
468
+
469
+ - 8f1cf6a: able to configure schema concurrency
470
+ - 0cff7c1: workaround middleware error issue
471
+
472
+ ## 4.0.0-beta.199
473
+
474
+ ## 4.0.0-beta.198
475
+
476
+ ### Patch Changes
477
+
478
+ - 32dbc54: fix stream type when no success specified
479
+
480
+ ## 4.0.0-beta.197
481
+
482
+ ### Minor Changes
483
+
484
+ - 3dc0d2a: Add streaming as a `stream: true` config option on `Query` / `Command` instead of a separate request type.
485
+
486
+ `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).
487
+
488
+ ```ts
489
+ // Query that streams results
490
+ Req.Query<T>()("Tag", {}, { stream: true, success: ... })
491
+
492
+ // Command that streams results
493
+ Req.Command<T>()("Tag", {}, { stream: true, success: ... })
494
+ ```
495
+
496
+ Vue client mapping (per-handler properties mirror the non-stream API — `.query`, `.fn`, `.mutate`):
497
+
498
+ - `query` + `stream: true` → exposes `.query` (read-only streaming, tracked Vue Query). Helper map key: `${name}Query`.
499
+ - `command` + `stream: true` → exposes `.fn` and `.mutate` (mutating streaming).
500
+ - Plain `query` / `command` unchanged.
501
+
502
+ Server routing dispatches via the new `stream` flag (`makeStreamRpc` for streaming commands/queries, `makeCommandRpc` / `Rpc.make` otherwise).
503
+
504
+ 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.
505
+
506
+ **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.
507
+
508
+ ## 4.0.0-beta.196
509
+
510
+ ## 4.0.0-beta.195
511
+
512
+ ### Patch Changes
513
+
514
+ - 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.
515
+
516
+ 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`.
517
+
518
+ `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".
519
+
520
+ 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.
521
+
522
+ ## 4.0.0-beta.194
523
+
524
+ ## 4.0.0-beta.193
525
+
526
+ ## 4.0.0-beta.192
527
+
528
+ ## 4.0.0-beta.191
529
+
530
+ ### Patch Changes
531
+
532
+ - 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`.
533
+
534
+ ## 4.0.0-beta.190
535
+
536
+ ### Patch Changes
537
+
538
+ - 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`.
539
+
540
+ ## 4.0.0-beta.189
541
+
542
+ ### Patch Changes
543
+
544
+ - 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.
545
+
546
+ ## 4.0.0-beta.188
547
+
548
+ ### Patch Changes
549
+
550
+ - b2e438f: Remove Operations service and repo
551
+
552
+ ## 4.0.0-beta.187
553
+
554
+ ### Patch Changes
555
+
556
+ - 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.
557
+
558
+ ## 4.0.0-beta.186
559
+
560
+ ## 4.0.0-beta.185
561
+
562
+ ## 4.0.0-beta.184
563
+
564
+ ## 4.0.0-beta.183
565
+
566
+ ## 4.0.0-beta.182
567
+
568
+ ## 4.0.0-beta.181
569
+
570
+ ### Patch Changes
571
+
572
+ - 583393f: Default the stream `mutateStream` execute resolved value to the request's success type when no `final` schema is declared.
573
+
574
+ 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.
575
+
576
+ ## 4.0.0-beta.180
577
+
578
+ ### Minor Changes
579
+
580
+ - 7fa3045: V1/V2/V3: stream and command requests carry invalidation metadata
581
+
582
+ **V1** – stream final response includes metadata
583
+
584
+ - `Invalidation.StreamResponseChunk` wraps each stream item as `{ _tag: "value", value }` and appends `{ _tag: "done", metadata }` at the end carrying all accumulated invalidation keys.
585
+
586
+ **V2** – invalidation keys included in failures
587
+
588
+ - `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.
589
+ - `InvalidationMiddlewareLive` wraps command failures; `routing.ts` wraps stream failures.
590
+ - `apiClientFactory.ts` unwraps both on the client side, forwarding keys before re-failing with the original error.
591
+
592
+ **V3** – mid-stream metadata chunks
593
+
594
+ - `Invalidation.StreamResponseChunk` now also includes `{ _tag: "metadata", metadata }` for mid-stream invalidation.
595
+ - 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`).
596
+ - `apiClientFactory.ts` processes "metadata" chunks the same as "done" chunks, forwarding keys to `InvalidationKeysFromServer` immediately.
597
+ - `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.
598
+
599
+ ## 4.0.0-beta.179
600
+
601
+ ### Minor Changes
602
+
603
+ - 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`.
604
+
605
+ ```ts
606
+ class MyStream extends SomethingStream<MyStream>()(
607
+ "MyStream",
608
+ { id: S.String },
609
+ {
610
+ success: S.Union([OperationProgress, ExportComplete]),
611
+ final: ExportComplete, // execute now resolves with ExportComplete
612
+ }
613
+ ) {}
614
+ ```
615
+
616
+ ## 4.0.0-beta.178
617
+
618
+ ## 4.0.0-beta.177
619
+
620
+ ### Minor Changes
621
+
622
+ - 89d8b3a: Add Effect RPC `Stream` support to the wrapper.
623
+
624
+ - New `Stream` request constructor on `TaggedRequestFor` parallel to `Query`/`Command`. Emits resources with `type: "stream"`.
625
+ - 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).
626
+ - 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.
627
+ - New `RequestStreamHandler` / `RequestStreamHandlerWithInput` shapes in `clientFor.ts`; `RequestHandlers` dispatches on `type: "stream"`.
628
+
629
+ ## 4.0.0-beta.176
630
+
631
+ ### Patch Changes
632
+
633
+ - pass options
634
+
635
+ ## 4.0.0-beta.175
636
+
637
+ ## 4.0.0-beta.174
638
+
639
+ ### Minor Changes
640
+
641
+ - 821468d: Add server-driven cache invalidation via RPC response headers.
642
+
643
+ - `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.
644
+ - `effect-app/middleware`: new `InvalidationMiddleware` RPC middleware tag; included in `DefaultGenericMiddlewares`.
645
+ - `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`.
646
+ - `@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.
647
+ - `@effect-app/vue`: `invalidateQueries` / `useMutation` now reads server-provided invalidation keys from `InvalidationKeysFromServer` after each mutation and applies them alongside the client-side invalidation.
648
+
649
+ ## 4.0.0-beta.173
650
+
651
+ ## 4.0.0-beta.172
652
+
653
+ ## 4.0.0-beta.171
654
+
655
+ ### Patch Changes
656
+
657
+ - d71d976: fix
658
+
659
+ ## 4.0.0-beta.170
660
+
661
+ ### Patch Changes
662
+
663
+ - 8f09f77: fix
664
+
665
+ ## 4.0.0-beta.169
666
+
667
+ ### Patch Changes
668
+
669
+ - 8ae8b53: input mess
670
+
671
+ ## 4.0.0-beta.168
672
+
673
+ ### Patch Changes
674
+
675
+ - 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.
676
+
677
+ ## 4.0.0-beta.167
678
+
679
+ ### Patch Changes
680
+
681
+ - 140e192: Relax invalidation resource value constraints to allow arbitrary values while preserving query-only filtering in invalidation handling.
682
+
683
+ ## 4.0.0-beta.166
684
+
685
+ ### Patch Changes
686
+
687
+ - 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.
688
+
689
+ ## 4.0.0-beta.165
690
+
691
+ ### Minor Changes
692
+
693
+ - 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.
694
+
695
+ ## 4.0.0-beta.164
696
+
697
+ ### Minor Changes
698
+
699
+ - 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.
700
+
701
+ ## 4.0.0-beta.163
702
+
703
+ ### Patch Changes
704
+
705
+ - b952f19: bye cruft
706
+
707
+ ## 4.0.0-beta.162
708
+
709
+ ### Patch Changes
710
+
711
+ - b52b424: restore annotations for now
712
+
713
+ ## 4.0.0-beta.161
714
+
715
+ ## 4.0.0-beta.160
716
+
717
+ ### Patch Changes
718
+
719
+ - 505bfa9: Add concurrent decode helper APIs and migrate decode callsites to use them.
720
+
721
+ - Add `withDefaultParseOptions` and keep `DefaultParseOptions` centralized.
722
+ - Export `decodeEffectConcurrently` and `decodeUnknownEffectConcurrently` from Schema and SchemaParser modules.
723
+ - Update repository, queue, client, form, and CLI decode paths to use concurrent decode helpers.
724
+ - Keep schema constructors free of hardcoded parse concurrency overrides.
725
+
726
+ ## 4.0.0-beta.159
727
+
728
+ ### Patch Changes
729
+
730
+ - c1e73de:
731
+
732
+ ## 4.0.0-beta.158
733
+
734
+ ### Patch Changes
735
+
736
+ - 3c1f52d: improve: class strictness enabled by default again, allow `strict: false` as opt out for now.
737
+ - 6ae3050: Preserve class annotation parseOptions in relaxed declaration struct decoding so custom parse options (including concurrency defaults) are applied consistently.
738
+
739
+ ## 4.0.0-beta.157
740
+
741
+ ### Patch Changes
742
+
743
+ - 6fff09c: unify encoded function for when you use encodedKeys
744
+
745
+ ## 4.0.0-beta.156
746
+
747
+ ## 4.0.0-beta.155
748
+
749
+ ### Patch Changes
750
+
751
+ - c215db8: align TaggedUnion with array arg
752
+
753
+ ## 4.0.0-beta.154
754
+
755
+ ## 4.0.0-beta.153
756
+
757
+ ## 4.0.0-beta.152
758
+
759
+ ## 4.0.0-beta.151
760
+
761
+ ## 4.0.0-beta.150
762
+
763
+ ### Patch Changes
764
+
765
+ - 85a8275: Expose `make`, `makeOption`, and `makeEffect` static helpers on request classes created via `Query`/`Command`.
766
+
767
+ ## 4.0.0-beta.149
768
+
769
+ ### Patch Changes
770
+
771
+ - f317c5e: Preserve omitted-input make helpers through Schema.Opaque when the wrapped schema allows optional or default-only constructor input.
772
+
773
+ ## 4.0.0-beta.148
774
+
775
+ ### Patch Changes
776
+
777
+ - 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.
778
+
779
+ ## 4.0.0-beta.147
780
+
781
+ ### Patch Changes
782
+
783
+ - 47e3742: Preserve Struct.copy through `annotate`, `annotateKey`, and `mapFields` chains, and add tests covering chained copy behavior on Struct schemas.
784
+
785
+ ## 4.0.0-beta.146
786
+
787
+ ### Patch Changes
788
+
789
+ - a4dff57: Adjust Struct and TaggedStruct copy typing to follow class-style widening constraints while keeping structural copy runtime behavior.
790
+
791
+ ## 4.0.0-beta.145
792
+
793
+ ### Patch Changes
794
+
795
+ - 12abb55: Refine schema copy behavior by keeping class copy constructor-based while using structural copy for Struct and TaggedStruct helpers.
796
+
797
+ ## 4.0.0-beta.144
798
+
799
+ ### Patch Changes
800
+
801
+ - 11422f8: Update request helper typing and runtime invocation to rely on schema `.make` instead of class constructors, avoiding `new`-based assumptions for request schemas.
802
+ - d31253f: Refactor eligible schema classes and tagged classes to Opaque schemas, and migrate constructor call sites to use `.make` for those models.
803
+
804
+ ## 4.0.0-beta.143
805
+
806
+ ### Patch Changes
807
+
808
+ - 79eb019: Remove redundant schema `title` annotations when they duplicate the schema `identifier`.
809
+
810
+ ## 4.0.0-beta.142
811
+
812
+ ### Minor Changes
813
+
814
+ - 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.
815
+
816
+ ### Patch Changes
817
+
818
+ - 3436d44: Extend `Schema.Opaque` in `effect-app/Schema` to support an optional encoded-type generic while preserving the original single-generic behavior.
819
+
820
+ ## 4.0.0-beta.141
821
+
822
+ ### Patch Changes
823
+
824
+ - 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).
825
+
826
+ ## 4.0.0-beta.140
827
+
828
+ ## 4.0.0-beta.139
829
+
830
+ ## 4.0.0-beta.138
831
+
832
+ ## 4.0.0-beta.137
833
+
834
+ ## 4.0.0-beta.136
835
+
836
+ ## 4.0.0-beta.135
837
+
838
+ ### Patch Changes
839
+
840
+ - c7bbc41: fix - class should check type side
841
+
842
+ ## 4.0.0-beta.134
843
+
844
+ ### Patch Changes
845
+
846
+ - 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.
847
+ - f353d48: Rename the Class/TaggedClass relaxed declaration option to `strict` (default `false`) and apply it to `Class`, `TaggedClass`, `ExtendedClass`, and `ExtendedTaggedClass`.
848
+
849
+ When `strict: true`, class decoding keeps strict class-level declaration behavior; by default, decoding remains relaxed and preserves field-level schema errors.
850
+
851
+ ## 4.0.0-beta.133
852
+
853
+ ### Patch Changes
854
+
855
+ - c3299f7: update packages
856
+
857
+ ## 4.0.0-beta.132
858
+
859
+ ## 4.0.0-beta.131
860
+
861
+ ## 4.0.0-beta.130
862
+
863
+ ### Patch Changes
864
+
865
+ - ea1bd46: fix: prevent expansion of nominal brands
866
+
867
+ ## 4.0.0-beta.129
868
+
869
+ ## 4.0.0-beta.128
870
+
871
+ ### Patch Changes
872
+
873
+ - 57db551: Split `TaggedRequestFor` into `Query` and `Command` factories, and mark generated request classes with `type: "query" | "command"`.
874
+
875
+ Vue client helpers now expose query-only helpers (`query`, `suspense`, `fetch`) for query requests and mutation-only helpers (`mutate`, `fetch`) for command requests.
876
+
877
+ ## 4.0.0-beta.127
878
+
879
+ ## 4.0.0-beta.126
880
+
881
+ ### Patch Changes
882
+
883
+ - 458bb1b: fix type
884
+
885
+ ## 4.0.0-beta.125
886
+
887
+ ## 4.0.0-beta.124
888
+
889
+ ### Patch Changes
890
+
891
+ - 256ae85: cleanup
892
+
893
+ ## 4.0.0-beta.123
894
+
895
+ ### Patch Changes
896
+
897
+ - 14aba14: fix: clientFor
898
+
899
+ ## 4.0.0-beta.122
900
+
901
+ ### Patch Changes
902
+
903
+ - f052d38: Replace `(...) => Effect.gen` with `Effect.fnUntraced` in `apiClientFactory`.
904
+
905
+ ## 4.0.0-beta.121
906
+
907
+ ### Patch Changes
908
+
909
+ - 5ac46cb: Make `Schema.provide` dual (pipeable)
910
+
911
+ ## 4.0.0-beta.120
912
+
913
+ ### Minor Changes
914
+
915
+ - 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.
916
+
917
+ ## 4.0.0-beta.119
918
+
919
+ ## 4.0.0-beta.118
920
+
921
+ ### Minor Changes
922
+
923
+ - 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.
924
+
925
+ ### Patch Changes
926
+
927
+ - bd26832: Add nested anyOf flattening to JSON Schema post-processing
928
+ - Update effect packages to 4.0.0-beta.52
929
+
930
+ ## 4.0.0-beta.117
931
+
932
+ ## 4.0.0-beta.116
933
+
934
+ ## 4.0.0-beta.115
935
+
936
+ ## 4.0.0-beta.114
937
+
938
+ ## 4.0.0-beta.113
939
+
940
+ ## 4.0.0-beta.112
941
+
942
+ ## 4.0.0-beta.111
943
+
944
+ ### Patch Changes
945
+
946
+ - ca94edf: fix typo
947
+
948
+ ## 4.0.0-beta.110
949
+
950
+ ## 4.0.0-beta.109
951
+
952
+ ## 4.0.0-beta.108
953
+
954
+ ### Patch Changes
955
+
956
+ - 3e46e7b: allow excess props in openapi schemas
957
+
958
+ ## 4.0.0-beta.107
959
+
960
+ ## 4.0.0-beta.106
961
+
962
+ ## 4.0.0-beta.105
963
+
964
+ ## 4.0.0-beta.104
965
+
966
+ ### Minor Changes
967
+
968
+ - e944bca: Add `generateGuards` and `generateGuardsFor` to `TaggedUnion` / `ExtendTaggedUnion` for property-scoped type guards.
969
+
970
+ - `generateGuards("key")` — generic per-guard, no need to specify the container type
971
+ - `generateGuardsFor<A>()("key")` — curried, fixes `A` for concrete guard signatures
972
+
973
+ Both return `{ is{Tag}, isAnyOf }` guards that narrow the container type by its tagged union property.
974
+
975
+ ## 4.0.0-beta.103
976
+
977
+ ### Minor Changes
978
+
979
+ - 7119320: Add `generateGuards` to `TaggedUnion` / `ExtendTaggedUnion` for generating property-scoped type guards.
980
+
981
+ Usage: `MyUnion.generateGuards<MyType>()("propertyKey")` returns `{ is{Tag}, isAnyOf }` guards that narrow the container type by its tagged union property.
982
+
983
+ ## 4.0.0-beta.102
984
+
985
+ ## 4.0.0-beta.101
986
+
987
+ ## 4.0.0-beta.100
988
+
989
+ ## 4.0.0-beta.99
990
+
991
+ ## 4.0.0-beta.98
992
+
993
+ ## 4.0.0-beta.97
994
+
995
+ ## 4.0.0-beta.96
996
+
997
+ ### Patch Changes
998
+
999
+ - 5615e47: bs
1000
+
1001
+ ## 4.0.0-beta.95
1002
+
1003
+ ### Patch Changes
1004
+
1005
+ - 88838fb: Remove pick/omit customizations from Class/TaggedClass/Struct/TaggedStruct. Use `Struct.pick(X.fields, [...])` from `effect-app` instead.
1006
+
1007
+ ## 4.0.0-beta.94
1008
+
1009
+ ## 4.0.0-beta.93
1010
+
1011
+ ## 4.0.0-beta.92
1012
+
1013
+ ## 4.0.0-beta.91
1014
+
1015
+ ### Minor Changes
1016
+
1017
+ - 738b482: Add pick/omit to Struct and TaggedStruct
1018
+
1019
+ ## 4.0.0-beta.90
1020
+
1021
+ ## 4.0.0-beta.89
1022
+
1023
+ ## 4.0.0-beta.88
1024
+
1025
+ ## 4.0.0-beta.87
1026
+
1027
+ ## 4.0.0-beta.86
1028
+
1029
+ ## 4.0.0-beta.85
1030
+
1031
+ ## 4.0.0-beta.84
1032
+
1033
+ ## 4.0.0-beta.83
1034
+
1035
+ ## 4.0.0-beta.82
1036
+
1037
+ ## 4.0.0-beta.81
1038
+
1039
+ ## 4.0.0-beta.80
1040
+
1041
+ ## 4.0.0-beta.79
1042
+
1043
+ ### Minor Changes
1044
+
1045
+ - 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).
1046
+
1047
+ ## 4.0.0-beta.78
1048
+
1049
+ ## 4.0.0-beta.77
1050
+
1051
+ ### Minor Changes
1052
+
1053
+ - 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.
1054
+
1055
+ ## 4.0.0-beta.76
1056
+
1057
+ ### Patch Changes
1058
+
1059
+ - a5248a9: use new schema features
1060
+ - fac725d: update effect to latest beta
1061
+
1062
+ ## 4.0.0-beta.75
1063
+
1064
+ ### Patch Changes
1065
+
1066
+ - 24f0a5a: rename Literal to Literals, no longer hiding Schema's singular Literal.
1067
+
1068
+ ## 4.0.0-beta.74
1069
+
1070
+ ### Patch Changes
1071
+
1072
+ - 54ec1ef: fix bs
1073
+
1074
+ ## 4.0.0-beta.73
1075
+
1076
+ ## 4.0.0-beta.72
1077
+
1078
+ ### Patch Changes
1079
+
1080
+ - 0541f0d: fix withDefault types
1081
+
1082
+ ## 4.0.0-beta.71
1083
+
1084
+ ### Minor Changes
1085
+
1086
+ - beae3a0: Remove `withDefaultConstructor` wrapper, use `S.withConstructorDefault` directly with `Effect.succeed`/`Effect.sync`.
1087
+
1088
+ ## 4.0.0-beta.70
1089
+
1090
+ ## 4.0.0-beta.69
1091
+
1092
+ ### Patch Changes
1093
+
1094
+ - dc465e3: update to latest effect beta
1095
+
1096
+ ## 4.0.0-beta.68
1097
+
1098
+ ### Patch Changes
1099
+
1100
+ - e6f2341: Add SecretURL tests and switch secretURL config to use Config.nonEmptyString
1101
+
1102
+ ## 4.0.0-beta.67
1103
+
1104
+ ## 4.0.0-beta.66
1105
+
1106
+ ### Patch Changes
1107
+
1108
+ - edc52e4: update
1109
+
1110
+ ## 4.0.0-beta.65
1111
+
1112
+ ### Minor Changes
1113
+
1114
+ - 1f103b2: Replace `proxify` with explicit service accessor helpers: `accessFn`, `accessEffectFn`, `accessCn`, `accessEffectCn`.
1115
+
1116
+ ### Patch Changes
1117
+
1118
+ - 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.
1119
+
1120
+ ## 4.0.0-beta.64
1121
+
1122
+ ### Patch Changes
1123
+
1124
+ - c1a6fdc: fix proxify
1125
+
1126
+ ## 4.0.0-beta.63
1127
+
1128
+ ## 4.0.0-beta.62
1129
+
1130
+ ### Patch Changes
1131
+
1132
+ - 0b21a02: fix: flatten simple allOf constraints in JSON Schema output for better codegen compatibility
1133
+
1134
+ ## 4.0.0-beta.61
1135
+
1136
+ ## 4.0.0-beta.60
1137
+
1138
+ ## 4.0.0-beta.59
1139
+
1140
+ ### Patch Changes
1141
+
1142
+ - cec026d: update packages
1143
+
1144
+ ## 4.0.0-beta.58
1145
+
1146
+ ## 4.0.0-beta.57
1147
+
1148
+ ## 4.0.0-beta.56
1149
+
1150
+ ## 4.0.0-beta.55
1151
+
1152
+ ## 4.0.0-beta.54
1153
+
1154
+ ### Patch Changes
1155
+
1156
+ - d867272: the return of `Context`
1157
+
1158
+ ## 4.0.0-beta.53
1159
+
1160
+ ### Patch Changes
1161
+
1162
+ - ee9694e: fix type issue?
1163
+
1164
+ ## 4.0.0-beta.52
1165
+
1166
+ ### Minor Changes
1167
+
1168
+ - 6252808: Add `ReadonlySetFromArray` and `ReadonlyMapFromArray` schema transformations that decode from annotated arrays to Set/Map. Update `ReadonlySet` and `ReadonlyMap` to use these internally.
1169
+
1170
+ ## 4.0.0-beta.51
1171
+
1172
+ ## 4.0.0-beta.50
1173
+
1174
+ ## 4.0.0-beta.49
1175
+
1176
+ ### Patch Changes
1177
+
1178
+ - e585c9c: fix config nested
1179
+
1180
+ ## 4.0.0-beta.48
1181
+
1182
+ ### Patch Changes
1183
+
1184
+ - 0c88f78: Remove `TaggedError` compatibility re-export, use `TaggedErrorClass` directly
1185
+
1186
+ ## 4.0.0-beta.47
1187
+
1188
+ ### Patch Changes
1189
+
1190
+ - 3365758: workaround effect error messages
1191
+
1192
+ ## 4.0.0-beta.46
1193
+
1194
+ ## 4.0.0-beta.45
1195
+
1196
+ ### Patch Changes
1197
+
1198
+ - 10b55ff: update packages
1199
+
1200
+ ## 4.0.0-beta.44
1201
+
1202
+ ### Patch Changes
1203
+
1204
+ - a37aa38: Update to effect beta 43
1205
+
1206
+ ## 4.0.0-beta.43
1207
+
1208
+ ## 4.0.0-beta.42
1209
+
1210
+ ## 4.0.0-beta.41
1211
+
1212
+ ## 4.0.0-beta.40
1213
+
1214
+ ## 4.0.0-beta.39
1215
+
1216
+ ### Patch Changes
1217
+
1218
+ - 10e90d5: fix: TaggedRequest should be an Opaque Schema Class
1219
+
1220
+ ## 4.0.0-beta.38
1221
+
1222
+ ### Patch Changes
1223
+
1224
+ - 0b3e00e: fix bug
1225
+
1226
+ ## 4.0.0-beta.37
1227
+
1228
+ ### Patch Changes
1229
+
1230
+ - 947fe20: fix input date
1231
+
1232
+ ## 4.0.0-beta.36
1233
+
1234
+ ## 4.0.0-beta.35
1235
+
1236
+ ## 4.0.0-beta.34
1237
+
1238
+ ### Patch Changes
1239
+
1240
+ - 8c645d5: update to latest effect
1241
+
1242
+ ## 4.0.0-beta.33
1243
+
1244
+ ### Patch Changes
1245
+
1246
+ - 4b95009: use Finite instead of Number
1247
+
1248
+ ## 4.0.0-beta.32
1249
+
1250
+ ### Patch Changes
1251
+
1252
+ - 01d862a: again
1253
+
1254
+ ## 4.0.0-beta.31
1255
+
1256
+ ### Patch Changes
1257
+
1258
+ - 6b6d601: fix ForceVOid
1259
+
1260
+ ## 4.0.0-beta.30
1261
+
1262
+ ### Patch Changes
1263
+
1264
+ - 5ec1f45: fix ForceVoid for real
1265
+
1266
+ ## 4.0.0-beta.29
1267
+
1268
+ ### Patch Changes
1269
+
1270
+ - a899d46: Replace `ForceVoid` in `makeClient` with a typed codec transformation instead of an unsafe cast.
1271
+
1272
+ ## 4.0.0-beta.28
1273
+
1274
+ ### Patch Changes
1275
+
1276
+ - 0099208: Refactor `Pure` helpers to use typed `useSync` calls instead of unsafe casts.
1277
+
3
1278
  ## 4.0.0-beta.27
4
1279
 
5
1280
  ### Patch Changes