Skip to content

Commit

Permalink
Bump react to v19 (#243)
Browse files Browse the repository at this point in the history
## Description

Manually update react because I needed to adjust few files manually.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
czerwiukk and dependabot[bot] authored Dec 19, 2024
1 parent 49ee433 commit bd335e7
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 78 deletions.
8 changes: 4 additions & 4 deletions e2e-tests/webrtc-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
},
"dependencies": {
"@fishjam-cloud/ts-client": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@playwright/test": "^1.49.1",
"@types/node": "^22.10.2",
"@types/react": "^18.3.13",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"@vitejs/plugin-react": "^4.3.4",
Expand Down
8 changes: 4 additions & 4 deletions examples/react-client/fishjam-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.462.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.1",
"tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/node": "^22.10.2",
"@types/react": "^18.3.13",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react-swc": "^3.7.2",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
Expand Down
8 changes: 4 additions & 4 deletions examples/react-client/minimal-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
},
"dependencies": {
"@fishjam-cloud/react-client": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/react": "^18.3.13",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react-swc": "^3.7.2",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { RefObject } from "react";
import { useEffect, useRef } from "react";

type Props = {
Expand All @@ -7,11 +6,11 @@ type Props = {
};

const VideoPlayer = ({ stream, peerId }: Props) => {
const videoRef: RefObject<HTMLVideoElement> = useRef<HTMLVideoElement>(null);
const videoRef = useRef<HTMLVideoElement>(null);

useEffect(() => {
if (!videoRef.current) return;
videoRef.current.srcObject = stream || null;
videoRef.current.srcObject = stream ?? null;
}, [stream]);

return (
Expand Down
8 changes: 4 additions & 4 deletions examples/react-client/use-camera-and-microphone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"dependencies": {
"@fishjam-cloud/react-client": "workspace:*",
"jotai": "^2.10.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"zod": "^3.24.1"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.15",
"@types/react": "^18.3.13",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"daisyui": "^4.12.22",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { RefObject } from "react";
import { useEffect, useRef } from "react";

type Props = {
stream: MediaStream | null | undefined;
};

const VideoPlayer = ({ stream }: Props) => {
const videoRef: RefObject<HTMLVideoElement> = useRef<HTMLVideoElement>(null);
const videoRef = useRef<HTMLVideoElement>(null);

useEffect(() => {
if (!videoRef.current) return;
Expand Down
4 changes: 2 additions & 2 deletions packages/react-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"@types/events": "^3.0.3",
"@types/lodash.isequal": "^4.5.8",
"@types/node": "^22.10.2",
"@types/react": "^18.3.13",
"react": "^18.2.0",
"@types/react": "^19.0.1",
"react": "^19.0.0",
"typed-emitter": "^2.1.0",
"typedoc": "^0.27.5",
"typedoc-plugin-mdn-links": "^4.0.5",
Expand Down
97 changes: 42 additions & 55 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,10 @@ __metadata:
"@types/events": "npm:^3.0.3"
"@types/lodash.isequal": "npm:^4.5.8"
"@types/node": "npm:^22.10.2"
"@types/react": "npm:^18.3.13"
"@types/react": "npm:^19.0.1"
events: "npm:3.3.0"
lodash.isequal: "npm:4.5.0"
react: "npm:^18.2.0"
react: "npm:^19.0.0"
typed-emitter: "npm:^2.1.0"
typedoc: "npm:^0.27.5"
typedoc-plugin-mdn-links: "npm:^4.0.5"
Expand Down Expand Up @@ -737,17 +737,17 @@ __metadata:
"@fishjam-cloud/ts-client": "workspace:*"
"@playwright/test": "npm:^1.49.1"
"@types/node": "npm:^22.10.2"
"@types/react": "npm:^18.3.13"
"@types/react-dom": "npm:^18.3.1"
"@types/react": "npm:^19.0.1"
"@types/react-dom": "npm:^19.0.2"
"@typescript-eslint/eslint-plugin": "npm:^8.18.1"
"@typescript-eslint/parser": "npm:^8.18.1"
"@vitejs/plugin-react": "npm:^4.3.4"
"@vitest/coverage-v8": "npm:^2.1.8"
eslint: "npm:^8.57.1"
eslint-plugin-react-hooks: "npm:^5.1.0"
eslint-plugin-react-refresh: "npm:^0.4.16"
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
testcontainers: "npm:^10.16.0"
typescript: "npm:^5.7.2"
vite: "npm:^6.0.3"
Expand All @@ -761,15 +761,15 @@ __metadata:
dependencies:
"@fishjam-cloud/react-client": "workspace:*"
"@tailwindcss/typography": "npm:^0.5.15"
"@types/react": "npm:^18.3.13"
"@types/react-dom": "npm:^18.3.1"
"@types/react": "npm:^19.0.1"
"@types/react-dom": "npm:^19.0.2"
"@vitejs/plugin-react": "npm:^4.3.4"
autoprefixer: "npm:^10.4.20"
daisyui: "npm:^4.12.22"
jotai: "npm:^2.10.3"
postcss: "npm:^8.4.49"
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
tailwindcss: "npm:^3.4.17"
typescript: "npm:^5.7.2"
vite: "npm:^6.0.3"
Expand All @@ -793,8 +793,8 @@ __metadata:
"@radix-ui/react-slot": "npm:^1.1.0"
"@radix-ui/react-switch": "npm:^1.1.1"
"@types/node": "npm:^22.10.2"
"@types/react": "npm:^18.3.13"
"@types/react-dom": "npm:^18.3.1"
"@types/react": "npm:^19.0.1"
"@types/react-dom": "npm:^19.0.2"
"@vitejs/plugin-react-swc": "npm:^3.7.2"
autoprefixer: "npm:^10.4.20"
axios: "npm:^1.7.9"
Expand All @@ -804,8 +804,8 @@ __metadata:
lucide-react: "npm:^0.462.0"
postcss: "npm:^8.4.49"
prettier: "npm:^3.4.2"
react: "npm:^18.3.1"
react-dom: "npm:^18.3.1"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
react-hook-form: "npm:^7.54.1"
tailwind-merge: "npm:^2.5.5"
tailwindcss: "npm:^3.4.17"
Expand All @@ -820,13 +820,13 @@ __metadata:
resolution: "@fishjam-example/minimal-react-example@workspace:examples/react-client/minimal-react"
dependencies:
"@fishjam-cloud/react-client": "workspace:*"
"@types/react": "npm:^18.3.13"
"@types/react-dom": "npm:^18.3.1"
"@types/react": "npm:^19.0.1"
"@types/react-dom": "npm:^19.0.2"
"@vitejs/plugin-react-swc": "npm:^3.7.2"
autoprefixer: "npm:^10.4.20"
postcss: "npm:^8.4.49"
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
typescript: "npm:^5.7.2"
vite: "npm:^6.0.3"
vite-plugin-checker: "npm:^0.8.0"
Expand Down Expand Up @@ -2273,29 +2273,21 @@ __metadata:
languageName: node
linkType: hard

"@types/prop-types@npm:*":
version: 15.7.13
resolution: "@types/prop-types@npm:15.7.13"
checksum: 10c0/1b20fc67281902c6743379960247bc161f3f0406ffc0df8e7058745a85ea1538612109db0406290512947f9632fe9e10e7337bf0ce6338a91d6c948df16a7c61
languageName: node
linkType: hard

"@types/react-dom@npm:^18.3.1":
version: 18.3.5
resolution: "@types/react-dom@npm:18.3.5"
"@types/react-dom@npm:^19.0.2":
version: 19.0.2
resolution: "@types/react-dom@npm:19.0.2"
peerDependencies:
"@types/react": ^18.0.0
checksum: 10c0/b163d35a6b32a79f5782574a7aeb12a31a647e248792bf437e6d596e2676961c394c5e3c6e91d1ce44ae90441dbaf93158efb4f051c0d61e2612f1cb04ce4faa
"@types/react": ^19.0.0
checksum: 10c0/3d0c7b78dbe8df64ea769f30af990a5950173a8321c745fe11094d765423f7964c3519dca6e7cd36b4be6521c8efc690bdd3b79b327b229dd1e9d5a8bad677dd
languageName: node
linkType: hard

"@types/react@npm:^18.3.13":
version: 18.3.16
resolution: "@types/react@npm:18.3.16"
"@types/react@npm:^19.0.1":
version: 19.0.1
resolution: "@types/react@npm:19.0.1"
dependencies:
"@types/prop-types": "npm:*"
csstype: "npm:^3.0.2"
checksum: 10c0/9113d3003865eda07be0fb596f5bd8d7784b8900675090c56e75bdee45499f0b0de2481cbbeb5980c3b4ad18f234a49f39c9e62fd7b89a4e8530c74789f739bd
checksum: 10c0/25eb69114abb9a6d5fc4414ee584388275bbc9ac32976449cf58b95fe9880efe6b3f936c3842be9bed8c571546a9752e8d3e2095288381e9c809269f5f574f2e
languageName: node
linkType: hard

Expand Down Expand Up @@ -5633,7 +5625,7 @@ __metadata:
languageName: node
linkType: hard

"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0":
"loose-envify@npm:^1.0.0":
version: 1.4.0
resolution: "loose-envify@npm:1.4.0"
dependencies:
Expand Down Expand Up @@ -6646,15 +6638,14 @@ __metadata:
languageName: node
linkType: hard

"react-dom@npm:^18.2.0, react-dom@npm:^18.3.1":
version: 18.3.1
resolution: "react-dom@npm:18.3.1"
"react-dom@npm:^19.0.0":
version: 19.0.0
resolution: "react-dom@npm:19.0.0"
dependencies:
loose-envify: "npm:^1.1.0"
scheduler: "npm:^0.23.2"
scheduler: "npm:^0.25.0"
peerDependencies:
react: ^18.3.1
checksum: 10c0/a752496c1941f958f2e8ac56239172296fcddce1365ce45222d04a1947e0cc5547df3e8447f855a81d6d39f008d7c32eab43db3712077f09e3f67c4874973e85
react: ^19.0.0
checksum: 10c0/a36ce7ab507b237ae2759c984cdaad4af4096d8199fb65b3815c16825e5cfeb7293da790a3fc2184b52bfba7ba3ff31c058c01947aff6fd1a3701632aabaa6a9
languageName: node
linkType: hard

Expand Down Expand Up @@ -6726,12 +6717,10 @@ __metadata:
languageName: node
linkType: hard

"react@npm:^18.2.0, react@npm:^18.3.1":
version: 18.3.1
resolution: "react@npm:18.3.1"
dependencies:
loose-envify: "npm:^1.1.0"
checksum: 10c0/283e8c5efcf37802c9d1ce767f302dd569dd97a70d9bb8c7be79a789b9902451e0d16334b05d73299b20f048cbc3c7d288bbbde10b701fa194e2089c237dbea3
"react@npm:^19.0.0":
version: 19.0.0
resolution: "react@npm:19.0.0"
checksum: 10c0/9cad8f103e8e3a16d15cb18a0d8115d8bd9f9e1ce3420310aea381eb42aa0a4f812cf047bb5441349257a05fba8a291515691e3cb51267279b2d2c3253f38471
languageName: node
linkType: hard

Expand Down Expand Up @@ -7117,12 +7106,10 @@ __metadata:
languageName: node
linkType: hard

"scheduler@npm:^0.23.2":
version: 0.23.2
resolution: "scheduler@npm:0.23.2"
dependencies:
loose-envify: "npm:^1.1.0"
checksum: 10c0/26383305e249651d4c58e6705d5f8425f153211aef95f15161c151f7b8de885f24751b377e4a0b3dd42cce09aad3f87a61dab7636859c0d89b7daf1a1e2a5c78
"scheduler@npm:^0.25.0":
version: 0.25.0
resolution: "scheduler@npm:0.25.0"
checksum: 10c0/a4bb1da406b613ce72c1299db43759526058fdcc413999c3c3e0db8956df7633acf395cb20eb2303b6a65d658d66b6585d344460abaee8080b4aa931f10eaafe
languageName: node
linkType: hard

Expand Down

0 comments on commit bd335e7

Please sign in to comment.