fix: migrate react-markdown 8.0.7 to 9.0.3 to resolve React compatibi… #2614
+4,480
−4,290
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.
Pull Request: Upgrade
react-markdown
instream-chat-react
🎯 Goal
The goal of this change is to upgrade the
react-markdown
dependency from version v8.0.7 to v9.0.3 in thestream-chat-react
package to resolve compatibility issues with modern React versions.Problem Description
The
stream-chat-react
package currently uses an outdated version of thereact-markdown
library (v8.0.7). This version causes compatibility issues with modern React projects, including React 19 and Next.js, resulting in:Cannot find namespace "JSX"
during builds.Solution
To resolve these issues, this PR updates all instances of
react-markdown
instream-chat-react
to use version v9.0.3. The update also ensures that:react-markdown
continue to work as expected.Changes Summary
[email protected]
with[email protected]
.react-markdown
throughout thestream-chat-react
codebase.Submission Details
react-markdown
has been verified to function correctly.Thank you for reviewing this pull request!