[v12.x] backport #27685
This backports #27685 (a semver-major PR) with a compatibility patch on top.
The main code change works similar to a no-op.
@nodejs/util @nodejs/releasers PTAL
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines