Skip to content

Commit

Permalink
doc: stabilize packages features
Browse files Browse the repository at this point in the history
These features are being used in production and are ready to be
considered stable.

Refs: nodejs/modules#564

PR-URL: #35742
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Ujjwal Sharma <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Geoffrey Booth <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
MylesBorins authored and targos committed Nov 3, 2020
1 parent afb3e24 commit d291e3a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions doc/api/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.

Expand All @@ -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.

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -974,8 +962,6 @@ changes:
description: Implement conditional exports.
-->

> Stability: 1 - Experimental

* Type: {Object} | {string} | {string[]}

```json
Expand All @@ -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
Expand Down

0 comments on commit d291e3a

Please sign in to comment.