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 danielleadams committed Apr 29, 2021
1 parent b133034 commit a7da993
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 @@ -369,8 +365,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 @@ -395,8 +389,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 @@ -475,8 +467,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 @@ -904,8 +894,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 @@ -972,8 +960,6 @@ changes:
description: Implement conditional exports.
-->

> Stability: 1 - Experimental

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

```json
Expand All @@ -1000,8 +986,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 a7da993

Please sign in to comment.