You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/site/pages/en/learn/userland-migrations/introduction.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,13 @@ The Node.js Userland Migrations team seeks to help developers migrate their code
21
21
To use a codemod, you can run the following command in your terminal:
22
22
23
23
```bash
24
-
npx codemod@next<codemod-name>
24
+
npx codemod <codemod-name>
25
25
```
26
26
27
27
Replace `<codemod-name>` with the name of the codemod you want to run. For example, if you want to run the `@nodejs/import-assertions-to-attributes` codemod on your project, you would run:
This page provides a list of codemods to help you migrate your code from Node.js v22 to v24.
10
+
11
+
## `fs-access-mode-constants`
12
+
13
+
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.
14
+
15
+
So this codemod handle [DEP0176](https://nodejs.org/api/deprecations.html#DEP0176).
In Node.js v23, 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
34
+
35
+
So this codemod handle [DEP0059](https://nodejs.org/api/deprecations.html#DEP0059).
0 commit comments