Start converting Koala into a subclass of Koa #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I had some old code converting koala into a class (so it would have the same usage as Koa 2 which is a class). Since it would have conflicted with koajs#47 I decided to rebase onto it so I could show you this, and you can optionally merge this into your pull request branch if you like the syntax.
Note that we would at least need to make documentation changes in the readme. Tests should have the same failures, as far as I'm aware this doesn't introduce any regressions as long as you replace
koala()
withnew Koala()
.