effect-app 4.0.0-beta.25 → 4.0.0-beta.250

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