Skip to content

Commit f1b9791

Browse files
aduh95ruyadorno
authored andcommitted
doc: update require(ESM) history and stability status
PR-URL: #55199 Backport-PR-URL: #55217 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Refs: #52697
1 parent 545c069 commit f1b9791

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/api/modules.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,18 @@ relative, and based on the real path of the files making the calls to
171171
## Loading ECMAScript modules using `require()`
172172

173173
<!-- YAML
174-
added: v22.0.0
174+
added:
175+
- v22.0.0
175176
changes:
176177
- version: REPLACEME
177178
pr-url: https://github.com/nodejs/node/pull/55085
178-
description: require() now supports loading synchronous ES modules by default.
179+
description: This feature is no longer behind the `--experimental-require-module` CLI flag.
179180
- version: REPLACEME
180181
pr-url: https://github.com/nodejs/node/pull/54563
181182
description: Support `'module.exports'` interop export in `require(esm)`.
182183
-->
183184

184-
> Stability: 1.1 - Active Development. Enable this API with the
185-
> [`--experimental-require-module`][] CLI flag.
185+
> Stability: 1.2 - Release candidate
186186
187187
The `.mjs` extension is reserved for [ECMAScript Modules][].
188188
See [Determining module system][] section for more info
@@ -1265,7 +1265,6 @@ This section was moved to
12651265
[GLOBAL_FOLDERS]: #loading-from-the-global-folders
12661266
[`"main"`]: packages.md#main
12671267
[`"type"`]: packages.md#type
1268-
[`--experimental-require-module`]: cli.md#--experimental-require-module
12691268
[`ERR_REQUIRE_ASYNC_MODULE`]: errors.md#err_require_async_module
12701269
[`ERR_UNSUPPORTED_DIR_IMPORT`]: errors.md#err_unsupported_dir_import
12711270
[`MODULE_NOT_FOUND`]: errors.md#module_not_found

0 commit comments

Comments
 (0)