Update dependency @hono/zod-openapi to v1.6.3 #120
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MobiusReactor/TicTacToeV2!120
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/hono-zod-openapi-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
1.4.0→1.6.3Release Notes
honojs/middleware (@hono/zod-openapi)
v1.6.3Compare Source
Patch Changes
3b0860026438694e76c3155737cf0b8df32384f5Thanks @WolfieLeader! - fix: return 415 when a JSON or form request body's Content-Type matches none of the route's declared media types, instead of validating an empty objectv1.6.2Compare Source
Patch Changes
#2115
525564dc5c275bfe8468b330902ea12dc450f54dThanks @scttcper! - Flatten batched route type inference so largeopenapiRoutestuples do not hit TypeScript's recursive instantiation limit.#2116
38232db06e1c366e5eb1fb7cf6949c2541debd8cThanks @scttcper! - Reuse projected response types betweenopenapi()route handlers and returned schemas to reduce TypeScript checker work.#1986
28f1d39cd2a480d9d3bd557df9037c054a674279Thanks @VihaanAgarwal! - fix(zod-openapi): infer route middleware env indefineOpenAPIRoutehandlerv1.6.1Compare Source
Patch Changes
4fce28c6fbba41795b316becaf7d8cffa11fb521Thanks @thekiwi! - Reduce route-typing type instantiations (~54% on TS6, ~48% on TS7 in a 100-route benchmark) by binding expensive sub-expressions once and sharing the input intersection / response-shape conditional.v1.6.0Compare Source
Minor Changes
1dc1a4a5418be24d571652e1013b8a6a925824c0Thanks @WolfieLeader! - feat: support the HTTP QUERY method increateRoute()by bumping@asteasolutions/zod-to-openapito v9v1.5.3Compare Source
Patch Changes
9a9324937cfa77db210a966be33e8c73bbbe33e3Thanks @kamaal111! - Revert the local z binding export because it causes zod types to degrade to any when built with tsdown.v1.5.2Compare Source
Patch Changes
#2069
fc0377c5595bde3147d181e5013a3fc710175e40Thanks @edenbuilds! - fix(zod-openapi): keep thezimport edge so.openapi()survives bundlingRe-exporting zod's
zas a pass-through let esbuild code-splitting resolveimport { z } from '@hono/zod-openapi'straight to zod and drop the edge to themodule that runs
extendZodWithOpenApi(z), so schemas could be built before thepatch applied and
.openapi()was undefined at runtime. Exportzas an aliasdeclaration instead: it compiles to a binding local to the module, which keeps
that edge, while still carrying zod's type namespace so
z.infer,z.ZodTypeand the rest continue to work. Fixes #2051.
v1.5.1Compare Source
Patch Changes
7bc11dffa7dd5b639c614b12c34bd76722d76354]:v1.5.0Compare Source
Minor Changes
#1878
443a8dc5cd8a6a65daa2bec1f251adfc605b05ceThanks @SAY-5! - feat: inheritdefaultHookfrom parent app on nested routes mounted viaapp.route()Behavior change: if a parent app has a
defaultHookand a mounted sub-app does not declare its own, the sub-app's routes now use the parent'sdefaultHookinstead of the built-in validation response.Patch Changes
#2033
740123c01aadb6c2ed742d1c67c2763a4cdc4f1fThanks @yusukebe! - fix: resolve defaultHook through the ancestor chain on nested routes#2031
bf52ec2f18e32479ec85c00922c8aede68dc8286Thanks @tokiya-takai! - fix(zod-openapi): preserveonError()/notFound()set afterbasePath()OpenAPIHono.basePath()used to rebuild the instance by spreading the plainHonoclone returned bysuper.basePath().That spread copied the clone's arrow-function instance fields (
onError,notFound,request,fetch),which stay bound to the discarded clone — so calling
.onError()(or.notFound()) after.basePath()mutated the throwaway clone instead of the returned app and silently had no effect (the parent's handler ran instead).basePath()now transplants only the routing state onto a properly constructedOpenAPIHono, keeping its own correctly-bound methods. Fixes #2021.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
bc6d920fb2to1cefcbc682Update dependency @hono/zod-openapi to v1.5.1to Update dependency @hono/zod-openapi to v1.5.21cefcbc682to3338e8b283Update dependency @hono/zod-openapi to v1.5.2to Update dependency @hono/zod-openapi to v1.6.03338e8b283tod251dd9250Update dependency @hono/zod-openapi to v1.6.0to Update dependency @hono/zod-openapi to v1.6.1d251dd9250to59886c5612Update dependency @hono/zod-openapi to v1.6.1to Update dependency @hono/zod-openapi to v1.6.259886c5612to65288be9a9Update dependency @hono/zod-openapi to v1.6.2to Update dependency @hono/zod-openapi to v1.6.3View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.