The @babel/plugin-proposal-decorators package, crucial for transforming ES class and object decorators into ES5-compatible code, saw a minor, yet important update from version 7.1.6 to 7.2.0. Released roughly three weeks apart, these versions offer developers the ability to leverage the decorator syntax, enhancing code readability and maintainability through metaprogramming.
The key difference lies in the updated dependency on @babel/plugin-syntax-decorators. Version 7.1.6 relied on @babel/plugin-syntax-decorators version 7.1.0, while version 7.2.0 bumps this dependency up to version 7.2.0. The new @babel/plugin-syntax-decorators may include support for newer or fixed decorator syntax features.
Furthermore, @babel/core version was updated from 7.1.6 to 7.2.0 within the devDependencies. These changes are important for those using @babel/plugin-proposal-decorators . While the core functionality remains consistent, developers upgrading should be mindful of the minimal unpacked size increase (18830 to 18863) and ensure compatibility with their existing Babel configuration, especially considering the peer dependency on @babel/core remains at "^7.0.0-0". Upgrading ensures they benefit from the latest syntax parsing and potential bug fixes within the decorator syntax itself.
The are not vulnerabilities for the version 7.2.0 of the package @babel/plugin-proposal-decorators