← 输入框|github.com|刷新
Skip to content

doc: point require.extensions users to customization hooks - #67243

Open
adityareddy-dev wants to merge 1 commit into
nodejs:mainfrom
adityareddy-dev:doc/require-extensions-customization-hooks
Open

adityareddy-dev wants to merge 1 commit into
nodejs:mainfrom
adityareddy-dev:doc/require-extensions-customization-hooks

Conversation

@adityareddy-dev

Copy link
Copy Markdown

The require.extensions deprecation doesn't point to supported loading hooks. I linked module.registerHooks() and its synchronous hook guide from the API and deprecation docs.

Fixes: #32483

Signed-off-by: Aditya Reddy <82123567+adityareddy-dev@users.noreply.github.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/loaders
  • @nodejs/userland-migrations

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to Node.js documentation. label Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Welcome to Node.js, and thank you for your first contribution!

Before review, please take a moment to read:

Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal.

Caution

AgentScan found account activity patterns that may be consistent with automation. This is a heuristic, not proof that this pull request was opened by an agent or violates policy. AI-assisted contributions are permitted, but automated tooling must not open pull requests without advance approval, and contributors must personally understand, test, verify, and take responsibility for every submitted change. See the AgentScan analysis, AI use policy, and automation policy for additional context.

@GeoffreyBooth GeoffreyBooth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a good start. We could probably go further and provide migration examples, but that should come in a follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentscan:automated-account doc Issues and PRs related to Node.js documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Describe alternatives to require.extensions

3 participants