Skip to content

Conversation

@Xstoudi
Copy link
Contributor

@Xstoudi Xstoudi commented Jan 9, 2026

Add a new process.loadedModules property that returns an array of public core module names that have been loaded during the current Node.js process execution. This provides a cleaner, documented API for accessing loaded module information compared to the undocumented process.moduleLoadList.

Fixes: #41233
Refs: #61276

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders
  • @nodejs/startup

@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jan 9, 2026
Add a new `process.loadedModules` property that returns an array
of public core module names that have been loaded during the current
Node.js process execution. This provides a cleaner, documented API
for accessing loaded module information compared to the undocumented
`process.moduleLoadList`.

Fixes: nodejs#41233
Refs: nodejs#61276
@Xstoudi Xstoudi force-pushed the feat/process-loaded-modules branch from 8530bcb to afe4f56 Compare January 9, 2026 23:18
@codecov
Copy link

codecov bot commented Jan 10, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61330      +/-   ##
==========================================
+ Coverage   88.00%   88.52%   +0.51%     
==========================================
  Files         704      704              
  Lines      208739   208751      +12     
  Branches    40196    40274      +78     
==========================================
+ Hits       183706   184798    +1092     
+ Misses      16992    15946    -1046     
+ Partials     8041     8007      -34     
Files with missing lines Coverage Δ
lib/internal/bootstrap/realm.js 96.30% <100.00%> (+2.40%) ⬆️

... and 98 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.

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

Labels

lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc: process.moduleLoadList not documented

2 participants