Packages

@babel/preset-typescript

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

Your version

7.6.0

6 Sep 2019Where it was published

7.29.7 is the newest release of 7.x.

In short

11 new2 faster20 fixed4 changed1 internal

Release note

:eyeglasses: Spec Compliance

  • babel-generator, babel-parser: Fix parenthesis for nullish coalescing (@vivek12345)

  • babel-helpers, babel-plugin-transform-block-scoping, babel-traverse: Fix tdz checks in transform-block-scoping plugin (@nicolo-ribaudo)

:rocket: New Feature

  • babel-core: feat(errors): validate preset when filename is absent (@JLHwung)

  • babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-proposal-private-methods: Class Private Static Accessors (@tim-mc)

  • babel-generator, babel-parser, babel-types: V8intrinsic syntax plugin (@JLHwung)

  • babel-preset-typescript: Allow setting 'allowNamespaces' in typescript preset (@dsgkirkby)

  • babel-parser: Do not register ambient classes to the TS scope (@nicolo-ribaudo)

  • babel-types: Add static to class property builder (@yuri-karadzhov)

:bug: Bug Fix

  • babel-helpers, babel-plugin-transform-destructuring, babel-plugin-transform-modules-commonjs, babel-preset-env: fix: early return when instance is not iterable (@JLHwung)

  • babel-plugin-transform-runtime: Add supports for polyfill computed methods (@rhyzx)

  • babel-preset-env: Don't polyfill when evaluation is not confident (@rhyzx)

  • babel-preset-env: [preset-env] Include / exclude module plugins properly (@AdamRamberg)

  • babel-preset-env: Replace es.string.reverse with es.array.reverse (@epicfaace)

  • babel-plugin-transform-named-capturing-groups-regex: fix: transform name capturing regex once (@JLHwung)

  • babel-types: fix typescript for babel-types (@tanhauhau)

  • babel-types: Add a builder definition including name for tsTypeParameter (@deificx)

  • babel-parser: Refactor trailing comment adjustment (@banga)

  • babel-parser: Retain trailing comments in array expressions (@banga)

  • babel-parser: fix: assign trailing comment to ObjectProperty only when inside an ObjectExpression (@JLHwung)

  • babel-parser, babel-types: Don't allow JSXNamespacedName to chain (@jridgewell)

  • babel-generator, babel-plugin-transform-typescript, babel-types: Add TSBigIntKeyword to @babel/types (@nicolo-ribaudo)

  • babel-core, babel-types: Do not delete "fake" source map comments from strings (@nicolo-ribaudo)

  • babel-plugin-transform-flow-comments: Fix flow comments plugin issues (@zaygraveyard)

  • babel-helpers, babel-plugin-transform-react-constant-elements: [fix] jsx helper calls order (@Sinewyk)

  • babel-plugin-proposal-decorators: fix: register inserted class declaration (@thiagoarrais)

  • babel-plugin-proposal-do-expressions, babel-traverse: Do expressions transform for switch statements (@tanhauhau)

  • babel-plugin-proposal-do-expressions, babel-traverse: remove finally from completion record in try statement (@tanhauhau)

  • babel-helpers, babel-plugin-transform-named-capturing-groups-regex: fix capturing group for matchAll (@tanhauhau)

:nail_care: Polish

  • babel-plugin-transform-runtime, babel-preset-env: Don't allow instance properties transformation on namespace (@rhyzx)

:house: Internal

  • babel-register: Remove core-js dependency from @babel/register (@coreyfarrell)

  • babel-helper-fixtures, babel-helper-transform-fixture-test-runner, babel-preset-env: Use "validateLogs" for preset-env's debug fixtures (@nicolo-ribaudo)

  • babel-parser: Refactor trailing comment adjustment (@banga)

  • babel-helper-fixtures, babel-helper-transform-fixture-test-runner, babel-plugin-proposal-dynamic-import, babel-preset-env: Allow testing logs with @babel/helper-transform-fixture-test-runner (@nicolo-ribaudo)

  • babel-runtime-corejs2, babel-runtime, babel-types: Commit generated code (@JLHwung)

  • babel-cli, babel-core, babel-generator, babel-helper-create-class-features-plugin, babel-helper-fixtures, babel-node, babel-parser, babel-plugin-proposal-do-expressions, babel-plugin-proposal-pipeline-operator, babel-plugin-transform-modules-commonjs, babel-plugin-transform-runtime, babel-preset-env, babel-standalone, babel-template, babel-traverse, babel-types: Update dev dependencies and fix linting errors (@danez)

  • babel-cli: added flow to babel cli (@Letladi)

:running_woman: Performance

  • babel-helpers, babel-plugin-transform-modules-commonjs, babel-preset-env: Improves the logic to import objects in helpers (@ifsnow)

  • babel-traverse: perf: always return void 0 as undefined node (@JLHwung)

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.