Skip to content

Commit 23e7e1d

Browse files
apply sugession
Co-Authored-By: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com>
1 parent 42af1f4 commit 23e7e1d

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

apps/site/pages/en/blog/migrations/v12-to-v14.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ This page provides a list of codemods to help you migrate your code from Node.js
2020

2121
This recipe transforms calls of various now-deprecated `node:util` log functions into the modern alternative, `console.log` and `console.error`:
2222

23-
- [DEP0026](https://nodejs.org/api/deprecations.html#DEP0026): `util.print` `console.log`
24-
- [DEP0027](https://nodejs.org/api/deprecations.html#DEP0027): `util.puts` `console.log`
25-
- [DEP0028](https://nodejs.org/api/deprecations.html#DEP0028): `util.debug` `console.error`
26-
- [DEP0029](https://nodejs.org/api/deprecations.html#DEP0029): `util.error` `console.error`
23+
- [DEP0026](https://nodejs.org/api/deprecations.html#DEP0026): `util.print` `console.log`
24+
- [DEP0027](https://nodejs.org/api/deprecations.html#DEP0027): `util.puts` `console.log`
25+
- [DEP0028](https://nodejs.org/api/deprecations.html#DEP0028): `util.debug` `console.error`
26+
- [DEP0029](https://nodejs.org/api/deprecations.html#DEP0029): `util.error` `console.error`
2727

2828
```bash
2929
npx codemod run @nodejs/create-require-from-path

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ This page provides a list of codemods to help you migrate your code from Node.js
1818

1919
## `import-assertions-to-attributes`
2020

21-
During the process of TC39 standardization, the `import assert` feature was introduced to allow importing [JSON modules](https://tc39.es/proposal-json-modules/) but during the during the transition to stage 4, the `assert` keyword was removed and replaced with an `with` attribute on the `import` statement.
21+
During the process of TC39 standardization, the `import assert` feature was introduced to allow importing [JSON modules](https://tc39.es/proposal-json-modules/), but during the during the transition to stage 4, the `assert` keyword was replaced with an `with` attribute on the `import` statement.
2222

23-
So in [node.js v22](https://nodejs.org/fr/blog/release/v22.0.0#other-notable-changes), the `import assert` feature was removed and you need to use the `with` attribute instead.
23+
So in [node.js v22](https://nodejs.org/fr/blog/release/v22.0.0#other-notable-changes), the `import assert` feature was removed and the `with` attribute is required instead.
2424

2525
Also note that the `with` keyword as been introduce in [node.js v18.20](https://nodejs.org/fr/blog/release/v18.20.0#added-support-for-import-attributes) but it was not mandatory until v22.
2626

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This page provides a list of codemods to help you migrate your code from Node.js
2020

2121
In Node.js 24, the `fs` module introduced a runtime deprecation for `F_OK`, `R_OK`, `W_OK`, and `X_OK` getters exposed directly on `node:fs`. Get them from `fs.constants` or `fs.promises.constants` instead.
2222

23-
So this codemod handle [DEP0176](https://nodejs.org/api/deprecations.html#DEP0176).
23+
This codemod handles [DEP0176](https://nodejs.org/api/deprecations.html#DEP0176).
2424

2525
```js displayName="Before"
2626
const fs = require('node:fs');

apps/site/pages/en/learn/getting-started/userland-migrations.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ npx codemod @nodejs/import-assertions-to-attributes
3939

4040
## Understanding Codemods Registry
4141

42-
The [Codemod registry](https://codemod.link/nodejs-official) provides a list of available codemods for Node.js.
43-
Some codemods may not be included in the following resources but are still available because they are not related to a specific migration to a Node.js version. Since we only list codemods for EoL deprecations, you may need to explore the registry for other codemods that could be useful for your migrations.
42+
The [Codemod registry](https://codemod.link/nodejs-official) provides a list of available codemods for Node.js. Some codemods may not be included in the following resources but are still available because they are not related to a specific migration to a Node.js version. Since we only list codemods for EoL deprecations, you may need to explore the registry for other codemods that could be useful for your migrations.
4443

45-
> Please note that if you are logged into the Codemod platform, you can like these posts. This shows us that our work is valuable.
44+
> Please note that if you are logged into the Codemod platform, you can like these posts. This helps us to see what users find valuable.
4645
4746
## Feedback
4847

49-
If you have any feedback or suggestions for improvements, please open an issue on the [Node.js Userland Migrations repository](https://github.com/nodejs/userland-migrations/issues).
48+
If you have any feedback or suggestions for improvements, please open a discussion on the [Node.js Userland Migrations repository](https://github.com/nodejs/userland-migrations/discussions).
5049

5150
## Follow the Userland Migrations Progression
5251

0 commit comments

Comments
 (0)