Skip to content

Commit

Permalink
feat(react): Add support for React 19 (#763)
Browse files Browse the repository at this point in the history
Supports both React 18 & 19 as possible peer dependencies in the
`@anywidget/react` module. The starter template now defaults to React
19.
  • Loading branch information
manzt authored Dec 15, 2024
1 parent 748f34e commit 5718ead
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 66 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-poets-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@anywidget/react": minor
---

Support React 19
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ src/ipyfoo/static
},
"dependencies": {
"@anywidget/react": "0.0.8",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {}
}",
Expand Down Expand Up @@ -341,12 +341,12 @@ src/ipyfoo/static
},
"dependencies": {
"@anywidget/react": "0.0.8",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.7.2"
}
}",
Expand Down Expand Up @@ -1304,8 +1304,8 @@ src/ipyfoo/static
},
"dependencies": {
"@anywidget/react": "0.0.8",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"esbuild": "^0.24.0"
Expand Down Expand Up @@ -1535,12 +1535,12 @@ src/ipyfoo/static
},
"dependencies": {
"@anywidget/react": "0.0.8",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.7.2",
"esbuild": "^0.24.0"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/create-anywidget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"@anywidget/react": "workspace:^",
"@anywidget/types": "workspace:^",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"esbuild": "^0.24.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "^5.7.2"
}
}
16 changes: 8 additions & 8 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
}
},
"peerDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"@types/react": "^18.0.0 || ^19.0.0",
"@types/react-dom": "^18.0.0 || ^19.0.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"dependencies": {
"@anywidget/types": "workspace:^"
Expand Down
106 changes: 64 additions & 42 deletions pnpm-lock.yaml

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

0 comments on commit 5718ead

Please sign in to comment.