The @angular/common package, a fundamental component of the Angular framework providing essential directives and services for application development, has seen a significant update with the release of version 18.0.0. Comparing it to the prior stable version, 17.3.12, a few key differences emerge. The most obvious change is the major version bump, indicating potentially breaking changes and new features. Developers transitioning to version 18.0.0 should carefully review the Angular update guide for specific migration instructions.
A crucial detail is the peer dependency update. Version 18.0.0 requires "@angular/core": "18.0.0", reflecting the synchronized release cycle of Angular's core modules. This means developers must update their core Angular framework to version 18.0.0 to use the latest @angular/common. Version 17.3.12 required "@angular/core": "17.3.12". The rxjs peer dependency remains compatible with versions "^6.5.3 || ^7.4.0" in both versions, offering continued flexibility for developers with existing RxJS setups. Both version of the package shares the same MIT License, it has the same author and the version 18.0.0 comes from the same repository as the prior version. Finally, the unpacked size of version 18.0.0 increased slightly compared to the previous version, which maybe indicates the inclusion of new functionalities and/or optimizations of the previous version. This increase in size, although modest, may be a point of consideration for projects sensitive to bundle size. Always check the official Angular changelog for a complete list of changes, bug fixes, and new features included in version 18.0.0.
The are not vulnerabilities for the version 18.0.0 of the package @angular/common