mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
8.9 KiB
8.9 KiB
7.0.0-beta.24
- Removed types and related files from the repo. The community will now maintain types externally on Definitely Typed
- Changed
selectedRowPathsto use aSet()instead of an array for performance.
7.0.0-beta.23
- The internal
useMainhook has been renamed touseInstance - The internal
useBeforeDimensionshook has been renamed touseInstanceBeforeDimensions - Fixed an issue where
useResizeColumnswasn't working properly
7.0.0-beta.22
- Fixed an issue where
useRowStatewould crash due to invalid initial state attempting to spread into the new state
7.0.0-beta.21
- Removed deprecated
defaultStateexport
7.0.0-beta.20
- Internals have been reworked to use
useReducerinstead ofuseStatefor stability and architecture - The
stateoption has been removed in favor of using a custom reducer - The
reduceroption has been changed to a new function signature:function (newState, action, oldState) => newState - The
setStatetable instance method is no longer supported - The
dispatchtable instanced method was added - The
ReactTable.actionsexport is now a plain object of action types mapped to identically named action strings - The
ReactTable.reducerHandlersexport was added, which is a plain object of plugin hook names mapped to their respective reducer functions
7.0.0-beta.19
- Added an
isAggregatedboolean parameter to theaggregatefunction signature
7.0.0-beta.16
- Removed service workers from examples
- Fixed a memory leak when
instancewas referenced in function closures - Fixed an issue where the table would infinitely rerender due to incorrect effect dependencies
- Fixed an issue where row grouping and row selection would not work properly together.
7.0.0-beta.15
- Fixed an issue where
defaultGetResetPageDepswas usingdatainstead ofrows
7.0.0-beta.14
- Removed
disablePageResetOnDataChangeoption. use thegetResetPageDepsoption now.
- Added
getResetPageDepsoptiongetResetFilterDepsoptiongetResetSortByDepsoptiongetResetGroupByDepsoptiongetResetExpandedDepsoption
7.0.0-beta.13
- Added options
defaultCanSortdefaultCanFilterdefaultCanGroupBycolumn.defaultCanSortcolumn.defaultCanFiltercolumn.defaultCanGroupBy
- Renamed
disableGroupingtodisableGroupBydisableSortingtodisableSortBydisableGroupBytodisableGroupBycolumn.disableGroupingtocolumn.disableGroupBycolumn.disableSortingtocolumn.disableSortBycolumn.disableGroupBytocolumn.disableGroupBy
- Removed propType definitions. Since types are now being maintained, it makes little sense to also maintain these. Cooincidentally, this also saves some bundle size in some scenarios where they may not be removed properly by a developer's bundler.
7.0.0-beta.0
- Massive changes to the entire project and library. Please consult the README and documentation for more information regarding these changes.
6.8.6
Fixes & Optimizations
- Since
resolveDatais now capable of materializing data on it's own, thedataprop is no longer required as a prop-type.
6.8.4
Fixes & Optimizations
- Only run
resolveDataprop whendataprop has changed, not any others.
6.8.3
Fixes & Optimizations
- Allow the
resolveDataprop to alter or materialize new data when thedataprop changes.
6.8.1
Fixes & Optimizations
- Updated eslint and code formatting
6.7.5
Fixes & Optimizations
- Now passes
columntogetResizerProps(#667) - NOTE:
getResizerPropsis now only called if the column is resizable - Fixes the
classNameordering in defaultProps for ThComponent (#673) - NOTE: user supplied classNames now come at the end so they can extend the defaults
6.7.4
Fixes & Optimizations
- Fix Prop types for columns
6.7.3
Fixes & Optimizations
- Fix the rest of the proptypes
6.7.2
Fixes & Optimizations
getPropTypesproptype check
6.7.1
Fixes & Optimizations
eslint-configmoved to dev deps
6.7.0
6.7.0-alpha-0
New Features
- Expose page/pageSize to rows/cells
- Supply sort direction to custom sort methods
Fixes & Optimizations
- README updates
- Linter cleanup
- Added PropTypes node module
- Deps, linting and style upgrades
6.6.0
Fixes & Optimizations
- moved repo to react-tools
- Doc examples moved to codesandbox.io
- README updates
- CSS refacting for rt-tfoot to match rt-thead
- CSS more specific for input and select
6.5.3
Fixes & Optimizations
onClickproxying and eslint
6.5.2
New Features
- Provide onClick handleOriginal function - #406
Fixes & Optimizations
- README updates
makePathArrayin utils - #326- Various fixes: #294, #376, #398, #415,
6.5.1
Fixes & Optimizations
defaultExpandednow works correctly - #372column.getProps().restprops are now applied correctlymakeTemplateComponentnow supportsdisplayName- #289
6.5.0
New Features
column.filterAll- defaults tofalse, but when set totruewill provide the entire array of rows tofilterMethodas opposed to one row at a time. This allows for more fine-grained filtering using any method you can dream up. See the Custom Filtering example for more info.
6.4.0
New Features
PadRowComponent- the content rendered inside of a padding row. Defaults to a react component that renders
6.3.0
New Features
defaultSortDesc- allows you to set the default sorting direction for all columns to descending.column.defaultSortDesc- allows you to set the default sorting direction for a specific column. Falls back to the globaldefaultSortDescwhen not set at all.
6.0.0
New Features
- New Renderers:
Aggregated- Custom renderer for aggregated cellsPivot- Custom renderer for Pivoted Cells (utilizesExpanderandPivotValue)PivotValue- Custom renderer for Pivot cell values (deprecates the undocumentedpivotRenderoption)Expander- Custom renderer for Pivot cell Expander
- Added custom sorting methods per table via
defaultSortMethodand per column viacolumn.sortMethod - Pivot columns are now visibly separate and sorted/filtered independently.
- Added
column.resizableto override global tableresizableoption for specific columns. - Added
column.sortableto override global tablesortableoption for specific columns. - Added
column.filterableto override global tablefilterableoption for specific columns. - Added
defaultExpandedtable option. - All callbacks can now be utilized without needing to hoist and manage the piece of state they export. That is what their prop counterparts are for, so now the corresponding prop is used instead of the callback to detect a "fully controlled" state.
- Prevent transitions while column resizing for a smoother resize effect.
- Disable text selection while resizing columns.
Breaking API Changes
- New Renderers:
Cell- deprecates and replacesrenderHeader- deprecates and replacesheaderFooter- deprecates and replacesfooterFilter- deprecates and replacesfilterRender
- Callbacks now provide the destination state as the primary parameter(s). This makes hoisting and controlling the state in redux or component state much easier. eg.
onSortingno longer requires you to build your own toggle logiconResizeno longer requires you to build your own resize logic
- Renamed
onChangecallback ->onFetchDatawhich will always fire when a new data model needs to be fetched (or if not usingmanual, when new data is materialized internally). - Renamed
filtering->filtered - Renamed
sorting->sorted - Renamed
expandedRows->expanded - Renamed
resizing->resized - Renamed
defaultResizing->defaultResized - Renamed
defaultFiltering->defaultFiltered - Renamed
defaultSorting->defaultSorted - Renamed
onSortingChange->onSortedChange - Renamed
onFilteringChange->onFilteredChange - Renamed
onResize->onResizedChange - Renamed
onExpandRow->onExpandedChange - Renamed
showFilters->filterable - Renamed
hideFilter->filterable(Column option. Note the true/false value is now flipped.) cellInfo.rowandrowInfo.rownow reference the materialize data for the table. To reference the original row, usecellInfo.originalandrowInfo.original- Removed
pivotRendercolumn option. You can now control how the value is displayed by overriding thePivotValueComponentor the individual column'sPivotValuerenderer. See Pivoting Options Story for a reference on how to customize pivot column rendering.