Sinon.js, a popular JavaScript library for spies, stubs, and mocks used in testing, saw a recent update from version 15.0.2 to 15.0.3. While the core functionality remains consistent, a key difference lies in the updated dependency @sinonjs/samsam. Version 15.0.3 utilizes @sinonjs/samsam version 8.0.0, whereas 15.0.2 relied on version 7.0.1. Samsam is a library used for deep equality assertions, which is important for Sinon's ability to compare arguments and return values accurately. Developers should investigate the samsam changelog from 7.0.1 to 8.0.0 to see the exact implications on tests. The dist section also reveals subtle differences. The fileCount increased from 47 to 49, and unpackedSize grew from 4903121 to 4911927 bytes, a modest increase suggesting minor additions or modifications to the codebase. This suggests a bug fix or internal improvement rather than a major feature release. So, if your tests depended on edge cases related to deep object equivalence, upgrading from 15.0.2 to 15.0.3 is advisable. The release date difference also points to a more recent update addressing potential issues. Therefore, for greenfield projects, grabbing 15.0.3 is the right thing to do.
The are not vulnerabilities for the version 15.0.3 of the package sinon