The @babel/plugin-proposal-decorators package, a crucial tool for transpiling class and object decorators to ES5, saw a notable update from version 7.12.1 to 7.12.12. Both versions share the core purpose of enabling decorator syntax in JavaScript, compiling it for older environments that lack native support. They rely on the same fundamental dependencies: @babel/helper-plugin-utils, @babel/plugin-syntax-decorators, and @babel/helper-create-class-features-plugin, ensuring consistent core functionality for handling decorators. Developers upgrading will find that the package's primary function remains the same: seamlessly transforming decorator syntax for broader browser compatibility.
The key differences lie in thedevDependencies. Version 7.12.12 introduces several new additions: babel-plugin-polyfill-es-shims and object.getownpropertydescriptors. These additions point towards enhanced testing and compatibility, indicating a refinement in how the plugin handles edge cases and ensures consistent behavior across various JavaScript environments. Besides those 7.12.12 received an update for @babel/core, while 7.12.1 has no devDependencies version specified so probably is using the latest available at release time, but not explicitly defined.
The update provides a more robust and reliable solution for developers using decorators, especially in projects targeting a wide range of browsers. Consequently, version 7.12.12 implies an increase in stability and refined compatibility, making it a recommended upgrade for those seeking the most current and well-tested decorator support within the Babel ecosystem.
The are not vulnerabilities for the version 7.12.12 of the package @babel/plugin-proposal-decorators