-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Drop support for Node < 10 #103
Comments
I'm not sure if we should interpret the versions tested against as a project's supported versions, otherwise you could say that path-to-regexp does not support 11, 12, 13, 14, 15, 16, etc. since it is not tested there. Normally if there is no |
True. And we should def engage with @blakeembrey and the |
To also help, here is a list of our public dependencies that depend on this module that would need to break in order to upgrade (list includes what their current Node.js version support is indicated to be):
|
It's hard to really know what it means, but the literal interpretation of that commit message is just to run the tests on that version, not what version consumers can use. Since the module is transpiled from TypeScript into JavaScript with a target of es5 it would seem to reason the consumer support would be wider than Node.js 10, as there wouldn't be a need to go that low for Node.js 10. The path-to-regexp also has zero dependencies so there isn't a way to interpret based on that, either. |
I understand - but seeing it though that lens, since code is always targeting ES5, it'd make little sense to ever update a "min node version" (unless they have a different spec for their tests), right? Also, since Anyway, we digress. Let's wait for them to confirm. |
Not really, as they have to run typescript and other software to perform the trandpiling and testing, which has it's own node.js requirements independent of the finished product. The CI needs to be able to run that supporting software (like the typescript lanuage engine).
Anyone can have a module that provides support for features added in Node.js versions thag are not a 1:1 to their support map. Just take this module for instance: it (currently) works great on Node.js 0.10 and higher, but it also supports using features like Promises which don't exist in Node.js 0.10. |
Fair enough. I just tested out Still, we don't really need to follow the path of |
This issue can be closed as support for older Node.js versions has been dropped in 2.0 |
As part of the efforts for releasing
express
v5, a PR was opened to updatepath-to-regexp
to6.2.0
. Sincepath-to-regexp
is currently targetingnode
> 10 explicitly, it'd make sense forrouter
to deprecate support fornode
versions that upstream core libraries do not.This, of course, would mean that
express
as a whole would stop supporting node < 10 from v5. Moving forward, supportednode
versions acrosspillarjs
components should be kept in sync to avoid divergences.I'm opening the discussion to the entire community to gather feedback and see if they have any input or objections to this.
The text was updated successfully, but these errors were encountered: