effect-app 4.0.0-beta.21 → 4.0.0-beta.211

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 (219) hide show
  1. package/CHANGELOG.md +954 -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 +66 -20
  36. package/dist/Schema/Class.d.ts.map +1 -1
  37. package/dist/Schema/Class.js +189 -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 +4 -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 +131 -42
  59. package/dist/Schema/moreStrings.d.ts +37 -25
  60. package/dist/Schema/moreStrings.d.ts.map +1 -1
  61. package/dist/Schema/moreStrings.js +15 -16
  62. package/dist/Schema/numbers.d.ts +15 -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 +5 -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 +147 -15
  73. package/dist/Schema.d.ts.map +1 -1
  74. package/dist/Schema.js +131 -16
  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 +20 -32
  92. package/dist/client/apiClientFactory.d.ts.map +1 -1
  93. package/dist/client/apiClientFactory.js +95 -32
  94. package/dist/client/clientFor.d.ts +51 -17
  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 +481 -33
  101. package/dist/client/makeClient.d.ts.map +1 -1
  102. package/dist/client/makeClient.js +66 -24
  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/internal/lib.d.ts +1 -1
  111. package/dist/http.d.ts +1 -1
  112. package/dist/ids.d.ts +12 -12
  113. package/dist/ids.d.ts.map +1 -1
  114. package/dist/ids.js +3 -2
  115. package/dist/index.d.ts +5 -8
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +6 -8
  118. package/dist/logger.d.ts +1 -1
  119. package/dist/middleware.d.ts +14 -8
  120. package/dist/middleware.d.ts.map +1 -1
  121. package/dist/middleware.js +14 -8
  122. package/dist/rpc/Invalidation.d.ts +402 -0
  123. package/dist/rpc/Invalidation.d.ts.map +1 -0
  124. package/dist/rpc/Invalidation.js +150 -0
  125. package/dist/rpc/MiddlewareMaker.d.ts +5 -4
  126. package/dist/rpc/MiddlewareMaker.d.ts.map +1 -1
  127. package/dist/rpc/MiddlewareMaker.js +57 -37
  128. package/dist/rpc/RpcContextMap.d.ts +3 -3
  129. package/dist/rpc/RpcContextMap.d.ts.map +1 -1
  130. package/dist/rpc/RpcContextMap.js +4 -4
  131. package/dist/rpc/RpcMiddleware.d.ts +5 -4
  132. package/dist/rpc/RpcMiddleware.d.ts.map +1 -1
  133. package/dist/rpc/RpcMiddleware.js +1 -1
  134. package/dist/rpc.d.ts +2 -2
  135. package/dist/rpc.d.ts.map +1 -1
  136. package/dist/rpc.js +2 -2
  137. package/dist/transform.d.ts +1 -1
  138. package/dist/transform.d.ts.map +1 -1
  139. package/dist/transform.js +3 -3
  140. package/dist/utils/effectify.d.ts +1 -1
  141. package/dist/utils/extend.d.ts +1 -1
  142. package/dist/utils/extend.d.ts.map +1 -1
  143. package/dist/utils/gen.d.ts +2 -2
  144. package/dist/utils/gen.d.ts.map +1 -1
  145. package/dist/utils/logLevel.d.ts +2 -2
  146. package/dist/utils/logLevel.d.ts.map +1 -1
  147. package/dist/utils/logger.d.ts +3 -3
  148. package/dist/utils/logger.d.ts.map +1 -1
  149. package/dist/utils/logger.js +3 -3
  150. package/dist/utils.d.ts +31 -38
  151. package/dist/utils.d.ts.map +1 -1
  152. package/dist/utils.js +12 -25
  153. package/dist/validation/validators.d.ts +1 -1
  154. package/dist/validation/validators.d.ts.map +1 -1
  155. package/dist/validation.d.ts +1 -1
  156. package/dist/validation.d.ts.map +1 -1
  157. package/package.json +46 -24
  158. package/src/Config/SecretURL.ts +2 -1
  159. package/src/Config.ts +14 -0
  160. package/src/ConfigProvider.ts +48 -0
  161. package/src/{ServiceMap.ts → Context.ts} +52 -59
  162. package/src/Effect.ts +12 -14
  163. package/src/Layer.ts +6 -5
  164. package/src/Pure.ts +17 -18
  165. package/src/Schema/Class.ts +268 -62
  166. package/src/Schema/SchemaParser.ts +12 -0
  167. package/src/Schema/SpecialJsonSchema.ts +137 -0
  168. package/src/Schema/SpecialOpenApi.ts +130 -0
  169. package/src/Schema/brand.ts +21 -1
  170. package/src/Schema/email.ts +7 -2
  171. package/src/Schema/ext.ts +204 -72
  172. package/src/Schema/moreStrings.ts +40 -37
  173. package/src/Schema/numbers.ts +14 -16
  174. package/src/Schema/phoneNumber.ts +5 -1
  175. package/src/Schema/strings.ts +4 -8
  176. package/src/Schema.ts +314 -20
  177. package/src/client/InvalidationKeys.ts +50 -0
  178. package/src/client/apiClientFactory.ts +223 -129
  179. package/src/client/clientFor.ts +95 -29
  180. package/src/client/errors.ts +52 -26
  181. package/src/client/makeClient.ts +572 -71
  182. package/src/client.ts +1 -0
  183. package/src/ids.ts +3 -2
  184. package/src/index.ts +5 -10
  185. package/src/middleware.ts +13 -9
  186. package/src/rpc/Invalidation.ts +226 -0
  187. package/src/rpc/MiddlewareMaker.ts +65 -60
  188. package/src/rpc/README.md +2 -2
  189. package/src/rpc/RpcContextMap.ts +6 -5
  190. package/src/rpc/RpcMiddleware.ts +5 -4
  191. package/src/rpc.ts +1 -1
  192. package/src/transform.ts +2 -2
  193. package/src/utils/gen.ts +1 -1
  194. package/src/utils/logger.ts +2 -2
  195. package/src/utils.ts +50 -132
  196. package/test/dist/rpc.test.d.ts.map +1 -1
  197. package/test/dist/secretURL.test.d.ts.map +1 -0
  198. package/test/dist/special.test.d.ts.map +1 -0
  199. package/test/dist/stream-error.types.d.ts +2 -0
  200. package/test/dist/stream-error.types.d.ts.map +1 -0
  201. package/test/dist/stream-error.types.js +27 -0
  202. package/test/rpc.test.ts +45 -6
  203. package/test/schema.test.ts +581 -7
  204. package/test/secretURL.test.ts +157 -0
  205. package/test/special.test.ts +1023 -0
  206. package/test/utils.test.ts +6 -6
  207. package/tsconfig.base.json +3 -4
  208. package/tsconfig.json +0 -1
  209. package/tsconfig.json.bak +2 -2
  210. package/tsconfig.src.json +29 -29
  211. package/tsconfig.test.json +2 -2
  212. package/dist/Operations.d.ts +0 -123
  213. package/dist/Operations.d.ts.map +0 -1
  214. package/dist/Operations.js +0 -29
  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/eslint.config.mjs +0 -26
  219. package/src/Operations.ts +0 -55
