Style-loader has released version 2.0.0, building upon the foundation of the previous stable version, 1.3.0. Both versions are designed as webpack loaders that allow developers to inject CSS into their web applications. A notable change lies in the dependencies. Version 2.0.0 updates schema-utils from version 2.7.0 to 3.0.0. This underlying utility library is responsible for validating options against a schema, ensuring that the loader is configured correctly. Developers upgrading should verify the new schema and update their configurations accordingly if there are any breaking changes.
While both versions maintain similar developer dependencies required for building and testing the package, such as Babel, ESLint, Jest, and webpack itself, a critical difference is the sass version. Version 1.3.0 used sass@1.26.11 while Version 2.0.0 upgrades it to sass@1.27.0. Although seemingly minor, such patch updates can bring performance improvements, bug fixes, or even subtly alter CSS processing. Additionally, the core functionality of injecting styles remains consistent between the two versions. The peer dependency on webpack stays the same, indicating compatibility with webpack versions 4 and 5. Developers should note the slight increase in unpackedSize and the release dates which indicate roughly a week between versions potentially containing important fixes.
The are not vulnerabilities for the version 2.0.0 of the package style-loader