Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(context): allow URL object on c.redirect() #3609

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

cometkim
Copy link
Contributor

@cometkim cometkim commented Nov 1, 2024

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@EdamAme-x
Copy link
Contributor

EdamAme-x commented Nov 1, 2024

Format check is not complete.
Do you have different versions of prettier installed globally?

It would also be a good idea to change the title to feat(context): allow URL object on c.redirect()

@cometkim cometkim changed the title allow URL object on c.redirect() feat(context): allow URL object on c.redirect() Nov 1, 2024
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.71%. Comparing base (ae99d86) to head (4227a08).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3609   +/-   ##
=======================================
  Coverage   94.71%   94.71%           
=======================================
  Files         158      158           
  Lines        9553     9553           
  Branches     2797     2819   +22     
=======================================
  Hits         9048     9048           
  Misses        505      505           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/context.ts Outdated Show resolved Hide resolved
Co-authored-by: EdamAmex <[email protected]>
Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe
Copy link
Member

yusukebe commented Nov 1, 2024

Hi @cometkim

I think this is a good improvement. Looks good to me. Thanks!

@yusukebe yusukebe merged commit 01277aa into honojs:main Nov 1, 2024
16 checks passed
@cometkim cometkim deleted the url-redirect branch November 1, 2024 09:22
TinsFox pushed a commit to TinsFox/hono that referenced this pull request Nov 11, 2024
* feat(context): allow URL object on `c.redirect()`

* Update src/context.ts

Co-authored-by: EdamAmex <[email protected]>

---------

Co-authored-by: EdamAmex <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants