chore(deps): update all non-major dependencies (#2926)

* chore(deps): update all non-major dependencies

* fix: correct breaking changes

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sct <ryan@sct.dev>
pull/3194/head
renovate[bot] 1 year ago committed by GitHub
parent cd3574851a
commit 1a95d423f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,145 +29,145 @@
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@formatjs/intl-displaynames": "6.0.3", "@formatjs/intl-displaynames": "6.2.3",
"@formatjs/intl-locale": "3.0.3", "@formatjs/intl-locale": "3.0.11",
"@formatjs/intl-pluralrules": "5.0.3", "@formatjs/intl-pluralrules": "5.1.8",
"@formatjs/intl-utils": "3.8.4", "@formatjs/intl-utils": "3.8.4",
"@headlessui/react": "0.0.0-insiders.b301f04", "@headlessui/react": "^1.7.7",
"@heroicons/react": "1.0.6", "@heroicons/react": "1.0.6",
"@supercharge/request-ip": "1.2.0", "@supercharge/request-ip": "1.2.0",
"@svgr/webpack": "6.3.1", "@svgr/webpack": "6.5.1",
"@tanem/react-nprogress": "5.0.11", "@tanem/react-nprogress": "5.0.22",
"ace-builds": "1.9.6", "ace-builds": "1.14.0",
"axios": "0.27.2", "axios": "0.27.2",
"axios-rate-limit": "1.3.0", "axios-rate-limit": "1.3.0",
"bcrypt": "5.0.1", "bcrypt": "5.1.0",
"bowser": "2.11.0", "bowser": "2.11.0",
"connect-typeorm": "1.1.4", "connect-typeorm": "1.1.4",
"cookie-parser": "1.4.6", "cookie-parser": "1.4.6",
"copy-to-clipboard": "3.3.2", "copy-to-clipboard": "3.3.3",
"country-flag-icons": "1.5.5", "country-flag-icons": "1.5.5",
"cronstrue": "2.11.0", "cronstrue": "2.21.0",
"csurf": "1.11.0", "csurf": "1.11.0",
"date-fns": "2.29.1", "date-fns": "2.29.3",
"email-templates": "9.0.0", "email-templates": "9.0.0",
"express": "4.18.1", "express": "4.18.2",
"express-openapi-validator": "4.13.8", "express-openapi-validator": "4.13.8",
"express-rate-limit": "6.5.1", "express-rate-limit": "6.7.0",
"express-session": "1.17.3", "express-session": "1.17.3",
"formik": "2.2.9", "formik": "2.2.9",
"gravatar-url": "3.1.0", "gravatar-url": "3.1.0",
"intl": "1.2.5", "intl": "1.2.5",
"lodash": "4.17.21", "lodash": "4.17.21",
"next": "12.2.5", "next": "12.3.4",
"node-cache": "5.1.2", "node-cache": "5.1.2",
"node-gyp": "9.1.0", "node-gyp": "9.3.1",
"node-schedule": "2.1.0", "node-schedule": "2.1.0",
"nodemailer": "6.7.8", "nodemailer": "6.8.0",
"openpgp": "5.4.0", "openpgp": "5.5.0",
"plex-api": "5.3.2", "plex-api": "5.3.2",
"pug": "3.0.2", "pug": "3.0.2",
"pulltorefreshjs": "0.1.22", "pulltorefreshjs": "0.1.22",
"react": "18.2.0", "react": "18.2.0",
"react-ace": "10.1.0", "react-ace": "10.1.0",
"react-animate-height": "2.1.2", "react-animate-height": "2.1.2",
"react-aria": "^3.21.0", "react-aria": "3.22.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-intersection-observer": "9.4.0", "react-intersection-observer": "9.4.1",
"react-intl": "6.0.5", "react-intl": "6.2.5",
"react-markdown": "8.0.3", "react-markdown": "8.0.4",
"react-popper-tooltip": "4.4.2", "react-popper-tooltip": "4.4.2",
"react-select": "5.4.0", "react-select": "5.7.0",
"react-spring": "9.5.2", "react-spring": "9.6.1",
"react-toast-notifications": "2.5.1", "react-toast-notifications": "2.5.1",
"react-truncate-markup": "5.1.2", "react-truncate-markup": "5.1.2",
"react-use-clipboard": "1.0.8", "react-use-clipboard": "1.0.9",
"reflect-metadata": "0.1.13", "reflect-metadata": "0.1.13",
"secure-random-password": "0.2.3", "secure-random-password": "0.2.3",
"semver": "7.3.7", "semver": "7.3.8",
"sqlite3": "5.0.11", "sqlite3": "5.1.4",
"swagger-ui-express": "4.5.0", "swagger-ui-express": "4.6.0",
"swr": "1.3.0", "swr": "1.3.0",
"typeorm": "0.3.7", "typeorm": "0.3.11",
"web-push": "3.5.0", "web-push": "3.5.0",
"winston": "3.8.1", "winston": "3.8.2",
"winston-daily-rotate-file": "4.7.1", "winston-daily-rotate-file": "4.7.1",
"xml2js": "0.4.23", "xml2js": "0.4.23",
"yamljs": "0.3.0", "yamljs": "0.3.0",
"yup": "0.32.11" "yup": "0.32.11"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "7.18.10", "@babel/cli": "7.20.7",
"@commitlint/cli": "17.0.3", "@commitlint/cli": "17.3.0",
"@commitlint/config-conventional": "17.0.3", "@commitlint/config-conventional": "17.3.0",
"@semantic-release/changelog": "6.0.1", "@semantic-release/changelog": "6.0.2",
"@semantic-release/commit-analyzer": "9.0.2", "@semantic-release/commit-analyzer": "9.0.2",
"@semantic-release/exec": "6.0.3", "@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1", "@semantic-release/git": "10.0.1",
"@tailwindcss/aspect-ratio": "0.4.0", "@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/forms": "0.5.2", "@tailwindcss/forms": "0.5.3",
"@tailwindcss/typography": "0.5.4", "@tailwindcss/typography": "0.5.8",
"@types/bcrypt": "5.0.0", "@types/bcrypt": "5.0.0",
"@types/cookie-parser": "1.4.3", "@types/cookie-parser": "1.4.3",
"@types/country-flag-icons": "1.2.0", "@types/country-flag-icons": "1.2.0",
"@types/csurf": "1.11.2", "@types/csurf": "1.11.2",
"@types/email-templates": "8.0.4", "@types/email-templates": "8.0.4",
"@types/express": "4.17.13", "@types/express": "4.17.15",
"@types/express-session": "1.17.4", "@types/express-session": "1.17.5",
"@types/lodash": "4.14.183", "@types/lodash": "4.14.191",
"@types/node": "17.0.36", "@types/node": "17.0.36",
"@types/node-schedule": "2.1.0", "@types/node-schedule": "2.1.0",
"@types/nodemailer": "6.4.5", "@types/nodemailer": "6.4.7",
"@types/pulltorefreshjs": "0.1.5", "@types/pulltorefreshjs": "0.1.5",
"@types/react": "18.0.17", "@types/react": "18.0.26",
"@types/react-dom": "18.0.6", "@types/react-dom": "18.0.10",
"@types/react-transition-group": "4.4.5", "@types/react-transition-group": "4.4.5",
"@types/secure-random-password": "0.2.1", "@types/secure-random-password": "0.2.1",
"@types/semver": "7.3.12", "@types/semver": "7.3.13",
"@types/swagger-ui-express": "4.1.3", "@types/swagger-ui-express": "4.1.3",
"@types/web-push": "3.3.2", "@types/web-push": "3.3.2",
"@types/xml2js": "0.4.11", "@types/xml2js": "0.4.11",
"@types/yamljs": "0.2.31", "@types/yamljs": "0.2.31",
"@types/yup": "0.29.14", "@types/yup": "0.29.14",
"@typescript-eslint/eslint-plugin": "5.33.1", "@typescript-eslint/eslint-plugin": "5.48.0",
"@typescript-eslint/parser": "5.33.1", "@typescript-eslint/parser": "5.48.0",
"autoprefixer": "10.4.8", "autoprefixer": "10.4.13",
"babel-plugin-react-intl": "8.2.25", "babel-plugin-react-intl": "8.2.25",
"babel-plugin-react-intl-auto": "3.3.0", "babel-plugin-react-intl-auto": "3.3.0",
"commitizen": "4.2.5", "commitizen": "4.2.6",
"copyfiles": "2.4.1", "copyfiles": "2.4.1",
"cy-mobile-commands": "0.3.0", "cy-mobile-commands": "0.3.0",
"cypress": "10.6.0", "cypress": "10.11.0",
"cz-conventional-changelog": "3.3.0", "cz-conventional-changelog": "3.3.0",
"eslint": "8.22.0", "eslint": "8.31.0",
"eslint-config-next": "12.2.5", "eslint-config-next": "12.3.4",
"eslint-config-prettier": "8.5.0", "eslint-config-prettier": "8.6.0",
"eslint-plugin-formatjs": "4.1.0", "eslint-plugin-formatjs": "4.3.9",
"eslint-plugin-jsx-a11y": "6.6.1", "eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-no-relative-import-paths": "1.4.0", "eslint-plugin-no-relative-import-paths": "1.5.2",
"eslint-plugin-prettier": "4.2.1", "eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.30.1", "eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-react-hooks": "4.6.0",
"extract-react-intl-messages": "4.1.1", "extract-react-intl-messages": "4.1.1",
"husky": "8.0.1", "husky": "8.0.2",
"lint-staged": "12.4.3", "lint-staged": "12.5.0",
"nodemon": "2.0.19", "nodemon": "2.0.20",
"postcss": "8.4.16", "postcss": "8.4.20",
"prettier": "2.7.1", "prettier": "2.8.1",
"prettier-plugin-organize-imports": "3.1.0", "prettier-plugin-organize-imports": "3.2.1",
"prettier-plugin-tailwindcss": "0.1.13", "prettier-plugin-tailwindcss": "0.2.1",
"semantic-release": "19.0.3", "semantic-release": "19.0.5",
"semantic-release-docker-buildx": "1.0.1", "semantic-release-docker-buildx": "1.0.1",
"tailwindcss": "3.1.8", "tailwindcss": "3.2.4",
"ts-node": "10.9.1", "ts-node": "10.9.1",
"tsc-alias": "1.7.0", "tsc-alias": "1.8.2",
"tsconfig-paths": "4.1.0", "tsconfig-paths": "4.1.2",
"typescript": "4.7.4" "typescript": "4.9.4"
}, },
"resolutions": { "resolutions": {
"sqlite3/node-gyp": "8.4.1", "sqlite3/node-gyp": "8.4.1",
"@types/react": "18.0.17", "@types/react": "18.0.26",
"@types/react-dom": "18.0.6" "@types/react-dom": "18.0.10"
}, },
"config": { "config": {
"commitizen": { "commitizen": {

@ -34,7 +34,7 @@ const dataSource = new DataSource(
process.env.NODE_ENV !== 'production' ? devConfig : prodConfig process.env.NODE_ENV !== 'production' ? devConfig : prodConfig
); );
export const getRepository = <Entity>( export const getRepository = <Entity extends object>(
target: EntityTarget<Entity> target: EntityTarget<Entity>
): Repository<Entity> => { ): Repository<Entity> => {
return dataSource.getRepository(target); return dataSource.getRepository(target);

@ -0,0 +1,9 @@
import 'express-session';
// Declaration merging to apply our own types to SessionData
// See: (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/express-session/index.d.ts#L23)
declare module 'express-session' {
interface SessionData {
userId: number;
}
}

@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */
import type { User } from '@server/entity/User'; import type { User } from '@server/entity/User';
import type { NextFunction, Request, Response } from 'express'; import type { NextFunction, Request, Response } from 'express';
import 'express-session';
declare global { declare global {
namespace Express { namespace Express {
@ -16,11 +17,3 @@ declare global {
next: NextFunction next: NextFunction
) => Promise<void | NextFunction> | void | NextFunction; ) => Promise<void | NextFunction> | void | NextFunction;
} }
// Declaration merging to apply our own types to SessionData
// See: (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/express-session/index.d.ts#L23)
declare module 'express-session' {
export interface SessionData {
userId: number;
}
}

@ -372,26 +372,27 @@ const IssueDetails = () => {
<span>{intl.formatMessage(messages.playonplex)}</span> <span>{intl.formatMessage(messages.playonplex)}</span>
</Button> </Button>
)} )}
{issueData?.media.serviceUrl && hasPermission(Permission.ADMIN) && ( {issueData?.media.serviceUrl &&
<Button hasPermission(Permission.ADMIN) && (
as="a" <Button
href={issueData?.media.serviceUrl} as="a"
target="_blank" href={issueData?.media.serviceUrl}
rel="noreferrer" target="_blank"
className="w-full" rel="noreferrer"
buttonType="ghost" className="w-full"
> buttonType="ghost"
<ServerIcon /> >
<span> <ServerIcon />
{intl.formatMessage(messages.openinarr, { <span>
arr: {intl.formatMessage(messages.openinarr, {
issueData.media.mediaType === MediaType.MOVIE arr:
? 'Radarr' issueData.media.mediaType === MediaType.MOVIE
: 'Sonarr', ? 'Radarr'
})} : 'Sonarr',
</span> })}
</Button> </span>
)} </Button>
)}
{issueData?.media.plexUrl4k && ( {issueData?.media.plexUrl4k && (
<Button <Button
as="a" as="a"
@ -641,26 +642,27 @@ const IssueDetails = () => {
<span>{intl.formatMessage(messages.play4konplex)}</span> <span>{intl.formatMessage(messages.play4konplex)}</span>
</Button> </Button>
)} )}
{issueData?.media.serviceUrl4k && hasPermission(Permission.ADMIN) && ( {issueData?.media.serviceUrl4k &&
<Button hasPermission(Permission.ADMIN) && (
as="a" <Button
href={issueData?.media.serviceUrl4k} as="a"
target="_blank" href={issueData?.media.serviceUrl4k}
rel="noreferrer" target="_blank"
className="w-full" rel="noreferrer"
buttonType="ghost" className="w-full"
> buttonType="ghost"
<ServerIcon /> >
<span> <ServerIcon />
{intl.formatMessage(messages.openin4karr, { <span>
arr: {intl.formatMessage(messages.openin4karr, {
issueData.media.mediaType === MediaType.MOVIE arr:
? 'Radarr' issueData.media.mediaType === MediaType.MOVIE
: 'Sonarr', ? 'Radarr'
})} : 'Sonarr',
</span> })}
</Button> </span>
)} </Button>
)}
</div> </div>
</div> </div>
</div> </div>

@ -784,12 +784,13 @@ const TvDetails = ({ tv }: TvDetailsProps) => {
)} )}
</div> </div>
)} )}
{data.originalName && data.originalLanguage !== locale.slice(0, 2) && ( {data.originalName &&
<div className="media-fact"> data.originalLanguage !== locale.slice(0, 2) && (
<span>{intl.formatMessage(messages.originaltitle)}</span> <div className="media-fact">
<span className="media-fact-value">{data.originalName}</span> <span>{intl.formatMessage(messages.originaltitle)}</span>
</div> <span className="media-fact-value">{data.originalName}</span>
)} </div>
)}
{data.keywords.some( {data.keywords.some(
(keyword) => keyword.id === ANIME_KEYWORD_ID (keyword) => keyword.id === ANIME_KEYWORD_ID
) && ( ) && (

@ -9,7 +9,10 @@ export type Maybe<T> = T | null | undefined;
* @param component Main object you want to apply properties to * @param component Main object you want to apply properties to
* @param properties Object of properties you want to type on the main component * @param properties Object of properties you want to type on the main component
*/ */
export function withProperties<A, B>(component: A, properties: B): A & B { export function withProperties<A extends object, B extends object>(
component: A,
properties: B
): A & B {
(Object.keys(properties) as (keyof B)[]).forEach((key) => { (Object.keys(properties) as (keyof B)[]).forEach((key) => {
Object.assign(component, { [key]: properties[key] }); Object.assign(component, { [key]: properties[key] });
}); });

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save