Skip to content

v5.0.0

Choose a tag to compare

@github-actions github-actions released this 10 Feb 06:24

5.0.0 (2021-02-10)

Features

  • compile TypeScript to ES2017 (c8a4d3d)

Reverts

  • Revert "feat(module): compile to ES6 modules instead of CommonJS" (2fbfa3d)
  • Revert "fix(module-resolution): enable esModuleInterop and allowSyntheticDefaultImports" (0f164d2)
  • Revert "feat(module): compile to ES2020 modules" (d00b9b2)

BREAKING CHANGES

  • TypeScript code now compiles to ES2017. This breaks compatibility with Node < 8.10
    and with very old browsers that do not support ES2017 syntax. If you need to support these older
    systems either override "compilerOptions": { "target": "es5" }, or use Babel to compile ES6+ code
    down to ES5.
  • Modules once again compile to CommonJS, not
    ES Modules. This change is backwards-compatible with v2.x but
    backwards-incompatible with v3.x and v4.x prereleases. Most
    downstream projects should be unaffected.