Skip to content

Commit

Permalink
build(deps): bump react and @types/react in /web
Browse files Browse the repository at this point in the history
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.1
- [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]>
  • Loading branch information
dependabot[bot] authored and torokati44 committed Dec 9, 2024
1 parent ae9dc86 commit 362c8a8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 41 deletions.
43 changes: 6 additions & 37 deletions web/package-lock.json

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

4 changes: 2 additions & 2 deletions web/packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"checkTypes": "tsc --noemit"
},
"dependencies": {
"react": "^18.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"ruffle-core": "^0.1.0"
},
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "^5.7.2",
Expand Down
2 changes: 1 addition & 1 deletion web/packages/demo/src/navbar/samples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface DemoSwf {
}

interface SampleSelectionProperties {
sampleSelectionInput: RefObject<HTMLSelectElement>;
sampleSelectionInput: RefObject<HTMLSelectElement | null>;
selectedSample: DemoSwf | null;
setSelectedSample: (value: DemoSwf | null) => void;
setSelectedFilename: (name: string | null) => void;
Expand Down
2 changes: 1 addition & 1 deletion web/packages/demo/src/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface PlayerAttributes {
}

export class Player extends React.Component<PlayerAttributes> {
private readonly container: React.RefObject<HTMLDivElement>;
private readonly container: React.RefObject<HTMLDivElement | null>;
private player: RufflePlayer.PlayerElement | null = null;

// [NA] Ruffle has a bug where if you load a swf whilst it's already loading another swf, it breaks
Expand Down

0 comments on commit 362c8a8

Please sign in to comment.