From e4106f0ede441aa637c50de3bf5279bbddf2ee9d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 8 Dec 2024 17:24:47 -0800 Subject: [PATCH] Upgrade TypeScript and core-js (cherry picked from commit 148480909917f69ff3b2ca547ccb4716dd56606e) Closes #10763 --- .../createMovieQualityProfileSelector.ts | 3 ++- package.json | 4 ++-- yarn.lock | 16 ++++++++-------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/frontend/src/Store/Selectors/createMovieQualityProfileSelector.ts b/frontend/src/Store/Selectors/createMovieQualityProfileSelector.ts index 1997cdef2..73d457094 100644 --- a/frontend/src/Store/Selectors/createMovieQualityProfileSelector.ts +++ b/frontend/src/Store/Selectors/createMovieQualityProfileSelector.ts @@ -1,13 +1,14 @@ import { createSelector } from 'reselect'; import AppState from 'App/State/AppState'; import Movie from 'Movie/Movie'; +import QualityProfile from 'typings/QualityProfile'; import { createMovieSelectorForHook } from './createMovieSelector'; function createMovieQualityProfileSelector(movieId: number) { return createSelector( (state: AppState) => state.settings.qualityProfiles.items, createMovieSelectorForHook(movieId), - (qualityProfiles, movie = {} as Movie) => { + (qualityProfiles: QualityProfile[], movie = {} as Movie) => { return qualityProfiles.find( (profile) => profile.id === movie.qualityProfileId ); diff --git a/package.json b/package.json index 444ba323d..afe89811c 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "reselect": "4.1.8", "stacktrace-js": "2.0.2", "swiper": "8.3.2", - "typescript": "5.1.6" + "typescript": "5.7.2" }, "devDependencies": { "@babel/core": "7.25.8", @@ -108,7 +108,7 @@ "babel-loader": "9.2.1", "babel-plugin-inline-classnames": "2.0.1", "babel-plugin-transform-react-remove-prop-types": "0.4.24", - "core-js": "3.38.1", + "core-js": "3.39.0", "css-loader": "6.7.3", "css-modules-typescript-loader": "4.0.1", "eslint": "8.57.1", diff --git a/yarn.lock b/yarn.lock index 0dcc691d6..67383b166 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2410,10 +2410,10 @@ core-js-compat@^3.38.0, core-js-compat@^3.38.1: dependencies: browserslist "^4.23.3" -core-js@3.38.1: - version "3.38.1" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.38.1.tgz#aa375b79a286a670388a1a363363d53677c0383e" - integrity sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw== +core-js@3.39.0: + version "3.39.0" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.39.0.tgz#57f7647f4d2d030c32a72ea23a0555b2eaa30f83" + integrity sha512-raM0ew0/jJUqkJ0E6e8UDtl+y/7ktFivgWvqw8dNSQeNWoSDLvQ1H/RN3aPXB9tBd4/FhyR4RDPGhsNIMsAn7g== core-js@^2.4.0: version "2.6.12" @@ -6724,10 +6724,10 @@ typescript-plugin-css-modules@5.0.1: stylus "^0.59.0" tsconfig-paths "^4.1.2" -typescript@5.1.6: - version "5.1.6" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274" - integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== +typescript@5.7.2: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== unbox-primitive@^1.0.2: version "1.0.2"