Skip to content

Commit 348d865

Browse files
authored
doc: update require(ESM) history and stability status
PR-URL: #55199 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 1d5ed72 commit 348d865

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/api/modules.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,20 @@ 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:
175+
- v22.0.0
176+
- v20.17.0
174177
changes:
175178
- version: REPLACEME
176179
pr-url: https://github.com/nodejs/node/pull/55085
177-
description: require() now supports loading synchronous ES modules by default.
180+
description: This feature is no longer behind the `--experimental-require-module` CLI flag.
178181
- version: REPLACEME
179182
pr-url: https://github.com/nodejs/node/pull/54563
180183
description: Support `'module.exports'` interop export in `require(esm)`.
181184
-->
182185

186+
> Stability: 1.2 - Release candidate
187+
183188
The `.mjs` extension is reserved for [ECMAScript Modules][].
184189
See [Determining module system][] section for more info
185190
regarding which files are parsed as ECMAScript modules.

0 commit comments

Comments
 (0)