From 712fab5b45a48926682c27c1aed9fd2331fc33bb Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 6 Nov 2023 10:25:54 +0900 Subject: [PATCH] chore: remove deprecated dependencies --- packages/backend/package.json | 6 ++---- packages/backend/src/server/web/index.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/backend/package.json b/packages/backend/package.json index 91b6def7..2d732404 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -32,6 +32,7 @@ "@koa/cors": "3.4.3", "@koa/multer": "3.0.2", "@koa/router": "9.0.1", + "@ladjs/koa-views": "9.0.0", "@peertube/http-signature": "1.7.0", "@redocly/openapi-core": "1.0.2", "@sinonjs/fake-timers": "9.1.2", @@ -82,7 +83,6 @@ "koa-remove-trailing-slashes": "2.0.3", "koa-send": "5.0.1", "koa-slow": "2.1.0", - "koa-views": "7.0.2", "megalodon": "workspace:*", "meilisearch": "0.34.1", "mfm-js": "0.23.3", @@ -152,12 +152,11 @@ "@types/koa-logger": "3.1.2", "@types/koa-mount": "4.0.2", "@types/koa-send": "4.1.3", - "@types/koa-views": "7.0.0", "@types/koa__cors": "3.3.0", "@types/koa__multer": "2.0.4", "@types/koa__router": "8.0.11", "@types/node": "18.11.18", - "@types/node-fetch": "3.0.3", + "@types/node-fetch": "2.6.8", "@types/nodemailer": "6.4.9", "@types/oauth": "0.9.1", "@types/probe-image-size": "7.2.0", @@ -167,7 +166,6 @@ "@types/qs": "6.9.7", "@types/random-seed": "0.3.3", "@types/ratelimiter": "3.4.4", - "@types/redis": "4.0.11", "@types/rename": "1.0.4", "@types/sanitize-html": "2.9.0", "@types/semver": "7.5.0", diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts index 52078515..3981d576 100644 --- a/packages/backend/src/server/web/index.ts +++ b/packages/backend/src/server/web/index.ts @@ -9,7 +9,7 @@ import Koa from "koa"; import Router from "@koa/router"; import send from "koa-send"; import favicon from "koa-favicon"; -import views from "koa-views"; +import views from "@ladjs/koa-views"; import sharp from "sharp"; import { createBullBoard } from "@bull-board/api"; import { BullAdapter } from "@bull-board/api/bullAdapter.js";