-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: allow using ES imports syntax in the controllers #15
Conversation
Convert the code to use the ES imports syntax to enable controllers to use the ES imports syntax. While this appears to be just a refactor, it actually allows the user to use the ES imports syntax in the controllers so I'm considering it a fix (or a feature, depending on how you look at it). Fixes #12
I'm aware that this would normally be a nightmare to review since it's almost impossible to verify that all the interleaving code is working properly and that the returned promises are awaited when needed (especially with lacking types). But hopefully once I get tests to pass it will be enough of a confirmation that things are sound. |
Tests pass locally but fail in CI. Maybe just need a higher timeout on CI... |
Higher timeout helped. The tests might be a bit slower because they run through I'm not sure what codecov is on about. |
Excellent work! About the codecov, these looks to be the problem (istanbuljs/nyc#1287 (comment)) EDIT EDIT 2 |
Codecov Report
@@ Coverage Diff @@
## master #15 +/- ##
==========================================
+ Coverage 90.95% 96.11% +5.16%
==========================================
Files 5 5
Lines 199 567 +368
==========================================
+ Hits 181 545 +364
- Misses 18 22 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your changes look great. Just made a one minor comment.
Current changes look good to me. Not sure what kind of merge strategy do you prefer: squash and merge everything into one commit or keep some of your separate (in which case I would have to rewrite history to squash my fixups). |
I normally prefer squash commits, keeps the master clean, what about you? |
Yes, same. |
Sweet, should we release a minor version for this? |
Let's do so right after handling some dependency updates (most are "dev" so not really relevant but just to be done with it). |
Convert the code to use the ES imports syntax to enable controllers to
use the ES imports syntax.
While this appears to be just a refactor, it actually allows the user
to use the ES imports syntax in the controllers so I'm considering it
a fix (or a feature, depending on how you look at it).
Fixes #12