Closed jacobp100 closed 5 years ago
The reason for this is that one of the versions breaks on node 11.
aws-xray-sdk
depends on this through aws-xray-sdk
-> aws-xray-sdk-core
-> node-continuation-local-storage
-> this package.
It looks like node-continuation-local-storage
is no longer developed, so it hasn't merged anything to bump the version of this package.
As a result, aws is switching out the node-continuation-local-storage
package, even though that isn't the broken package.
If semver had been used, this would have automatically been fixed. We can't fix the issue with aws with this, but we can try and avoid this in the future! 😃
Before releasing v1.0.0 it would probably be wise to fix the known memory leak when throwing from a native Promise
handler (which is very common).
1.0.0 just means API stability, it doesn't necessarily mean it's bug free! 😀
agreed, higher version of node.js should use native async_hooks
module.
@carlisliu async_hooks
is only available in Node >=8 but native Promise
was introduced in Node 4. This library is one of the only options from >=4 to <8 but is currently unusable because of the leak.
v4 is EOL, and v6 is not far off from that too. I don't think motivation is very high to deal with super old versions of Node.js...
That being said, PRs are welcome. 🤷♂️
I think this API is stable. Would it make sense to ship v1 and follow semver?