Version 7.18.2 of @babel/plugin-proposal-decorators introduces a notable update to its core dependency @babel/helper-replace-supers, bumping it from version 7.16.7 to 7.18.2. This enhancement likely includes bug fixes and performance improvements related to how the plugin handles super calls within decorated classes, a critical aspect for developers utilizing class inheritance with decorators. Furthermore, @babel/helper-create-class-features-plugin sees an upgrade, moving from version 7.17.12 to 7.18.0. This suggests potential adjustments in how class features, such as private fields and static blocks, interact with decorators, promising more reliable and efficient compilation.
Developers should be aware that these dependency updates might introduce minor breaking changes if their existing code heavily relies on undocumented behavior or edge cases in the older versions of @babel/helper-replace-supers or @babel/helper-create-class-features-plugin. It is advisable to thoroughly test decorator-heavy codebases after upgrading. The @babel/core and @babel/traverse development dependencies are also bumped to version 7.18.2, ensuring alignment with the latest Babel ecosystem. The unpacked size of the package also increased negligibly, from 45516 to 45517. Overall, the upgrade from 7.17.12 to 7.18.2 focuses on refining the underlying helper utilities responsible for generating efficient and standards-compliant JavaScript from code using decorators, contributing to a smoother developer experience.
The are not vulnerabilities for the version 7.18.2 of the package @babel/plugin-proposal-decorators