Skip to content

doc: deprecate hash constructor

Hash is an internal and shouldnt be called directly but through createHash(): https://github.com/nodejs/node/blob/main/doc/api/crypto.md#class-hash Calling Hash without new qualifier avoids us from moving into ES6 classes. The idea is to deprecate it, and refactor it with es6 class without exposing it.

@anonrig

Merge request reports

Loading