-
Notifications
You must be signed in to change notification settings - Fork 3
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
Bump react, react-dom and @types/react #428
Conversation
Reviewer's Guide by SourceryThis PR upgrades React, React DOM, and @types/react to version 19. This upgrade includes several new features, deprecations, and breaking changes that require code modifications. Key changes include the introduction of Actions, new hooks like Sequence diagram for new Action and Transition flow in React 19sequenceDiagram
participant C as Component
participant T as Transition
participant A as Action
participant S as State
participant E as Effects
C->>T: startTransition(async fn)
T->>A: Execute Action
A->>S: Update State
A->>E: Perform Side Effects
A-->>T: Wait for completion
T-->>C: Commit UI updates
Sequence diagram for new Form Action handling in React 19sequenceDiagram
participant F as Form
participant A as Action
participant FS as FormStatus
participant S as State
F->>A: Submit form
A->>FS: Update status (pending)
A->>S: Process form data
A-->>FS: Update status (complete)
A-->>F: Reset form
Note over F,A: Automatic form reset for uncontrolled components
State diagram for React 19 Suspense behaviorstateDiagram-v2
[*] --> Rendering
Rendering --> Suspended: Component suspends
Suspended --> ShowingFallback: Immediate fallback
ShowingFallback --> PrewarmingSiblings: Schedule sibling render
PrewarmingSiblings --> Resolved: Data loaded
Resolved --> [*]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
❌ Deploy Preview for neurobagel-query failed.
|
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react), [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) 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.0.0 - [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.0.0/packages/react) Updates `react-dom` from 18.3.1 to 19.0.0 - [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.0.0/packages/react-dom) Updates `@types/react` from 18.3.12 to 19.0.3 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: react dependency-type: direct:production update-type: version-update:semver-major - dependency-name: react-dom dependency-type: direct:production update-type: version-update:semver-major - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
5634d29
to
88efda6
Compare
Superseded by #440. |
Bumps react, react-dom and @types/react. These dependencies needed to be updated together.
Updates
react
from 18.3.1 to 19.0.0Release notes
Sourced from react's releases.
... (truncated)
Changelog
Sourced from react's changelog.
... (truncated)
Commits
e137890
[string-refs] cleanup string ref code (#31443)d1f0472
[string-refs] remove enableLogStringRefsProd flag (#31414)3dc1e48
Followup: remove dead test code from #30346 (#31415)07aa494
Remove enableRefAsProp feature flag (#30346)45804af
[flow] Eliminate usage of more than 1-argReact.AbstractComponent
in React ...5636fad
[string-refs] log string ref from prod (#31161)b78a7f2
[rcr] Re-export useMemoCache in top level React namespace (#31139)4e9540e
[Fiber] Log the Render/Commit phases and the gaps in between (#31016)d4688df
[Fiber] Track Event Time, startTransition Time and setState Time (#31008)15da917
Don't read currentTransition back from internals (#30991)Updates
react-dom
from 18.3.1 to 19.0.0Release notes
Sourced from react-dom's releases.
... (truncated)
Changelog
Sourced from react-dom's changelog.
... (truncated)
Commits
989af12
Make prerendering always non-blocking with fix (#31452)e137890
[string-refs] cleanup string ref code (#31443)07aa494
Remove enableRefAsProp feature flag (#30346)cae764c
Revert "[Re-land] Make prerendering always non-blocking (#31268)" (#31355)d49123f
Expose prerender() for SSG in stable (#31298)6c4bbc7
[Re-land] Make prerendering always non-blocking (#31268)d8c90fa
Disable infinite render loop detection (#31088)67fee58
[Fizz] Start initial work immediately (#31079)76aee6f
Revert "Make prerendering always non-blocking" (#31080)0f1856c
Make prerendering always non-blocking (#31056)Updates
@types/react
from 18.3.12 to 19.0.3Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Summary by Sourcery
Upgrade React and React DOM to version 19.0.0 and update the corresponding type definitions.
New Features: