-
Notifications
You must be signed in to change notification settings - Fork 0
Update dependency react-data-table-component to v7 #193
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
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
4332d78 to
f602597
Compare
|
This PR contains the following updates:
6.11.8->7.7.0Release Notes
jbetancur/react-data-table-component (react-data-table-component)
v7.7.0Compare Source
What's Changed
New Contributors
Full Changelog: jbetancur/react-data-table-component@v7.6.2...v7.7.0
v7.6.2Compare Source
What's Changed
Full Changelog: jbetancur/react-data-table-component@v7.6.1...v7.6.2
v7.6.1Compare Source
What's Changed
Full Changelog: jbetancur/react-data-table-component@v7.6.0...v7.6.1
v7.6.0Compare Source
What's Changed
New Contributors
Full Changelog: jbetancur/react-data-table-component@v7.5.4...v7.6.0
v7.5.4Compare Source
Fixes #1154 - thank you @HendrikPetertje !
v7.5.3Compare Source
Fixes
v7.5.2Compare Source
Fixes
setStateor useState hooks withinonSortv7.5.1Compare Source
Features
onSortv7.5.0Compare Source
Features
v7.4.7Compare Source
v7.4.6Compare Source
Bug Fixes
Maintenance
v7.4.5Compare Source
🥃 Features 🥃
selectableRowsSingleshould now work withselectableRowSelected, however if you have more than one match only the first match will be selected.v7.4.4Compare Source
🥃 Features 🥃
ExpanderComponentPropsTypeScript type. You can now:v7.4.3Compare Source
🐞 Fixes 🐞
TypeError: Attempting to change configurable attribute of unconfigurableon thedataprop for certain use casesv7.4.2Compare Source
🐞 Fixes 🐞
onSelectedRowsChangeno longer causes infinite loop when updating tabledatawithinonSelectedRowsChangeexpandableRowsComponenttypesv7.4.1Compare Source
🐞 Fixes 🐞
createThemeno longer requires an inherited themev7.4.0Compare Source
🥃 Features 🥃
lodash.orderByhas been removed and replaced with native sorting.lodashwas 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.orderBysorting behavior you can installlodashyourself and use sortFunction to re-implementorderBy.🐞 Fixes 🐞
createThemeyou 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.1Compare Source
🐞 Fixes 🐞
v7.3.0Compare Source
🥃 New Features 🥃
🐞 Fixes 🐞
datachanges. Sort behavior should now be preservedv7.2.1Compare Source
🐞 Fixes 🐞
column.nameis a componentv7.2.0Compare Source
🐞 Fixes 🐞
TableRow. This should no longer be the case.v7.1.0Compare Source
🥃 New Features 🥃
v7.0.2Compare Source
🐞 Fixes 🐞
v7.0.1Compare Source
🐞 Bug Fixes 🐞
defaultSortFieldIdnow works properlyIDataTableRow(which is nowTableRowto make migrating from v6 to v7 easier🥃 New Features 🥃
TableRowtype📜 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
DataRowas an interface you will need to extend the built inTableRowtype:Next, we can create our columns.
TableColumnis an interface representing a column definition that takes a generic parameter. By passingTableColumn<DataRow>[]we now have access to ourdataRowprops on any property in our tablecolumnsfor 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.0Compare 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 🔥 🔥
expandableRowsComponentno longer accepts JSX and must now be passed in as a function/class. e.g.:GOOD:
expandableRowsComponent={MyExpander}BAD:
expandableRowsComponent={<MyExpander />}sortFunctionprop 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.defaultSortfFieldis nowdefaultSortFieldIdwhere you use a column ID instead of a name.If you do not assign an
idto each of your column definitions RDT will add a number basedidstarting with 1,2,3,...overflowYandoverflowYOffsethave 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 bothselectableRowsComponentandselectableRowsComponentPropsexpandableRowsComponentPropsnow allows you to pass extra props to your customexpandableRowsComponent.🐞 🐞 Fixes 🐞 🐞
fixedHeaderscroll bar no longer offsets table columns. Note thatfixedHeaderrelies on browsers that support sticky positioning.conditionalCellsandconditionalRowssortServershould now disable internal sorting as it did in v6fixedHeaderonly show scroll bars when neededfontWeightwhen using custom styles in headCellssortFunctionand 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.