@swc/core versions 1.5.6 and 1.5.5 are incremental updates to this high-performance JavaScript and TypeScript compiler, positioned as a faster alternative to Babel. Both versions share the same core dependencies, including @swc/types and @swc/counter, ensuring a consistent foundation for code transformations. The devDependencies sections are strikingly similar, indicating a stable toolchain for development and testing, encompassing libraries like Jest, Acorn, and various Babel-related packages. This solid base simplifies integration into existing projects utilizing these popular tools.
A key difference lies within the optionalDependencies. Version 1.5.6 introduces updated platform-specific binaries (e.g., @swc/core-darwin-x64, @swc/core-linux-x64-gnu) all bumped to version "1.5.6", reflecting optimized builds for different operating systems and architectures. Version 1.5.5 had "1.5.5" as version number for the same optional dependencies. This hints at potential performance improvements or bug fixes tailored to these environments, which could be a deciding factor for developers targeting specific deployment platforms. Furthermore, the releaseDate field confirms version 1.5.6 is the newer release, deployed on May 14, 2024, following version 1.5.5 released on May 8, 2024.
Developers considering upgrading should pay close attention to the optional dependencies relevant to their target platforms. While the core API remains likely consistent, the platform-specific optimizations in version 1.5.6 promise a potentially enhanced experience. The rest of the configurations look exactly the same so probably it won't have any breaking change if the users upgrade from 1.5.5 to 1.5.6 version.
The are not vulnerabilities for the version 1.5.6 of the package @swc/core