What's New
See the release post for details of what's new in this minor version.
Codemods
Follow these steps to upgrade your project's AG Grid version to 31.2.0:
Update any AG Grid dependencies listed in your project's
package.jsonto version31.2.0.Open a terminal and navigate to your project's root folder.
Run the
migratecommand of version31.2of the AG Grid codemod runner:npx @ag-grid-community/cli@31.2 migrateThis will update your project's source files to prepare for the new release.
By default the Codemod runner will locate all source files within the current directory. For projects with more specific requirements, pass a list of input files to the
migratecommand, or specify the--helpargument to see more fine-grained usage instructions.
The Codemod runner will check the state of your project to ensure that you don't lose any work. If you would rather see a diff of the changes instead of applying them, pass the --dry-run argument.
The codemod only transforms source files that make use of deprecated features, so if you aren't currently making use of any of those APIs your source code will be unaffected by the codemod.
See the Codemods documentation for more details.
Deprecations
This release includes the following deprecations:
GridOptions
enableCellChangeFlash- deprecated, setenableCellChangeFlashon the column definitions instead.
Column API
suppressCellFlash- deprecated. WhensuppressCellFlash=true, useenableCellChangeFlash=falseinstead.dndSource- deprecated, use Row Dragging to an External DropZone instead.dndSourceOnRowDrag- deprecated, use Row Dragging to an External DropZone instead.