Update dependency @hono/zod-openapi to v1.5.1 #120

Open
renovate-bot wants to merge 1 commit from renovate/hono-zod-openapi-1.x into main
Collaborator

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@hono/zod-openapi (source) 1.4.01.5.1 age adoption passing confidence

Release Notes

honojs/middleware (@​hono/zod-openapi)

v1.5.1

Compare Source

Patch Changes

v1.5.0

Compare Source

Minor Changes
  • #​1878 443a8dc5cd8a6a65daa2bec1f251adfc605b05ce Thanks @​SAY-5! - feat: inherit defaultHook from parent app on nested routes mounted via app.route()

    Behavior change: if a parent app has a defaultHook and a mounted sub-app does not declare its own, the sub-app's routes now use the parent's defaultHook instead of the built-in validation response.

Patch Changes
  • #​2033 740123c01aadb6c2ed742d1c67c2763a4cdc4f1f Thanks @​yusukebe! - fix: resolve defaultHook through the ancestor chain on nested routes

  • #​2031 bf52ec2f18e32479ec85c00922c8aede68dc8286 Thanks @​tokiya-takai! - fix(zod-openapi): preserve onError()/notFound() set after basePath()

    OpenAPIHono.basePath() used to rebuild the instance by spreading the plain Hono clone returned by super.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 constructed OpenAPIHono, keeping its own correctly-bound methods. Fixes #​2021.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [@hono/zod-openapi](https://github.com/honojs/middleware) ([source](https://github.com/honojs/middleware/tree/HEAD/packages/zod-openapi)) | [`1.4.0` → `1.5.1`](https://renovatebot.com/diffs/npm/@hono%2fzod-openapi/1.4.0/1.5.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@hono%2fzod-openapi/1.5.1?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@hono%2fzod-openapi/1.5.1?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@hono%2fzod-openapi/1.4.0/1.5.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@hono%2fzod-openapi/1.4.0/1.5.1?slim=true) | --- ### Release Notes <details> <summary>honojs/middleware (@&#8203;hono/zod-openapi)</summary> ### [`v1.5.1`](https://github.com/honojs/middleware/blob/HEAD/packages/zod-openapi/CHANGELOG.md#151) [Compare Source](https://github.com/honojs/middleware/compare/@hono/zod-openapi@1.5.0...@hono/zod-openapi@1.5.1) ##### Patch Changes - Updated dependencies \[[`7bc11dffa7dd5b639c614b12c34bd76722d76354`](https://github.com/honojs/middleware/commit/7bc11dffa7dd5b639c614b12c34bd76722d76354)]: - [@&#8203;hono/zod-validator](https://github.com/hono/zod-validator)@&#8203;0.9.0 ### [`v1.5.0`](https://github.com/honojs/middleware/blob/HEAD/packages/zod-openapi/CHANGELOG.md#150) [Compare Source](https://github.com/honojs/middleware/compare/@hono/zod-openapi@1.4.0...@hono/zod-openapi@1.5.0) ##### Minor Changes - [#&#8203;1878](https://github.com/honojs/middleware/pull/1878) [`443a8dc5cd8a6a65daa2bec1f251adfc605b05ce`](https://github.com/honojs/middleware/commit/443a8dc5cd8a6a65daa2bec1f251adfc605b05ce) Thanks [@&#8203;SAY-5](https://github.com/SAY-5)! - feat: inherit `defaultHook` from parent app on nested routes mounted via `app.route()` Behavior change: if a parent app has a `defaultHook` and a mounted sub-app does not declare its own, the sub-app's routes now use the parent's `defaultHook` instead of the built-in validation response. ##### Patch Changes - [#&#8203;2033](https://github.com/honojs/middleware/pull/2033) [`740123c01aadb6c2ed742d1c67c2763a4cdc4f1f`](https://github.com/honojs/middleware/commit/740123c01aadb6c2ed742d1c67c2763a4cdc4f1f) Thanks [@&#8203;yusukebe](https://github.com/yusukebe)! - fix: resolve defaultHook through the ancestor chain on nested routes - [#&#8203;2031](https://github.com/honojs/middleware/pull/2031) [`bf52ec2f18e32479ec85c00922c8aede68dc8286`](https://github.com/honojs/middleware/commit/bf52ec2f18e32479ec85c00922c8aede68dc8286) Thanks [@&#8203;tokiya-takai](https://github.com/tokiya-takai)! - fix(zod-openapi): preserve `onError()`/`notFound()` set after `basePath()` `OpenAPIHono.basePath()` used to rebuild the instance by spreading the plain `Hono` clone returned by `super.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 constructed `OpenAPIHono`, keeping its own correctly-bound methods. Fixes [#&#8203;2021](https://github.com/honojs/middleware/issues/2021). </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNTIuNCIsInVwZGF0ZWRJblZlciI6IjQzLjI1Mi40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJiYWNrZW5kIiwicmVub3ZhdGUiXX0=-->
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/hono-zod-openapi-1.x:renovate/hono-zod-openapi-1.x
git switch renovate/hono-zod-openapi-1.x

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.

git switch main
git merge --no-ff renovate/hono-zod-openapi-1.x
git switch renovate/hono-zod-openapi-1.x
git rebase main
git switch main
git merge --ff-only renovate/hono-zod-openapi-1.x
git switch renovate/hono-zod-openapi-1.x
git rebase main
git switch main
git merge --no-ff renovate/hono-zod-openapi-1.x
git switch main
git merge --squash renovate/hono-zod-openapi-1.x
git switch main
git merge --ff-only renovate/hono-zod-openapi-1.x
git switch main
git merge renovate/hono-zod-openapi-1.x
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MobiusReactor/TicTacToeV2!120
No description provided.