Skip to content

Conversation

@AugustinMauroy
Copy link
Member

@AugustinMauroy AugustinMauroy commented Dec 15, 2025

Description

  • Including more codemod for EOL deprecation on migration guide.
  • Reordering by alphabetical
  • Adding userland migration to code owner

Related Issues

No Related issue

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • NA I've covered new added functionality with unit tests if necessary.

@AugustinMauroy AugustinMauroy requested a review from a team as a code owner December 15, 2025 13:42
Copilot AI review requested due to automatic review settings December 15, 2025 13:42
@vercel
Copy link

vercel bot commented Dec 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nodejs-org Ready Ready Preview Dec 15, 2025 8:42pm

@github-actions
Copy link
Contributor

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

@codecov
Copy link

codecov bot commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.68%. Comparing base (b5ccb5f) to head (c6761e3).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8420      +/-   ##
==========================================
- Coverage   73.70%   73.68%   -0.03%     
==========================================
  Files         107      107              
  Lines        9161     9161              
  Branches      311      311              
==========================================
- Hits         6752     6750       -2     
- Misses       2407     2409       +2     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2025

📦 Build Size Comparison

Summary

Metric Value
Old Total Size 4.34 MB
New Total Size 4.34 MB
Delta 0 B (0.00%)

Changes

➕ Added Assets (1)
Name Size
.next/static/chunks/923e8542e8756293.js 204.26 KB
➖ Removed Assets (1)
Name Size
.next/static/chunks/3a347755eb119fa4.js 204.26 KB

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the Node.js v22 to v24 migration guide by adding new codemods (crypto-rsa-pss-update, dirent-path-to-parent-path, and process-assert-to-node-assert) and reorganizing all codemods in alphabetical order. It also updates the CODEOWNERS file to assign ownership of migration-related documentation to the userland-migrations team.

Key changes:

  • Added three new codemod sections with examples and installation instructions
  • Reordered codemods alphabetically (crypto → dirent → fs-access → fs-truncate → process-assert)
  • Removed older codemods (util-log-to-console-log and zlib-bytesRead-to-bytesWritten)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
apps/site/pages/en/blog/migrations/v22-to-v24.mdx Adds new codemods for EOL deprecations, reorganizes sections alphabetically, and updates migration guidance
.github/CODEOWNERS Assigns ownership of migration-related documentation to @nodejs/userland-migrations team

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 265 to 313
#### `dirent-path-to-parent-path`

This codemod transforms the usage of `dirent.path` to use `dirent.parentPath`.

See [DEP0178](https://nodejs.org/api/deprecations.html#DEP0178).

You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/dirent-path-to-parent-path).

```bash
npx codemod run @nodejs/dirent-path-to-parent-path
```

#### Examples

##### readdir

```js displayName="Before"
const { readdir } = require('node:fs/promises');
const entries = await readdir('/some/path', { withFileTypes: true });
for (const dirent of entries) {
console.log(dirent.path);
}
```

```js displayName="After"
const crypto = require('node:crypto');
const { readdir } = require('node:fs/promises');
const entries = await readdir('/some/path', { withFileTypes: true });
for (const dirent of entries) {
console.log(dirent.parentPath);
}
```

crypto.generateKeyPair(
'rsa-pss',
{
modulusLength: 2048,
hashAlgorithm: 'sha256',
mgf1HashAlgorithm: 'sha1',
saltLength: 32,
},
(err, publicKey, privateKey) => {
// callback
}
);
##### opendir

```js displayName="Before"
import { opendir } from 'node:fs/promises';
const dir = await opendir('./');
for await (const dirent of dir) {
console.log(`Found ${dirent.name} in ${dirent.path}`);
}
```

```js displayName="After"
import { opendir } from 'node:fs/promises';
const dir = await opendir('./');
for await (const dirent of dir) {
console.log(`Found ${dirent.name} in ${dirent.parentPath}`);
}
```
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entire section for dirent-path-to-parent-path is duplicated. The same content already appears at lines 120-168. Remove this duplicate section (lines 265-313) to avoid redundancy in the documentation.

Copilot uses AI. Check for mistakes.
```

#### Example:
## Example
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The heading level should be #### (level 4) instead of ## (level 2) to maintain consistency with other codemod sections. All other codemods use #### Example: for their example headings.

Suggested change
## Example
#### Example:

Copilot uses AI. Check for mistakes.
assert(condition, 'Assertion failed');
```

## Additional Notes
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The heading level should be #### (level 4) instead of ## (level 2) to maintain consistency with the document hierarchy. This is a subsection under the process-assert-to-node-assert codemod.

Suggested change
## Additional Notes
#### Additional Notes

Copilot uses AI. Check for mistakes.

## Additional Notes

This codemod use [`fs` capability](https://docs.codemod.com/jssg/security) to read the `package.json` file and determine if the project is using ES modules or CommonJS. Based on this information, it adds the appropriate import statement for the `assert` module.
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar error: 'use' should be 'uses' for correct subject-verb agreement.

Suggested change
This codemod use [`fs` capability](https://docs.codemod.com/jssg/security) to read the `package.json` file and determine if the project is using ES modules or CommonJS. Based on this information, it adds the appropriate import statement for the `assert` module.
This codemod uses [`fs` capability](https://docs.codemod.com/jssg/security) to read the `package.json` file and determine if the project is using ES modules or CommonJS. Based on this information, it adds the appropriate import statement for the `assert` module.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants