Ts-essentials version 4.0.0 brings notable updates for TypeScript developers seeking essential utility types. Compared to the previous stable version, 3.0.5, the primary shift revolves around compatibility with newer TypeScript versions. Version 4.0.0 mandates a peer dependency of TypeScript version 3.7.0 or higher, whereas version 3.0.5 supported versions 3.5.0 and up. This makes v4 a better choice for developers leveraging the latest TypeScript features.
The upgrade also sees an update in the development dependencies. Most notably, the required TypeScript version for development jumped from 3.5.2 to 3.7.2, aligning the development environment more closely with the minimum peer dependency. There are also updates to Prettier and @codechecks/client.
While both versions maintain the same MIT license and author, and offer a similar set of essential TypeScript types, developers on older Typescript versions might have to stick to version 3.0.5. Version 4.0.0 ensures compatibility and takes advantage of the improvements and functionalities introduced in Typescript 3.7 and later improving developer experience. The unpacked size of v4 also decreased, indicating some optimization, meaning faster installations.
Therefore, when choosing between the two, consider your project's Typescript version and opt for v4 if you are using TypeScript >=3.7.
The are not vulnerabilities for the version 4.0.0 of the package ts-essentials