Currently, npm uses the deprecated crypto.pseudoRandomBytes API through its unique-slug dependency.
There is already a PR to fix it: https://github.com/npm/unique-slug/pull/6
Given that the only reason for deprecating seems to be “reducing undocumented API surface”, we should also definitely consider reverting the deprecation. Aliases are cheap and come with very little maintenance overhead.
I contacted npm via twitter, their response was
I'm glad you asked about this. We can't guarantee that repo will be looked at in the near future.
So I'm in favor of downgrading the deprecation as well.
Most helpful comment
Given that the only reason for deprecating seems to be “reducing undocumented API surface”, we should also definitely consider reverting the deprecation. Aliases are cheap and come with very little maintenance overhead.