Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: honojs/hono
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.12.4
Choose a base ref
...
head repository: honojs/hono
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.12.5
Choose a head ref
  • 5 commits
  • 24 files changed
  • 9 contributors

Commits on Mar 4, 2026

  1. fix(request): return string | undefined from param() when path type…

    … is any (#4723)
    
    * fix: return string | undefined from param() when path type is any
    
    When middleware uses Context with a default path type parameter (any),
    c.req.param('key') incorrectly returns string instead of string | undefined.
    This is because ParamKeys<any> resolves to string, matching the first
    overload that returns string.
    
    Add a new overload that detects when P is any using the 0 extends (1 & P)
    trick and returns string | undefined, ensuring type safety in middleware.
    
    Fixes #3198
    
    * ci: apply automated fixes
    
    * test(request): add type tests for param() with any path type
    
    * fixed the overload and test
    
    ---------
    
    Co-authored-by: exe.dev user <[email protected]>
    Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
    Co-authored-by: andrewdamelio <[email protected]>
    Co-authored-by: Yusuke Wada <[email protected]>
    5 people authored Mar 4, 2026
    Configuration menu
    Copy the full SHA
    0f49915 View commit details
    Browse the repository at this point in the history
  2. fix(jwt): validate token format in decode and decodeHeader functions (#…

    …4752)
    
    * fix(jwt): validate token format in decode and decodeHeader functions
    
    * refactor: simplify the code
    
    ---------
    
    Co-authored-by: Yusuke Wada <[email protected]>
    otoneko1102 and yusukebe authored Mar 4, 2026
    Configuration menu
    Copy the full SHA
    8c4d7f3 View commit details
    Browse the repository at this point in the history
  3. fix(jsx): Fix "Invalid state: Controller is already closed" (#4770)

    * Add failing test cases for Invalid state: Controller is already closed
    
    * Fix the crashes
    
    * refactored
    
    Co-authored-by: Taku Amano <[email protected]>
    
    ---------
    
    Co-authored-by: Yusuke Wada <[email protected]>
    Co-authored-by: Taku Amano <[email protected]>
    3 people authored Mar 4, 2026
    Configuration menu
    Copy the full SHA
    b8cff18 View commit details
    Browse the repository at this point in the history
  4. chore(eslint): upgrade @hono/eslint-config (#4781)

    * chore(eslint): upgrade `@hono/eslint-config`
    
    * chore(eslint): fix lint
    BarryThePenguin authored Mar 4, 2026
    Configuration menu
    Copy the full SHA
    5d59ac7 View commit details
    Browse the repository at this point in the history
  5. 4.12.5

    yusukebe committed Mar 4, 2026
    Configuration menu
    Copy the full SHA
    18cc595 View commit details
    Browse the repository at this point in the history
Loading