Skip to content

Conversation

@marco-ippolito
Copy link
Member

@marco-ippolitomarco-ippolito commented Dec 6, 2023

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

@marco-ippolitomarco-ippolito added the crypto Issues and PRs related to the crypto subsystem. label Dec 6, 2023
@nodejs-github-botnodejs-github-bot added deprecations Issues and PRs related to deprecations. doc Issues and PRs related to the documentations. labels Dec 6, 2023
@anonrig
Copy link
Member

cc @nodejs/crypto

H4ad
H4ad approved these changes Dec 7, 2023
@marco-ippolitomarco-ippolito added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 7, 2023
@anonriganonrig added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 10, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 10, 2023
@nodejs-github-botnodejs-github-bot merged commit ba3f721 into nodejs:mainDec 10, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in ba3f721

RafaelGSS pushed a commit that referenced this pull request Dec 15, 2023
PR-URL: #51077 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]> Reviewed-By: James M Snell <[email protected]>
RafaelGSS added a commit that referenced this pull request Dec 15, 2023
Notable changes: deps: * (SEMVER-MINOR) add simdjson (Yagiz Nizipli) #50322 doc: * deprecate hash constructor (Marco Ippolito) #51077 * deprecate `dirent.path` (Antoine du Hamel) #51020 module: * merge config with `package_json_reader` (Yagiz Nizipli) #50322 src: * move package resolver to c++ (Yagiz Nizipli) #50322 PR-URL: TBD
@RafaelGSSRafaelGSS mentioned this pull request Dec 15, 2023
RafaelGSS added a commit that referenced this pull request Dec 15, 2023
Notable changes: deps: * (SEMVER-MINOR) add simdjson (Yagiz Nizipli) #50322 doc: * deprecate hash constructor (Marco Ippolito) #51077 * deprecate `dirent.path` (Antoine du Hamel) #51020 module: * merge config with `package_json_reader` (Yagiz Nizipli) #50322 src: * move package resolver to c++ (Yagiz Nizipli) #50322 PR-URL: #51166
RafaelGSS added a commit that referenced this pull request Dec 15, 2023
Notable changes: deps: * (SEMVER-MINOR) add simdjson (Yagiz Nizipli) #50322 doc: * deprecate hash constructor (Marco Ippolito) #51077 * deprecate `dirent.path` (Antoine du Hamel) #51020 module: * merge config with `package_json_reader` (Yagiz Nizipli) #50322 src: * move package resolver to c++ (Yagiz Nizipli) #50322 PR-URL: #51166
RafaelGSS added a commit that referenced this pull request Dec 19, 2023
Notable changes: deps: * (SEMVER-MINOR) add simdjson (Yagiz Nizipli) #50322 doc: * deprecate hash constructor (Marco Ippolito) #51077 * deprecate `dirent.path` (Antoine du Hamel) #51020 module: * merge config with `package_json_reader` (Yagiz Nizipli) #50322 src: * move package resolver to c++ (Yagiz Nizipli) #50322 PR-URL: #51166
richardlau pushed a commit that referenced this pull request Mar 25, 2024
PR-URL: #51077 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]> Reviewed-By: James M Snell <[email protected]>
@richardlaurichardlau mentioned this pull request Mar 25, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.cryptoIssues and PRs related to the crypto subsystem.deprecationsIssues and PRs related to deprecations.docIssues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@marco-ippolito@anonrig@nodejs-github-bot@jasnell@H4ad