Packages

@babel/plugin-proposal-decorators

8.0.2 · 18 Jun 2026MIT42.1M / weekRepositoryHomepagenpmAtom feed

Your version

7.4.0

19 Mar 2019Where it was published

7.29.7 is the newest release of 7.x.

In short

12 new17 fixed15 changed5 internal

Release note

:eyeglasses: Spec Compliance

  • babel-parser: Add readonly to TypeScript type modifier (@tanhauhau)

  • babel-parser: TypeScript Constant contexts (@tanhauhau)

  • babel-parser: Update identifier parsing per Unicode v12 (@mathiasbynens)

  • babel-parser: Allow any reserved word in export {} from specifiers (@danez)

  • babel-parser: [TS] Disallow type casts in arrow parameters (@nicolo-ribaudo)

  • babel-parser: Refactor parsing object members (@danez)

  • babel-parser: Disallow duplicate params in methods (@danez)

  • babel-parser: Treat for loop body as part of loop scope (@danez)

  • babel-parser, babel-plugin-transform-typescript: Allow context type annotation on getters/setters (@matt-tingen)

  • babel-plugin-proposal-unicode-property-regex, babel-plugin-transform-dotall-regex, babel-plugin-transform-unicode-regex: Update babel-plugin-proposal-unicode-property-regex for Unicode v12 (@mathiasbynens)

  • babel-generator, babel-parser, babel-plugin-transform-flow-strip-types, babel-plugin-transform-modules-systemjs: Check exported bindings are defined (@danez)

  • babel-generator, babel-parser, babel-plugin-transform-classes, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types, babel-plugin-transform-new-target: Introduce scope tracking in the parser (@danez)

:rocket: New Feature

  • babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-proposal-decorators, babel-plugin-proposal-object-rest-spread, babel-plugin-transform-runtime, babel-plugin-transform-typescript, babel-polyfill, babel-preset-env, babel-register, babel-runtime-corejs2, babel-runtime-corejs3: Update to core-js@3 (@zloirock)

  • babel-template: Add %%placeholders%% support to @babel/template (@nicolo-ribaudo)

  • babel-parser, babel-plugin-proposal-partial-application: Partial application plugin (@byara)

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

  • babel-generator, babel-types: Add placeholders support to @babel/types and @babel/generator (@nicolo-ribaudo)

  • babel-parser: Add parser support for placeholders (@nicolo-ribaudo)

  • babel-generator, babel-parser, babel-plugin-syntax-partial-application, babel-types: Partial Application Syntax: Stage 1 (@byara)

:bug: Bug Fix

  • babel-helper-create-class-features-plugin, babel-helper-replace-supers, babel-plugin-proposal-private-methods: Fix super Method Calls in Class Private Methods (@tim-mc)

  • babel-parser: Correctly parse TS TypeAssertions around arrow functions (@danez)

  • babel-parser: Fix scope check for 2nd+ lexical bindings (@danez)

  • babel-parser: [TS] Correctly forget awaits after parsing async arrows with type args (@nicolo-ribaudo)

  • babel-parser: Fix strict mode prescanning with EmptyStatement (@danez)

  • babel-core, babel-plugin-transform-for-of: Correctly preserve reference to array in for-of loop (@danez)

  • babel-plugin-transform-typescript: [plugin-transform-typescript] Fix transpiling of TS abstract classes with decorators (@agoldis)

  • babel-traverse, babel-types: Fix TSFunctionType visitors definition (@penielse)

  • babel-plugin-proposal-object-rest-spread: [proposal-object-rest-spread] fix templateLiteral in extractNormalizedKeys (@pnowak)

  • babel-plugin-transform-modules-systemjs: System modules - Hoist classes like other variables (@guybedford)

  • babel-generator, babel-parser: Disallow escape sequences in contextual keywords (@danez)

  • babel-helper-split-export-declaration, babel-plugin-transform-modules-commonjs, babel-traverse: Don't add params of anonymous exported function decls to the outer scope (@nicolo-ribaudo)

  • babel-plugin-transform-parameters, babel-plugin-transform-typescript, babel-types: [plugin-transform-typescript] Strip type imports used in Enums and object types (@echenley)

  • babel-helper-call-delegate, babel-plugin-transform-parameters: Don't loose "this" in helper-call-delegate (@nicolo-ribaudo)

  • babel-plugin-proposal-object-rest-spread, babel-plugin-transform-modules-commonjs, babel-traverse, babel-types: Mark FOO in "var { x: FOO }˝ as a binding, not as a reference (@nicolo-ribaudo)

  • babel-preset-env: preset-env: Sort versions before determining lowest (@jridgewell)

  • babel-helper-define-map, babel-helper-hoist-variables, babel-parser, babel-plugin-proposal-object-rest-spread, babel-plugin-transform-block-scoping, babel-plugin-transform-destructuring, babel-plugin-transform-modules-systemjs, babel-traverse, babel-types: Use for..of Object.keys instead of for..in (@nicolo-ribaudo)

:nail_care: Polish

  • babel-parser: Remove input and length from state (@danez)

  • babel-parser: Reorganize token types and use a map for them (@danez)

  • babel-parser: Remove always false param allowExpressionBody (@danez)

  • babel-standalone, babel-types: Make babel-standalone an ESModule and enable flow (@danez)

  • babel-generator: change var name for coherence (@tanohzana)

:house: Internal

  • Other

    • Publish to npm using a GitHub action (@nicolo-ribaudo)

    • Switch from rollup-stream to rollup (@danez)

    • Add WarningsToErrorsPlugin to webpack to avoid missing build problems on CI (@danez)

    • Update dependencies (@danez)

    • Add editorconfig for Makefile (@danez)

    • Update test262 (@danez)

    • Minify bundles on circle for repl (@danez)

  • babel-register: Remove dependency on home-or-tmp package (@AmirS)

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.