@swc/core is a high-performance JavaScript and TypeScript compiler written in Rust, designed as a faster alternative to Babel. Version 1.7.19 is a recent update, released on August 28, 2024, succeeding version 1.7.18, which was released on August 24, 2024. Both versions share identical core dependencies, @swc/types and @swc/counter, and development dependencies like Jest, cross-env, TypeScript, and @napi-rs/cli. Similarly, their peer dependencies remain consistent, requiring @swc/helpers. They both maintain the same license (Apache-2.0), repository, author (강동윤), and funding links.
The primary difference lies in the optional dependencies, where the version number of each platform-specific binary (e.g., @swc/core-darwin-x64, @swc/core-linux-x64-gnu, etc.) is updated to reflect the core package version, moving from 1.7.18 to 1.7.19. This indicates that the core compilation logic and potentially platform-specific optimizations or bug fixes have been updated in the new release. While the file count in the distributed tarball remains at 12, the unpacked size has slightly decreased from 120230 bytes in 1.7.18 to 118794 bytes in 1.7.19, suggesting potential improvements in code size or resource usage. Developers should upgrade to version 1.7.19 to benefit from the latest improvements, bug fixes, and potential performance enhancements within the SWC ecosystem, ensuring compatibility with platform-specific targets and leveraging the most up-to-date compilation features. Because the date change is very recent, it would make sense to check out the changelog in the official website. The package description is super-fast alternative for babel.
The are not vulnerabilities for the version 1.7.19 of the package @swc/core