Skip to content

lib: refactor exposed internal modules

Move the implementation of internal modules onto the lib/internal/ folder, and add aliases to keep the backward compatibility in case user code relies on them being part of the public API.

It also replace usage of those modules into the test/ folder to their documented equivalent APIs when possible.

The idea behind this PR is to ease the process of deprecation if we ever decided that one of those modules should be deprecated at some point, and make the lib/ folder structure more consistent.

Refs: https://github.com/nodejs/node/pull/33326

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading