8000 v14.19.0 proposal by richardlau · Pull Request #41696 · nodejs/node · GitHub
[go: up one dir, main page]

Skip to content

v14.19.0 proposal #41696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Feb 1, 2022
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
607bc74
module: support pattern trailers
guybedford Aug 2, 2021
2c36596
module: support pattern trailers for imports field
guybedford Sep 8, 2021
0d448ea
crypto: make FIPS related options always available
voxik Aug 25, 2020
cede1f2
deps: add -fno-strict-aliasing flag to libuv
danbev Nov 16, 2021
59da7c1
deps: upgrade openssl sources to 1.1.1m
richardlau Dec 14, 2021
3089326
deps: update archs files for OpenSSL-1.1.1m
richardlau Dec 14, 2021
2755d39
deps: update ICU to 70.1
targos Oct 29, 2021
b050c65
src: add option to disable loading native addons
d3lm Sep 13, 2021
a90defe
esm: make `process.exit()` default to exit code 0
MoonBall Jan 14, 2022
e903798
doc: add note regarding unfinished TLA
aduh95 Jan 10, 2022
5971d58
doc: add missing YAML tag in `esm.md`
aduh95 Jan 14, 2022
b85aa5a
deps: upgrade npm to 6.14.16
ruyadorno Jan 19, 2022
737df75
deps: add corepack
arcanis Sep 28, 2020
cd20ecc
deps: upgrade Corepack to 0.10
arcanis Oct 8, 2021
0231ffa
build: add `--without-corepack`
jonahsnider Dec 5, 2021
fc328f1
8000 fs: nullish coalescing to respect zero positional reads
mihilmy Nov 3, 2021
f74fe2a
src: make napi_create_reference accept symbol
JckXia Aug 29, 2021
c1695ac
tools: update certdata.txt
richardlau Oct 1, 2021
5389b8a
crypto: update root certificates
richardlau Oct 1, 2021
625be75
lib: add return value for DC channel.unsubscribe
simon-id Oct 19, 2021
004eafb
lib: add unsubscribe method to non-active DC channels
simon-id Oct 19, 2021
4477da8
doc: fix corepack grammar for `--force` flag
styfle Nov 8, 2021
9beb4f8
2022-02-01, Version 14.19.0 'Fermium' (LTS)
richardlau Jan 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: add note regarding unfinished TLA
PR-URL: #41434
Backport-PR-URL: #41518
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
aduh95 authored and richardlau committed Jan 25, 2022
commit e903798ae1c1d29c35f57d53fc216e0b7ec2891b
27 changes: 23 additions & 4 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,16 @@ would provide the exports interface for the instantiation of `module.wasm`.

## Top-level `await`

<!--
added: v14.8.0
-->

> Stability: 1 - Experimental

The `await` keyword may be used in the top level (outside of async functions)
within modules as per the [ECMAScript Top-Level `await` proposal][].
The `await` keyword may be used in the top level body of an ECMAScript module.

Assuming an `a.mjs` with

<!-- eslint-skip -->
```js
export const five = await Promise.resolve(5);
```
Expand All @@ -572,6 +574,23 @@ console.log(five); // Logs `5`
node b.mjs # works
```

If a top level `await` expression never resolves, the `node` process will exit
with a `13` [status code][].

```js
import { spawn } from 'child_process';
import { execPath } from 'process';

spawn(execPath, [
'--input-type=module',
'--eval',
// Never-resolving Promise:
'await new Promise(() => {})',
]).once('exit', (code) => {
console.log(code); // Logs `13`
});
```

<i id="esm_experimental_loaders"></i>

## Loaders
Expand Down Expand Up @@ -1344,7 +1363,6 @@ success!
[Conditional exports]: packages.md#packages_conditional_exports
[Core modules]: modules.md#modules_core_modules
[Dynamic `import()`]: https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports
[ECMAScript Top-Level `await` proposal]: https://github.com/tc39/proposal-top-level-await/
[ES Module Integration Proposal for Web Assembly]: https://github.com/webassembly/esm-integration
[Node.js Module Resolution Algorithm]: #esm_resolver_algorithm_specification
[Terminology]: #esm_terminology
Expand Down Expand Up @@ -1372,6 +1390,7 @@ success!
[cjs-module-lexer]: https://github.com/guybedford/cjs-module-lexer/tree/1.2.2
[custom https loader]: #esm_https_loader
[special scheme]: https://url.spec.whatwg.org/#special-scheme
[status code]: process.md#process_exit_codes
[the official standard format]: https://tc39.github.io/ecma262/#sec-modules
[transpiler loader example]: #esm_transpiler_loader
[url.pathToFileURL]: url.md#url_url_pathtofileurl_path
0