@swc/core is a high-performance JavaScript and TypeScript compiler designed as a faster alternative to Babel. Version 1.2.116 introduces incremental improvements over the previous stable version, 1.2.115, primarily focusing on core dependencies related to different operating systems and architectures. Both versions share the same core purpose: accelerating the build process for web applications. Developers will appreciate the consistent set of features and capabilities for compiling modern JavaScript and TypeScript code.
The key difference lies in the platform-specific dependencies. Both versions feature @swc/core-* packages for various environments, including Darwin (macOS), FreeBSD, Linux, and Windows across different architectures (x64, ARM64, ia32). The core dependencies, like @node-rs/helper, remain largely unchanged, ensuring compatibility and stability. The devDependencies offer a comprehensive toolkit for testing and development, encompassing popular libraries like Jest, React, and TypeScript, indicating a robust testing environment. The optionalDependencies mirror the dependencies, which suggests that these platform-specific packages will be downloaded based on the platform used and the core package will run without throwing an error if they are not present.
For developers considering incorporating SWC into their workflow, both versions offer a compelling solution for speeding up compilation times. While the functional differences between the two versions might be minimal, staying up-to-date with the latest release ensures that you're leveraging the most recent performance tweaks and bug fixes within the SWC ecosystem. The consistency in devDependencies also allows developers to use the same tools to test both versions of the packages making upgrades less painful.
The are not vulnerabilities for the version 1.2.116 of the package @swc/core