Skip to content

Commit

Permalink
Bump react and @types/react (#1264)
Browse files Browse the repository at this point in the history
* Bump react and @types/react

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.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 `@types/react` from 18.3.12 to 19.0.2
- [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: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* migrate(react): React 19 needs ReactDom 19.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Hallberg <[email protected]>
  • Loading branch information
dependabot[bot] and crhallberg authored Jan 14, 2025
1 parent a554d7b commit 8a25bf9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 82 deletions.
4 changes: 2 additions & 2 deletions npm-examples/react-scripts/src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import ReactDOM from "react-dom";
import { createRoot } from "react-dom/client";

import App from "./App";

const rootElement = document.getElementById("root");
ReactDOM.render(
createRoot(
<React.StrictMode>
<App />
</React.StrictMode>,
Expand Down
107 changes: 30 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@types/jest": "^29",
"@types/jquery": "^3.5.14",
"@types/node": "^22.9.0",
"@types/react": "^18.0.3",
"@types/react": "^19.0.2",
"@types/react-dom": "^18.0.0",
"async": "0.9.0",
"chai": "5.1.2",
Expand Down Expand Up @@ -113,8 +113,8 @@
"openseadragon": "4.1.1",
"pdfjs-dist": "3.11.174",
"pdfobject": "2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-intersection-observer": "^9.13.0",
"waveform-panel": "^1.2.0",
"xss": "1.0.15",
Expand Down

0 comments on commit 8a25bf9

Please sign in to comment.