@swc/core, a super-fast alternative to Babel, has released version 1.7.10, a minor update following version 1.7.9. Both versions share identical core dependencies on @swc/types and @swc/counter, suggesting stability in fundamental functionality. Similarly, their development dependencies (jest, cross-env, typescript, @napi-rs/cli) remain unchanged, indicating a consistent development environment and testing approach. The peer dependency @swc/helpers also persists, ensuring compatibility with existing SWC ecosystems. Crucially, the core logic relating to transpilation and code transformation appears consistent between the two versions, based on the dependencies.
The main difference lies within the optionalDependencies. Version 1.7.10 offers updated pre-built binaries for various platforms, including Darwin (x64 and arm64), Linux (x64 GNU and musl, arm64 GNU and musl, and arm-gnueabihf), and Windows (x64 MSVC, ia32 MSVC, and arm64 MSVC), all bumped to version 1.7.10. These platform-specific binaries cater to diverse operating systems and architectures, potentially optimizing performance by leveraging native code. The previous version, 1.7.9, included the corresponding binaries at version 1.7.9. The unpacked size of the new version is also slightly larger, going from 120125 to 120136, which suggests internal changes.
For developers choosing between the two, version 1.7.10 is the recommended choice, especially when deploying on specific platforms. It includes the latest optimizations catered to each system and might include bug fixes related to the platform specific binaries that were not available on the previous release. This approach allows SWC to deliver tailored performance advantages across different environments. Both versions are licensed under Apache-2.0 and actively maintained via GitHub.
The are not vulnerabilities for the version 1.7.10 of the package @swc/core