Skip to content

Commit

Permalink
docs: make a note about target change
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Nov 21, 2022
1 parent 643cb80 commit b71e3f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/upgrade-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ new TextDecoder('utf-16le').decode(bin.value(true));
> **TL;DR**: TODO
TODO(NODE-4771): serializeFunctions bug fix makes function names outside the ascii range get serialized correctly

### TS "target" set to es2020

We have set our typescript compilation target to `es2020` which aligns with our minimum supported Node.js version 14+. The following is from the typescript release notes on es2020 support, so it's some of the syntax that can be expected to be preserved after compilation:

> This will preserve newer ECMAScript 2020 features like optional chaining, nullish coalescing, export * as ns, and dynamic import(...) syntax. It also means bigint literals now have a stable target below esnext.

0 comments on commit b71e3f4

Please sign in to comment.