package/CHANGELOG.md CHANGED
@@ -1,5 +1,959 @@
1
1
  # @effect-app/prelude
2
2
 
3
+ ## 4.0.0-beta.211
4
+
5
+ ## 4.0.0-beta.210
6
+
7
+ ## 4.0.0-beta.209
8
+
9
+ ### Patch Changes
10
+
11
+ - c991be1: update packages
12
+ - 3bae238: Remove lodash type imports from utils.ts, replacing with native TypeScript equivalents.
13
+
14
+ ## 4.0.0-beta.208
15
+
16
+ ## 4.0.0-beta.207
17
+
18
+ ### Patch Changes
19
+
20
+ - 8fffc3c: cleanup
21
+
22
+ ## 4.0.0-beta.206
23
+
24
+ ### Patch Changes
25
+
26
+ - 54bfc59: Require middleware to flow through `makeRpcClient` and the live layer through `makeRouter`.
27
+
28
+ ### `makeRpcClient(middleware, generalErrors?)`
29
+
30
+ Signature drops the `rcs` (request-context map wrapper) parameter. `rcs` was only load-bearing on the type side for `RequestConfig` inference; that information is now derived from `middleware.requestContextMap`. `middleware` is required — the previous "rcs + optional middleware" overload is gone.
31
+
32
+ **Migration**:
33
+
34
+ ```diff
35
+ -makeRpcClient(RequestContextMap, undefined, AppMiddleware)
36
+ +makeRpcClient(AppMiddleware)
37
+ ```
38
+
39
+ For tests/clients without a real middleware, build a minimal stub (`{ requestContextMap, requestContext }`) or pass any value satisfying `ClientMiddleware<RCM>`.
40
+
41
+ ### `makeRouter(middlewareLive)`
42
+
43
+ `makeRouter()` no longer infers the live middleware layer from `meta.middleware.Default`. The Live layer is now passed explicitly to `makeRouter`, and the request classes only carry the middleware tag (schema-only). This decouples the router from any assumption that the middleware tag exposes a `Default` static.
44
+
45
+ **Migration**:
46
+
47
+ ```diff
48
+ -export const { Router, matchAll } = makeRouter()
49
+ +export const { Router, matchAll } = makeRouter(AppMiddleware.Default)
50
+ ```
51
+
52
+ ## 4.0.0-beta.205
53
+
54
+ ### Patch Changes
55
+
56
+ - f313973: fix type make interface
57
+
58
+ ## 4.0.0-beta.204
59
+
60
+ ### Patch Changes
61
+
62
+ - 0a0030f: fix missing overloads
63
+
64
+ ## 4.0.0-beta.203
65
+
66
+ ### Patch Changes
67
+
68
+ - 992d9fa: fix more branded types
69
+
70
+ ## 4.0.0-beta.202
71
+
72
+ ### Patch Changes
73
+
74
+ - 1186b09: improve branded types, keep types through Rebuild
75
+
76
+ ## 4.0.0-beta.201
77
+
78
+ ### Patch Changes
79
+
80
+ - d67d17a: Source middleware errors exclusively from the rpc middleware tag, and move command/stream invalidation wrap/unwrap entirely into the routing layer (server) and `apiClientFactory` (client). `InvalidationMiddleware` and `InvalidationMiddlewareLive` are removed.
81
+
82
+ ### Resource error schemas
83
+
84
+ Three sites that used to fold `RequestContextMap[*].error` into a request's own error schema now stop doing so:
85
+
86
+ - `makeRpcClient` / `makeRequestClass` — `failureSchema` is just `config.error` (still merged with the optional `generalErrors` parameter, which is the only remaining error mix on both type and runtime levels).
87
+ - `MiddlewareMaker.rpc()` — `error: options.error` only; the previous union with `rcm.config[*].error` is gone.
88
+ - Routing and `apiClientFactory.makeRpcGroupFromRequestsAndModuleName` — `Invalidation.makeCommandRpc` is called with `error: resource.error` (no widening with the composite middleware error union).
89
+
90
+ Middleware errors reach the client through the rpc's `middlewares[*].error` failure-union channel of `Rpc.exitSchema`, exposed by attaching the middleware tag to the rpc on both sides:
91
+
92
+ - **Server**: `makeRouter(middleware)` attaches the live composite tag (existing behavior).
93
+ - **Client**: new `middleware` option on `ClientForOptions` / `ApiClientFactory.makeFor(layer, { middleware })` attaches the same tag schema-only (no Live invoked). Threaded through `makeRpcGroupFromRequestsAndModuleName` to `RpcGroup.middleware(tag)`. Without it, stream rpcs (whose top-level `errorSchema` is forced to `Never` by effect-rpc) hit `SchemaError: Expected never | { _tag: "error", ... }` decoding middleware-thrown errors that bypass the in-stream `Stream.catch` wrap.
94
+
95
+ **Migration**: handlers that yield errors previously sourced from rcm (e.g. `yield* new UnauthorizedError()`) now require those errors to be declared explicitly on the resource — `Req.Query<T>()("...", fields, { success, error: UnauthorizedError })`. The handler error type no longer auto-includes the rcm union.
96
+
97
+ ### Invalidation wrap/unwrap
98
+
99
+ - `routing.ts` (server) provides a per-request `InvalidationSet` for commands, wraps the success value as `CommandResponseWithMetaData`, and converts handler-thrown failures into `CommandFailureWithMetaData` so accumulated invalidation keys reach the client on either path. Stream wrap (per-chunk envelope + final `done` chunk) was already in routing and is unchanged.
100
+ - `apiClientFactory.ts` (client) `unwrapCommand` strips both envelopes and forwards keys to `InvalidationKeysFromServer`.
101
+ - `InvalidationMiddleware` (the tag) and `InvalidationMiddlewareLive` (the layer) are **removed**. The middleware was the previous home of the wrap; with the wrap moved to routing/apiClientFactory, the middleware became a thin pass-through and is no longer needed. `DefaultGenericMiddlewares` and `DefaultGenericMiddlewaresLive` shrink accordingly — no migration needed for callers that used the defaults; callers that referenced `InvalidationMiddleware` / `InvalidationMiddlewareLive` directly should drop those imports.
102
+
103
+ Middleware-thrown errors are never wrapped: by definition the handler never ran, so there is nothing to invalidate. They flow raw on the Cause and the client decodes them via the middleware-tag failure-union channel described above.
104
+
105
+ ## 4.0.0-beta.200
106
+
107
+ ### Patch Changes
108
+
109
+ - 8f1cf6a: able to configure schema concurrency
110
+ - 0cff7c1: workaround middleware error issue
111
+
112
+ ## 4.0.0-beta.199
113
+
114
+ ## 4.0.0-beta.198
115
+
116
+ ### Patch Changes
117
+
118
+ - 32dbc54: fix stream type when no success specified
119
+
120
+ ## 4.0.0-beta.197
121
+
122
+ ### Minor Changes
123
+
124
+ - 3dc0d2a: Add streaming as a `stream: true` config option on `Query` / `Command` instead of a separate request type.
125
+
126
+ `TaggedRequestFor` now exposes only `Query` and `Command` factories — the standalone `Stream` factory is removed. To produce a Stream of `success` values, pass `stream: true` in the request config. The request `type` field stays `"command" | "query"`; a new `stream: boolean` field carries the streaming flag (stripped from the stored handler config).
127
+
128
+ ```ts
129
+ // Query that streams results
130
+ Req.Query<T>()("Tag", {}, { stream: true, success: ... })
131
+
132
+ // Command that streams results
133
+ Req.Command<T>()("Tag", {}, { stream: true, success: ... })
134
+ ```
135
+
136
+ Vue client mapping (per-handler properties mirror the non-stream API — `.query`, `.fn`, `.mutate`):
137
+
138
+ - `query` + `stream: true` → exposes `.query` (read-only streaming, tracked Vue Query). Helper map key: `${name}Query`.
139
+ - `command` + `stream: true` → exposes `.fn` and `.mutate` (mutating streaming).
140
+ - Plain `query` / `command` unchanged.
141
+
142
+ Server routing dispatches via the new `stream` flag (`makeStreamRpc` for streaming commands/queries, `makeCommandRpc` / `Rpc.make` otherwise).
143
+
144
+ Also lifts the `Struct` / `TaggedStruct` and `Opaque` definitions in `effect-app/Schema` to use `S.Bottom` / `S.Opaque` directly, exposing `fields`, `mapFields`, and a `MakeIn` that allows `void` when all fields are optional. `TaggedRequestFor` request classes now use `Opaque(TaggedStruct(...))` instead of `TaggedClass`, and decoding/encoding services are derived from `success` / `error` rather than stored on the request.
145
+
146
+ **Migration**: replace `Req.Stream` with `Req.Query` or `Req.Command` and add `stream: true` to the config — `Query` for read-only streams, `Command` for mutating streams.
147
+
148
+ ## 4.0.0-beta.196
149
+
150
+ ## 4.0.0-beta.195
151
+
152
+ ### Patch Changes
153
+
154
+ - 774a9b3: `MiddlewareMaker.makeMiddlewareBasic` now derives each middleware's effective error from both the static `error` field on the tag AND the `rcm` config entry referenced by `dynamic.key`, rather than relying on the static field alone.
155
+
156
+ Middlewares declared with `dynamic: RequestContextMap.get("foo")` (instead of an explicit static `error: ...`) end up with `tag.error = Schema.Never` at runtime — `RpcMiddleware.Tag` defaults the static error to `Never` when not provided. The composite `MiddlewareMaker.Tag(...).middleware(...)` walked `make[*].error` to build its own error union, collapsing to `Union<Never, ...> ≡ Never`.
157
+
158
+ `Rpc.exitSchema` walks `rpc.middlewares[*].error` when building the wire-level failure union for every rpc kind. Empty-union meant middleware-thrown errors (`NotLoggedInError`, `UnauthorizedError`, etc.) never reached the wire schema. Query/command happened to work because their wire `errorSchema = resource.error` already covered the merge from `makeRpcClient`. Stream rpcs have `errorSchema` force-set to `Schema.Never` by effect-rpc, so the resource-level merge never reached the wire — middleware errors decoded as "Expected never, got X".
159
+
160
+ Per middleware, the new logic pushes both the static `_.error` (if non-`Never`) and `rcm[_.dynamic.key].error` (if non-`Never`) into the composite's failure union.
161
+
162
+ ## 4.0.0-beta.194
163
+
164
+ ## 4.0.0-beta.193
165
+
166
+ ## 4.0.0-beta.192
167
+
168
+ ## 4.0.0-beta.191
169
+
170
+ ### Patch Changes
171
+
172
+ - 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`.
173
+
174
+ ## 4.0.0-beta.190
175
+
176
+ ### Patch Changes
177
+
178
+ - 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`.
179
+
180
+ ## 4.0.0-beta.189
181
+
182
+ ### Patch Changes
183
+
184
+ - 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.
185
+
186
+ ## 4.0.0-beta.188
187
+
188
+ ### Patch Changes
189
+
190
+ - b2e438f: Remove Operations service and repo
191
+
192
+ ## 4.0.0-beta.187
193
+
194
+ ### Patch Changes
195
+
196
+ - 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.
197
+
198
+ ## 4.0.0-beta.186
199
+
200
+ ## 4.0.0-beta.185
201
+
202
+ ## 4.0.0-beta.184
203
+
204
+ ## 4.0.0-beta.183
205
+
206
+ ## 4.0.0-beta.182
207
+
208
+ ## 4.0.0-beta.181
209
+
210
+ ### Patch Changes
211
+
212
+ - 583393f: Default the stream `mutateStream` execute resolved value to the request's success type when no `final` schema is declared.
213
+
214
+ 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.
215
+
216
+ ## 4.0.0-beta.180
217
+
218
+ ### Minor Changes
219
+
220
+ - 7fa3045: V1/V2/V3: stream and command requests carry invalidation metadata
221
+
222
+ **V1** – stream final response includes metadata
223
+
224
+ - `Invalidation.StreamResponseChunk` wraps each stream item as `{ _tag: "value", value }` and appends `{ _tag: "done", metadata }` at the end carrying all accumulated invalidation keys.
225
+
226
+ **V2** – invalidation keys included in failures
227
+
228
+ - `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.
229
+ - `InvalidationMiddlewareLive` wraps command failures; `routing.ts` wraps stream failures.
230
+ - `apiClientFactory.ts` unwraps both on the client side, forwarding keys before re-failing with the original error.
231
+
232
+ **V3** – mid-stream metadata chunks
233
+
234
+ - `Invalidation.StreamResponseChunk` now also includes `{ _tag: "metadata", metadata }` for mid-stream invalidation.
235
+ - 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`).
236
+ - `apiClientFactory.ts` processes "metadata" chunks the same as "done" chunks, forwarding keys to `InvalidationKeysFromServer` immediately.
237
+ - `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.
238
+
239
+ ## 4.0.0-beta.179
240
+
241
+ ### Minor Changes
242
+
243
+ - 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`.
244
+
245
+ ```ts
246
+ class MyStream extends SomethingStream<MyStream>()(
247
+ "MyStream",
248
+ { id: S.String },
249
+ {
250
+ success: S.Union([OperationProgress, ExportComplete]),
251
+ final: ExportComplete, // execute now resolves with ExportComplete
252
+ }
253
+ ) {}
254
+ ```
255
+
256
+ ## 4.0.0-beta.178
257
+
258
+ ## 4.0.0-beta.177
259
+
260
+ ### Minor Changes
261
+
262
+ - 89d8b3a: Add Effect RPC `Stream` support to the wrapper.
263
+
264
+ - New `Stream` request constructor on `TaggedRequestFor` parallel to `Query`/`Command`. Emits resources with `type: "stream"`.
265
+ - 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).
266
+ - 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.
267
+ - New `RequestStreamHandler` / `RequestStreamHandlerWithInput` shapes in `clientFor.ts`; `RequestHandlers` dispatches on `type: "stream"`.
268
+
269
+ ## 4.0.0-beta.176
270
+
271
+ ### Patch Changes
272
+
273
+ - pass options
274
+
275
+ ## 4.0.0-beta.175
276
+
277
+ ## 4.0.0-beta.174
278
+
279
+ ### Minor Changes
280
+
281
+ - 821468d: Add server-driven cache invalidation via RPC response headers.
282
+
283
+ - `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.
284
+ - `effect-app/middleware`: new `InvalidationMiddleware` RPC middleware tag; included in `DefaultGenericMiddlewares`.
285
+ - `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`.
286
+ - `@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.
287
+ - `@effect-app/vue`: `invalidateQueries` / `useMutation` now reads server-provided invalidation keys from `InvalidationKeysFromServer` after each mutation and applies them alongside the client-side invalidation.
288
+
289
+ ## 4.0.0-beta.173
290
+
291
+ ## 4.0.0-beta.172
292
+
293
+ ## 4.0.0-beta.171
294
+
295
+ ### Patch Changes
296
+
297
+ - d71d976: fix
298
+
299
+ ## 4.0.0-beta.170
300
+
301
+ ### Patch Changes
302
+
303
+ - 8f09f77: fix
304
+
305
+ ## 4.0.0-beta.169
306
+
307
+ ### Patch Changes
308
+
309
+ - 8ae8b53: input mess
310
+
311
+ ## 4.0.0-beta.168
312
+
313
+ ### Patch Changes
314
+
315
+ - 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.
316
+
317
+ ## 4.0.0-beta.167
318
+
319
+ ### Patch Changes
320
+
321
+ - 140e192: Relax invalidation resource value constraints to allow arbitrary values while preserving query-only filtering in invalidation handling.
322
+
323
+ ## 4.0.0-beta.166
324
+
325
+ ### Patch Changes
326
+
327
+ - 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.
328
+
329
+ ## 4.0.0-beta.165
330
+
331
+ ### Minor Changes
332
+
333
+ - 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.
334
+
335
+ ## 4.0.0-beta.164
336
+
337
+ ### Minor Changes
338
+
339
+ - 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.
340
+
341
+ ## 4.0.0-beta.163
342
+
343
+ ### Patch Changes
344
+
345
+ - b952f19: bye cruft
346
+
347
+ ## 4.0.0-beta.162
348
+
349
+ ### Patch Changes
350
+
351
+ - b52b424: restore annotations for now
352
+
353
+ ## 4.0.0-beta.161
354
+
355
+ ## 4.0.0-beta.160
356
+
357
+ ### Patch Changes
358
+
359
+ - 505bfa9: Add concurrent decode helper APIs and migrate decode callsites to use them.
360
+
361
+ - Add `withDefaultParseOptions` and keep `DefaultParseOptions` centralized.
362
+ - Export `decodeEffectConcurrently` and `decodeUnknownEffectConcurrently` from Schema and SchemaParser modules.
363
+ - Update repository, queue, client, form, and CLI decode paths to use concurrent decode helpers.
364
+ - Keep schema constructors free of hardcoded parse concurrency overrides.
365
+
366
+ ## 4.0.0-beta.159
367
+
368
+ ### Patch Changes
369
+
370
+ - c1e73de:
371
+
372
+ ## 4.0.0-beta.158
373
+
374
+ ### Patch Changes
375
+
376
+ - 3c1f52d: improve: class strictness enabled by default again, allow `strict: false` as opt out for now.
377
+ - 6ae3050: Preserve class annotation parseOptions in relaxed declaration struct decoding so custom parse options (including concurrency defaults) are applied consistently.
378
+
379
+ ## 4.0.0-beta.157
380
+
381
+ ### Patch Changes
382
+
383
+ - 6fff09c: unify encoded function for when you use encodedKeys
384
+
385
+ ## 4.0.0-beta.156
386
+
387
+ ## 4.0.0-beta.155
388
+
389
+ ### Patch Changes
390
+
391
+ - c215db8: align TaggedUnion with array arg
392
+
393
+ ## 4.0.0-beta.154
394
+
395
+ ## 4.0.0-beta.153
396
+
397
+ ## 4.0.0-beta.152
398
+
399
+ ## 4.0.0-beta.151
400
+
401
+ ## 4.0.0-beta.150
402
+
403
+ ### Patch Changes
404
+
405
+ - 85a8275: Expose `make`, `makeOption`, and `makeEffect` static helpers on request classes created via `Query`/`Command`.
406
+
407
+ ## 4.0.0-beta.149
408
+
409
+ ### Patch Changes
410
+
411
+ - f317c5e: Preserve omitted-input make helpers through Schema.Opaque when the wrapped schema allows optional or default-only constructor input.
412
+
413
+ ## 4.0.0-beta.148
414
+
415
+ ### Patch Changes
416
+
417
+ - 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.
418
+
419
+ ## 4.0.0-beta.147
420
+
421
+ ### Patch Changes
422
+
423
+ - 47e3742: Preserve Struct.copy through `annotate`, `annotateKey`, and `mapFields` chains, and add tests covering chained copy behavior on Struct schemas.
424
+
425
+ ## 4.0.0-beta.146
426
+
427
+ ### Patch Changes
428
+
429
+ - a4dff57: Adjust Struct and TaggedStruct copy typing to follow class-style widening constraints while keeping structural copy runtime behavior.
430
+
431
+ ## 4.0.0-beta.145
432
+
433
+ ### Patch Changes
434
+
435
+ - 12abb55: Refine schema copy behavior by keeping class copy constructor-based while using structural copy for Struct and TaggedStruct helpers.
436
+
437
+ ## 4.0.0-beta.144
438
+
439
+ ### Patch Changes
440
+
441
+ - 11422f8: Update request helper typing and runtime invocation to rely on schema `.make` instead of class constructors, avoiding `new`-based assumptions for request schemas.
442
+ - d31253f: Refactor eligible schema classes and tagged classes to Opaque schemas, and migrate constructor call sites to use `.make` for those models.
443
+
444
+ ## 4.0.0-beta.143
445
+
446
+ ### Patch Changes
447
+
448
+ - 79eb019: Remove redundant schema `title` annotations when they duplicate the schema `identifier`.
449
+
450
+ ## 4.0.0-beta.142
451
+
452
+ ### Minor Changes
453
+
454
+ - 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.
455
+
456
+ ### Patch Changes
457
+
458
+ - 3436d44: Extend `Schema.Opaque` in `effect-app/Schema` to support an optional encoded-type generic while preserving the original single-generic behavior.
459
+
460
+ ## 4.0.0-beta.141
461
+
462
+ ### Patch Changes
463
+
464
+ - 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).
465
+
466
+ ## 4.0.0-beta.140
467
+
468
+ ## 4.0.0-beta.139
469
+
470
+ ## 4.0.0-beta.138
471
+
472
+ ## 4.0.0-beta.137
473
+
474
+ ## 4.0.0-beta.136
475
+
476
+ ## 4.0.0-beta.135
477
+
478
+ ### Patch Changes
479
+
480
+ - c7bbc41: fix - class should check type side
481
+
482
+ ## 4.0.0-beta.134
483
+
484
+ ### Patch Changes
485
+
486
+ - 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.
487
+ - f353d48: Rename the Class/TaggedClass relaxed declaration option to `strict` (default `false`) and apply it to `Class`, `TaggedClass`, `ExtendedClass`, and `ExtendedTaggedClass`.
488
+
489
+ When `strict: true`, class decoding keeps strict class-level declaration behavior; by default, decoding remains relaxed and preserves field-level schema errors.
490
+
491
+ ## 4.0.0-beta.133
492
+
493
+ ### Patch Changes
494
+
495
+ - c3299f7: update packages
496
+
497
+ ## 4.0.0-beta.132
498
+
499
+ ## 4.0.0-beta.131
500
+
501
+ ## 4.0.0-beta.130
502
+
503
+ ### Patch Changes
504
+
505
+ - ea1bd46: fix: prevent expansion of nominal brands
506
+
507
+ ## 4.0.0-beta.129
508
+
509
+ ## 4.0.0-beta.128
510
+
511
+ ### Patch Changes
512
+
513
+ - 57db551: Split `TaggedRequestFor` into `Query` and `Command` factories, and mark generated request classes with `type: "query" | "command"`.
514
+
515
+ Vue client helpers now expose query-only helpers (`query`, `suspense`, `fetch`) for query requests and mutation-only helpers (`mutate`, `fetch`) for command requests.
516
+
517
+ ## 4.0.0-beta.127
518
+
519
+ ## 4.0.0-beta.126
520
+
521
+ ### Patch Changes
522
+
523
+ - 458bb1b: fix type
524
+
525
+ ## 4.0.0-beta.125
526
+
527
+ ## 4.0.0-beta.124
528
+
529
+ ### Patch Changes
530
+
531
+ - 256ae85: cleanup
532
+
533
+ ## 4.0.0-beta.123
534
+
535
+ ### Patch Changes
536
+
537
+ - 14aba14: fix: clientFor
538
+
539
+ ## 4.0.0-beta.122
540
+
541
+ ### Patch Changes
542
+
543
+ - f052d38: Replace `(...) => Effect.gen` with `Effect.fnUntraced` in `apiClientFactory`.
544
+
545
+ ## 4.0.0-beta.121
546
+
547
+ ### Patch Changes
548
+
549
+ - 5ac46cb: Make `Schema.provide` dual (pipeable)
550
+
551
+ ## 4.0.0-beta.120
552
+
553
+ ### Minor Changes
554
+
555
+ - 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.
556
+
557
+ ## 4.0.0-beta.119
558
+
559
+ ## 4.0.0-beta.118
560
+
561
+ ### Minor Changes
562
+
563
+ - 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.
564
+
565
+ ### Patch Changes
566
+
567
+ - bd26832: Add nested anyOf flattening to JSON Schema post-processing
568
+ - Update effect packages to 4.0.0-beta.52
569
+
570
+ ## 4.0.0-beta.117
571
+
572
+ ## 4.0.0-beta.116
573
+
574
+ ## 4.0.0-beta.115
575
+
576
+ ## 4.0.0-beta.114
577
+
578
+ ## 4.0.0-beta.113
579
+
580
+ ## 4.0.0-beta.112
581
+
582
+ ## 4.0.0-beta.111
583
+
584
+ ### Patch Changes
585
+
586
+ - ca94edf: fix typo
587
+
588
+ ## 4.0.0-beta.110
589
+
590
+ ## 4.0.0-beta.109
591
+
592
+ ## 4.0.0-beta.108
593
+
594
+ ### Patch Changes
595
+
596
+ - 3e46e7b: allow excess props in openapi schemas
597
+
598
+ ## 4.0.0-beta.107
599
+
600
+ ## 4.0.0-beta.106
601
+
602
+ ## 4.0.0-beta.105
603
+
604
+ ## 4.0.0-beta.104
605
+
606
+ ### Minor Changes
607
+
608
+ - e944bca: Add `generateGuards` and `generateGuardsFor` to `TaggedUnion` / `ExtendTaggedUnion` for property-scoped type guards.
609
+
610
+ - `generateGuards("key")` — generic per-guard, no need to specify the container type
611
+ - `generateGuardsFor<A>()("key")` — curried, fixes `A` for concrete guard signatures
612
+
613
+ Both return `{ is{Tag}, isAnyOf }` guards that narrow the container type by its tagged union property.
614
+
615
+ ## 4.0.0-beta.103
616
+
617
+ ### Minor Changes
618
+
619
+ - 7119320: Add `generateGuards` to `TaggedUnion` / `ExtendTaggedUnion` for generating property-scoped type guards.
620
+
621
+ Usage: `MyUnion.generateGuards<MyType>()("propertyKey")` returns `{ is{Tag}, isAnyOf }` guards that narrow the container type by its tagged union property.
622
+
623
+ ## 4.0.0-beta.102
624
+
625
+ ## 4.0.0-beta.101
626
+
627
+ ## 4.0.0-beta.100
628
+
629
+ ## 4.0.0-beta.99
630
+
631
+ ## 4.0.0-beta.98
632
+
633
+ ## 4.0.0-beta.97
634
+
635
+ ## 4.0.0-beta.96
636
+
637
+ ### Patch Changes
638
+
639
+ - 5615e47: bs
640
+
641
+ ## 4.0.0-beta.95
642
+
643
+ ### Patch Changes
644
+
645
+ - 88838fb: Remove pick/omit customizations from Class/TaggedClass/Struct/TaggedStruct. Use `Struct.pick(X.fields, [...])` from `effect-app` instead.
646
+
647
+ ## 4.0.0-beta.94
648
+
649
+ ## 4.0.0-beta.93
650
+
651
+ ## 4.0.0-beta.92
652
+
653
+ ## 4.0.0-beta.91
654
+
655
+ ### Minor Changes
656
+
657
+ - 738b482: Add pick/omit to Struct and TaggedStruct
658
+
659
+ ## 4.0.0-beta.90
660
+
661
+ ## 4.0.0-beta.89
662
+
663
+ ## 4.0.0-beta.88
664
+
665
+ ## 4.0.0-beta.87
666
+
667
+ ## 4.0.0-beta.86
668
+
669
+ ## 4.0.0-beta.85
670
+
671
+ ## 4.0.0-beta.84
672
+
673
+ ## 4.0.0-beta.83
674
+
675
+ ## 4.0.0-beta.82
676
+
677
+ ## 4.0.0-beta.81
678
+
679
+ ## 4.0.0-beta.80
680
+
681
+ ## 4.0.0-beta.79
682
+
683
+ ### Minor Changes
684
+
685
+ - 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).
686
+
687
+ ## 4.0.0-beta.78
688
+
689
+ ## 4.0.0-beta.77
690
+
691
+ ### Minor Changes
692
+
693
+ - 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.
694
+
695
+ ## 4.0.0-beta.76
696
+
697
+ ### Patch Changes
698
+
699
+ - a5248a9: use new schema features
700
+ - fac725d: update effect to latest beta
701
+
702
+ ## 4.0.0-beta.75
703
+
704
+ ### Patch Changes
705
+
706
+ - 24f0a5a: rename Literal to Literals, no longer hiding Schema's singular Literal.
707
+
708
+ ## 4.0.0-beta.74
709
+
710
+ ### Patch Changes
711
+
712
+ - 54ec1ef: fix bs
713
+
714
+ ## 4.0.0-beta.73
715
+
716
+ ## 4.0.0-beta.72
717
+
718
+ ### Patch Changes
719
+
720
+ - 0541f0d: fix withDefault types
721
+
722
+ ## 4.0.0-beta.71
723
+
724
+ ### Minor Changes
725
+
726
+ - beae3a0: Remove `withDefaultConstructor` wrapper, use `S.withConstructorDefault` directly with `Effect.succeed`/`Effect.sync`.
727
+
728
+ ## 4.0.0-beta.70
729
+
730
+ ## 4.0.0-beta.69
731
+
732
+ ### Patch Changes
733
+
734
+ - dc465e3: update to latest effect beta
735
+
736
+ ## 4.0.0-beta.68
737
+
738
+ ### Patch Changes
739
+
740
+ - e6f2341: Add SecretURL tests and switch secretURL config to use Config.nonEmptyString
741
+
742
+ ## 4.0.0-beta.67
743
+
744
+ ## 4.0.0-beta.66
745
+
746
+ ### Patch Changes
747
+
748
+ - edc52e4: update
749
+
750
+ ## 4.0.0-beta.65
751
+
752
+ ### Minor Changes
753
+
754
+ - 1f103b2: Replace `proxify` with explicit service accessor helpers: `accessFn`, `accessEffectFn`, `accessCn`, `accessEffectCn`.
755
+
756
+ ### Patch Changes
757
+
758
+ - 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.
759
+
760
+ ## 4.0.0-beta.64
761
+
762
+ ### Patch Changes
763
+
764
+ - c1a6fdc: fix proxify
765
+
766
+ ## 4.0.0-beta.63
767
+
768
+ ## 4.0.0-beta.62
769
+
770
+ ### Patch Changes
771
+
772
+ - 0b21a02: fix: flatten simple allOf constraints in JSON Schema output for better codegen compatibility
773
+
774
+ ## 4.0.0-beta.61
775
+
776
+ ## 4.0.0-beta.60
777
+
778
+ ## 4.0.0-beta.59
779
+
780
+ ### Patch Changes
781
+
782
+ - cec026d: update packages
783
+
784
+ ## 4.0.0-beta.58
785
+
786
+ ## 4.0.0-beta.57
787
+
788
+ ## 4.0.0-beta.56
789
+
790
+ ## 4.0.0-beta.55
791
+
792
+ ## 4.0.0-beta.54
793
+
794
+ ### Patch Changes
795
+
796
+ - d867272: the return of `Context`
797
+
798
+ ## 4.0.0-beta.53
799
+
800
+ ### Patch Changes
801
+
802
+ - ee9694e: fix type issue?
803
+
804
+ ## 4.0.0-beta.52
805
+
806
+ ### Minor Changes
807
+
808
+ - 6252808: Add `ReadonlySetFromArray` and `ReadonlyMapFromArray` schema transformations that decode from annotated arrays to Set/Map. Update `ReadonlySet` and `ReadonlyMap` to use these internally.
809
+
810
+ ## 4.0.0-beta.51
811
+
812
+ ## 4.0.0-beta.50
813
+
814
+ ## 4.0.0-beta.49
815
+
816
+ ### Patch Changes
817
+
818
+ - e585c9c: fix config nested
819
+
820
+ ## 4.0.0-beta.48
821
+
822
+ ### Patch Changes
823
+
824
+ - 0c88f78: Remove `TaggedError` compatibility re-export, use `TaggedErrorClass` directly
825
+
826
+ ## 4.0.0-beta.47
827
+
828
+ ### Patch Changes
829
+
830
+ - 3365758: workaround effect error messages
831
+
832
+ ## 4.0.0-beta.46
833
+
834
+ ## 4.0.0-beta.45
835
+
836
+ ### Patch Changes
837
+
838
+ - 10b55ff: update packages
839
+
840
+ ## 4.0.0-beta.44
841
+
842
+ ### Patch Changes
843
+
844
+ - a37aa38: Update to effect beta 43
845
+
846
+ ## 4.0.0-beta.43
847
+
848
+ ## 4.0.0-beta.42
849
+
850
+ ## 4.0.0-beta.41
851
+
852
+ ## 4.0.0-beta.40
853
+
854
+ ## 4.0.0-beta.39
855
+
856
+ ### Patch Changes
857
+
858
+ - 10e90d5: fix: TaggedRequest should be an Opaque Schema Class
859
+
860
+ ## 4.0.0-beta.38
861
+
862
+ ### Patch Changes
863
+
864
+ - 0b3e00e: fix bug
865
+
866
+ ## 4.0.0-beta.37
867
+
868
+ ### Patch Changes
869
+
870
+ - 947fe20: fix input date
871
+
872
+ ## 4.0.0-beta.36
873
+
874
+ ## 4.0.0-beta.35
875
+
876
+ ## 4.0.0-beta.34
877
+
878
+ ### Patch Changes
879
+
880
+ - 8c645d5: update to latest effect
881
+
882
+ ## 4.0.0-beta.33
883
+
884
+ ### Patch Changes
885
+
886
+ - 4b95009: use Finite instead of Number
887
+
888
+ ## 4.0.0-beta.32
889
+
890
+ ### Patch Changes
891
+
892
+ - 01d862a: again
893
+
894
+ ## 4.0.0-beta.31
895
+
896
+ ### Patch Changes
897
+
898
+ - 6b6d601: fix ForceVOid
899
+
900
+ ## 4.0.0-beta.30
901
+
902
+ ### Patch Changes
903
+
904
+ - 5ec1f45: fix ForceVoid for real
905
+
906
+ ## 4.0.0-beta.29
907
+
908
+ ### Patch Changes
909
+
910
+ - a899d46: Replace `ForceVoid` in `makeClient` with a typed codec transformation instead of an unsafe cast.
911
+
912
+ ## 4.0.0-beta.28
913
+
914
+ ### Patch Changes
915
+
916
+ - 0099208: Refactor `Pure` helpers to use typed `useSync` calls instead of unsafe casts.
917
+
918
+ ## 4.0.0-beta.27
919
+
920
+ ### Patch Changes
921
+
922
+ - 601a1ff: update effect to 4.0.0-beta.37 and drop the Schema Class disableValidation workaround now that the patched effect schema covers it
923
+
924
+ ## 4.0.0-beta.26
925
+
926
+ ### Patch Changes
927
+
928
+ - 4da28e2: Change `Schema.Class` and `Schema.TaggedClass` wrappers to default constructor options to `{ disableValidation: true }`.
929
+
930
+ 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.
931
+
932
+ ## 4.0.0-beta.25
933
+
934
+ ### Patch Changes
935
+
936
+ - 6282d4b: Update `Effect.allLower` to call `svc.asEffect()` when available, ensuring service entries are normalized before `Effect.all` evaluation.
937
+
938
+ ## 4.0.0-beta.24
939
+
940
+ ### Patch Changes
941
+
942
+ - 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.
943
+
944
+ Add tests covering:
945
+
946
+ - `TaggedUnion` with `encodeKeys`-wrapped members
947
+ - `TaggedUnion` with `TaggedClass` members
948
+
949
+ ## 4.0.0-beta.23
950
+
951
+ ### Patch Changes
952
+
953
+ - ea08a79: remove `fields` constraint from TaggedUnion/tags helpers, extract `_tag` via AST walk instead
954
+
955
+ ## 4.0.0-beta.22
956
+
3
957
  ## 4.0.0-beta.21
4
958
 
5
959
  ### Patch Changes