hoangvvo / next-connect

The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2
https://www.npmjs.com/package/next-connect
MIT License
1.64k stars 65 forks source link

Rename .apply to something else #82

Closed hoangvvo closed 3 years ago

hoangvvo commented 4 years ago

handler.apply is a bad idea since it rewrites Function.apply. We need to rename it to something else in a breaking version.

I'm thinking: