From c3f72510c8f629ed2178b50bb2860efc3feb9249 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Fri, 17 May 2019 15:23:59 -0400 Subject: [PATCH] esm: remove experimental status from JSON modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The HTML spec has officially landed JSON Modules and as such I think we can move them out of the "experimental" status. They will still be behind the `--experimental-modules` flag until the entire esm implementation moves out of experimental. Refs: https://html.spec.whatwg.org/#creating-a-json-module-script PR-URL: https://github.com/nodejs/node/pull/27752 Reviewed-By: Matteo Collina Reviewed-By: Gus Caplan Reviewed-By: Bradley Farias Reviewed-By: Jeremiah Senkpiel Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Guy Bedford Reviewed-By: Yuta Hiroto Reviewed-By: Yongsheng Zhang Reviewed-By: James M Snell Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Jan Krems Reviewed-By: Ruben Bridgewater --- doc/api/cli.md | 7 ------- doc/api/esm.md | 23 ++++----------------- doc/node.1 | 3 --- lib/internal/modules/esm/default_resolve.js | 7 ++----- src/node_options.cc | 9 -------- src/node_options.h | 1 - test/es-module/test-esm-json-cache.mjs | 2 +- test/es-module/test-esm-json.mjs | 3 ++- 8 files changed, 9 insertions(+), 46 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 42950418282ef2..e76a3296f0670b 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -148,13 +148,6 @@ the ability to import a directory that has an index file. Please see [customizing esm specifier resolution][] for example usage. -### `--experimental-json-modules` - - -Enable experimental JSON support for the ES Module loader. - ### `--experimental-modules`