-
Notifications
You must be signed in to change notification settings - Fork 176
Comparing changes
Open a pull request
base repository: koajs/router
base: eac80a3b2fb8ff73fcd4cc88864c8726877be290
head repository: koajs/router
compare: 81dc60a6d2eff3cf0f8dec70f3f49e6fff0f1f03
Commits on Nov 19, 2015
-
refactor for koa2.x, use compose for stacks
* update koa dependency to alpha2 * add koa-compose dependency for layer stack composition * update middleware signature to `(ctx, next)` * update param middleware signature to `(param, ctx, next)` * remove all generator functions and gen type checks * update all specs for promise-based usage * updates examples / comments / docs
Configuration menu - View commit details
-
Copy full SHA for 9e742f1 - Browse repository at this point
Copy the full SHA 9e742f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9179a70 - Browse repository at this point
Copy the full SHA 9179a70View commit details
Commits on Nov 21, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 0f20f36 - Browse repository at this point
Copy the full SHA 0f20f36View commit details
Commits on Nov 22, 2015
-
Configuration menu - View commit details
-
Copy full SHA for f836f1f - Browse repository at this point
Copy the full SHA f836f1fView commit details
Commits on Nov 24, 2015
-
Delyan Haralanov committed
Nov 24, 2015 Configuration menu - View commit details
-
Copy full SHA for 6a970fb - Browse repository at this point
Copy the full SHA 6a970fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for bce2e6d - Browse repository at this point
Copy the full SHA bce2e6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7519239 - Browse repository at this point
Copy the full SHA 7519239View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ae3b46 - Browse repository at this point
Copy the full SHA 9ae3b46View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6591e3 - Browse repository at this point
Copy the full SHA d6591e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05f52a6 - Browse repository at this point
Copy the full SHA 05f52a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75070f8 - Browse repository at this point
Copy the full SHA 75070f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08820ef - Browse repository at this point
Copy the full SHA 08820efView commit details -
Configuration menu - View commit details
-
Copy full SHA for faab16d - Browse repository at this point
Copy the full SHA faab16dView commit details
Commits on Nov 25, 2015
-
Configuration menu - View commit details
-
Copy full SHA for f1b01d6 - Browse repository at this point
Copy the full SHA f1b01d6View commit details -
Always run middleware in order defined by
.use()
.This was done to match the Express 4 API, and to reduce confusion and complexity with regards to middleware sequence. Closes #194.
Configuration menu - View commit details
-
Copy full SHA for 8665620 - Browse repository at this point
Copy the full SHA 8665620View commit details -
Configuration menu - View commit details
-
Copy full SHA for dde14ae - Browse repository at this point
Copy the full SHA dde14aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20e9c04 - Browse repository at this point
Copy the full SHA 20e9c04View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8998e1 - Browse repository at this point
Copy the full SHA b8998e1View commit details
Commits on Nov 26, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 1f1c45e - Browse repository at this point
Copy the full SHA 1f1c45eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76f6337 - Browse repository at this point
Copy the full SHA 76f6337View commit details
Commits on Dec 12, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 09d6969 - Browse repository at this point
Copy the full SHA 09d6969View commit details
Commits on Jan 5, 2016
-
Configuration menu - View commit details
-
Copy full SHA for dd2f0ee - Browse repository at this point
Copy the full SHA dd2f0eeView commit details
Commits on Jan 19, 2016
-
Configuration menu - View commit details
-
Copy full SHA for a0e0dbd - Browse repository at this point
Copy the full SHA a0e0dbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for eec15be - Browse repository at this point
Copy the full SHA eec15beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17fd098 - Browse repository at this point
Copy the full SHA 17fd098View commit details
Commits on Jan 20, 2016
-
Configuration menu - View commit details
-
Copy full SHA for ed6a21d - Browse repository at this point
Copy the full SHA ed6a21dView commit details
Commits on Feb 12, 2016
-
update readme to reflect
next()
promise return#234 points out that the example does not yield to the next middleware when adding additional and returning a promise. The `next` argument must be resolved and added to the promise chain in order for middleware execution to continue. ex: ``` router.use(function(ctx, next) { return new Promise(function(resolve, reject) { setTimeout(function() { // must resolve( { the next middleware } ) // to continue the promise chain. resolve(next()); }, 100); }); }, function(ctx, next) { // will now be called }); ```
Configuration menu - View commit details
-
Copy full SHA for 7ff98ae - Browse repository at this point
Copy the full SHA 7ff98aeView commit details -
make test examples async for koa2-like usage
Existing test examples mounting multiple middleware weren't async, which didn't offer a good picture of how to use the router and multiple middlware with the next `ctx, next` koa2 middlware arguments. this establishes a working async example in two of the tests -- with an isolated test case showing multiple middlware mounted for one route
Configuration menu - View commit details
-
Copy full SHA for 2ee7cc7 - Browse repository at this point
Copy the full SHA 2ee7cc7View commit details -
Merge pull request #242 from alexmingoia/koa2-async-tests
make test examples async for koa2-like usage
Configuration menu - View commit details
-
Copy full SHA for 90f7c67 - Browse repository at this point
Copy the full SHA 90f7c67View commit details
Commits on Sep 2, 2016
-
fix incorrect params with router.use(fn)
fixes #247 for koa2 (master branch)
Configuration menu - View commit details
-
Copy full SHA for 19e60d9 - Browse repository at this point
Copy the full SHA 19e60d9View commit details
Commits on Sep 3, 2016
-
Merge pull request #293 from aheckmann/fix_params_with_use_koa2
fix incorrect params with router.use(fn) (koa2)
Configuration menu - View commit details
-
Copy full SHA for 72c31fa - Browse repository at this point
Copy the full SHA 72c31faView commit details
Commits on Sep 29, 2016
-
Configuration menu - View commit details
-
Copy full SHA for b1b5542 - Browse repository at this point
Copy the full SHA b1b5542View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b6c113 - Browse repository at this point
Copy the full SHA 0b6c113View commit details -
Configuration menu - View commit details
-
Copy full SHA for d25bcf3 - Browse repository at this point
Copy the full SHA d25bcf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8984212 - Browse repository at this point
Copy the full SHA 8984212View commit details -
Configuration menu - View commit details
-
Copy full SHA for 844232f - Browse repository at this point
Copy the full SHA 844232fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58c7dfb - Browse repository at this point
Copy the full SHA 58c7dfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 16ed8b4 - Browse repository at this point
Copy the full SHA 16ed8b4View commit details -
5.4 backports for 7.0 mainline
- merge in the 5.4 fixes and updates to 7.0 - update backports and tests
Configuration menu - View commit details
-
Copy full SHA for ca5be1d - Browse repository at this point
Copy the full SHA ca5be1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 865c27d - Browse repository at this point
Copy the full SHA 865c27dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b7620a - Browse repository at this point
Copy the full SHA 3b7620aView commit details
Commits on Sep 30, 2016
-
Configuration menu - View commit details
-
Copy full SHA for ac9dbea - Browse repository at this point
Copy the full SHA ac9dbeaView commit details
Commits on Dec 11, 2016
-
Configuration menu - View commit details
-
Copy full SHA for abc8217 - Browse repository at this point
Copy the full SHA abc8217View commit details
Commits on Jan 5, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 825dbe4 - Browse repository at this point
Copy the full SHA 825dbe4View commit details
Commits on Jan 8, 2017
-
Merge pull request #322 from zzuieliyaoli/master
make README.md more clear
Configuration menu - View commit details
-
Copy full SHA for 1135f78 - Browse repository at this point
Copy the full SHA 1135f78View commit details
Commits on Jan 17, 2017
-
Adding documentation around Router#all
This is a useful feature that should be documented.
Configuration menu - View commit details
-
Copy full SHA for c133a51 - Browse repository at this point
Copy the full SHA c133a51View commit details
Commits on Jan 30, 2017
-
Configuration menu - View commit details
-
Copy full SHA for d75a165 - Browse repository at this point
Copy the full SHA d75a165View commit details
Commits on Mar 15, 2017
-
add
_matchedRouteName
to contextsometimes route paths can be very long & convoluted, exposing the route name provides a saner alternative analytics
Aditya committedMar 15, 2017 Configuration menu - View commit details
-
Copy full SHA for 2969bc0 - Browse repository at this point
Copy the full SHA 2969bc0View commit details -
Merge pull request #326 from pschwyter/patch-2
Adding documentation around Router#all
Configuration menu - View commit details
-
Copy full SHA for 4411ab2 - Browse repository at this point
Copy the full SHA 4411ab2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50002d2 - Browse repository at this point
Copy the full SHA 50002d2View commit details
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.