@rollup/plugin-typescript offers seamless integration between Rollup and TypeScript, streamlining the process of building TypeScript projects with Rollup. Comparing version 5.0.0 with the earlier stable version 4.1.2, developers will primarily notice an update in the supported TypeScript version. While both versions share core dependencies like resolve and @rollup/pluginutils, a key difference lies in the peerDependencies. Version 5.0.0 specifies that it requires TypeScript version ">=3.4.0", while version 4.1.2 supports older versions with ">=2.1.0". This means version 5.0.0 requires a more recent TypeScript compiler.
The devDependencies sections are similar, suggesting that the tools used for development and testing remained largely unchanged. Both rely on packages like buble, tslib, various Rollup plugins, and a specific version of the plugin itself (an older version to ensure compatibility with older rollup versions).
The dist metadata shows a slight increase in unpackedSize from 64430 to 70822. This could imply new features, optimizations, or simply more robust handling of edge cases compared to the older version. The release dates offer a quick look at the plugin’s maintenance; version 5.0.0 arrived roughly a month after version 4.1.2. For developers, upgrading to version 5.0.0 is recommended if they're already using TypeScript 3.4.0 or newer. Otherwise, staying on 4.1.2 until upgrading TypeScript might be sensible. Always test thoroughly after upgrading any plugin.
The are not vulnerabilities for the version 5.0.0 of the package @rollup/plugin-typescript