Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stabilize packages features #35742

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

GeoffreyBooth marked this conversation as resolved.
Show resolved Hide resolved
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