Skip to content

Commit c44a976

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>
1 parent 29d3544 commit c44a976

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/site/pages/en/blog/migrations/v22-to-v24.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fs.access('/path/to/file', fs.constants.R_OK | fs.constants.W_OK, callback);
101101

102102
### `util-log-to-console-log`
103103

104-
The `util.log` function was deprecated in favor of using `console.log` directly. Because it's an unmaintained legacy API that was exposed to user land by accident
104+
The `util.log` function was deprecated in favor of using `console.log` directly, because it's an unmaintained legacy API that was exposed to user land by accident.
105105

106106
So this codemod handle [DEP0059](https://nodejs.org/api/deprecations.html#DEP0059).
107107

@@ -191,7 +191,7 @@ open('file.txt', 'w', (err, fd) => {
191191

192192
### `crypto-rsa-pss-update`
193193

194-
The `generateKeyPair` and `generateKeyPairSync` methods in the `crypto` module deprecated in [DEP0154](https://nodejs.org/docs/latest/api/deprecations.html#DEP0154), the `hash`, `mgf1Hash`, and `saltLength` options for the `'rsa-pss'` key type in favor of `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` respectively.
194+
In [DEP0154](https://nodejs.org/docs/latest/api/deprecations.html#DEP0154), the `generateKeyPair` and `generateKeyPairSync` methods in the `crypto` module deprecated the `hash`, `mgf1Hash`, and `saltLength` options for the `'rsa-pss'` key type in favor of `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` respectively.
195195

196196
The source code for this codemod can be found in the [crypto-rsa-pss-update directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-rsa-pss-update).
197197

0 commit comments

Comments
 (0)