Skip to content

Commit d291e3a

Browse files
MylesBorinstargos
authored andcommitted
doc: stabilize packages features
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 <guybedford@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent afb3e24 commit d291e3a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

doc/api/packages.md

-16
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ absolute subpath of the package such as
252252

253253
### Subpath exports
254254

255-
> Stability: 1 - Experimental
256-
257255
When using the [`"exports"`][] field, custom subpaths can be defined along
258256
with the main entry point by treating the main entry point as the
259257
`"."` subpath:
@@ -284,8 +282,6 @@ import submodule from 'es-module-package/private-module.js';
284282

285283
### Subpath imports
286284

287-
> Stability: 1 - Experimental
288-
289285
In addition to the [`"exports"`][] field, it is possible to define internal
290286
package import maps that only apply to import specifiers from within the package
291287
itself.
@@ -371,8 +367,6 @@ targets, this expansion is dependent on only the files of the package itself.
371367

372368
### Exports sugar
373369

374-
> Stability: 1 - Experimental
375-
376370
If the `"."` export is the only export, the [`"exports"`][] field provides sugar
377371
for this case being the direct [`"exports"`][] field value.
378372

@@ -397,8 +391,6 @@ can be written:
397391

398392
### Conditional exports
399393

400-
> Stability: 1 - Experimental
401-
402394
Conditional exports provide a way to map to different paths depending on
403395
certain conditions. They are supported for both CommonJS and ES module imports.
404396

@@ -477,8 +469,6 @@ order to support packages with conditional exports. For this reason, using
477469

478470
### Nested conditions
479471

480-
> Stability: 1 - Experimental
481-
482472
In addition to direct mappings, Node.js also supports nested condition objects.
483473

484474
For example, to define a package that only has dual mode entry points for
@@ -906,8 +896,6 @@ changes:
906896
description: Unflag `--experimental-modules`.
907897
-->
908898

909-
> Stability: 1 - Experimental
910-
911899
* Type: {string}
912900

913901
The `"type"` field defines the module format that Node.js uses for all
@@ -974,8 +962,6 @@ changes:
974962
description: Implement conditional exports.
975963
-->
976964

977-
> Stability: 1 - Experimental
978-
979965
* Type: {Object} | {string} | {string[]}
980966

981967
```json
@@ -1002,8 +988,6 @@ All paths defined in the `"exports"` must be relative file URLs starting with
1002988
added: v14.6.0
1003989
-->
1004990

1005-
> Stability: 1 - Experimental
1006-
1007991
* Type: {Object}
1008992

1009993
```json

0 commit comments

Comments
 (0)