Skip to content

[pull] main from honojs:main#150

Merged
pull[bot] merged 13 commits intocode:mainfrom
honojs:main
Feb 19, 2026
Merged

[pull] main from honojs:main#150
pull[bot] merged 13 commits intocode:mainfrom
honojs:main

Conversation

@pull
Copy link

@pull pull bot commented Feb 19, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

mohankumarelec and others added 13 commits February 19, 2026 19:13
…4556)

* feat(client): add ApplyGlobalResponse type helper for global error handling

* Applied @yusukebe's patch

* ci: apply automated fixes

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat(ssg): add redirect plugin

* test(ssg): add check for robots noindex meta tag in redirect HTML

* test(ssg): add check for body element in redirect HTML

* style: apply curly rule

* refactor(ssg): use html helper

* docs(ssg): add note about plugin ordering

* fix(ssg): use a single location parameter in redirect HTML generation

* refactor(ssg): move default plugin definition to plugins

* test(ssg): separate built-in plugin tests

* refactor(ssg): convert default plugin to function

* docs(ssg): standardize TSDoc format

* docs(ssg): add usage examples to redirect plugin

* refactor(ssg): rename variable to avoid collision

* fix(ssg): export default plugin

* fix(ssg): support 303, 307, 308 as redirect triggers

* test(ssg): consolidate redirect plugin tests and clarify HTTP Semantics
* init

* tests

* fix leading slash

* refactor(): reuse mergePath

* ci: apply automated fixes

* apply suggested patch

* support an edge case

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
* feat(basic-auth): add usernameContextKey and onAuthSuccess options

Add two new options to basicAuth middleware:
- `usernameContextKey`: stores authenticated username in context
  - `true`: uses default key 'basicAuthUsername'
  - `string`: uses custom key name
- `onAuthSuccess`: callback invoked after successful authentication

This allows route handlers to access the authenticated username without
re-parsing the Authorization header.

* test(basic-auth): add tests for usernameContextKey and onAuthSuccess

Add test cases for:
- usernameContextKey with default key 'basicAuthUsername'
- usernameContextKey with custom key
- usernameContextKey not set (should not store username)
- usernameContextKey with verifyUser mode
- onAuthSuccess callback execution
- onAuthSuccess async callback support
- onAuthSuccess not called on failed auth
- onAuthSuccess with verifyUser mode
- Both options used together

* remove `usernameContextKey`

* remove unnecessary comments

* remove unnecessary comments

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
…Netlify (#4649)

* feat(adapter): add getConnInfo for AWS Lambda, Cloudflare Pages, and Netlify

* fix(netlify): add explicit return type to getGeo for JSR validation

* remove `getGeo`

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
… routes (#4658)

* feat(trailing-slash): add `strict` option to support wildcard routes

* use `eager` instead of `strict`

* replace `eager` to `alwaysRedirect`
…on (#4707)

* perf: add fast path to c.json() matching c.text() optimization

Skip #newResponse() and Headers allocation when no status, headers,
or finalized state exists. Creates Response directly with inline
Content-Type header, matching the existing c.text() fast path pattern.

* ci: apply automated fixes

* use `Response.json()`

* don't use `any`

* refactor with `useFastPath`

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
…nguage (#4717)

* feat: lang locate code non all match trancation

* fix: locate code trancate use lastIndexOf('-')

* fix: back use for let
* Update node.ts

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* test(trie-router): add test for Node constructor with method and handler

Covers the constructor branch where method and handler are provided,
improving patch coverage to 100% line/statement.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@pull pull bot locked and limited conversation to collaborators Feb 19, 2026
@pull pull bot added the ⤵️ pull label Feb 19, 2026
@pull pull bot merged commit d2ed2e9 into code:main Feb 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

Comments