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

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