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

⚡ Automatically call middleware dependencies #24

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

DaniFoldi
Copy link
Collaborator

This PR implements

  • a new system to invoke middleware, so their dependencies are automatically invoked beforehand, and no middleware is called twice
  • some improvements to the response formatting system, so returning an ArrayBuffer/Blob now also works, and if a content-type header is set (and non-json), the JSON.stringify call is bypassed. This can be used for HTML responses, for example.

Besides that

  • dependencies were updated
  • the eslint preset was migrated to the new system
  • and all lint errors and warnings were fixed

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.

1 participant