Skip to content

Commit

Permalink
fix: use @ladjs/koa-views instead of deprecated koa-views, closes #876
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jan 14, 2025
1 parent eac5169 commit 1b58876
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"@bull-board/api": "6.6.1",
"@bull-board/ui": "6.6.1",
"@koa/bodyparser": "^5.1.1",
"@ladjs/koa-views": "^9.0.0",
"ejs": "^3.1.10",
"koa": "^2.15.3",
"koa-mount": "^4.0.0",
"koa-router": "^13.0.1",
"koa-static": "^5.0.0",
"koa-views": "^8.1.0"
"koa-static": "^5.0.0"
},
"devDependencies": {
"@types/co-body": "^6.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/koa/src/KoaAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import mount from 'koa-mount';
import Router from 'koa-router';
import { bodyParser } from '@koa/bodyparser';
import serve from 'koa-static';
import views from 'koa-views';
import views from '@ladjs/koa-views';
import path from 'path';

export class KoaAdapter implements IServerAdapter {
Expand Down
15 changes: 14 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,19 @@
resolved "https://registry.yarnpkg.com/@ladjs/consolidate/-/consolidate-1.0.1.tgz#95740c59b1c5b46e9894d14295347de381cef610"
integrity sha512-LhB1s4u6mggtyetHvi0hCPmxVMR8cF5Rhs/M/AY4afOeFe2W3cWUbnHXEjKx4T2HG7WwpDmMua+RHhyRqYzz4A==

"@ladjs/koa-views@^9.0.0":
version "9.0.0"
resolved "https://registry.yarnpkg.com/@ladjs/koa-views/-/koa-views-9.0.0.tgz#22db62988e5040102da94b73133a7f97b381c02a"
integrity sha512-/nzUN3HhB7SIxrE4c2MXCLARXMwgoy7xJogyX8lNJo4VBxM6dVQ47iZWjOoHxTBKGFNAv2OTQ0rWI7HYpiv8kg==
dependencies:
"@ladjs/consolidate" "^1.0.1"
debug "^4.3.4"
get-paths "0.0.7"
koa-send "^5.0.1"
mz "^2.7.0"
pretty "^2.0.0"
resolve-path "^1.4.0"

"@lerna/add@4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@lerna/add/-/add-4.0.0.tgz#c36f57d132502a57b9e7058d1548b7a565ef183f"
Expand Down Expand Up @@ -8904,7 +8917,7 @@ koa-static@^5.0.0:
debug "^3.1.0"
koa-send "^5.0.0"

koa-views@*, koa-views@^8.1.0:
koa-views@*:
version "8.1.0"
resolved "https://registry.yarnpkg.com/koa-views/-/koa-views-8.1.0.tgz#d06d88140863b0fc35094b81d89558bb0077ce47"
integrity sha512-sIkZeplf7YKg1+OjYuzxU5zQvzbfdwFKzD8XNLKFHRMFZXWBTW+S/WQwQ32fzZiJp1lPxz0QlzNJkkGu0NVIdg==
Expand Down

0 comments on commit 1b58876

Please sign in to comment.