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

refactor: middleware #89

Merged
merged 2 commits into from
Apr 5, 2022
Merged

Conversation

karitham
Copy link
Collaborator

@karitham karitham commented Mar 31, 2022

This PR refactors the middleware package in such a way that promotes non-breaking changes later on, thus, we could now easily support #79 (presented we actually want that and get to it)

It is also slightly safer, since users can't change the options at runtime, which could have been a tiny issue if it ever happened

Change for REST API consumer: close to none (now doesn't return 500 in
case of multiple errors)
Change for dev: Slight function signature change

BREAKING: Middleware function signature have changed (as well as their
names)
FIX: fixes unknown errors due to multierror

Change for REST API consumer: close to none (now doesn't return 500 in case of multiple errors)
Change for dev: Slight function signature change

BREAKING: Middleware function signature have changed (as well as their names)
FIX: fixes unknown errors due to multierror
@karitham karitham force-pushed the refactor/middleware branch from 3d40656 to b0a4e0e Compare April 5, 2022 21:26
@jolheiser jolheiser merged commit 82bf0fe into discord-gophers:main Apr 5, 2022
@karitham karitham deleted the refactor/middleware branch April 5, 2022 21:36
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.

2 participants