Version 7.22.15 of @babel/plugin-proposal-decorators introduces subtle yet potentially impactful changes compared to version 7.22.10. Primarily, it upgrades its internal dependency @babel/helper-create-class-features-plugin from version 7.22.10 to 7.22.15. This suggests enhancements or bug fixes within the class features helper, possibly related to how decorators interact with class fields, methods, or accessors. For developers, this means potentially improved compatibility or stability when using decorators in conjunction with other modern JavaScript class features. Version 7.22.15 was released on September 4th, 2023, a month later than the previous one, version 7.22.10 (August 7th, 2023). This recent update could address newly discovered edge cases or performance bottlenecks related to decorator transformations.
While the core functionality remains the same—compiling class and object decorators to ES5—the underlying mechanisms might be more robust in the newer version. Developers relying heavily on decorators in their projects should consider upgrading to benefit from these improvements and the most up-to-date transformations. The unpacked size of the latest version (7.22.15) presents a marginal increase of ~15kB which is irrelevant to most of the consumers as is probably related to test files and other utilities. Carefully review changelogs and test your code after upgrading, especially if you're utilizing complex decorator patterns or interacting with other Babel plugins. If you are using the plugin in a project already, consider upgrading to the latest version.
The are not vulnerabilities for the version 7.22.15 of the package @babel/plugin-proposal-decorators