-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency react-data-table-component to v7 #193
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/d2p/skyfall/F2wzmJepb82pKUC5EQYWVqgLg5yr |
1f45f1a
to
5782109
Compare
5782109
to
8b1bf23
Compare
8b1bf23
to
4d742dc
Compare
4d742dc
to
d93207e
Compare
d93207e
to
ffe4a53
Compare
ffe4a53
to
55436a4
Compare
55436a4
to
332c148
Compare
332c148
to
3d3627f
Compare
3d3627f
to
cdf337e
Compare
cdf337e
to
1cc8b0b
Compare
1cc8b0b
to
22efa99
Compare
22efa99
to
98d4133
Compare
98d4133
to
fc90021
Compare
fc90021
to
e5f760a
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: package-lock.json
|
e5f760a
to
5d6ece9
Compare
5d6ece9
to
f20157f
Compare
f20157f
to
dc59706
Compare
dc59706
to
cd24e44
Compare
cd24e44
to
cc9fd1b
Compare
cc9fd1b
to
4332d78
Compare
This PR contains the following updates:
6.11.8
->7.6.2
Release Notes
jbetancur/react-data-table-component (react-data-table-component)
v7.6.2
Compare Source
What's Changed
Full Changelog: jbetancur/react-data-table-component@v7.6.1...v7.6.2
v7.6.1
Compare Source
What's Changed
Full Changelog: jbetancur/react-data-table-component@v7.6.0...v7.6.1
v7.6.0
Compare Source
What's Changed
New Contributors
Full Changelog: jbetancur/react-data-table-component@v7.5.4...v7.6.0
v7.5.4
Compare Source
Fixes #1154 - thank you @HendrikPetertje !
v7.5.3
Compare Source
Fixes
v7.5.2
Compare Source
Fixes
setState
or useState hooks withinonSort
v7.5.1
Compare Source
Features
onSort
v7.5.0
Compare Source
Features
v7.4.7
Compare Source
v7.4.6
Compare Source
Bug Fixes
Maintenance
v7.4.5
Compare Source
🥃 Features 🥃
selectableRowsSingle
should now work withselectableRowSelected
, however if you have more than one match only the first match will be selected.v7.4.4
Compare Source
🥃 Features 🥃
ExpanderComponentProps
TypeScript type. You can now:v7.4.3
Compare Source
🐞 Fixes 🐞
TypeError: Attempting to change configurable attribute of unconfigurable
on thedata
prop for certain use casesv7.4.2
Compare Source
🐞 Fixes 🐞
onSelectedRowsChange
no longer causes infinite loop when updating tabledata
withinonSelectedRowsChange
expandableRowsComponent
typesv7.4.1
Compare Source
🐞 Fixes 🐞
createTheme
no longer requires an inherited themev7.4.0
Compare Source
🥃 Features 🥃
lodash.orderBy
has been removed and replaced with native sorting.lodash
was a bit heavy weight as a dependency (the bundle should be smaller now) and slower than native sort in some of our performance tests (basically negligible). If you want really miss thelodash.orderBy
sorting behavior you can installlodash
yourself and use sortFunction to re-implementorderBy
.🐞 Fixes 🐞
createTheme
you may now specify one of the default themes to inherit from. This is useful if you only need to tweak a thing or 2 in each theme. See the custom theming for more detailsv7.3.1
Compare Source
🐞 Fixes 🐞
v7.3.0
Compare Source
🥃 New Features 🥃
🐞 Fixes 🐞
data
changes. Sort behavior should now be preservedv7.2.1
Compare Source
🐞 Fixes 🐞
column.name
is a componentv7.2.0
Compare Source
🐞 Fixes 🐞
TableRow
. This should no longer be the case.v7.1.0
Compare Source
🥃 New Features 🥃
v7.0.2
Compare Source
🐞 Fixes 🐞
v7.0.1
Compare Source
🐞 Bug Fixes 🐞
defaultSortFieldId
now works properlyIDataTableRow
(which is nowTableRow
to make migrating from v6 to v7 easier🥃 New Features 🥃
TableRow
type📜 Documentation 📜
🏡 Housekeeping 🏡
TypeScript Projects with React Data Table
React Data Table is built with TypeScript so typings are buit in. Let's implement React Data Table in a TypeScript project:
First, we'll need to define our data type (or interface):
Alternatively, if you want to define
DataRow
as an interface you will need to extend the built inTableRow
type:Next, we can create our columns.
TableColumn
is an interface representing a column definition that takes a generic parameter. By passingTableColumn<DataRow>[]
we now have access to ourdataRow
props on any property in our tablecolumns
for any propery that accesses our data:Finally, we can implement our TypeScript component that uses
DataTable
:Alternatively, if you prefer using
React.FC
:Putting it all together:
v7.0.0
Compare Source
After several long months Version 7.0.0 is now available. The most notable change is that RDT 7 has been ported over to TypeScript which as it turns out resolved a number of bugs both unknown and long standing. This however, introduced some breaking changes to the API which are noted below. Also RDT v7 introduces several new features such as draggable columns, single row selection and the ability to pass props to expander components as well as vastly improved documentation.
Thank you all for your patience and to those that contributed PR's and/or feedback!
🔥 🔥 BREAKING CHANGES 🔥 🔥
expandableRowsComponent
no longer accepts JSX and must now be passed in as a function/class. e.g.:GOOD:
expandableRowsComponent={MyExpander}
BAD:
expandableRowsComponent={<MyExpander />}
sortFunction
prop signature has changed, This was necessary because RDT is moving to function only selectors which are more flexible and performant. Additionally, this allows the API user greater control over how they sort. See the README for details Custom Sort Function.defaultSortfField
is nowdefaultSortFieldId
where you use a column ID instead of a name.If you do not assign an
id
to each of your column definitions RDT will add a number basedid
starting with 1,2,3,...overflowY
andoverflowYOffset
have been removed from the API as they were problematic when usingfixedHeader
. These were originally created to deal menu overlays that did not use dynamic positioning - causing a menu to be truncated at the bottom of the table. Most UI libraries should support dynamically positioned menus, but in any case this is no longer the responsibility of RDT to manage.🥃 🥃 New Features 🥃 🥃
selectableRowsSingle
. If you want to change the built in checkbox to a radio button you can passselectableRowsComponentProps={{ type: 'radio' }}
or pass in your own custom/ui library Radio button using bothselectableRowsComponent
andselectableRowsComponentProps
expandableRowsComponentProps
now allows you to pass extra props to your customexpandableRowsComponent
.🐞 🐞 Fixes 🐞 🐞
fixedHeader
scroll bar no longer offsets table columns. Note thatfixedHeader
relies on browsers that support sticky positioning.conditionalCells
andconditionalRows
sortServer
should now disable internal sorting as it did in v6fixedHeader
only show scroll bars when neededfontWeight
when using custom styles in headCellssortFunction
and pagination together would result in broken sorting. This is now fixed.📜📜 Documentation 📜📜
👋 👋 Deprecations 👋 👋
row => row.name
. This not only allows for typing but also no longer requires an expensive regex/reduce function to loop through a row to "get' the propConfiguration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.