Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-body

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-body - npm Package Versions

2345

6.0.1

Diff

markherhold
published 6.0.0 •

Changelog

Source

6.0.0 (future release)

  • rewrite in TypeScript (thanks @TheDadi)
  • removed the deprecated strict option
  • add "application/reports+json" to allowed types (#204)
  • test against Node.js 14+
dlau
published 5.0.0 •

Changelog

Source

5.0.0

Mistakenly republished v4.2.0. See #207.

markherhold
published 4.2.0 •

Changelog

Source

4.2.0

  • support all text content types (#179)
  • adds TypeScript integration testing (#177)
  • removes testing against EOL Node.js verions
markherhold
published 4.1.3 •

Changelog

Source

4.1.3

Reverted changes introduced in 4.1.2. Now 4.1.3 is effectively the same as 4.1.1.

markherhold
published 4.1.2 •

Changelog

Source

4.1.2

Bad TypeScript definition file change (#173). Do not use this version.

markherhold
published 4.1.1 •

Changelog

Source

4.1.1

  • adds support for JSON Patch, JSON API and CSP report out of the box:
    • application/json-patch+json (https://tools.ietf.org/html/rfc6902)
    • application/vnd.api+json (https://jsonapi.org/)
    • application/csp-report (https://www.w3.org/TR/CSP2/#violation-reports)
markherhold
published 4.1.0 •

Changelog

Source

4.1.0

  • adds parsedMethods option to specify which request methods will be parsed
  • deprecates strict option, which will be removed in koa-body 5.0.0
markherhold
published 4.0.8 •

Changelog

Source

4.0.0 - 4.0.8 - Summary of Changes

  • mutliple type definition updates
  • adds includeUnparsed option to get raw body

Breaking Changes in v3/4

To 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.

markherhold
published 4.0.7 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc