Version 7.12.12 of @babel/plugin-transform-react-jsx introduces several key changes compared to the previous stable version 7.12.11. Most notably, it replaces the dependencies @babel/helper-builder-react-jsx and @babel/helper-builder-react-jsx-experimental, with @babel/types, @babel/helper-module-imports, and @babel/helper-annotate-as-pure. This signifies potentially a refactoring of how JSX is transformed into React function calls. The updated version also reflects an adjustment in the build process, as evidenced by the increased fileCount (6 vs. 4) and unpackedSize (22652 vs. 4371 bytes). It is important to note that version 7.12.11 included also "@babel/helper-builder-react-jsx-experimental":"^7.12.11" so the 7.12.12 might have removed an experimental feature.
For developers, this implies a potential shift in the internal mechanisms of JSX transformation which might impact performance characteristics or how the plugin interacts with other Babel plugins. The introduction of @babel/helper-annotate-as-pure could hint at optimizations related to marking React components as "pure," potentially improving performance in certain scenarios. Users upgrading from 7.12.11 should carefully test their code to ensure compatibility and investigate any performance differences arising from these internal changes. The move also signals a potential simplification by removing experimental feature. The update was released on 2020-12-23, approximately a week after the previous version, suggesting a quick follow-up to address issues or introduce further refinements.
The are not vulnerabilities for the version 7.12.12 of the package @babel/plugin-transform-react-jsx