Sinon.js, a popular JavaScript testing library offering spies, stubs, and mocks, saw a minor version update from 5.1.0 to 5.1.1 in June 2018. Both versions share the same core dependencies, including diff, nise, lolex, lodash.get, type-detect, supports-color, and @sinonjs/formatio, indicating no significant changes to the fundamental APIs or features of the library. The key differences lie in the development dependencies, reflecting alterations in the build process or testing environment. Version 5.1.1 removes rollup and related rollup plugins (rollup-plugin-commonjs, rollup-plugin-node-globals, rollup-plugin-node-resolve, rollup-plugin-node-builtins) and adds samsam for assertions. The removal of rollup is also reflected in the smaller unpacked size of the latest version (3.45MB comparing to 4.46MB).
For developers using Sinon.js, this minor update suggests a focus on optimization and potentially more conventional tooling. The core functionality remains consistent between the two versions reducing the risk of breaking changes, but the newer version benefits from build changes. Developers can confidently upgrade from 5.1.0 to 5.1.1 while expecting the same powerful mocking capabilities they already rely on, with the possibility of increased efficiency in their testing workflows due an important change in the build configuration. Always review the changelog for specific details and potential edge cases.
The are not vulnerabilities for the version 5.1.1 of the package sinon