Packages

@babel/preset-typescript

8.0.7 · 7 Oct 2026MIT79.9M / weekRepositoryHomepagenpmAtom feed

Your version

7.15.0

4 Aug 2021Where it was published

7.29.7 is the newest release of 7.x.

In short

13 new5 fixed1 changed1 internal

Release note

Thanks @a-tarasyuk and @gausie for your first PRs!

:eyeglasses: Spec Compliance

  • babel-parser: feat(ts): raise error for abstract property with initializer (@fedeci)

:rocket: New Feature

  • babel-parser: Add attachComment parser option to disable comment attachment (@JLHwung)

  • babel-standalone: standalone: update preset-stage-* (@sosukesuzuki)

  • babel-standalone: feat: support hack pipeline in @babel/standalone (@JLHwung)

  • babel-parser, babel-preset-env: Enable top-level await parsing by default (@nicolo-ribaudo)

  • babel-plugin-transform-typescript, babel-preset-typescript: Support TypeScript const enums (@nicolo-ribaudo)

  • babel-plugin-transform-typescript: feat(typescript): implement namespace alias (@colinaaa)

  • babel-core, babel-helper-create-class-features-plugin, babel-helper-module-transforms, babel-plugin-transform-modules-commonjs: feat: add noIncompleteNsImportDetection assumption to plugin-transform-modules-commonjs (@fedeci)

  • babel-plugin-transform-react-display-name: Add display name after create context (@JLHwung)

  • babel-parser, babel-plugin-proposal-pipeline-operator, babel-plugin-syntax-pipeline-operator: Hack-pipe proposal with % topic token (@js-choi)

  • babel-generator, babel-parser, babel-plugin-proposal-pipeline-operator, babel-plugin-syntax-pipeline-operator, babel-traverse, babel-types: Add support for the "Hack" pipeline proposal (@js-choi)

  • babel-plugin-transform-runtime: Expose @babel/eslint-parser/experimental-worker (@nicolo-ribaudo)

  • babel-compat-data, babel-helper-compilation-targets, babel-preset-env: Add support for rhino as a compilation target (@gausie)

  • babel-compat-data, babel-parser, babel-preset-env: Enable ergonomic brand checks (#priv in) by default (@nicolo-ribaudo)

:bug: Bug Fix

  • babel-parser, babel-plugin-transform-typescript: [ts] support optional chain call with generic (@lala7573)

  • babel-plugin-transform-typescript: Handle typescript function overloading in a default export (@tony-go)

  • babel-parser: Fix %== parsing in hack pipes (@nicolo-ribaudo)

  • babel-parser: parser: Fix Hack/smart-pipe error positions (@js-choi)

  • babel-parser: fix(ts): raise error for export default interface {} (@a-tarasyuk)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.