SWR version 1.2.0 introduces several notable changes compared to version 1.1.2, primarily focusing on build tooling and developer experience improvements. One key difference lies in the shift towards using @swc/core and @swc/jest for faster compilation and testing, enhancing the development workflow but that could have some effect on the end user bundle. The 1.1.2 was using @swc-node/jest.This version also includes a direct dependency on swr itself (using link:./), likely for internal testing and development purposes, a detail not present in the older version. This might indicate a more modular approach to internal component management.
Furthermore, the updated version exhibits a larger unpacked size (226231 bytes vs. 162580 bytes) and a higher file count within the package (49 vs 46), hinting at potential additions of new features, enhanced documentation, or more comprehensive test suites. While both versions maintain compatibility with React versions 16, 17, and 18 as peer dependencies, demonstrating a commitment to supporting a wide range of React projects, the introduction of new dependencies suggests a commitment to improve performance and the dev experience. For developers, these changes translate to a potentially faster and more reliable development environment, coupled with a library that likely benefits from refined internal structures and possibly extended functionality.
The are not vulnerabilities for the version 1.2.0 of the package swr