What's New Copy Link
See the release post for details of what's new in version 32.2.
Codemods Copy Link
Follow these steps to upgrade your project's AG Grid version to 32.2.0:
Locate your project's
package.jsonand note the version of AG Grid that you are currently using.Update any AG Grid dependencies listed in the
package.jsonto version32.2.0.Open a terminal and navigate to your project's root folder.
Run the
migratecommand of version32.2of the AG Grid codemod runner, where$FROM_VERSIONrefers to your project's existing AG Grid version:npx @ag-grid-devtools/cli@latest migrate --from=$FROM_VERSION --to=32.2This 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 Copy Link
ColDef Copy Link
checkboxSelectionis deprecated,rowSelection.checkboxesis default now, set tofalseingridOptionsto disable.showDisabledCheckboxesis deprecated, userowSelection.hideDisabledCheckboxes = trueingridOptionsinstead.headerCheckboxSelectionis deprecated,rowSelection.headerCheckbox = trueis default now, set tofalseingridOptionsto disable.headerCheckboxSelectionFilteredOnlyis deprecated, userowSelection.selectAll = "filtered"ingridOptionsinstead.headerCheckboxSelectionCurrentPageOnlyis deprecated, userowSelection.selectAll = "currentPage"ingridOptionsinstead.
Events Copy Link
columnEverythingChanged- deprecated, usedisplayedColumnsChangedwhich is fired at the same time, or one of the more specific Column Events.rangeDeleteStart- deprecated, usecellSelectionDeleteStartinstead.rangeDeleteEnd- deprecated, usecellSelectionDeleteEndinstead.rangeSelectionChanged- deprecated, usecellSelectionChangedinstead.
Grid API Copy Link
getInfiniteRowCount- deprecated, usegetDisplayedRowCountinstead.clearRangeSelection- deprecated, useclearCellSelectionmethod instead.
Grid Options Copy Link
rowSelection="single"is now deprecated, userowSelection.mode = "singleRow"instead.rowSelection="multiple"is now deprecated, userowSelection.mode = "multiRow"instead.suppressCopyRowsToClipboardis deprecated. Copying of selected rows is suppressed by default, userowSelection.copySelectedRowsto enable it.suppressCopySingleCellRangesis deprecated, userowSelection.copySelectedRowsinstead.groupSelectsChildrenis deprecated, userowSelection.groupSelects = "descendants"instead.groupSelectsFilteredis deprecated, userowSelection.groupSelects = "filteredDescendants"instead.rowMultiSelectWithClickis deprecated, userowSelection.enableMultiSelectWithClickinstead.suppressBrowserResizeObserver- deprecated without replacement.suppressRowDeselectionis deprecated. Row Deselection is suppressed by default, userowSelection.enableClickSelectioninstead.suppressRowClickSelectionis deprecated, userowSelection.enableClickSelectioninstead.suppressMultiRangeSelectionis deprecated, usecellSelection.suppressMultiRangesinstead.enableRangeSelectionis deprecated, usecellSelectioninstead.enableRangeHandleis deprecated, usecellSelection.handleinstead.enableFillHandleis deprecated, usecellSelection.handleinstead.fillHandleDirectionis deprecated, usecellSelection.handle.directioninstead.suppressClearOnFillReductionis deprecated, usecellSelection.handle.suppressClearOnFillReductioninstead.isRowSelectableis deprecated, userowSelection.isRowSelectableinstead.fillOperationis deprecated, usecellSelection.handle.setFillValueinstead.
Grid State Object Fields Copy Link
rangeSelection - deprecated, when setting this manually use cellSelection field instead.
Row Nodes Copy Link
isFullWidthCell - deprecated, check node.detail then use provided callback isFullWidthRow instead.
Breaking Changes Copy Link
This release includes no breaking changes.