Skip to content

Commit 53e27b3

Browse files
aduh95danielleadams
authored andcommitted
doc,esm: add history support info
Documents which versions of Node.js support which ESM-feature. PR-URL: #35395 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fbb9dd9 commit 53e27b3

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

doc/api/esm.md

+21
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
<!--introduced_in=v8.5.0-->
44
<!-- type=misc -->
5+
<!-- YAML
6+
added: v8.5.0
7+
changes:
8+
- version:
9+
- v14.13.0
10+
pr-url: https://github.com/nodejs/node/pull/35249
11+
description: Support for detection of CommonJS named exports.
12+
- version: v14.8.0
13+
pr-url: https://github.com/nodejs/node/pull/34558
14+
description: Unflag Top-Level Await.
15+
- version:
16+
- v13.2.0
17+
- v12.17.0
18+
pr-url: https://github.com/nodejs/node/pull/29866
19+
description: Loading ECMAScript modules no longer requires a command-line flag.
20+
- version: v12.0.0
21+
pr-url: https://github.com/nodejs/node/pull/26745
22+
description:
23+
Add support for ES modules using `.js` file extension via `package.json`
24+
`"type"` field.
25+
-->
526

627
> Stability: 1 - Experimental
728

doc/api/packages.md

+30
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
# Modules: Packages
22

33
<!-- type=misc -->
4+
<!-- YAML
5+
changes:
6+
- version:
7+
- v14.13.0
8+
pr-url: https://github.com/nodejs/node/pull/34718
9+
description: Add support for `"exports"` patterns.
10+
- version: v14.6.0
11+
pr-url: https://github.com/nodejs/node/pull/34117
12+
description: Add package `"imports"` field.
13+
- version:
14+
- v13.7.0
15+
- v12.16.0
16+
pr-url: https://github.com/nodejs/node/pull/31001
17+
description: Unflag conditional exports.
18+
- version:
19+
- v13.6.0
20+
- v12.16.0
21+
pr-url: https://github.com/nodejs/node/pull/31002
22+
description: Unflag self-referencing a package using its name.
23+
- version: v12.7.0
24+
pr-url: https://github.com/nodejs/node/pull/28568
25+
description:
26+
Introduce `"exports"` `package.json` field as a more powerful alternative
27+
to the classic `"main"` field.
28+
- version: v12.0.0
29+
pr-url: https://github.com/nodejs/node/pull/26745
30+
description:
31+
Add support for ES modules using `.js` file extension via `package.json`
32+
`"type"` field.
33+
-->
434

535
## Introduction
636

0 commit comments

Comments
 (0)