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