chore(deps): Bump react and @types/react#12
Closed
dependabot[bot] wants to merge 1 commit into
Closed
Conversation
Contributor
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
d1cf9fb to
c6dcbce
Compare
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react). These dependencies needed to be updated together. Updates `react` from 18.3.1 to 19.2.6 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v19.2.6/packages/react) Updates `@types/react` from 18.3.28 to 19.2.15 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-version: 19.2.15 dependency-type: direct:development update-type: version-update:semver-major - dependency-name: react dependency-version: 19.2.6 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
c6dcbce to
26f0fb7
Compare
Owner
|
Replaced by manual React 19 migration PR (incomplete: this PR didn't bump react-dom alongside react). See follow-up. |
Contributor
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
10 tasks
andresdefi
added a commit
that referenced
this pull request
May 22, 2026
Bumps react + react-dom to 19.2.6 (was 18.3.1), @types/react to 19.2.x, @types/react-dom to 19.2.x, and @vitejs/plugin-react to 6.0.2 (was 4.7; v6 dropped React 18 support so this bump is gated on React 19). Replaces Dependabot PR #12 (which left react-dom at 18 — version-major mismatch with react@19 — Dependabot grouping bug) and PR #14 (blocked on React 19). Verified peer-dep coverage before migrating: - @tiptap/react 3.23.4 declares react ^17 || ^18 || ^19 - zustand 4.5.7 declares react >=16.8 (open-ended) - modern-screenshot has no React peer dep (DOM utility) - @vitejs/plugin-react v4 had no React peer dep at all Three small code changes the React 19 type changes required: - ColorPickerPopover triggerRef widened from `RefObject<HTMLElement>` to `RefObject<HTMLElement | null>`. React 19 made `RefObject<T>` invariant in T, so the callers (ColorPicker, RichTextEditor) that pass `useRef<HTMLButtonElement>(null)` no longer narrow. - src/client/components/Sidebar/Elements/RootView.tsx adds `import type { JSX } from 'react'`. The global JSX namespace was removed in React 19's types. - Same JSX import added to Sidebar/Elements/utils.ts. Verified locally: - pnpm typecheck clean across all 3 packages - pnpm test 534/534 passing - pnpm build succeeds (web-preview bundle ~10% larger from React 19's runtime baseline, expected) - pnpm audit clean - Manual browser smoke test: text editing, color picker (exercises triggerRef fix), Elements tab (exercises JSX import fix), drag interactions — no warnings or errors in devtools. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
andresdefi
added a commit
that referenced
this pull request
May 22, 2026
Bumps react + react-dom to 19.2.6 (was 18.3.1), @types/react to 19.2.x, @types/react-dom to 19.2.x, and @vitejs/plugin-react to 6.0.2 (was 4.7; v6 dropped React 18 support so this bump is gated on React 19). Replaces Dependabot PR #12 (which left react-dom at 18 — version-major mismatch with react@19 — Dependabot grouping bug) and PR #14 (blocked on React 19). Verified peer-dep coverage before migrating: - @tiptap/react 3.23.4 declares react ^17 || ^18 || ^19 - zustand 4.5.7 declares react >=16.8 (open-ended) - modern-screenshot has no React peer dep (DOM utility) - @vitejs/plugin-react v4 had no React peer dep at all Three small code changes the React 19 type changes required: - ColorPickerPopover triggerRef widened from `RefObject<HTMLElement>` to `RefObject<HTMLElement | null>`. React 19 made `RefObject<T>` invariant in T, so the callers (ColorPicker, RichTextEditor) that pass `useRef<HTMLButtonElement>(null)` no longer narrow. - src/client/components/Sidebar/Elements/RootView.tsx adds `import type { JSX } from 'react'`. The global JSX namespace was removed in React 19's types. - Same JSX import added to Sidebar/Elements/utils.ts. Verified locally: - pnpm typecheck clean across all 3 packages - pnpm test 534/534 passing - pnpm build succeeds (web-preview bundle ~10% larger from React 19's runtime baseline, expected) - pnpm audit clean - Manual browser smoke test: text editing, color picker (exercises triggerRef fix), Elements tab (exercises JSX import fix), drag interactions — no warnings or errors in devtools. Co-authored-by: andresdefi <andresdefi@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Bumps react and @types/react. These dependencies needed to be updated together.
Updates
reactfrom 18.3.1 to 19.2.6Release notes
Sourced from react's releases.
... (truncated)
Changelog
Sourced from react's changelog.
... (truncated)
Commits
eaf3e95Version 19.2.623f4f9f19.2.590ab3f8Version 19.2.4612e371Version 19.2.3b910fc1Version 19.2.2053df4eVersion 19.2.15667a41Bump next prerelease version numbers (#34639)8bb7241Bump useEffectEvent to Canary (#34610)e3c9656Ensure Performance Track are Clamped and Don't overlap (#34509)68f00c9Release Activity in Canary (#34374)Updates
@types/reactfrom 18.3.28 to 19.2.15Commits