parsedMethods option to specify which request methods will be parsedstrict option, which will be removed in koa-body 5.0.0Migration from prior 4.x.x versions is strightforward.
strict: true, simply remove this option. The new defaults will behave the same way.strict: false, set parsedMethods to the set of methods you would like to parse. For example, parsedMethods: ['GET', 'POST', 'PUT', 'PATCH']includeUnparsed option to get raw bodyTo address a potential security vulnerability:
- The files property has been moved to ctx.request.files. In prior versions, files was a property of ctx.request.body.
- The fields property is flatten (merged) into ctx.request.body. In prior versions, fields was a property of ctx.request.body.
If you do not use multipart uploads, no changes to your code need to be made.
Versions 1 and 2 of koa-body are deprecated and replaced with versions 3 and 4, respectively.