koajs / router

Router middleware for Koa. Maintained by @forwardemail and @ladjs.
MIT License
849 stars 174 forks source link

Replace 'or (||)' cond with default params #153

Closed etroynov closed 2 years ago

etroynov commented 2 years ago

Hi,

According or packages.json the minimal version of node js is 8 and it's good because since from version 6 we can use default params for function arguments:

Checklist

etroynov commented 2 years ago

@3imed-jaberi @niftylettuce can you review pls. thx.

titanism commented 2 years ago

We have just published @koajs/router v11.0.0 which resolves this issue. This is mirrored to koa-router as well.

https://github.com/koajs/router/releases/tag/v11.0.0

This project is maintained by Forward Email and Lad.