@swc/core is a high-performance JavaScript and TypeScript compiler, aiming to be a faster alternative to Babel. Version 1.4.6 was released on March 8, 2024, following version 1.4.5 released just two days prior on March 6, 2024.
Both versions share the same core dependencies, including @swc/types and @swc/counter, ensuring consistent functionality. Their extensive devDependencies lists are also identical, featuring tools for testing (Jest, Mocha, Expect), linting (CSPell, js-beautify, lint-staged), building (ts-node, typescript), and code formatting (Prettier). Crucially, they both still rely on an older version of @swc/core as a devDependency which may become a problem.
The primary difference lies in the optionalDependencies. While both versions include platform-specific builds (darwin-x64, darwin-arm64, linux-x64-gnu/musl, win32-x64/ia32/arm64-msvc, linux-arm-gnueabihf), the version number for each optional dependency reflects the core version. For example, version 1.4.6 features @swc/core-darwin-x64":"1.4.6", while version 1.4.5 has @swc/core-darwin-x64":"1.4.5". This ensures the correct native binary is used for specific operating systems and architectures.
The relatively short time between releases suggests that version 1.4.6 likely addresses minor bug fixes or platform-specific updates identified shortly after the release of 1.4.5. For developers, this highlights the active maintenance of the project. Choosing the latest version is advisable for benefit of stability and potentially performance improvements on certain platforms.
The are not vulnerabilities for the version 1.4.6 of the package @swc/core