
What changed with Angular 13? Next Milestone to “Ivy Everywhere”Īngular is transitioning its rendering engine. This is not possible anymore with Angular 13. With Angular 12, it was still an option to publish with the View Engine instead. If you are a library developer, the recommended way of publishing since version 12 is with “Partial Ivy”. If you still use the View Engine, now it is definitely time to upgrade. For View Engine libraries, ngcc is still here. If you are an application developer using Ivy, nothing has changed for you. So, how are Angular developers affected by this change? View Engine is no longer available in Angular as of v13 One of the most important updates is the removal of its deprecated rendering engine View Engine. This means that in future releases please expect that we will continue to drop support for older versions of Angular until we reach v12 and will drop the legacy packages entirely.Angular 13 was released this month. "dependencies": from 'ag-grid-angular-legacy' Īs Angular continues to move forward we want our users to be able to take advantage of the new features and so we will continue to move forward with Angular upgrades. So in your package.json file, you will need to change the AG Grid package to be the legacy version. These will be ag-grid-angular-legacy and respectively for Package / Module setups. As a result, we will produce legacy versions of our Angular libraries that will still work in your app. However, we understand this is not always going to be viable.
REMOVE ALL ANGULAR VERSIONS UPGRADE
If possible take this opportunity to upgrade your Angular version to at least v12. If your application is on an old version of Angular there is going to be more work for you to upgrade to AG Grid v28 to get our latest features.

Do still check the changelog for grid-related breaking changes. That is all you need to do concerning this Angular upgrade as part of AG Grid v28. withComponents() if it is present in your code. This has not been required for any applications that were running with Ivy but as we supported Angular v8 we could not remove it. withComponent() method from the AgGridModule.

With our Angular lib now requiring its consuming applications to run with Ivy, we have deprecated and removed the. Processing legacy "View Engine" libraries:Įncourage the library authors to publish an Ivy distribution.ĭeprecation of AgGridModule.withComponents(). The following warning will disappear from your build log! Generating browser application bundles (phase: setup). You may see a slight improvement in CI build time as a result of this. Simply move ag-grid-angular to v28 and notice that ngcc will no longer run against our package.
REMOVE ALL ANGULAR VERSIONS UPDATE
What to expect when migrating to AG Grid v28 Apps using Angular v12+įirst off, if your application is built with Angular v12 or above, then you will update as normal. We have decided to minimise the change for users who are up to date with Angular and avoid future breaks when View Engine is no longer supported. We have decided to update our existing Angular libraries, ag-grid-angular and (see Package vs Modules for why we have two Angular libraries) to use Ivy as opposed to creating new packages for the Ivy format. This brings us in line with the rest of the Angular ecosystem in moving towards Ivy everywhere. There are many advantages to this approach, namely no longer requiring ngcc to run and mutate your node_modules.Īs Angular v12 is over a year old and there are other features that moving our library to Ivy unblocks we have decided to make this change now.

Since Angular v12 the recommend distribution format for Angular libraries was changed to Ivy. So please read on to understand what to expect when upgrading to AG Grid v28. To maintain support for older versions of Angular, v8-11, we are going to release new legacy versions of our Angular packages. However, this means the minimum Angular dependency will increase to Angular v12. In v28 of AG Grid, we are enabling the Ivy distribution format which brings numerous benefits. In this post, we want to give you notice of the changes that are coming to our Angular wrappers in v28 and actions that you can take now to make the upgrade as smooth as possible.
