feat: support React 19#887
Merged
Merged
Conversation
- Extend `react` peer dependency range with `^19.0.0` - Bump `@types/react`/`@types/react-dom` to `^19` and React dev deps to `^19` - Replace `useRef<T>()` with `useRef<T | undefined>(undefined)` / `useRef<T | null>(null)` (zero-arg overload removed in @types/react@19) - Tighten `HighchartsReactRefObject.container` to `RefObject<HTMLDivElement | null>`
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
|
🎭 Tests Report is ready. |
Contributor
|
Preview is ready. |
kuzmadom
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
reactpeer dependency range with^19.0.0(kept^16.0.0 || ^17.0.0 || ^18.0.0for backwards compatibility).react/react-domdev deps and@types/react/@types/react-domto^19.@types/react@19:useRef<T>()withuseRef<T | undefined>(undefined)/useRef<T | null>(null)— the zero-argument overload was removed.HighchartsReactRefObject.containertoRefObject<HTMLDivElement | null>.No runtime behaviour changes;
forwardRef,React.FCand other still-supported APIs were intentionally left in place to keep the diff small.Compatibility
@gravity-ui/uikit@^7already declaresreact ^16.14 || ^17 || ^18 || ^19as a peer.@gravity-ui/charts@^1.55acceptsreact >=17.0.0.