@swc/core version 1.3.91 is a minor update to the lightning-fast Babel alternative, bringing the total unpacked size to 731357 compared to 1.3.90's 728892. While the dependencies and devDependencies largely remain the same, the key distinction lies in how platform-specific binaries are handled. In version 1.3.90, @swc/core-darwin-x64, @swc/core-darwin-arm64, and other similar platform-targeted packages, were listed as direct dependencies, bundling them in the primary package. In contrast, version 1.3.91 shifts these platform-specific binaries to optionalDependencies.
This change offers several advantages for developers. By making these platform-specific packages optional, the core @swc/core package becomes smaller and more portable. This enhances the installation experience, particularly in environments where only a specific platform binary is needed. The installation process will only download the required binary, reducing unnecessary package bloat. The optionalDependencies configuration allows npm to gracefully degrade if a specific platform binary cannot be installed (e.g., due to unsupported architecture), providing a smoother experience across different operating systems and architectures. Developers should be aware of this change when upgrading from older versions and ensure their deployment scripts are configured to handle optional dependencies correctly, especially when targeting multiple platforms. This update demonstrates a commitment to optimizing package size and platform compatibility, making @swc/core even more appealing for performance-critical JavaScript transformations.
The are not vulnerabilities for the version 1.3.91 of the package @swc/core