The @babel/plugin-proposal-decorators package, crucial for enabling the use of class and object decorators in JavaScript projects targeting older environments, has seen a recent update from version 7.27.1 to 7.28.0. Both versions maintain the core functionality of compiling decorator syntax to ES5 compatible code, ensuring broader browser support. Examining the package details reveals a few key changes that developers should be aware of.
While the dependencies on @babel/helper-plugin-utils, @babel/plugin-syntax-decorators, and @babel/helper-create-class-features-plugin remain consistent, the devDependencies have undergone notable upgrades. @babel/core and @babel/traverse have both been bumped from version 7.27.1 to 7.28.0, aligning the plugin with the latest Babel core functionalities. Furthermore, babel-plugin-polyfill-es-shims has been updated from 0.10.4 to 0.10.8. These updates likely include bug fixes, performance improvements, and enhanced compatibility with the broader Babel ecosystem.
Developers already using decorators in their projects will want to upgrade to @babel/plugin-proposal-decorators@7.28.0 to benefit from these improvements, ensuring a smoother compilation process and leveraging the latest features offered by Babel. The core functionality remains the same, meaning that existing decorator syntax should continue to work as expected. This upgrade process should be fairly seamless due to the consistent nature of non dev dependencies. The release dates however, appear problematic since they are in the future.
The are not vulnerabilities for the version 7.28.0 of the package @babel/plugin-proposal-decorators