-
Notifications
You must be signed in to change notification settings - Fork 293
Description
Motivation
The current version of stream-react-chat is incompatible with React 19 due to its dependency on react-markdown 8.x. This older version of react-markdown causes TypeScript errors and compatibility issues when used with React 19, specifically around JSX namespace declarations. This prevents developers from upgrading their applications to the latest version of React while using stream-react-chat.
Proposed solution
Upgrade the react-markdown dependency in stream-react-chat from version 8.x to version 9.x. This newer version includes proper TypeScript support for React 19 and resolves the JSX namespace declaration issues.
Changes required:
- Update package.json to use react-markdown ^9.0.0
- Update any breaking changes in the implementation that might be affected by the react-markdown upgrade
- Update peer dependencies to include React 19 support
- Update TypeScript types to accommodate the new react-markdown version
Acceptance Criteria
[ ] react-markdown is upgraded to version 9.x in package.json
[ ] All existing markdown rendering functionality continues to work as expected
[ ] TypeScript compilation succeeds without JSX namespace errors
[ ] Package works correctly with React 19
[ ] All existing tests pass with the new implementation
[ ] Peer dependency warnings are resolved when used with React 19
Additional context:
This upgrade is critical for developers who want to use stream-react-chat in modern React applications while maintaining type safety and avoiding deprecation warnings.