-
-
Notifications
You must be signed in to change notification settings - Fork 18
Update http-errors to v2
#37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@jonathanong I see you are a member of the org and a contributor to Koa. Are you able to review and release this? |
UlisesGascon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jamesopstad for helping the project! I just made a small change in 1473565 for compatibility with Node@0.8 👍
Thanks @UlisesGascon. Is there any chance we could bump up the priority for getting a release out? This is blocking compatibility with some of Cloudflare's developer tools, which is impacting users. |
|
I think that we can try to target a release for Monday 15th... otherwise next train will be on January. I will book some time to prepare the release 👍 |
|
IMO this changes behavior in a breaking way... specifically when From WDYT @jonchurch @wesleytodd ? Also... if we consider this as a major, do we want to introduce any additional change? Should we update Node compatibility too? For additional context see |
Could we update this PR to make the change non-breaking by adding logic for this scenario? That would be preferable because otherwise importing libraries will need to upgrade and may consider that they themselves can't support this before a major release. |
|
@UlisesGascon I've pushed some changes that correct the behaviour change and simplify things and I've added a test for this. I believe this means that there's no need for a new major version. Please take a look when you can. |
Fixes #19
This updates
http-errorsto v2. Koa depends on bothhttp-assertandhttp-errorsso this ensures thathttp-errorsresolves to the same version. Currently, users end up with two different copies ofhttp-errors, which can lead to some strange behaviours. Additionally, use ofevalwas removed in thehttp-errorsupgrade (via an upgrade todepd) so this will resolve security warnings and compatibility issues with Cloudflare Workers.