Skip to content

Commit 985b96a

Browse files
aduh95MylesBorins
authored andcommitted
doc,esm: add history support info
Documents which versions of Node.js support which ESM-feature. Backport-PR-URL: #35757 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 66f8730 commit 985b96a

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

doc/api/esm.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

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

623
> Stability: 1 - Experimental
724

doc/api/packages.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
# Modules: Packages
22

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

532
## Introduction
633

0 commit comments

Comments
 (0)