docs(readme): adds a react-table-v6 package note #1576
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Creating this PR after a discussion at https://spectrum.chat/react-table/general/additional-package-just-for-the-v7~7115661c-7e60-4a61-a16f-4be7e6796349
TL;DR: right now the migration process from v6 to v7 can be complicated due to the v7 being completely different from v6, so at a larger codebase you could need to have both versions installed at the same time. While this is possible to do right now, by using an alias like
npm:react-table@6.8.6
, if you're using TypeScript things could become much more complicated as both packages would have thereact-table
as a module name.My proposal is to push a legacy
react-table-v6
package to the registry with the latest version of v6 and a changed module name in the TS definition. This would allow us to use both v6 and v7 versions at the same time without any problems just by replacing the old v6 version by thisreact-table-v6
package and then using the originalreact-table
only for the v7 version.While this can also be solved by a fork, I feel that given the v6 popularity this can be an issue for more people, and I feel that creating such package would be the best solution (and wouldn't need a lot of maintaining).
This PR adds a line to the README about this package, and, of course, should be merged only if this idea is accepted by the project's maintainers and after they would publish the corresponding package.
Thank you for
react-table
and the very promising v7 rewrite, it is an awesome project!