@swc/core offers a super-fast alternative to Babel, designed for efficient TypeScript and JavaScript compilation. Version 1.2.231 builds on the solid foundation of the previous stable release, 1.2.230, with subtle but potentially important improvements. Both versions share the same core dependencies crucial for cross-platform compatibility, featuring pre-built binaries for various operating systems and architectures, including Darwin (macOS), FreeBSD, Linux (GNU & Musl), Windows (msvc), and Android, ensuring seamless integration across diverse deployment environments. Developers will appreciate the consistent set of devDependencies, which include popular tools for testing (Jest, Mocha), linting (ESLint, Prettier), type checking (TypeScript), and code manipulation (Acorn, Terser).
The differences appear to lie mainly in the builds of the core dependencies themselves, as the main package version bumped from 1.2.230 to 1.2.231. Although the changes are subtle enough not to warrant changes in devDependencies, the newer version promises performance tweaks and stability improvements, with the unpacked size showing a slightly minor difference ( 597600 vs 596607). Upgrading to 1.2.231 is advisable, particularly for developers focused on optimization and reducing potential bugs in their build process as it has a more recent release date (August 14, 2022), making it the preferred choice for new projects and updates to existing ones that rely on @swc/core. As both library versions come with an Apache 2.0 license, they can be integrated into a variety of projects.
The are not vulnerabilities for the version 1.2.231 of the package @swc/core