Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decorators updates for 7.19.0 #14859

Merged
merged 3 commits into from Sep 5, 2022
Merged

Decorators updates for 7.19.0 #14859

merged 3 commits into from Sep 5, 2022

Commits on Sep 2, 2022

  1. Configuration menu
    Copy the full SHA
    ea58127 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1aa04a2 View commit details
    Browse the repository at this point in the history
  3. Add 2022-03 decorators version (stage 3) (#14836)

    * Copy `applyDecs`->`applyDecs2203` helper, and `2021-12`->`2022-03` tests
    
    * Avoid conflicting fn names in helpers
    
    * Add `2022-03` decorators version
    
    * Rename `isPrivate`/`isStatic`->`private`/`static`
    
    * Disallow `@(...)()` in 2022-03 decorators
    
    This commits add a new `allowCallParenthesized` option to the decorators parser plugin:
    when set to `false`, `@(...)()`-style decorators are allowed to match the stage 3
    proposal presented in March 2022.
    
    It will default to `false` in Babel 8 (we might just remove the option)
    
    * Disallow `decoratorsBeforeExport` option with 2022-03 decorators
    
    This aligns with the Babel 8 behavior
    
    * Remove `.initializer` fallback for accessor properties
    
    * Remove `.initializer` fallback for accessor properties
    
    * Expose `.access` for public class elements
    
    * Remove `getMetadata`/`setMetadata`
    
    * Make the parser error recoverable
    
    * Print necessary parentheses in generator
    nicolo-ribaudo committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    637554a View commit details
    Browse the repository at this point in the history