Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:[email protected]
Patch Changes
#4220
734af82
Thanks @KhraksMamtsov! - fix inference for contravariant type-parameters#4212
b63c780
Thanks @KhraksMamtsov! - RefineEffect.validateAll
return type to useNonEmptyArray
for errors.This refinement is possible because
Effect.validateAll
guarantees that when the input iterable is non-empty, any validation failure will produce at least one error. In such cases, the errors are inherently non-empty, making it safe and accurate to represent them using aNonEmptyArray
type. This change aligns the return type with the function's actual behavior, improving type safety and making the API more predictable for developers.#4219
c640d77
Thanks @whoisandy! - fix: ManagedRuntime.Context to work when Context is of type never#4236
0def088
Thanks @tim-smart! - fix color option for Logger.prettyLogger@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
#4226
212e784
Thanks @gcanti! - Ensure the encoding kind of success responses is respected in the OpenAPI spec.Before
When generating an OpenAPI spec for a request with a success schema of type `HttpApiSchema.Text()``, the response content type was incorrectly set to "application/json" instead of "text/plain".
After
#4234
f852cb0
Thanks @gcanti! - Deduplicate errors inOpenApi.fromApi
.When multiple identical errors were added to the same endpoint, group, or API, they were all included in the generated OpenAPI specification, leading to redundant entries in the
anyOf
array for error schemas.Identical errors are now deduplicated in the OpenAPI specification. This ensures that each error schema is included only once, simplifying the generated spec and improving readability.
Before
After
#4233
7276ae2
Thanks @gcanti! - Ensure the encoding kind of error responses is respected in the OpenAPI spec.Before
When generating an OpenAPI spec for a request with an error schema of type `HttpApiSchema.Text()``, the response content type was incorrectly set to "application/json" instead of "text/plain".
After
#4226
212e784
Thanks @gcanti! - Add missingdeprecated
key toOpenApi.annotations
API.#4226
212e784
Thanks @gcanti! - Fix: Prevent request body from being added to the OpenAPI spec for GET methods inOpenApi.fromApi
.When creating a
GET
endpoint with a request payload, therequestBody
was incorrectly added to the OpenAPI specification, which is invalid forGET
methods.Before
After
#4226
212e784
Thanks @gcanti! - Add"application/x-www-form-urlencoded"
toOpenApiSpecContentType
type as it is generated by the system when usingHttpApiSchema.withEncoding({ kind: "UrlParams" })
Example
Updated dependencies [
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,212e784
,f852cb0
,7276ae2
,212e784
,212e784
,212e784
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
734af82
,b63c780
,c640d77
,0def088
]:@effect/[email protected]
Patch Changes
#4232
ea77cca
Thanks @fubhy! - Importfast-check
fromeffect
re-exportUpdated dependencies [
734af82
,b63c780
,c640d77
,0def088
]: