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

Adopt Hono middleware convention and support Remix v2 #124

Merged
merged 10 commits into from
Jan 18, 2024

Conversation

rphlmr
Copy link
Contributor

@rphlmr rphlmr commented Jan 17, 2024

Hey 👋

This PR aims to follow Hono convention for writing custom middleware.
It uses createMiddleware to reduce the type burden.
I've also added some tests.

It should solve #53 and I hope it will help adopt Remix Vite (not yet tested).

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/security.ts Show resolved Hide resolved
@sergiodxa sergiodxa added the enhancement New feature or request label Jan 18, 2024
@sergiodxa sergiodxa changed the title Hono middleware convention Adopt Hono middleware convention and support Remix v2 Jan 18, 2024
@sergiodxa sergiodxa merged commit 99ad7e1 into sergiodxa:main Jan 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants