- fix: correct clone() type by @hoangvvo in https://github.com/hoangvvo/next-connect/commit/da2a5b19b471a8ff893825c6f7e03fba26617ed8
- Edge Runtime Router by @hoangvvo in #200
- security: always return generic 500 error by @hoangvvo in #197
- Always attach req.params by @hoangvvo in #198
- Add benchmark and update readme by @hoangvvo in #199
See https://github.com/hoangvvo/next-connect/releases/tag/v1.0.0-next.0.
- Add back next() in error handler
- breaking: flow change: handle() does not use onError (ad857bedb0996312ad3a5ea966ce3a60417429a6)
- fix: make sure handler is resolvable (#178)
- Bump deps and switch to NPM
- typescript: added export for types (#176)
- Allow regular expressions to be used for route. (#157)
- Export the options interface (#152)
- Make NextConnect compatible with NextApiHandler (#128)
- docs(README): fix typo (#123)
- Mark sideEffects false and update README (21c9c73fe3746e66033fd51e2aa01d479e267ad6)
- Express Router compatibility (#121)
- Add ESModule export (#122)
- Deprecate apply() for run() (#108)
- Add all() to match any methods (#105)
- Fix handler return type (#75)
- Fix TypeScript signature and support both API and non-API pages (#70) (Breaking)
- Call trouter#find with pathname (#62)
- feat: add support for handler generics (#57)
- Consider base when mounting subapp (#61)
- Fix uncaught error in async middleware (#50)
- Fix uncaught error in non-async functions (#45)
- Add TypeScript definition (#44)
- Refactor for performance (#42)
- Fix catching async function error
- Fix "API resolved without sending a response"
- Handle error properly in .apply
- Use Trouter (#25)
- Add onError and onNoMatch (#26)
Error middleware (.use(err, req, res, next)
and .error(err, req, res)
) is deprecated. Use options.onError
instead.
- Fix cleared stack (#23)
- Fix next-connect fail to work if multiple instances are used (015aa37bdd6ba9b50a97cf9d6c8eebc25f111fd0)
- Rewrite (Optimize codebase) and allow multiple handles in use() and error() (#13)
- Update README.md (6ef206903393d37c7f34f05005ff97738695b9b3)
- Add support for non-api pages (#11)
- Enable reusing middleware (#8)
- Render 404 when headers are not sent (No response) (#7)
- Add other HTTP methods (#6)
- Rewrite core (#3)
We can now default export
handler
instead of handler.export()
- Improve readme (#2)
- Initial commit
- Add Test and CircleCI (#1)