智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/60/606fca5950c9ff3b87762e88b33...

42 lines
1.8 KiB

## Unreleased
## 4.2.0
- support all text content types (#179)
- adds TypeScript integration testing (#177)
- removes testing against EOL Node.js verions
## 4.1.3
Reverted changes introduced in 4.1.2. Now 4.1.3 is effectively the same as 4.1.1.
## 4.1.2
Bad TypeScript definition file change (#173). Do not use this version.
## 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)
## 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
### Migrating from 4.x.x to 4.1.0
Migration from prior 4.x.x versions is strightforward.
- If you used `strict: true`, simply remove this option. The new defaults will behave the same way.
- If you used `strict: false`, set `parsedMethods` to the set of methods you would like to parse. For example, `parsedMethods: ['GET', 'POST', 'PUT', 'PATCH']`
## 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](https://snyk.io/vuln/npm:koa-body:20180127):
- 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.