@swc/core versions 1.4.1 and 1.4.2 are minor releases of a high-performance JavaScript and TypeScript compiler, designed as a faster alternative to Babel. Both versions share a common foundation, including core dependencies like @swc/types and @swc/counter, and a suite of development dependencies for testing, linting, and code formatting, such as Jest, Prettier, and TypeScript. A key detail for developers to note is the @swc/core dependency within devDependencies is pinned to version 1.2.220 in both releases, likely used for specific testing or compatibility scenarios within the development environment.
While the core functionality and developer experience appear largely consistent between these versions, a notable difference lies in the optional dependencies. Version 1.4.2 offers pre-built binaries for a range of platforms, including Darwin (x64 and arm64), Linux (x64 with GNU and musl, arm64 with GNU and musl, and arm-gnueabihf), and Windows (x64, ia32, and arm64 with MSVC). These pre-built binaries ensure that users can quickly get up and running on their specific operating system and architecture. In contrast, version 1.4.1 also has these optional dependencies but they are linked to version 1.4.1. The release date of version 1.4.2 is February 19, 2024, while version 1.4.1 was released on February 13, 2024. The file size unpacked of version 1.4.2 is slightly smaller than that of version 1.4.1, a difference of around 300 bytes. Developers should carefully compare the individual binary files of these optional dependencies to assess any performance or compatibility improvements relevant to their target deployment environments.
The are not vulnerabilities for the version 1.4.2 of the package @swc/core