Conversation
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )