Skip to content
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

Replace react-d3-graph due to Incompatibility and Lack of Maintenance #1696

Open
4 tasks
hdinia opened this issue Aug 10, 2023 · 0 comments
Open
4 tasks

Replace react-d3-graph due to Incompatibility and Lack of Maintenance #1696

hdinia opened this issue Aug 10, 2023 · 0 comments
Labels

Comments

@hdinia
Copy link
Member

hdinia commented Aug 10, 2023

Description:

Our current project relies on the react-d3-graph library for certain functionalities. However, with the recent updates to our dependencies, particularly the update to React v18.2.0, we have encountered compatibility issues. The latest version of react-d3-graph that we use (v2.6.0) expects a peer dependency of React ^16.4.1, which is incompatible with our current React version.

Upon further investigation, it's evident that react-d3-graph is no longer actively maintained. The last release was a while ago, and there are several open issues and pull requests without recent activity.

Impact:

  • Build Failures: The incompatibility between our React version and the expected peer dependency of react-d3-graph is causing our front-end build step to fail.

  • Potential Future Issues: As react-d3-graph is not maintained, we anticipate potential bugs, security vulnerabilities, and further incompatibilities as we continue to update other parts of our project.

  • Stagnation: Without active maintenance, we won't benefit from any potential improvements, optimizations, or new features that a well-maintained graph library might offer.

Proposed Solution:

To ensure the stability, security, and future-proofing of our application, we propose the following steps:

  • Research and Identify Alternatives: Find alternative libraries or solutions that offer similar (or better) functionalities as react-d3-graph but are actively maintained and compatible with our current stack.

  • Refactor the Map Component: Once an alternative is chosen, refactor the Map component (and any other components relying on react-d3-graph) to use the new library or solution.

  • Thorough Testing: After refactoring, conduct extensive testing to ensure that the new solution integrates seamlessly and that there are no regressions.

Developer Notes

  • Remove the flag --legacy-peer-deps on Github Actions (github/workflows/main.yml) for front-end build stage
@hdinia hdinia added this to the v2.16 milestone Aug 10, 2023
@hdinia hdinia self-assigned this Aug 10, 2023
@laurent-laporte-pro laurent-laporte-pro modified the milestones: v2.16, v2.17 Oct 19, 2023
@makdeuneuv makdeuneuv removed this from the v2.17 milestone May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants