@types/jest provides TypeScript definitions for the popular Jest testing framework, enabling developers to write type-safe Jest tests in TypeScript. Versions 26.0.2 and 26.0.3, both released on June 24th, 2020, offer these definitions, supporting projects using Jest. Both versions share identical dependencies: jest-diff and pretty-format, both at versions compatible with 25.2.1. These dependencies are crucial for Jest's functionality, with jest-diff enabling detailed comparisons of differences in test outcomes and pretty-format helping present data in a readable manner during test reporting.
The key difference between the two lies in the unpacked size of the packages. Version 26.0.3 has an unpacked size of 70565 bytes, while version 26.0.2 has an unpacked size of 70558 bytes. This potentially points at minor adjustments or fixes within the TypeScript definition files bundled to the newer version. Developers should usually migrate to the latest patch version whenever possible, which might contain minor improvements, potentially fixing edge cases or corner case bugs. If developers are using the @types/jest package it is usually better to work with the newest version available, making sure it fits the version of Jest they are using. Both are provided under MIT licenses and part of the "DefinitelyTyped" project.
The are not vulnerabilities for the version 26.0.3 of the package @types/jest