effect-app 4.0.0-beta.19 → 4.0.0-beta.190

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