toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

`@actions/artifact` dependency `crypto` is deprecated

Open muzimuzhi opened this issue 1 year ago • 2 comments

Describe the bug

Installing @actions/artifact gives

npm WARN deprecated [email protected]: This package is no longer supported. It's now a built-in
Node module. If you've depended on crypto, you should switch to the one that's built-in.

See also https://www.npmjs.com/package/crypto.

To Reproduce

Run npm install in ./packages/artifact.

muzimuzhi avatar Dec 20 '23 05:12 muzimuzhi

I can reproduce this as well. We need to switch all crypto.createHash('sha256') calls to use node:crypto

pauliesnug avatar Jan 09 '24 03:01 pauliesnug

crypto can't be resolved when bundling either. This makes the package unusable currently.

pngwn avatar Jan 22 '24 18:01 pngwn