Skip to content

Commit a7da993

Browse files
MylesBorinsdanielleadams
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 <[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]>
1 parent b133034 commit a7da993

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

doc/api/packages.md

Lines changed: 0 additions & 16 deletions
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.
@@ -369,8 +365,6 @@ targets, this expansion is dependent on only the files of the package itself.
369365

370366
### Exports sugar
371367

372-
> Stability: 1 - Experimental
373-
374368
If the `"."` export is the only export, the [`"exports"`][] field provides sugar
375369
for this case being the direct [`"exports"`][] field value.
376370

@@ -395,8 +389,6 @@ can be written:
395389

396390
### Conditional exports
397391

398-
> Stability: 1 - Experimental
399-
400392
Conditional exports provide a way to map to different paths depending on
401393
certain conditions. They are supported for both CommonJS and ES module imports.
402394

@@ -475,8 +467,6 @@ order to support packages with conditional exports. For this reason, using
475467

476468
### Nested conditions
477469

478-
> Stability: 1 - Experimental
479-
480470
In addition to direct mappings, Node.js also supports nested condition objects.
481471

482472
For example, to define a package that only has dual mode entry points for
@@ -904,8 +894,6 @@ changes:
904894
description: Unflag `--experimental-modules`.
905895
-->
906896

907-
> Stability: 1 - Experimental
908-
909897
* Type: {string}
910898

911899
The `"type"` field defines the module format that Node.js uses for all
@@ -972,8 +960,6 @@ changes:
972960
description: Implement conditional exports.
973961
-->
974962

975-
> Stability: 1 - Experimental
976-
977963
* Type: {Object} | {string} | {string[]}
978964

979965
```json
@@ -1000,8 +986,6 @@ All paths defined in the `"exports"` must be relative file URLs starting with
1000986
added: v14.6.0
1001987
-->
1002988

1003-
> Stability: 1 - Experimental
1004-
1005989
* Type: {Object}
1006990

1007991
```json

0 commit comments

Comments
 (0)