Angular Forms, a crucial component for building user interfaces in Angular applications, saw a significant upgrade from version 11.2.14 to 12.0.0. While both versions maintain the MIT license and are available on npm, several key differences impact developers. The core functionality, providing directives and services for form creation, remains consistent.
One notable change is the updated dependency on tslib, shifting from ^2.0.0 to ^2.1.0, reflecting improvements and bug fixes in the TypeScript helper library. The peer dependencies have been bumped to Angular versions 12 for core, common, and platform-browser modules, ensuring compatibility and leveraging new features within the Angular ecosystem. Developers upgrading should ensure that their project's Angular dependencies are also updated to version 12 to avoid potential conflicts.
Interestingly, the unpacked size of the package decreased from 2,795,858 bytes in version 11.2.14 to 2,359,154 bytes in version 12.0.0, despite being a major version. This suggests optimizations in the codebase, which could lead to faster load times and improved performance within Angular applications. The file count also slightly reduced from 48 to 46. Furthermore, notice that both versions were released on the same day but with different times, so it may be interesting to check the changelog for knowing what changes were made and understanding better the details about the differences between the versions. Ultimately, version 12.0.0 of @angular/forms is a performance-boosted and updated library, requiring its usage the update of its peer dependencies to angular version 12.
The are not vulnerabilities for the version 12.0.0 of the package @angular/forms