Rollup Plugin Typescript2 streamlines the integration of Typescript into Rollup workflows, enabling developers to leverage Typescript's type safety and modern features within their Rollup-powered bundles. Version 0.20.0 introduces updates and refinements compared to the previous stable version, 0.19.3. Key differences lie primarily in the dependency updates. Notably, the 'resolve' dependency is updated from version 1.8.1 to 1.10.0 and 'rollup' (devDependency) from ^1.2.3 to ^1.6.0 signifying potential improvements in module resolution during the bundling process and enhanced compatibility with newer Rollup features.
Developers upgrading should notice slight changes related to module resolution behaviors and rollup core functionalities. The fileCount and the unpackedSize also slightly differ, 43 vs 43 and 4266667 vs 4265763; this probably means that the size of some files has changed a little bit.
The core functionality of integrating Typescript with Rollup essentially remains the same, ensuring a smooth transition for existing users. Both versions maintain consistency in peer dependencies, requiring Rollup versions greater than or equal to 0.68.0 and Typescript versions greater than or equal to 2.4.0. This plugin empower developers to build robust and scalable applications leveraging the combined strengths of Rollup and Typescript, making it a powerful asset in modern Javascript development environments. The plugin license continues to be MIT.
All the vulnerabilities related to the version 0.20.0 of the package
Regular Expression Denial of Service (ReDoS) in micromatch
The NPM package micromatch prior to version 4.0.8 is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in micromatch.braces() in index.js because the pattern .* will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persisted prior to https://github.com/micromatch/micromatch/pull/266. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching.
Uncontrolled resource consumption in braces
The NPM package braces fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In lib/parse.js, if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.