What's New
See the release post for details of what's new in version 32.2.
Codemods
Follow these steps to upgrade your project's AG Grid version to 32.2.0
:
Locate your project's
package.json
and note the version of AG Grid that you are currently using.Update any AG Grid dependencies listed in the
package.json
to version32.2.0
.Open a terminal and navigate to your project's root folder.
Run the
migrate
command of version32.2
of the AG Grid codemod runner, where$FROM_VERSION
refers to your project's existing AG Grid version:npx @ag-grid-devtools/cli@32.2 migrate --from=$FROM_VERSION
This 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
migrate
command, or specify the--help
argument 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
ColDef
checkboxSelection
is deprecated,rowSelection.checkboxes
is default now, set tofalse
ingridOptions
to disable.showDisabledCheckboxes
is deprecated, userowSelection.hideDisabledCheckboxes = true
ingridOptions
instead.headerCheckboxSelection
is deprecated,rowSelection.headerCheckbox = true
is default now, set tofalse
ingridOptions
to disable.headerCheckboxSelectionFilteredOnly
is deprecated, userowSelection.selectAll = "filtered"
ingridOptions
instead.headerCheckboxSelectionCurrentPageOnly
is deprecated, userowSelection.selectAll = "currentPage"
ingridOptions
instead.
Events
columnEverythingChanged
- deprecated, usedisplayedColumnsChanged
which is fired at the same time, or one of the more specific Column Events.rangeDeleteStart
- deprecated, usecellSelectionDeleteStart
instead.rangeDeleteEnd
- deprecated, usecellSelectionDeleteEnd
instead.rangeSelectionChanged
- deprecated, usecellSelectionChanged
instead.
Grid API
getInfiniteRowCount
- deprecated, usegetDisplayedRowCount
instead.clearRangeSelection
- deprecated, useclearCellSelection
method instead.
Grid Options
rowSelection="single"
is now deprecated, userowSelection.mode = "singleRow"
instead.rowSelection="multiple"
is now deprecated, userowSelection.mode = "multiRow"
instead.suppressCopyRowsToClipboard
is deprecated. Copying of selected rows is suppressed by default, userowSelection.copySelectedRows
to enable it.suppressCopySingleCellRanges
is deprecated, userowSelection.copySelectedRows
instead.groupSelectsChildren
is deprecated, userowSelection.groupSelects = "descendants"
instead.groupSelectsFiltered
is deprecated, userowSelection.groupSelects = "filteredDescendants"
instead.rowMultiSelectWithClick
is deprecated, userowSelection.enableMultiSelectWithClick
instead.suppressBrowserResizeObserver
- deprecated without replacement.suppressRowDeselection
is deprecated. Row Deselection is suppressed by default, userowSelection.enableClickSelection
instead.suppressRowClickSelection
is deprecated, userowSelection.enableClickSelection
instead.suppressMultiRangeSelection
is deprecated, usecellSelection.suppressMultiRanges
instead.enableRangeSelection
is deprecated, usecellSelection
instead.enableRangeHandle
is deprecated, usecellSelection.handle
instead.enableFillHandle
is deprecated, usecellSelection.handle
instead.fillHandleDirection
is deprecated, usecellSelection.handle.direction
instead.suppressClearOnFillReduction
is deprecated, usecellSelection.handle.suppressClearOnFillReduction
instead.isRowSelectable
is deprecated, userowSelection.isRowSelectable
instead.fillOperation
is deprecated, usecellSelection.handle.setFillValue
instead.
Grid State Object Fields
rangeSelection
- deprecated, when setting this manually use cellSelection
field instead.
Row Nodes
isFullWidthCell
- deprecated, check node.detail
then use provided callback isFullWidthRow
instead.
Breaking Changes
This release includes no breaking changes.