effect-app 4.0.0-beta.18 → 4.0.0-beta.181

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 (218) hide show
  1. package/CHANGELOG.md +768 -0
  2. package/dist/Array.d.ts +1 -1
  3. package/dist/Chunk.d.ts +1 -1
  4. package/dist/Chunk.d.ts.map +1 -1
  5. package/dist/Config/SecretURL.d.ts +1 -1
  6. package/dist/Config/SecretURL.d.ts.map +1 -1
  7. package/dist/Config/SecretURL.js +2 -2
  8. package/dist/Config/internal/configSecretURL.d.ts +1 -1
  9. package/dist/Config/internal/configSecretURL.d.ts.map +1 -1
  10. package/dist/Config.d.ts +7 -0
  11. package/dist/Config.d.ts.map +1 -0
  12. package/dist/Config.js +6 -0
  13. package/dist/ConfigProvider.d.ts +39 -0
  14. package/dist/ConfigProvider.d.ts.map +1 -0
  15. package/dist/ConfigProvider.js +42 -0
  16. package/dist/Context.d.ts +40 -0
  17. package/dist/Context.d.ts.map +1 -0
  18. package/dist/Context.js +67 -0
  19. package/dist/Effect.d.ts +9 -10
  20. package/dist/Effect.d.ts.map +1 -1
  21. package/dist/Effect.js +3 -6
  22. package/dist/Function.d.ts +1 -1
  23. package/dist/Function.d.ts.map +1 -1
  24. package/dist/Inputify.type.d.ts +1 -1
  25. package/dist/Layer.d.ts +6 -5
  26. package/dist/Layer.d.ts.map +1 -1
  27. package/dist/Layer.js +1 -1
  28. package/dist/NonEmptySet.d.ts +1 -1
  29. package/dist/NonEmptySet.d.ts.map +1 -1
  30. package/dist/Operations.d.ts +369 -47
  31. package/dist/Operations.d.ts.map +1 -1
  32. package/dist/Operations.js +10 -10
  33. package/dist/Option.d.ts +1 -1
  34. package/dist/Option.d.ts.map +1 -1
  35. package/dist/Pure.d.ts +5 -5
  36. package/dist/Pure.d.ts.map +1 -1
  37. package/dist/Pure.js +13 -13
  38. package/dist/Schema/Class.d.ts +69 -20
  39. package/dist/Schema/Class.d.ts.map +1 -1
  40. package/dist/Schema/Class.js +190 -22
  41. package/dist/Schema/FastCheck.d.ts +1 -1
  42. package/dist/Schema/FastCheck.d.ts.map +1 -1
  43. package/dist/Schema/Methods.d.ts +1 -1
  44. package/dist/Schema/SchemaParser.d.ts +5 -0
  45. package/dist/Schema/SchemaParser.d.ts.map +1 -0
  46. package/dist/Schema/SchemaParser.js +6 -0
  47. package/dist/Schema/SpecialJsonSchema.d.ts +33 -0
  48. package/dist/Schema/SpecialJsonSchema.d.ts.map +1 -0
  49. package/dist/Schema/SpecialJsonSchema.js +122 -0
  50. package/dist/Schema/SpecialOpenApi.d.ts +32 -0
  51. package/dist/Schema/SpecialOpenApi.d.ts.map +1 -0
  52. package/dist/Schema/SpecialOpenApi.js +123 -0
  53. package/dist/Schema/brand.d.ts +7 -2
  54. package/dist/Schema/brand.d.ts.map +1 -1
  55. package/dist/Schema/brand.js +1 -1
  56. package/dist/Schema/email.d.ts +1 -1
  57. package/dist/Schema/email.d.ts.map +1 -1
  58. package/dist/Schema/email.js +7 -4
  59. package/dist/Schema/ext.d.ts +118 -45
  60. package/dist/Schema/ext.d.ts.map +1 -1
  61. package/dist/Schema/ext.js +129 -53
  62. package/dist/Schema/moreStrings.d.ts +111 -11
  63. package/dist/Schema/moreStrings.d.ts.map +1 -1
  64. package/dist/Schema/moreStrings.js +14 -15
  65. package/dist/Schema/numbers.d.ts +127 -15
  66. package/dist/Schema/numbers.d.ts.map +1 -1
  67. package/dist/Schema/numbers.js +10 -12
  68. package/dist/Schema/phoneNumber.d.ts +1 -1
  69. package/dist/Schema/phoneNumber.d.ts.map +1 -1
  70. package/dist/Schema/phoneNumber.js +6 -3
  71. package/dist/Schema/schema.d.ts +1 -1
  72. package/dist/Schema/strings.d.ts +37 -5
  73. package/dist/Schema/strings.d.ts.map +1 -1
  74. package/dist/Schema/strings.js +1 -5
  75. package/dist/Schema.d.ts +102 -56
  76. package/dist/Schema.d.ts.map +1 -1
  77. package/dist/Schema.js +128 -64
  78. package/dist/Set.d.ts +1 -1
  79. package/dist/Set.d.ts.map +1 -1
  80. package/dist/TypeTest.d.ts +1 -1
  81. package/dist/Types.d.ts +1 -1
  82. package/dist/Widen.type.d.ts +1 -1
  83. package/dist/_ext/Array.d.ts +1 -1
  84. package/dist/_ext/Array.d.ts.map +1 -1
  85. package/dist/_ext/date.d.ts +1 -1
  86. package/dist/_ext/misc.d.ts +1 -1
  87. package/dist/_ext/ord.ext.d.ts +1 -1
  88. package/dist/_ext/ord.ext.d.ts.map +1 -1
  89. package/dist/builtin.d.ts +1 -1
  90. package/dist/builtin.d.ts.map +1 -1
  91. package/dist/client/InvalidationKeys.d.ts +29 -0
  92. package/dist/client/InvalidationKeys.d.ts.map +1 -0
  93. package/dist/client/InvalidationKeys.js +33 -0
  94. package/dist/client/apiClientFactory.d.ts +17 -31
  95. package/dist/client/apiClientFactory.d.ts.map +1 -1
  96. package/dist/client/apiClientFactory.js +81 -26
  97. package/dist/client/clientFor.d.ts +63 -10
  98. package/dist/client/clientFor.d.ts.map +1 -1
  99. package/dist/client/clientFor.js +9 -1
  100. package/dist/client/errors.d.ts +49 -25
  101. package/dist/client/errors.d.ts.map +1 -1
  102. package/dist/client/errors.js +43 -17
  103. package/dist/client/makeClient.d.ts +360 -30
  104. package/dist/client/makeClient.d.ts.map +1 -1
  105. package/dist/client/makeClient.js +63 -23
  106. package/dist/client.d.ts +2 -1
  107. package/dist/client.d.ts.map +1 -1
  108. package/dist/client.js +2 -1
  109. package/dist/faker.d.ts +1 -1
  110. package/dist/faker.d.ts.map +1 -1
  111. package/dist/http/Request.d.ts +2 -2
  112. package/dist/http/Request.d.ts.map +1 -1
  113. package/dist/http/Request.js +5 -5
  114. package/dist/http/internal/lib.d.ts +1 -1
  115. package/dist/http.d.ts +1 -1
  116. package/dist/ids.d.ts +3 -3
  117. package/dist/ids.d.ts.map +1 -1
  118. package/dist/ids.js +3 -2
  119. package/dist/index.d.ts +5 -8
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +6 -8
  122. package/dist/logger.d.ts +1 -1
  123. package/dist/middleware.d.ts +16 -9
  124. package/dist/middleware.d.ts.map +1 -1
  125. package/dist/middleware.js +13 -9
  126. package/dist/rpc/Invalidation.d.ts +490 -0
  127. package/dist/rpc/Invalidation.d.ts.map +1 -0
  128. package/dist/rpc/Invalidation.js +129 -0
  129. package/dist/rpc/MiddlewareMaker.d.ts +5 -4
  130. package/dist/rpc/MiddlewareMaker.d.ts.map +1 -1
  131. package/dist/rpc/MiddlewareMaker.js +26 -27
  132. package/dist/rpc/RpcContextMap.d.ts +3 -3
  133. package/dist/rpc/RpcContextMap.d.ts.map +1 -1
  134. package/dist/rpc/RpcContextMap.js +4 -4
  135. package/dist/rpc/RpcMiddleware.d.ts +5 -4
  136. package/dist/rpc/RpcMiddleware.d.ts.map +1 -1
  137. package/dist/rpc/RpcMiddleware.js +1 -1
  138. package/dist/rpc.d.ts +2 -2
  139. package/dist/rpc.d.ts.map +1 -1
  140. package/dist/rpc.js +2 -2
  141. package/dist/transform.d.ts +1 -1
  142. package/dist/transform.d.ts.map +1 -1
  143. package/dist/transform.js +3 -3
  144. package/dist/utils/effectify.d.ts +1 -1
  145. package/dist/utils/extend.d.ts +1 -1
  146. package/dist/utils/extend.d.ts.map +1 -1
  147. package/dist/utils/gen.d.ts +2 -2
  148. package/dist/utils/gen.d.ts.map +1 -1
  149. package/dist/utils/logLevel.d.ts +2 -2
  150. package/dist/utils/logLevel.d.ts.map +1 -1
  151. package/dist/utils/logger.d.ts +3 -3
  152. package/dist/utils/logger.d.ts.map +1 -1
  153. package/dist/utils/logger.js +3 -3
  154. package/dist/utils.d.ts +30 -10
  155. package/dist/utils.d.ts.map +1 -1
  156. package/dist/utils.js +10 -4
  157. package/dist/validation/validators.d.ts +1 -1
  158. package/dist/validation/validators.d.ts.map +1 -1
  159. package/dist/validation.d.ts +1 -1
  160. package/dist/validation.d.ts.map +1 -1
  161. package/eslint.config.mjs +2 -2
  162. package/package.json +47 -19
  163. package/src/Config/SecretURL.ts +2 -1
  164. package/src/Config.ts +14 -0
  165. package/src/ConfigProvider.ts +48 -0
  166. package/src/{ServiceMap.ts → Context.ts} +52 -59
  167. package/src/Effect.ts +12 -14
  168. package/src/Layer.ts +5 -4
  169. package/src/Operations.ts +14 -14
  170. package/src/Pure.ts +17 -18
  171. package/src/Schema/Class.ts +279 -62
  172. package/src/Schema/SchemaParser.ts +12 -0
  173. package/src/Schema/SpecialJsonSchema.ts +137 -0
  174. package/src/Schema/SpecialOpenApi.ts +130 -0
  175. package/src/Schema/brand.ts +9 -1
  176. package/src/Schema/email.ts +7 -2
  177. package/src/Schema/ext.ts +210 -80
  178. package/src/Schema/moreStrings.ts +22 -20
  179. package/src/Schema/numbers.ts +14 -16
  180. package/src/Schema/phoneNumber.ts +5 -1
  181. package/src/Schema/strings.ts +4 -8
  182. package/src/Schema.ts +265 -105
  183. package/src/client/InvalidationKeys.ts +50 -0
  184. package/src/client/apiClientFactory.ts +203 -119
  185. package/src/client/clientFor.ts +112 -23
  186. package/src/client/errors.ts +52 -26
  187. package/src/client/makeClient.ts +339 -63
  188. package/src/client.ts +1 -0
  189. package/src/http/Request.ts +7 -4
  190. package/src/ids.ts +2 -1
  191. package/src/index.ts +5 -10
  192. package/src/middleware.ts +12 -10
  193. package/src/rpc/Invalidation.ts +174 -0
  194. package/src/rpc/MiddlewareMaker.ts +36 -47
  195. package/src/rpc/README.md +2 -2
  196. package/src/rpc/RpcContextMap.ts +6 -5
  197. package/src/rpc/RpcMiddleware.ts +5 -4
  198. package/src/rpc.ts +1 -1
  199. package/src/transform.ts +2 -2
  200. package/src/utils/gen.ts +1 -1
  201. package/src/utils/logger.ts +2 -2
  202. package/src/utils.ts +47 -11
  203. package/test/dist/rpc.test.d.ts.map +1 -1
  204. package/test/dist/secretURL.test.d.ts.map +1 -0
  205. package/test/dist/special.test.d.ts.map +1 -0
  206. package/test/rpc.test.ts +38 -6
  207. package/test/schema.test.ts +591 -17
  208. package/test/secretURL.test.ts +157 -0
  209. package/test/special.test.ts +1023 -0
  210. package/test/utils.test.ts +6 -6
  211. package/tsconfig.base.json +3 -4
  212. package/tsconfig.json +0 -1
  213. package/tsconfig.json.bak +2 -2
  214. package/tsconfig.src.json +29 -29
  215. package/tsconfig.test.json +2 -2
  216. package/dist/ServiceMap.d.ts +0 -44
  217. package/dist/ServiceMap.d.ts.map +0 -1
  218. package/dist/ServiceMap.js +0 -91
