@swc/core offers a super-fast alternative to Babel, designed for speed and efficiency in JavaScript and TypeScript compilation. Comparing versions 1.4.4 and 1.4.2 reveals subtle but important updates. Both versions share the same core dependencies like @swc/types and @swc/counter, as well as a broad set of devDependencies ranging from testing frameworks like Jest and Mocha, to utilities such as Lodash and Terser. The TypeScript version supported is ^5.3.3 in both versions. Also tooling such as Prettier, and Babel related tools (@babel/core, @babel/preset-env etc.) are consistent.
A key difference appears in the optionalDependencies section, where the specific version numbers for platform-specific binaries (@swc/core-\*) are bumped from 1.4.2 to 1.4.4, aligning with the main package version. This indicates targeted updates or bug fixes within those platform-specific builds. Furthermore, 1.4.4 was released on March 5, 2024, while 1.4.2 was released on February 19, 2024, making 1.4.4 the more recent release benefitting from nearly two weeks of potential fixes and improvements.
Developers should upgrade to 1.4.4 to ensure they are using the most up-to-date and potentially more stable builds for their target platforms. While the core functionalities remain consistent, these incremental updates often address critical bugs and performance optimizations, ensuring a smoother and more reliable compilation process with swc. The difference in unpacked size (212131 vs 212413) is minor but might reflect changes in the compiled output or included assets.
The are not vulnerabilities for the version 1.4.4 of the package @swc/core