From 14267d9621f1530830b35a285358f60097a00227 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Jan 2025 10:47:05 +0000 Subject: [PATCH 1/3] deps: bump the react group across 1 directory with 4 updates Bumps the react group with 4 updates in the / directory: [react](https://github.com/facebook/react/tree/HEAD/packages/react), [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react), [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) and [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom). 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) Updates `react-dom` 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-dom) Updates `@types/react-dom` from 18.3.1 to 19.0.2 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) 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) Updates `@types/react-dom` from 18.3.1 to 19.0.2 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) --- updated-dependencies: - dependency-name: react dependency-type: direct:production update-type: version-update:semver-major dependency-group: react - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-major dependency-group: react - dependency-name: react-dom dependency-type: direct:production update-type: version-update:semver-major dependency-group: react - dependency-name: "@types/react-dom" dependency-type: direct:development update-type: version-update:semver-major dependency-group: react - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-major dependency-group: react - dependency-name: "@types/react-dom" dependency-type: direct:development update-type: version-update:semver-major dependency-group: react ... Signed-off-by: dependabot[bot] --- package-lock.json | 75 +++++++++++++++++++++-------------------------- package.json | 8 ++--- 2 files changed, 37 insertions(+), 46 deletions(-) diff --git a/package-lock.json b/package-lock.json index fabbe1d19..64792d3c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,11 +64,11 @@ "promise.prototype.finally": "^3.1.2", "prop-types": "^15.6.2", "qs-stringify": "^1.2.0", - "react": "^18.0.0", + "react": "^19.0.0", "react-abstract-autocomplete": "^2.0.3", "react-async-hook": "^4.0.0", "react-bus": "^4.0.0", - "react-dom": "^18.0.0", + "react-dom": "^19.0.0", "react-google-button": "^0.8.0", "react-markdown": "^9.0.1", "react-redux": "^9.2.0", @@ -99,8 +99,8 @@ "@types/json-schema": "^7.0.15", "@types/natural-compare": "^1.4.3", "@types/node": "^18.19.3", - "@types/react": "^18.3.4", - "@types/react-dom": "^18.3.0", + "@types/react": "^19.0.2", + "@types/react-dom": "^19.0.2", "@types/uuid": "^10.0.0", "@vitejs/plugin-react": "^4.3.4", "@vitest/coverage-v8": "^2.1.8", @@ -2639,23 +2639,20 @@ "license": "MIT" }, "node_modules/@types/react": { - "version": "18.3.18", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.18.tgz", - "integrity": "sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==", - "license": "MIT", + "version": "19.0.2", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.2.tgz", + "integrity": "sha512-USU8ZI/xyKJwFTpjSVIrSeHBVAGagkHQKPNbxeWwql/vDmnTIBgx+TJnhFnj1NXgz8XfprU0egV2dROLGpsBEg==", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.0.2" } }, "node_modules/@types/react-dom": { - "version": "18.3.5", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.5.tgz", - "integrity": "sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==", + "version": "19.0.2", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.2.tgz", + "integrity": "sha512-c1s+7TKFaDRRxr1TxccIX2u7sfCnc3RxkVyBIUA2lCpyqCF+QoAwQ/CBg7bsMdVwP120HEH143VQezKtef5nCg==", "dev": true, - "license": "MIT", "peerDependencies": { - "@types/react": "^18.0.0" + "@types/react": "^19.0.0" } }, "node_modules/@types/react-transition-group": { @@ -4845,7 +4842,6 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", - "license": "MIT", "dependencies": { "@babel/runtime": "^7.8.7", "csstype": "^3.0.2" @@ -6599,7 +6595,6 @@ "version": "11.15.0", "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.15.0.tgz", "integrity": "sha512-MLk8IvZntxOMg7lDBLw2qgTHHv664bYoYmnFTmE0Gm/FW67aOJk0WM3ctMcG+Xhcv+vh5uyyXwxvxhSeJzSe+w==", - "license": "MIT", "dependencies": { "motion-dom": "^11.14.3", "motion-utils": "^11.14.3", @@ -9719,14 +9714,12 @@ "node_modules/motion-dom": { "version": "11.14.3", "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-11.14.3.tgz", - "integrity": "sha512-lW+D2wBy5vxLJi6aCP0xyxTxlTfiu+b+zcpVbGVFUxotwThqhdpPRSmX8xztAgtZMPMeU0WGVn/k1w4I+TbPqA==", - "license": "MIT" + "integrity": "sha512-lW+D2wBy5vxLJi6aCP0xyxTxlTfiu+b+zcpVbGVFUxotwThqhdpPRSmX8xztAgtZMPMeU0WGVn/k1w4I+TbPqA==" }, "node_modules/motion-utils": { "version": "11.14.3", "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-11.14.3.tgz", - "integrity": "sha512-Xg+8xnqIJTpr0L/cidfTTBFkvRw26ZtGGuIhA94J9PQ2p4mEa06Xx7QVYZH0BP+EpMSaDlu+q0I0mmvwADPsaQ==", - "license": "MIT" + "integrity": "sha512-Xg+8xnqIJTpr0L/cidfTTBFkvRw26ZtGGuIhA94J9PQ2p4mEa06Xx7QVYZH0BP+EpMSaDlu+q0I0mmvwADPsaQ==" }, "node_modules/ms": { "version": "2.1.3", @@ -10698,13 +10691,9 @@ } }, "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==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", "engines": { "node": ">=0.10.0" } @@ -10757,17 +10746,24 @@ "react": ">=17.0.0 || ^19.0.0-0" } }, + "node_modules/react-bus/node_modules/@types/react": { + "version": "18.3.18", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.18.tgz", + "integrity": "sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.0.2" + } + }, "node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", - "license": "MIT", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" + "scheduler": "^0.25.0" }, "peerDependencies": { - "react": "^18.3.1" + "react": "^19.0.0" } }, "node_modules/react-google-button": { @@ -10851,7 +10847,6 @@ "version": "4.4.5", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==", - "license": "BSD-3-Clause", "dependencies": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", @@ -11287,13 +11282,9 @@ } }, "node_modules/scheduler": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", - "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==" }, "node_modules/screenfull": { "version": "6.0.2", diff --git a/package.json b/package.json index f399ece8c..332f80f9f 100644 --- a/package.json +++ b/package.json @@ -60,11 +60,11 @@ "promise.prototype.finally": "^3.1.2", "prop-types": "^15.6.2", "qs-stringify": "^1.2.0", - "react": "^18.0.0", + "react": "^19.0.0", "react-abstract-autocomplete": "^2.0.3", "react-async-hook": "^4.0.0", "react-bus": "^4.0.0", - "react-dom": "^18.0.0", + "react-dom": "^19.0.0", "react-google-button": "^0.8.0", "react-markdown": "^9.0.1", "react-redux": "^9.2.0", @@ -95,8 +95,8 @@ "@types/json-schema": "^7.0.15", "@types/natural-compare": "^1.4.3", "@types/node": "^18.19.3", - "@types/react": "^18.3.4", - "@types/react-dom": "^18.3.0", + "@types/react": "^19.0.2", + "@types/react-dom": "^19.0.2", "@types/uuid": "^10.0.0", "@vitejs/plugin-react": "^4.3.4", "@vitest/coverage-v8": "^2.1.8", From 83d3c74676079255d764c0ec469c0d3b6510dc50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 3 Jan 2025 12:09:35 +0100 Subject: [PATCH 2/3] deps: bump react-abstract-autocomplete --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 64792d3c3..d7611d7ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65,7 +65,7 @@ "prop-types": "^15.6.2", "qs-stringify": "^1.2.0", "react": "^19.0.0", - "react-abstract-autocomplete": "^2.0.3", + "react-abstract-autocomplete": "^2.0.4", "react-async-hook": "^4.0.0", "react-bus": "^4.0.0", "react-dom": "^19.0.0", @@ -10699,16 +10699,16 @@ } }, "node_modules/react-abstract-autocomplete": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/react-abstract-autocomplete/-/react-abstract-autocomplete-2.0.3.tgz", - "integrity": "sha512-jFYC/M+GK/3kJTm7DRcl//APXqATiazZaRa+BBcc7u9bvZVunteoM+Abh8e/Cg1blSJpKo16dEHcWco+mPxRow==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/react-abstract-autocomplete/-/react-abstract-autocomplete-2.0.4.tgz", + "integrity": "sha512-/qscBlTYqLHBe2g2BGlkzHyl2ET6NgTgnGLQZZi1UsXeOXiSJVO0yhChrFxTVRNyp6NGfKv/OAIi2UtACaagkw==", "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5", "prop-types": "^15.7.2" }, "peerDependencies": { - "react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" + "react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "node_modules/react-abstract-autocomplete/node_modules/escape-string-regexp": { diff --git a/package.json b/package.json index 332f80f9f..6255330f9 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "prop-types": "^15.6.2", "qs-stringify": "^1.2.0", "react": "^19.0.0", - "react-abstract-autocomplete": "^2.0.3", + "react-abstract-autocomplete": "^2.0.4", "react-async-hook": "^4.0.0", "react-bus": "^4.0.0", "react-dom": "^19.0.0", From 26ef8810aa59c9a4ab3e1331fa2a6307ecf1c71d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 3 Jan 2025 12:15:41 +0100 Subject: [PATCH 3/3] update types --- src/components/Chat/ChatMessages.tsx | 2 +- src/components/DialogCloseAnimation/index.tsx | 4 ++-- src/components/MediaList/MediaRowBase.tsx | 2 +- src/components/PlaylistManager/Panel/PlaylistItemRow.tsx | 2 +- src/hooks/useUserCard.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Chat/ChatMessages.tsx b/src/components/Chat/ChatMessages.tsx index ccdf0376f..a12ff9e81 100644 --- a/src/components/Chat/ChatMessages.tsx +++ b/src/components/Chat/ChatMessages.tsx @@ -24,7 +24,7 @@ function checkIsScrolledToBottom(el: HTMLElement) { return true; } -function useScrolledToBottom(ref: React.RefObject, initialValue = true) { +function useScrolledToBottom(ref: React.RefObject, initialValue = true) { const [isScrolledToBottom, setScrolledToBottom] = useState(initialValue); const update = useCallback(() => { diff --git a/src/components/DialogCloseAnimation/index.tsx b/src/components/DialogCloseAnimation/index.tsx index 3848ff882..f5b490dac 100644 --- a/src/components/DialogCloseAnimation/index.tsx +++ b/src/components/DialogCloseAnimation/index.tsx @@ -2,12 +2,12 @@ import React from 'react'; import PropTypes from 'prop-types'; type DialogCloseAnimationProps = { - children: React.ReactElement | null | false | undefined, + children: React.ReactElement<{ open: boolean }> | null | false | undefined, delay: number, }; type DialogCloseAnimationState = { - cachedChildren: React.ReactElement | null, + cachedChildren: React.ReactElement<{ open: boolean }> | null, }; /** diff --git a/src/components/MediaList/MediaRowBase.tsx b/src/components/MediaList/MediaRowBase.tsx index e798366e0..3dc3182f0 100644 --- a/src/components/MediaList/MediaRowBase.tsx +++ b/src/components/MediaList/MediaRowBase.tsx @@ -30,7 +30,7 @@ interface MediaRowBaseProps extends React.ComponentProps<'div'> { media: Media, children: React.ReactNode, onClick?: (event?: React.MouseEvent) => void, - containerRef?: React.RefObject, + containerRef?: React.RefObject, } function MediaRowBase({ className, diff --git a/src/components/PlaylistManager/Panel/PlaylistItemRow.tsx b/src/components/PlaylistManager/Panel/PlaylistItemRow.tsx index 24485dd59..0ea7e617e 100644 --- a/src/components/PlaylistManager/Panel/PlaylistItemRow.tsx +++ b/src/components/PlaylistManager/Panel/PlaylistItemRow.tsx @@ -12,7 +12,7 @@ type PlaylistItemRowProps = { className?: string, // For virtual list positioning style?: React.CSSProperties, - containerRef?: React.RefObject, + containerRef?: React.RefObject, index: number, media: PlaylistItem, onClick: () => void, diff --git a/src/hooks/useUserCard.tsx b/src/hooks/useUserCard.tsx index 41aefde45..7afc2bcab 100644 --- a/src/hooks/useUserCard.tsx +++ b/src/hooks/useUserCard.tsx @@ -2,7 +2,7 @@ import { useCallback, useState } from 'react'; import UserCard from '../components/UserCard'; import type { User } from '../reducers/users'; -export default function useUserCard(user: User, refAnchor: React.RefObject) { +export default function useUserCard(user: User, refAnchor: React.RefObject) { const [isOpen, setOpen] = useState(false); const [position, setPosition] = useState<{ x: number, y: number } | null>(null);