-
- Notifications
You must be signed in to change notification settings - Fork 33.7k
doc: deprecate hash constructor #51077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nodejs-github-bot merged 1 commit into nodejs:main from marco-ippolito:feat/deprecate-hash Dec 10, 2023
Merged
doc: deprecate hash constructor #51077
nodejs-github-bot merged 1 commit into nodejs:main from marco-ippolito:feat/deprecate-hash Dec 10, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
5a84550 to 3838e04 Compare anonrig reviewed Dec 6, 2023
dad2f99 to 7f2906e Compare 7f2906e to ff25004 Compare anonrig approved these changes Dec 6, 2023
Member
| cc @nodejs/crypto |
H4ad approved these changes Dec 7, 2023
jasnell approved these changes Dec 9, 2023
Collaborator
| Landed in ba3f721 |
RafaelGSS pushed a commit that referenced this pull request Dec 15, 2023
PR-URL: #51077 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: James M Snell <jasnell@gmail.com>
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
Merged
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 <yagiz.nizipli@sentry.io> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: James M Snell <jasnell@gmail.com>
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. crypto Issues and PRs related to the crypto subsystem. deprecations Issues and PRs related to deprecations. doc Issues and PRs related to the documentations.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Hashis an internal and shouldnt be called directly but throughcreateHash():https://github.com/nodejs/node/blob/main/doc/api/crypto.md#class-hash
Calling
Hashwithout 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