Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: revert anachronistic 'node:' prefixed module require()s in API history notes #43768

Commits on Jul 11, 2022

  1. doc: revert anachronistic 'node:' module require()s in API history notes

    Support for the 'node:' prefixed builtin module namespace was introduced
    for `require()` expressions in Node v16.0.0, and backported to v14.18.0.
    This was never supported in Node v15.x or chronologically older.
    
    All of the current API history notes in the docs using 'node:' prefixed
    module `require()`s happen to be documenting changes in Node versions
    from before the time when support was first introduced.
    
    This commit reverts those `require()`s in the history notes to be
    un-prefixed. (They were incorrect as written; The prefixed `require()`s
    would not work for those older Node versions.)
    
    This change prevents the API history notes from inaccurately implying
    'node:' prefixed builtin modules were introduced many Node versions ago,
    or were `require()`-able with the 'node:' prefix in those Node versions.
    
    Refs: nodejs#35387
    Refs: nodejs#37246
    Refs: nodejs#42752
    DeeDeeG committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    c3459bb View commit details
    Browse the repository at this point in the history