@swc/core is a super-fast modern JavaScript and TypeScript compiler, positioning itself as a performant alternative to Babel. Comparing versions 1.7.42 and 1.7.40 reveals subtle yet important distinctions, primarily within their optional dependencies. Both versions share identical core dependencies: @swc/types and @swc/counter, and development dependencies like Jest, cross-env, TypeScript, and @napi-rs/cli, used for testing, cross-platform compatibility, TypeScript support, and native addon building, respectively. They also maintain the same peer dependency on @swc/helpers, indicating a continued reliance on shared helper functions.
The key difference lies in the versioning of the optional platform-specific binaries. Version 1.7.42 includes optional dependencies such as @swc/core-darwin-x64, @swc/core-linux-x64-gnu, and others, all explicitly set to version "1.7.42". In contrast, version 1.7.40 contains the same optional dependencies, but their versions are set to "1.7.40". This means version 1.7.42 potentially bundles updated pre-compiled binaries optimized or patched for specific operating systems and architectures. The bump in version of the optional platform specific dependencies might include performance improvements, bug fixes, or support for newer environments. For developers, this suggests an upgrade to 1.7.42 could provide enhanced stability, compatibility, and possibly better performance across different platforms, especially when utilizing the pre-compiled binaries for their target operating system. The releaseDate also shows that v1.7.42 was released more recently than v1.7.40 (October 31, 2024 vs October 26, 2024).
The are not vulnerabilities for the version 1.7.42 of the package @swc/core