Sinon.js, a popular JavaScript testing library offering spies, stubs, and mocks, released versions 12.0.0 and 11.1.2, with notable differences. Both versions share core dependencies like diff, nise, supports-color, @sinonjs/samsam, @sinonjs/commons, and standard development dependencies for testing, linting, and building. However, version 12.0.0 upgrades @sinonjs/fake-timers dependency to version 8.1.0, compared to version 7.1.2 in 11.1.2, potentially introducing new features or bug fixes in fake timers. Furthermore, version 12.0.0 introduces @sinonjs/referee as a dev dependency.
The most striking difference lies in the dist object, indicating the package's distribution size. Version 12.0.0 has a much larger unpacked size of 7,815,743 bytes and fileCount of 53, whereas version 11.1.2 has a more compact footprint of 4,888,736 bytes and fileCount of 55. This size increase in version 12.0.0 might suggest added features, enhanced functionalities, or potentially larger dependency bundles. Developers should investigate the changelog for specific details. The release dates also highlight recency, with 12.0.0 released later, benefiting from more recent updates. When choosing between versions, developers should weigh the benefits of potentially newer features and bug fixes in 12.0.0 against the increased size, and consider compatibility with their existing projects. Reviewing the changelog and testing within your environment are crucial to ensure a smooth upgrade.
The are not vulnerabilities for the version 12.0.0 of the package sinon