TypeScript developers relying on the tslib runtime library saw a notable update with version 1.11.0, released on February 20, 2020, building upon the previous stable version 1.10.0 from June 10, 2019. Both versions serve the same fundamental purpose: offering essential helper functions to support TypeScript's advanced features during runtime. The core function of tslib is to ensure that code compiled from TypeScript executes smoothly across different JavaScript environments.
While the descriptions and licensing (Apache-2.0) remained consistent, the key differences lie within the package's contents. Version 1.11.0 introduces a slight increase in complexity and functionality, indicated by the jump from 9 to 10 files included within the package. Consequently, the unpacked size grew modestly from 38,131 bytes to 40,599 bytes. This suggests that version 1.11.0 likely incorporates either new or refined helper functions improving runtime support for specific TypeScript features implemented in the newer releases of TypeScript's compiler.
Developers deciding between these versions should prioritize aligning the tslib version with their TypeScript compiler's recommendations. Using the tslib version designed for your specific TypeScript compiler guarantees optimal support for emitted helper functions. Generally, it's advisable to use latest version to leverage bug fixes, performance enhancements, and broader compatibility, unless project constraints necessitate sticking with an older TypeScript version. Reviewing the specific TypeScript release notes coinciding with tslib 1.11.0 would provide deeper insight into the exact additions and improvements.
The are not vulnerabilities for the version 1.11.0 of the package tslib