Open andrews05 opened 11 months ago
Hi, thank you for the report. I'll put it on the backlog for now.
Any news about this? Node 21 was released 5 months ago :(
@emmgfx Since implementing this change would require increasing the minimum Node version, this change likely should wait until we release a new major version of the CLI.
If this deprecation warning is a major annoyance, we could perhaps look into whether we might be able to suppress the warning in the meantime.
node v22 is very soon LTS and this punycode warning is really annoying... can you please upgrade to node-fetch 3.x? since other very common packages like jsdom and jest has already upgraded to node-fetch 3.x a very large amount of apps cannot support node v10 anyway.. of course if there is a way to silence the warning this would also be a good solution
running with NODE_OPTIONS="--disable-warning DEP0040" will disable the deprecation warning for punycode
Hi @mo, as I mentioned in a previous comment, this likely requires us to release a major version of Sentry CLI because it would be a breaking change. We have no timeline on when we would plan to do this.
running with NODE_OPTIONS="--disable-warning DEP0040" will disable the deprecation warning for punycode
If I understand correctly, you are able to disable the warning and work around this issue, right?
Yes, suppressing the warning with --disable-warning DEP0040 works well in my case.
On node 21, using sentry cli shows a warning:
DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
Here's the dependency stack leading to punycode:
Upgrading to node-fetch v3 should resolve this. I believe this will require bumping minimum node to v12, hopefully that won't be issue.