[Snyk] Upgrade koa from 2.16.1 to 3.0.0 #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade koa from 2.16.1 to 3.0.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 7 versions ahead of your current version.
The recommended version was released 24 days ago.
Release notes
Package name: koa
This is a major release.
Breaking
.redirect('back')
, adds.back(fallback_url)
@ fl0w #1115.redirect()
, don't render redirect values in anchor ref ff25eb4req.origin
should display the origin header if it exists, not the current hostname #1008.origin
now aligns with theOrigin
header as used in CORS..body=<json>
should not overwrite type if type already json #1120Set content-length: 0 if body is explicitly set to null @ ognjenjevremovic #1528
Remove obsolete createAsyncCtxStorageMiddleware #1817
ctx.throw
now requires a format ofctx.throw(status, error, properties)
. See: https://www.npmjs.com/package/http-errorsNew
const ctx = app.currentContext
.Fixes
ctx.type = 'json'
andctx.body = null
#1059 @ likegunRefactors
Dependencies
fix: don't render redirect values in anchor ref
Breaking Changes:
req.headers.origin
.body=<json>
does not overwrite.type=
if the type is already jsonENOENT
error support - please check your file handling functions3.0.0-alpha.3
breaking changes
http-errors
tov2.0.0
#1486ctx.throw
now requires a format ofctx.throw(status, error, properties)
. See: https://www.npmjs.com/package/http-errorsres.redirect('back')
, addback()
method toctx
#1115URLSearchParams
#1828createAsyncCtxStorageMiddleware
#1817features
updates
cookies
to~0.9.1
#1846statuses
to^2.0.1
supertest
to^7.0.0
#1841fixes
exports.defaults
inpackage.json
#1630ctx
in error handler #1758migrations
jest
to the native node test runner #1845fix: don't render redirect values in anchor ref
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: