From bf8733fe22d47ce2d54a1516cf87a03fba582ea2 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Fri, 23 Oct 2020 11:50:44 -0700 Subject: [PATCH] doc: mark modules implementation as stable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/35781 Backport-PR-URL: https://github.com/nodejs/node/pull/37718 Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum Reviewed-By: Rich Trott Reviewed-By: Michaƫl Zasso Reviewed-By: Franziska Hinkelmann Reviewed-By: James M Snell Reviewed-By: Myles Borins Reviewed-By: Antoine du Hamel Reviewed-By: Derek Lewis --- doc/api/esm.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index f776f458141df5..938aec7d44cca7 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -5,6 +5,10 @@ -> Stability: 1 - Experimental +> Stability: 2 - Stable ## Introduction @@ -55,15 +59,9 @@ console.log(addTwo(4)); ``` Node.js fully supports ECMAScript modules as they are currently specified and -provides limited interoperability between them and the existing module format, +provides interoperability between them and its original module format, [CommonJS][]. -Node.js contains support for ES Modules based upon the -[Node.js EP for ES Modules][] and the [ECMAScript-modules implementation][]. - -Expect major changes in the implementation including interoperability support, -specifier resolution, and default behavior. - @@ -1268,9 +1266,7 @@ success! [CommonJS]: modules.html [Conditional exports]: packages.html#packages_conditional_exports [Dynamic `import()`]: https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports -[ECMAScript-modules implementation]: https://github.com/nodejs/modules/blob/master/doc/plan-for-new-modules-implementation.md [ES Module Integration Proposal for Web Assembly]: https://github.com/webassembly/esm-integration -[Node.js EP for ES Modules]: https://github.com/nodejs/node-eps/blob/master/002-es-modules.md [Terminology]: #esm_terminology [WHATWG JSON modules specification]: https://html.spec.whatwg.org/#creating-a-json-module-script [`data:` URLs]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs