Skip to content

Commit

Permalink
doc,esm: add history support info
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
aduh95 authored and MylesBorins committed Nov 16, 2020
1 parent 66f8730 commit 985b96a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

<!--introduced_in=v8.5.0-->
<!-- type=misc -->
<!-- YAML
added: v8.5.0
changes:
- version:
- REPLACEME
pr-url: https://github.com/nodejs/node/pull/35249
description: Support for detection of CommonJS named exports.
- version:
- v12.17.0
pr-url: https://github.com/nodejs/node/pull/29866
description: Loading ECMAScript modules no longer requires a command-line flag.
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/26745
description:
Add support for ES modules using `.js` file extension via `package.json`
`"type"` field.
-->

> Stability: 1 - Experimental
Expand Down
27 changes: 27 additions & 0 deletions doc/api/packages.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
# Modules: Packages

<!-- type=misc -->
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/34718
description: Add support for `"exports"` patterns.
- version: v12.19.0
pr-url: https://github.com/nodejs/node/pull/34117
description: Add package `"imports"` field.
- version:
- v12.16.0
pr-url: https://github.com/nodejs/node/pull/31001
description: Unflag conditional exports.
- version:
- v12.16.0
pr-url: https://github.com/nodejs/node/pull/31002
description: Unflag self-referencing a package using its name.
- version: v12.7.0
pr-url: https://github.com/nodejs/node/pull/28568
description:
Introduce `"exports"` `package.json` field as a more powerful alternative
to the classic `"main"` field.
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/26745
description:
Add support for ES modules using `.js` file extension via `package.json`
`"type"` field.
-->

## Introduction

Expand Down

0 comments on commit 985b96a

Please sign in to comment.