Minor Changes
Validator request schemas
Valibot plugin no longer exports composite request Data schemas. Instead, each layer is exported as a separate schema. If you're using validators with SDKs, you can preserve the composite schema with shouldExtract:
export default {
input: "hey-api/backend", // sign up at app.heyapi.dev
output: "src/client",
plugins: [
// ...other plugins
{
name: "sdk",
validator: "valibot",
},
{
name: "valibot",
requests: {
shouldExtract: true,
},
},
],
};Removed plugin.getSymbol() function
This function has been removed. You can use plugin.querySymbol() instead. It accepts the same arguments and returns the same result.
Validator request schemas
Zod plugin no longer exports composite request Data schemas. Instead, each layer is exported as a separate schema. If you're using validators with SDKs, you can preserve the composite schema with shouldExtract:
export default {
input: "hey-api/backend", // sign up at app.heyapi.dev
output: "src/client",
plugins: [
// ...other plugins
{
name: "sdk",
validator: "zod",
},
{
name: "zod",
requests: {
shouldExtract: true,
},
},
],
};Patch Changes
-
plugin(@hey-api/client-axios): fix: improve
beforeRequesttyping (#3660) (f3f887e) by @tomvdv -
plugin(zod): export request body, path, query, and headers schemas (#3671) (
96f60ad) by @mrlubos -
plugin(@hey-api/client-ky): fix: improve
beforeRequesttyping (#3660) (d65b5c7) by @tomvdv -
plugin(@hey-api/client-next): fix: improve
beforeRequesttyping (#3660) (a4b13d4) by @tomvdv -
plugin(@hey-api/client-angular): fix: improve
beforeRequesttyping (#3660) (9ecc562) by @tomvdv -
plugin(orpc): fix: adjust input shape (#3671) (
96f60ad) by @mrlubos -
plugin(@hey-api/client-fetch): fix: improve
beforeRequesttyping (#3660) (11be579) by @tomvdv -
plugin(valibot): export request body, path, query, and headers schemas (#3671) (
96f60ad) by @mrlubos -
plugin(@hey-api/sdk): improve types for SSE events (#3466) (
51ff11a) by @bilby91
Updated Dependencies:
- @hey-api/shared@0.3.0