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

fix(debug-plugin): upgrade react-json-view to maintained React-18 compatible fork #9116

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jun 30, 2023

Motivation

Fix #9105

Need to replace the unmaintained JSON viewer lib in our debug plugin.

Also added a navbar button to easily navigate to the debug view in dev.

For reference, I choose to use the fork from @microlink because other projects were not immediate project forks and more alternative libs. Also, we already depend on other projects from the same author, such as unavatar. It does not feel necessary to create/maintain our own fork for now, but time will tell.

I'm open to replacing it with another different lib later. But for now this fix is good enough.

Test Plan

ci

Test links

Deploy preview: https://deploy-preview-9116--docusaurus-2.netlify.app/

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Jun 30, 2023
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 30, 2023
@netlify
Copy link

netlify bot commented Jun 30, 2023

[V2]

Name Link
🔨 Latest commit 9289a68
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/649f081a9a7fdd0008d12191
😎 Deploy Preview https://deploy-preview-9116--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO PWA Report
/ 🟠 88 🟢 97 🟢 92 🟢 100 🟠 89 Report
/docs/installation 🟠 77 🟢 100 🟢 92 🟢 100 🟠 89 Report

@slorber slorber added the Argos Add this label to run UI visual regression tests. See argos.yml GH action. label Jun 30, 2023
@github-actions
Copy link

Size Change: -122 B (0%)

Total Size: 1.1 MB

Filename Size Change
website/build/assets/js/main.********.js 828 kB -122 B (0%)
ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 117 kB
website/build/assets/css/styles.********.css 113 kB
website/build/index.html 41 kB

compressed-size-action

@slorber slorber changed the title Upgrade react-json-view to maintained React-18 compatible fork, see h… fix(debug-plugin): upgrade react-json-view to maintained React-18 compatible fork Jun 30, 2023
@slorber slorber merged commit e8c1312 into main Jun 30, 2023
32 of 33 checks passed
@slorber slorber deleted the slorber/upgrade-react-json-view branch June 30, 2023 17:12
@gdlol
Copy link

gdlol commented Oct 21, 2023

I don't have a solution in mind, but FYI: @microlink/react-json-view depends on flux which also has peer dependency React ^15.0.2 || ^16.0.0 || ^17.0.0. 🥲

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Argos Add this label to run UI visual regression tests. See argos.yml GH action. CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Peer dependency conflict with react-json-view in docusaurus@3.0.0-alpha.0
3 participants