Description
Is your feature request related to a problem? Please describe.
I’d like to get #34055 and #34962 backported to v15.x.
Note that no backport PRs exist yet, and the above PRs were only merged into v16.0.
Describe the solution you'd like
I propose the following options:
-
Backport util: add
util/types
alias module #34055 and path: addpath/posix
andpath/win32
alias modules #34962 as‑is to v15, which, as an odd numbered release, is considered an unstable non‑LTS release, and thus some minor breakage might be somewhat acceptable for it. -
Backport util: add
util/types
alias module #34055 and path: addpath/posix
andpath/win32
alias modules #34962 to v15, but restrict them to thenode:
scheme until v16, with the following sub‑options:-
Add support for
require("node:<built‑in‑id>")
and thusrequire("node:util/types")
,require("node:path/posix")
andrequire("node:path/win32")
. (see also: Add support fornode:
‑prefixed imports of built‑in modules torequire(…)
#36098) -
Don’t add support for
require("node:<built‑in‑id>")
, thus only supportingimport("node:util/types")
,import("node:path/posix")
andimport("node:path/win32")
, but notrequire("node:util/types")
,require("node:path/posix")
andrequire("node:path/win32")
-