@swc/core, a blazing-fast Babel alternative, has a new version, 1.7.1, released just days after version 1.7.0. While both versions share the same core mission of providing high-performance JavaScript and TypeScript compilation, there are subtle yet important changes for developers to consider.
The most significant difference lies in the updated dependency on @swc/types. Version 1.7.1 now relies on @swc/types": "^0.1.12", while 1.7.0 used @swc/types": "^0.1.9". This suggests improvements or bug fixes within the type definitions used internally by SWC, which may indirectly impact developers using SWC for complex transformations or custom plugins. Developers should consult the changelog for @swc/types to understand the specific changes introduced by this update.
The optional dependencies, which provide platform-specific binaries, have been updated to version 1.7.1 across the board. The core functionality and development dependencies (jest, cross-env, typescript, and @napi-rs/cli) remain consistent between the two releases. Both versions also maintain the same peer dependency on @swc/helpers. The unpacked size has a minor increasing from 120124 to 120125. The releaseDate differs significantly, reflecting the time of publication to the npm registry. These updates across different platform binaries suggest bug fixes or target specific improvements relevant to each platform. Developers targeting diverse platforms (Windows, macOS, Linux, different architectures) should upgrade to the latest version to benefit from these platform-specific enhancements.
The are not vulnerabilities for the version 1.7.1 of the package @swc/core