package/CHANGELOG.md CHANGED
@@ -1,5 +1,773 @@
1
1
  # @effect-app/prelude
2
2
 
3
+ ## 4.0.0-beta.181
4
+
5
+ ### Patch Changes
6
+
7
+ - 583393f: Default the stream `mutateStream` execute resolved value to the request's success type when no `final` schema is declared.
8
+
9
+ 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.
10
+
11
+ ## 4.0.0-beta.180
12
+
13
+ ### Minor Changes
14
+
15
+ - 7fa3045: V1/V2/V3: stream and command requests carry invalidation metadata
16
+
17
+ **V1** – stream final response includes metadata
18
+
19
+ - `Invalidation.StreamResponseChunk` wraps each stream item as `{ _tag: "value", value }` and appends `{ _tag: "done", metadata }` at the end carrying all accumulated invalidation keys.
20
+
21
+ **V2** – invalidation keys included in failures
22
+
23
+ - `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.
24
+ - `InvalidationMiddlewareLive` wraps command failures; `routing.ts` wraps stream failures.
25
+ - `apiClientFactory.ts` unwraps both on the client side, forwarding keys before re-failing with the original error.
26
+
27
+ **V3** – mid-stream metadata chunks
28
+
29
+ - `Invalidation.StreamResponseChunk` now also includes `{ _tag: "metadata", metadata }` for mid-stream invalidation.
30
+ - 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`).
31
+ - `apiClientFactory.ts` processes "metadata" chunks the same as "done" chunks, forwarding keys to `InvalidationKeysFromServer` immediately.
32
+ - `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.
33
+
34
+ ## 4.0.0-beta.179
35
+
36
+ ### Minor Changes
37
+
38
+ - 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`.
39
+
40
+ ```ts
41
+ class MyStream extends SomethingStream<MyStream>()(
42
+ "MyStream",
43
+ { id: S.String },
44
+ {
45
+ success: S.Union([OperationProgress, ExportComplete]),
46
+ final: ExportComplete, // execute now resolves with ExportComplete
47
+ }
48
+ ) {}
49
+ ```
50
+
51
+ ## 4.0.0-beta.178
52
+
53
+ ## 4.0.0-beta.177
54
+
55
+ ### Minor Changes
56
+
57
+ - 89d8b3a: Add Effect RPC `Stream` support to the wrapper.
58
+
59
+ - New `Stream` request constructor on `TaggedRequestFor` parallel to `Query`/`Command`. Emits resources with `type: "stream"`.
60
+ - 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).
61
+ - 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.
62
+ - New `RequestStreamHandler` / `RequestStreamHandlerWithInput` shapes in `clientFor.ts`; `RequestHandlers` dispatches on `type: "stream"`.
63
+
64
+ ## 4.0.0-beta.176
65
+
66
+ ### Patch Changes
67
+
68
+ - pass options
69
+
70
+ ## 4.0.0-beta.175
71
+
72
+ ## 4.0.0-beta.174
73
+
74
+ ### Minor Changes
75
+
76
+ - 821468d: Add server-driven cache invalidation via RPC response headers.
77
+
78
+ - `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.
79
+ - `effect-app/middleware`: new `InvalidationMiddleware` RPC middleware tag; included in `DefaultGenericMiddlewares`.
80
+ - `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`.
81
+ - `@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.
82
+ - `@effect-app/vue`: `invalidateQueries` / `useMutation` now reads server-provided invalidation keys from `InvalidationKeysFromServer` after each mutation and applies them alongside the client-side invalidation.
83
+
84
+ ## 4.0.0-beta.173
85
+
86
+ ## 4.0.0-beta.172
87
+
88
+ ## 4.0.0-beta.171
89
+
90
+ ### Patch Changes
91
+
92
+ - d71d976: fix
93
+
94
+ ## 4.0.0-beta.170
95
+
96
+ ### Patch Changes
97
+
98
+ - 8f09f77: fix
99
+
100
+ ## 4.0.0-beta.169
101
+
102
+ ### Patch Changes
103
+
104
+ - 8ae8b53: input mess
105
+
106
+ ## 4.0.0-beta.168
107
+
108
+ ### Patch Changes
109
+
110
+ - 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.
111
+
112
+ ## 4.0.0-beta.167
113
+
114
+ ### Patch Changes
115
+
116
+ - 140e192: Relax invalidation resource value constraints to allow arbitrary values while preserving query-only filtering in invalidation handling.
117
+
118
+ ## 4.0.0-beta.166
119
+
120
+ ### Patch Changes
121
+
122
+ - 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.
123
+
124
+ ## 4.0.0-beta.165
125
+
126
+ ### Minor Changes
127
+
128
+ - 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.
129
+
130
+ ## 4.0.0-beta.164
131
+
132
+ ### Minor Changes
133
+
134
+ - 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.
135
+
136
+ ## 4.0.0-beta.163
137
+
138
+ ### Patch Changes
139
+
140
+ - b952f19: bye cruft
141
+
142
+ ## 4.0.0-beta.162
143
+
144
+ ### Patch Changes
145
+
146
+ - b52b424: restore annotations for now
147
+
148
+ ## 4.0.0-beta.161
149
+
150
+ ## 4.0.0-beta.160
151
+
152
+ ### Patch Changes
153
+
154
+ - 505bfa9: Add concurrent decode helper APIs and migrate decode callsites to use them.
155
+
156
+ - Add `withDefaultParseOptions` and keep `DefaultParseOptions` centralized.
157
+ - Export `decodeEffectConcurrently` and `decodeUnknownEffectConcurrently` from Schema and SchemaParser modules.
158
+ - Update repository, queue, client, form, and CLI decode paths to use concurrent decode helpers.
159
+ - Keep schema constructors free of hardcoded parse concurrency overrides.
160
+
161
+ ## 4.0.0-beta.159
162
+
163
+ ### Patch Changes
164
+
165
+ - c1e73de:
166
+
167
+ ## 4.0.0-beta.158
168
+
169
+ ### Patch Changes
170
+
171
+ - 3c1f52d: improve: class strictness enabled by default again, allow `strict: false` as opt out for now.
172
+ - 6ae3050: Preserve class annotation parseOptions in relaxed declaration struct decoding so custom parse options (including concurrency defaults) are applied consistently.
173
+
174
+ ## 4.0.0-beta.157
175
+
176
+ ### Patch Changes
177
+
178
+ - 6fff09c: unify encoded function for when you use encodedKeys
179
+
180
+ ## 4.0.0-beta.156
181
+
182
+ ## 4.0.0-beta.155
183
+
184
+ ### Patch Changes
185
+
186
+ - c215db8: align TaggedUnion with array arg
187
+
188
+ ## 4.0.0-beta.154
189
+
190
+ ## 4.0.0-beta.153
191
+
192
+ ## 4.0.0-beta.152
193
+
194
+ ## 4.0.0-beta.151
195
+
196
+ ## 4.0.0-beta.150
197
+
198
+ ### Patch Changes
199
+
200
+ - 85a8275: Expose `make`, `makeOption`, and `makeEffect` static helpers on request classes created via `Query`/`Command`.
201
+
202
+ ## 4.0.0-beta.149
203
+
204
+ ### Patch Changes
205
+
206
+ - f317c5e: Preserve omitted-input make helpers through Schema.Opaque when the wrapped schema allows optional or default-only constructor input.
207
+
208
+ ## 4.0.0-beta.148
209
+
210
+ ### Patch Changes
211
+
212
+ - 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.
213
+
214
+ ## 4.0.0-beta.147
215
+
216
+ ### Patch Changes
217
+
218
+ - 47e3742: Preserve Struct.copy through `annotate`, `annotateKey`, and `mapFields` chains, and add tests covering chained copy behavior on Struct schemas.
219
+
220
+ ## 4.0.0-beta.146
221
+
222
+ ### Patch Changes
223
+
224
+ - a4dff57: Adjust Struct and TaggedStruct copy typing to follow class-style widening constraints while keeping structural copy runtime behavior.
225
+
226
+ ## 4.0.0-beta.145
227
+
228
+ ### Patch Changes
229
+
230
+ - 12abb55: Refine schema copy behavior by keeping class copy constructor-based while using structural copy for Struct and TaggedStruct helpers.
231
+
232
+ ## 4.0.0-beta.144
233
+
234
+ ### Patch Changes
235
+
236
+ - 11422f8: Update request helper typing and runtime invocation to rely on schema `.make` instead of class constructors, avoiding `new`-based assumptions for request schemas.
237
+ - d31253f: Refactor eligible schema classes and tagged classes to Opaque schemas, and migrate constructor call sites to use `.make` for those models.
238
+
239
+ ## 4.0.0-beta.143
240
+
241
+ ### Patch Changes
242
+
243
+ - 79eb019: Remove redundant schema `title` annotations when they duplicate the schema `identifier`.
244
+
245
+ ## 4.0.0-beta.142
246
+
247
+ ### Minor Changes
248
+
249
+ - 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.
250
+
251
+ ### Patch Changes
252
+
253
+ - 3436d44: Extend `Schema.Opaque` in `effect-app/Schema` to support an optional encoded-type generic while preserving the original single-generic behavior.
254
+
255
+ ## 4.0.0-beta.141
256
+
257
+ ### Patch Changes
258
+
259
+ - 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).
260
+
261
+ ## 4.0.0-beta.140
262
+
263
+ ## 4.0.0-beta.139
264
+
265
+ ## 4.0.0-beta.138
266
+
267
+ ## 4.0.0-beta.137
268
+
269
+ ## 4.0.0-beta.136
270
+
271
+ ## 4.0.0-beta.135
272
+
273
+ ### Patch Changes
274
+
275
+ - c7bbc41: fix - class should check type side
276
+
277
+ ## 4.0.0-beta.134
278
+
279
+ ### Patch Changes
280
+
281
+ - 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.
282
+ - f353d48: Rename the Class/TaggedClass relaxed declaration option to `strict` (default `false`) and apply it to `Class`, `TaggedClass`, `ExtendedClass`, and `ExtendedTaggedClass`.
283
+
284
+ When `strict: true`, class decoding keeps strict class-level declaration behavior; by default, decoding remains relaxed and preserves field-level schema errors.
285
+
286
+ ## 4.0.0-beta.133
287
+
288
+ ### Patch Changes
289
+
290
+ - c3299f7: update packages
291
+
292
+ ## 4.0.0-beta.132
293
+
294
+ ## 4.0.0-beta.131
295
+
296
+ ## 4.0.0-beta.130
297
+
298
+ ### Patch Changes
299
+
300
+ - ea1bd46: fix: prevent expansion of nominal brands
301
+
302
+ ## 4.0.0-beta.129
303
+
304
+ ## 4.0.0-beta.128
305
+
306
+ ### Patch Changes
307
+
308
+ - 57db551: Split `TaggedRequestFor` into `Query` and `Command` factories, and mark generated request classes with `type: "query" | "command"`.
309
+
310
+ Vue client helpers now expose query-only helpers (`query`, `suspense`, `fetch`) for query requests and mutation-only helpers (`mutate`, `fetch`) for command requests.
311
+
312
+ ## 4.0.0-beta.127
313
+
314
+ ## 4.0.0-beta.126
315
+
316
+ ### Patch Changes
317
+
318
+ - 458bb1b: fix type
319
+
320
+ ## 4.0.0-beta.125
321
+
322
+ ## 4.0.0-beta.124
323
+
324
+ ### Patch Changes
325
+
326
+ - 256ae85: cleanup
327
+
328
+ ## 4.0.0-beta.123
329
+
330
+ ### Patch Changes
331
+
332
+ - 14aba14: fix: clientFor
333
+
334
+ ## 4.0.0-beta.122
335
+
336
+ ### Patch Changes
337
+
338
+ - f052d38: Replace `(...) => Effect.gen` with `Effect.fnUntraced` in `apiClientFactory`.
339
+
340
+ ## 4.0.0-beta.121
341
+
342
+ ### Patch Changes
343
+
344
+ - 5ac46cb: Make `Schema.provide` dual (pipeable)
345
+
346
+ ## 4.0.0-beta.120
347
+
348
+ ### Minor Changes
349
+
350
+ - 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.
351
+
352
+ ## 4.0.0-beta.119
353
+
354
+ ## 4.0.0-beta.118
355
+
356
+ ### Minor Changes
357
+
358
+ - 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.
359
+
360
+ ### Patch Changes
361
+
362
+ - bd26832: Add nested anyOf flattening to JSON Schema post-processing
363
+ - Update effect packages to 4.0.0-beta.52
364
+
365
+ ## 4.0.0-beta.117
366
+
367
+ ## 4.0.0-beta.116
368
+
369
+ ## 4.0.0-beta.115
370
+
371
+ ## 4.0.0-beta.114
372
+
373
+ ## 4.0.0-beta.113
374
+
375
+ ## 4.0.0-beta.112
376
+
377
+ ## 4.0.0-beta.111
378
+
379
+ ### Patch Changes
380
+
381
+ - ca94edf: fix typo
382
+
383
+ ## 4.0.0-beta.110
384
+
385
+ ## 4.0.0-beta.109
386
+
387
+ ## 4.0.0-beta.108
388
+
389
+ ### Patch Changes
390
+
391
+ - 3e46e7b: allow excess props in openapi schemas
392
+
393
+ ## 4.0.0-beta.107
394
+
395
+ ## 4.0.0-beta.106
396
+
397
+ ## 4.0.0-beta.105
398
+
399
+ ## 4.0.0-beta.104
400
+
401
+ ### Minor Changes
402
+
403
+ - e944bca: Add `generateGuards` and `generateGuardsFor` to `TaggedUnion` / `ExtendTaggedUnion` for property-scoped type guards.
404
+
405
+ - `generateGuards("key")` — generic per-guard, no need to specify the container type
406
+ - `generateGuardsFor<A>()("key")` — curried, fixes `A` for concrete guard signatures
407
+
408
+ Both return `{ is{Tag}, isAnyOf }` guards that narrow the container type by its tagged union property.
409
+
410
+ ## 4.0.0-beta.103
411
+
412
+ ### Minor Changes
413
+
414
+ - 7119320: Add `generateGuards` to `TaggedUnion` / `ExtendTaggedUnion` for generating property-scoped type guards.
415
+
416
+ Usage: `MyUnion.generateGuards<MyType>()("propertyKey")` returns `{ is{Tag}, isAnyOf }` guards that narrow the container type by its tagged union property.
417
+
418
+ ## 4.0.0-beta.102
419
+
420
+ ## 4.0.0-beta.101
421
+
422
+ ## 4.0.0-beta.100
423
+
424
+ ## 4.0.0-beta.99
425
+
426
+ ## 4.0.0-beta.98
427
+
428
+ ## 4.0.0-beta.97
429
+
430
+ ## 4.0.0-beta.96
431
+
432
+ ### Patch Changes
433
+
434
+ - 5615e47: bs
435
+
436
+ ## 4.0.0-beta.95
437
+
438
+ ### Patch Changes
439
+
440
+ - 88838fb: Remove pick/omit customizations from Class/TaggedClass/Struct/TaggedStruct. Use `Struct.pick(X.fields, [...])` from `effect-app` instead.
441
+
442
+ ## 4.0.0-beta.94
443
+
444
+ ## 4.0.0-beta.93
445
+
446
+ ## 4.0.0-beta.92
447
+
448
+ ## 4.0.0-beta.91
449
+
450
+ ### Minor Changes
451
+
452
+ - 738b482: Add pick/omit to Struct and TaggedStruct
453
+
454
+ ## 4.0.0-beta.90
455
+
456
+ ## 4.0.0-beta.89
457
+
458
+ ## 4.0.0-beta.88
459
+
460
+ ## 4.0.0-beta.87
461
+
462
+ ## 4.0.0-beta.86
463
+
464
+ ## 4.0.0-beta.85
465
+
466
+ ## 4.0.0-beta.84
467
+
468
+ ## 4.0.0-beta.83
469
+
470
+ ## 4.0.0-beta.82
471
+
472
+ ## 4.0.0-beta.81
473
+
474
+ ## 4.0.0-beta.80
475
+
476
+ ## 4.0.0-beta.79
477
+
478
+ ### Minor Changes
479
+
480
+ - 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).
481
+
482
+ ## 4.0.0-beta.78
483
+
484
+ ## 4.0.0-beta.77
485
+
486
+ ### Minor Changes
487
+
488
+ - 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.
489
+
490
+ ## 4.0.0-beta.76
491
+
492
+ ### Patch Changes
493
+
494
+ - a5248a9: use new schema features
495
+ - fac725d: update effect to latest beta
496
+
497
+ ## 4.0.0-beta.75
498
+
499
+ ### Patch Changes
500
+
501
+ - 24f0a5a: rename Literal to Literals, no longer hiding Schema's singular Literal.
502
+
503
+ ## 4.0.0-beta.74
504
+
505
+ ### Patch Changes
506
+
507
+ - 54ec1ef: fix bs
508
+
509
+ ## 4.0.0-beta.73
510
+
511
+ ## 4.0.0-beta.72
512
+
513
+ ### Patch Changes
514
+
515
+ - 0541f0d: fix withDefault types
516
+
517
+ ## 4.0.0-beta.71
518
+
519
+ ### Minor Changes
520
+
521
+ - beae3a0: Remove `withDefaultConstructor` wrapper, use `S.withConstructorDefault` directly with `Effect.succeed`/`Effect.sync`.
522
+
523
+ ## 4.0.0-beta.70
524
+
525
+ ## 4.0.0-beta.69
526
+
527
+ ### Patch Changes
528
+
529
+ - dc465e3: update to latest effect beta
530
+
531
+ ## 4.0.0-beta.68
532
+
533
+ ### Patch Changes
534
+
535
+ - e6f2341: Add SecretURL tests and switch secretURL config to use Config.nonEmptyString
536
+
537
+ ## 4.0.0-beta.67
538
+
539
+ ## 4.0.0-beta.66
540
+
541
+ ### Patch Changes
542
+
543
+ - edc52e4: update
544
+
545
+ ## 4.0.0-beta.65
546
+
547
+ ### Minor Changes
548
+
549
+ - 1f103b2: Replace `proxify` with explicit service accessor helpers: `accessFn`, `accessEffectFn`, `accessCn`, `accessEffectCn`.
550
+
551
+ ### Patch Changes
552
+
553
+ - 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.
554
+
555
+ ## 4.0.0-beta.64
556
+
557
+ ### Patch Changes
558
+
559
+ - c1a6fdc: fix proxify
560
+
561
+ ## 4.0.0-beta.63
562
+
563
+ ## 4.0.0-beta.62
564
+
565
+ ### Patch Changes
566
+
567
+ - 0b21a02: fix: flatten simple allOf constraints in JSON Schema output for better codegen compatibility
568
+
569
+ ## 4.0.0-beta.61
570
+
571
+ ## 4.0.0-beta.60
572
+
573
+ ## 4.0.0-beta.59
574
+
575
+ ### Patch Changes
576
+
577
+ - cec026d: update packages
578
+
579
+ ## 4.0.0-beta.58
580
+
581
+ ## 4.0.0-beta.57
582
+
583
+ ## 4.0.0-beta.56
584
+
585
+ ## 4.0.0-beta.55
586
+
587
+ ## 4.0.0-beta.54
588
+
589
+ ### Patch Changes
590
+
591
+ - d867272: the return of `Context`
592
+
593
+ ## 4.0.0-beta.53
594
+
595
+ ### Patch Changes
596
+
597
+ - ee9694e: fix type issue?
598
+
599
+ ## 4.0.0-beta.52
600
+
601
+ ### Minor Changes
602
+
603
+ - 6252808: Add `ReadonlySetFromArray` and `ReadonlyMapFromArray` schema transformations that decode from annotated arrays to Set/Map. Update `ReadonlySet` and `ReadonlyMap` to use these internally.
604
+
605
+ ## 4.0.0-beta.51
606
+
607
+ ## 4.0.0-beta.50
608
+
609
+ ## 4.0.0-beta.49
610
+
611
+ ### Patch Changes
612
+
613
+ - e585c9c: fix config nested
614
+
615
+ ## 4.0.0-beta.48
616
+
617
+ ### Patch Changes
618
+
619
+ - 0c88f78: Remove `TaggedError` compatibility re-export, use `TaggedErrorClass` directly
620
+
621
+ ## 4.0.0-beta.47
622
+
623
+ ### Patch Changes
624
+
625
+ - 3365758: workaround effect error messages
626
+
627
+ ## 4.0.0-beta.46
628
+
629
+ ## 4.0.0-beta.45
630
+
631
+ ### Patch Changes
632
+
633
+ - 10b55ff: update packages
634
+
635
+ ## 4.0.0-beta.44
636
+
637
+ ### Patch Changes
638
+
639
+ - a37aa38: Update to effect beta 43
640
+
641
+ ## 4.0.0-beta.43
642
+
643
+ ## 4.0.0-beta.42
644
+
645
+ ## 4.0.0-beta.41
646
+
647
+ ## 4.0.0-beta.40
648
+
649
+ ## 4.0.0-beta.39
650
+
651
+ ### Patch Changes
652
+
653
+ - 10e90d5: fix: TaggedRequest should be an Opaque Schema Class
654
+
655
+ ## 4.0.0-beta.38
656
+
657
+ ### Patch Changes
658
+
659
+ - 0b3e00e: fix bug
660
+
661
+ ## 4.0.0-beta.37
662
+
663
+ ### Patch Changes
664
+
665
+ - 947fe20: fix input date
666
+
667
+ ## 4.0.0-beta.36
668
+
669
+ ## 4.0.0-beta.35
670
+
671
+ ## 4.0.0-beta.34
672
+
673
+ ### Patch Changes
674
+
675
+ - 8c645d5: update to latest effect
676
+
677
+ ## 4.0.0-beta.33
678
+
679
+ ### Patch Changes
680
+
681
+ - 4b95009: use Finite instead of Number
682
+
683
+ ## 4.0.0-beta.32
684
+
685
+ ### Patch Changes
686
+
687
+ - 01d862a: again
688
+
689
+ ## 4.0.0-beta.31
690
+
691
+ ### Patch Changes
692
+
693
+ - 6b6d601: fix ForceVOid
694
+
695
+ ## 4.0.0-beta.30
696
+
697
+ ### Patch Changes
698
+
699
+ - 5ec1f45: fix ForceVoid for real
700
+
701
+ ## 4.0.0-beta.29
702
+
703
+ ### Patch Changes
704
+
705
+ - a899d46: Replace `ForceVoid` in `makeClient` with a typed codec transformation instead of an unsafe cast.
706
+
707
+ ## 4.0.0-beta.28
708
+
709
+ ### Patch Changes
710
+
711
+ - 0099208: Refactor `Pure` helpers to use typed `useSync` calls instead of unsafe casts.
712
+
713
+ ## 4.0.0-beta.27
714
+
715
+ ### Patch Changes
716
+
717
+ - 601a1ff: update effect to 4.0.0-beta.37 and drop the Schema Class disableValidation workaround now that the patched effect schema covers it
718
+
719
+ ## 4.0.0-beta.26
720
+
721
+ ### Patch Changes
722
+
723
+ - 4da28e2: Change `Schema.Class` and `Schema.TaggedClass` wrappers to default constructor options to `{ disableValidation: true }`.
724
+
725
+ 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.
726
+
727
+ ## 4.0.0-beta.25
728
+
729
+ ### Patch Changes
730
+
731
+ - 6282d4b: Update `Effect.allLower` to call `svc.asEffect()` when available, ensuring service entries are normalized before `Effect.all` evaluation.
732
+
733
+ ## 4.0.0-beta.24
734
+
735
+ ### Patch Changes
736
+
737
+ - 32f71bf: Fix `Schema.TaggedUnion(...).tags` extraction for class-based members (for example `TaggedClass`) by using a local AST sentinel walker instead of relying on internal effect APIs.
738
+
739
+ Add tests covering:
740
+
741
+ - `TaggedUnion` with `encodeKeys`-wrapped members
742
+ - `TaggedUnion` with `TaggedClass` members
743
+
744
+ ## 4.0.0-beta.23
745
+
746
+ ### Patch Changes
747
+
748
+ - ea08a79: remove `fields` constraint from TaggedUnion/tags helpers, extract `_tag` via AST walk instead
749
+
750
+ ## 4.0.0-beta.22
751
+
752
+ ## 4.0.0-beta.21
753
+
754
+ ### Patch Changes
755
+
756
+ - 0d349e7: Align effect-app tagged union helpers with Effect v4 by delegating to the native tagged union utilities, exposing v4-style `cases` and `guards`, and preserving the local `tags` helper.
757
+ - 75c72ee: update effect to 4.0.0-beta.36, adapt to Option<A> revert from A | undefined
758
+
759
+ ## 4.0.0-beta.20
760
+
761
+ ### Patch Changes
762
+
763
+ - aa921db: Fix `TaggedRequest` no-config error type inference so requests without a third argument infer the same default error schema as requests with explicit success config.
764
+
765
+ ## 4.0.0-beta.19
766
+
767
+ ### Patch Changes
768
+
769
+ - ffc10a4: Migrate `Schema/ext` context helpers to Effect v4 by implementing `provide` and `contextFromServices` with proper service subtraction across decoding and encoding requirements.
770
+
3
771
  ## 4.0.0-beta.18
4
772
 
5
773
  ### Patch Changes