Skip to content

Commit 2456bf8

Browse files
authored
fix(koa): Replace koa-bodyparser with koa-body (#3093)
1 parent 98fdda5 commit 2456bf8

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

docs/api/koa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ app.use(
253253

254254
### bodyParser
255255

256-
A reference to the [koa-bodyparser](https://github.com/koajs/bodyparser) module.
256+
A reference to the [koa-body](https://github.com/koajs/koa-body) module.
257257

258258
### cors
259259

packages/koa/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@
5656
"@feathersjs/transport-commons": "^5.0.0",
5757
"@koa/cors": "^4.0.0",
5858
"@types/koa": "^2.13.5",
59-
"@types/koa-bodyparser": "^4.3.10",
6059
"@types/koa-qs": "^2.0.0",
6160
"@types/koa-static": "^4.0.2",
6261
"@types/koa__cors": "^3.3.1",
6362
"koa": "^2.14.1",
64-
"koa-bodyparser": "^4.3.0",
63+
"koa-body": "^6.0.1",
6564
"koa-compose": "^4.1.0",
6665
"koa-qs": "^3.0.0",
6766
"koa-static": "^5.0.0"

packages/koa/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import koaQs from 'koa-qs'
33
import { Application as FeathersApplication } from '@feathersjs/feathers'
44
import { routing } from '@feathersjs/transport-commons'
55
import { createDebug } from '@feathersjs/commons'
6-
import bodyParser from 'koa-bodyparser'
6+
import { koaBody as bodyParser } from 'koa-body'
77
import cors from '@koa/cors'
88
import serveStatic from 'koa-static'
99

0 commit comments

Comments
 (0)