From 362c8a846fe41b59836e9ca8c306c45317929a8d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:02:26 +0000 Subject: [PATCH] build(deps): bump react and @types/react in /web 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] --- web/package-lock.json | 43 ++++-------------------- web/packages/demo/package.json | 4 +-- web/packages/demo/src/navbar/samples.tsx | 2 +- web/packages/demo/src/player.tsx | 2 +- 4 files changed, 10 insertions(+), 41 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 1fcb65b9dffd..64f112531d69 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -2571,13 +2571,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/prop-types": { - "version": "15.7.13", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz", - "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/qs": { "version": "6.9.17", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.17.tgz", @@ -2593,13 +2586,11 @@ "license": "MIT" }, "node_modules/@types/react": { - "version": "18.3.12", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz", - "integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==", + "version": "19.0.1", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.1.tgz", + "integrity": "sha512-YW6614BDhqbpR5KtUYzTA+zlA7nayzJRA9ljz9CQoxthR0sDisYZLuvSMsil36t4EH/uAt8T52Xb4sVw17G+SQ==", "dev": true, - "license": "MIT", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.0.2" } }, @@ -8890,6 +8881,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, "license": "MIT" }, "node_modules/js-yaml": { @@ -9527,17 +9519,6 @@ "dev": true, "license": "MIT" }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, "node_modules/loupe": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.2.tgz", @@ -11837,7 +11818,6 @@ "version": "19.0.0", "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -16305,29 +16285,18 @@ "version": "0.1.0", "license": "(MIT OR Apache-2.0)", "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", "vite": "^6.0.3" } }, - "packages/demo/node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "packages/extension": { "name": "ruffle-extension", "version": "0.1.0", diff --git a/web/packages/demo/package.json b/web/packages/demo/package.json index 605fe5183e45..9e4f0b56d4ec 100644 --- a/web/packages/demo/package.json +++ b/web/packages/demo/package.json @@ -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", diff --git a/web/packages/demo/src/navbar/samples.tsx b/web/packages/demo/src/navbar/samples.tsx index 5ecd4f98a9f4..a2f65439da8c 100644 --- a/web/packages/demo/src/navbar/samples.tsx +++ b/web/packages/demo/src/navbar/samples.tsx @@ -25,7 +25,7 @@ export interface DemoSwf { } interface SampleSelectionProperties { - sampleSelectionInput: RefObject; + sampleSelectionInput: RefObject; selectedSample: DemoSwf | null; setSelectedSample: (value: DemoSwf | null) => void; setSelectedFilename: (name: string | null) => void; diff --git a/web/packages/demo/src/player.tsx b/web/packages/demo/src/player.tsx index 6bfbd069186f..2f851cc9cec5 100644 --- a/web/packages/demo/src/player.tsx +++ b/web/packages/demo/src/player.tsx @@ -13,7 +13,7 @@ export interface PlayerAttributes { } export class Player extends React.Component { - private readonly container: React.RefObject; + private readonly container: React.RefObject; 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