From c9a55e35b643f71d39077cc0e61c8abcb4fab279 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Wed, 21 Oct 2020 11:02:53 -0400 Subject: [PATCH] doc: stabilize packages features These features are being used in production and are ready to be considered stable. Refs: https://github.com/nodejs/modules/issues/564 --- doc/api/packages.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index f1833783f121f6..5fef7f4766d1ce 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -252,8 +252,6 @@ absolute subpath of the package such as ### Subpath exports -> Stability: 1 - Experimental - When using the [`"exports"`][] field, custom subpaths can be defined along with the main entry point by treating the main entry point as the `"."` subpath: @@ -284,8 +282,6 @@ import submodule from 'es-module-package/private-module.js'; ### Subpath imports -> Stability: 1 - Experimental - In addition to the [`"exports"`][] field, it is possible to define internal package import maps that only apply to import specifiers from within the package itself. @@ -371,8 +367,6 @@ targets, this expansion is dependent on only the files of the package itself. ### Exports sugar -> Stability: 1 - Experimental - If the `"."` export is the only export, the [`"exports"`][] field provides sugar for this case being the direct [`"exports"`][] field value. @@ -397,8 +391,6 @@ can be written: ### Conditional exports -> Stability: 1 - Experimental - Conditional exports provide a way to map to different paths depending on certain conditions. They are supported for both CommonJS and ES module imports. @@ -477,8 +469,6 @@ order to support packages with conditional exports. For this reason, using ### Nested conditions -> Stability: 1 - Experimental - In addition to direct mappings, Node.js also supports nested condition objects. For example, to define a package that only has dual mode entry points for @@ -906,8 +896,6 @@ changes: description: Unflag `--experimental-modules`. --> -> Stability: 1 - Experimental - * Type: {string} The `"type"` field defines the module format that Node.js uses for all @@ -974,8 +962,6 @@ changes: description: Implement conditional exports. --> -> Stability: 1 - Experimental - * Type: {Object} | {string} | {string[]} ```json @@ -1002,8 +988,6 @@ All paths defined in the `"exports"` must be relative file URLs starting with added: v14.6.0 --> -> Stability: 1 - Experimental - * Type: {Object} ```json