next-connect

The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2

MIT License

Downloads
355.5K
Stars
1.6K
Committers
11

Bot releases are hidden (Show)

next-connect - v0.6.3

Published by hoangvvo over 4 years ago

Patches

  • Refactor for performance (#42)
next-connect - v0.6.2

Published by hoangvvo over 4 years ago

Patches

  • Fix catching async function error
next-connect - v0.6.1

Published by hoangvvo over 4 years ago

Patches

  • Fix "API resolved without sending a response"
  • Handle error properly in .apply
next-connect - v0.6.0

Published by hoangvvo over 4 years ago

Major

  • Use Trouter (#25)
  • Add onError and onNoMatch (#26)

Breaking changes

Error middleware (.use(err, req, res, next) and .error(err, req, res)) is deprecated. Use options.onError instead.

next-connect - v0.5.2

Published by hoangvvo almost 5 years ago

Patches

  • Fix cleared stack (#23)
next-connect - v0.5.1

Published by hoangvvo almost 5 years ago

Patches

  • Fix next-connect fail to work if multiple instances are used (015aa37bdd6ba9b50a97cf9d6c8eebc25f111fd0)
next-connect - v0.5.0

Published by hoangvvo almost 5 years ago

Minor

  • Rewrite (Optimize codebase) and allow multiple handles in use() and error() (#13)

Patches

  • Update README.md (6ef206903393d37c7f34f05005ff97738695b9b3)
next-connect - v0.4.0

Published by hoangvvo almost 5 years ago

Minor

  • Add support for non-api pages (#11)
next-connect - v0.3.0

Published by hoangvvo almost 5 years ago

Minor

  • Enable reusing middleware (#8)
next-connect - v0.2.0

Published by hoangvvo almost 5 years ago

Minor

  • Render 404 when headers are not sent (No response) (#7)

Patches

  • Add other HTTP methods (#6)
next-connect - v0.1.0

Published by hoangvvo about 5 years ago

Major

  • Rewrite core (#3)

We can now default export handler instead of handler.export()

Patches

  • Improve readme (#2)
next-connect - v0.0.1

Published by hoangvvo about 5 years ago

  • Initial commit
  • Add Test and CircleCI (#1)