Skip to content

Backporting util/types, path/posix and path/win32 to v15 proposal #35788

@ExE-Boss

Description

@ExE-Boss

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:

  1. Backport util: add util/types alias module #34055 and path: add path/posix and path/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.

  2. Backport util: add util/types alias module #34055 and path: add path/posix and path/win32 alias modules #34962 to v15, but restrict them to the node: scheme until v16, with the following sub‑options:

    1. Add support for require("node:<built‑in‑id>") and thus require("node:util/types"), require("node:path/posix") and require("node:path/win32"). (see also: Add support for node:‑prefixed imports of built‑in modules to require(…) #36098)

    2. Don’t add support for require("node:<built‑in‑id>"), thus only supporting import("node:util/types"), import("node:path/posix") and import("node:path/win32"), but not require("node:util/types"), require("node:path/posix") and require("node:path/win32")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions