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

Support koa style middleware #26

Closed
wants to merge 3 commits into from
Closed

Support koa style middleware #26

wants to merge 3 commits into from

Conversation

fengmk2
Copy link
Contributor

@fengmk2 fengmk2 commented May 25, 2014

koa is become more and more popular, it's time to support the new style middlewares.

  • Use old test codes to test koa changes
  • Keep koa usage just like express, only one more options.koa = true

Because node 0.10.x don't support --harmony, current unit test only pass on node 0.11.x.

$ npm run test-express: only test express
$ npm run test-koa: only test koa
$ npm test: test express and koa both

@ForbesLindesay
Copy link
Contributor

express is still about 100 times more popular by npm downloads (at least on week days). Supporting koa adds a lot of complexity to this module. Would it not make more sense to just add koa-lusca?

@haoxins
Copy link

haoxins commented May 27, 2014

+1 for koa-lusca.

And is it better to split a module lusca-core?

@fengmk2
Copy link
Contributor Author

fengmk2 commented May 27, 2014

It's easy to make a koa-lusca, but I want to reuse the same codes and logic.

@fengmk2 fengmk2 closed this Jun 9, 2014
@fengmk2 fengmk2 deleted the koa branch February 10, 2015 09:16
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.

None yet

3 participants