Skip to content

module: move DEP0128 to End-of-Life - #67487

Open
jasnell wants to merge 2 commits into
nodejs:mainfrom
jasnell:eol-dep0128
Open

jasnell wants to merge 2 commits into
nodejs:mainfrom
jasnell:eol-dep0128

Conversation

@jasnell

@jasnell jasnell commented Nov 15, 2026

Copy link
Copy Markdown
Member

A package.json whose "main" entry cannot be resolved no longer falls back to the package's top-level index file when loaded with require(). Instead, a MODULE_NOT_FOUND error is thrown, matching the existing behavior for packages that have no index file.

This has been a runtime deprecation since v16.0.0.

Refs: #37204
Refs: #26823

A package.json whose "main" entry cannot be resolved no longer falls
back to the package's top-level index file when loaded with require().
Instead, a MODULE_NOT_FOUND error is thrown, matching the existing
behavior for packages that have no index file.

This has been a runtime deprecation since v16.0.0.

Refs: nodejs#37204
Refs: nodejs#26823
Assisted-by: Claude
Signed-off-by: James M Snell <jasnell@gmail.com>
@jasnell
jasnell requested a review from a team November 15, 2026 16:03
@jasnell jasnell added semver-major PRs that contain breaking changes and should be released in the next major version. deprecations Issues and PRs related to deprecations. labels Nov 15, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

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

@nodejs-github-bot nodejs-github-bot added module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. labels Nov 15, 2026
Comment thread doc/api/deprecations.md Resolved
@jasnell jasnell added the commit-queue-squash PRs the Commit Queue should land as one squashed commit. label Nov 15, 2026
@panva
panva requested a review from a team November 15, 2026 16:28
@jasnell jasnell added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 15, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 15, 2026
@nodejs-github-bot

This comment was marked as outdated.

@codecov

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.66%. Comparing base (d105ef7) to head (b5392e4).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67487      +/-   ##
==========================================
- Coverage   90.67%   90.66%   -0.01%     
==========================================
  Files         799      799              
  Lines      280245   280235      -10     
  Branches    54125    54120       -5     
==========================================
- Hits       254100   254075      -25     
- Misses      16280    16288       +8     
- Partials     9865     9872       +7     
Files with missing lines Coverage Δ
lib/internal/modules/cjs/loader.js 97.98% <100.00%> (-0.01%) ⬇️

... and 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jasnell

jasnell commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

@nodejs/tsc ... will need another sign off here

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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

Labels

commit-queue-squash PRs the Commit Queue should land as one squashed commit. deprecations Issues and PRs related to deprecations. module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants