Angular developers considering an upgrade from @angular/compiler version 9.1.13 to 10.0.0 will encounter notable changes influencing their projects. Version 10.0.0, released in June 2020, boasts a reduced unpacked size of approximately 20.6MB and fewer files (455) compared to version 9.1.13, released in December 2020, which had a larger footprint of about 29.2MB and 598 files. This optimization potentially translates to faster installation times and reduced disk space usage, benefitting streamlined development workflows.
A critical difference lies in the TypeScript support. Version 10.0.0 depends on tslib version "^2.0.0", while the previous version 9.1.13 declares a peer dependency on tslib "^1.10.0". This transition to tslib v2 signifies alignment with newer TypeScript features and improvements, potentially enhancing code maintainability and leveraging the latest language advancements. However, developers upgrading should ensure their project's TypeScript setup is compatible with tslib v2 to avoid any potential compilation issues. While both versions share the same MIT license and originate from the official Angular repository, the shift in dependencies and reduced package size highlights Angular's ongoing efforts to improve performance and modernize its core libraries. Developers prioritizing smaller bundle sizes and newer TypeScript capabilities will find version 10.0.0 a compelling upgrade.
The are not vulnerabilities for the version 10.0.0 of the package @angular/compiler