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

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