benchmarks
benchmarks copied to clipboard
chore(deps): bump koa from 2.16.1 to 3.0.0
Bumps koa from 2.16.1 to 3.0.0.
Release notes
Sourced from koa's releases.
v3.0.0
This is a major release.
Breaking
- Minimum node v18
- Removes
.redirect('back'), adds.back(fallback_url)@fl0wkoajs/koa#1115- For
.redirect(), don't render redirect values in anchor ref https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312req.originshould display the origin header if it exists, not the current hostname koajs/koa#1008.originnow aligns with theOriginheader as used in CORS..body=<json>should not overwrite type if type already json koajs/koa#1120- Remove special ENOENT support koajs/koa#1861 - this is a big change and will require any file servers to adapt to this change for handling 404s / files not found
- Removes generator deprecation messages. Generators are no longer supported. Koa no longer asserts if generators are used. Set content-length: 0 if body is explicitly set to null
@ognjenjevremovic#1528 Remove obsolete createAsyncCtxStorageMiddleware koajs/koa#1817ctx.thrownow requires a format ofctx.throw(status, error, properties). See: https://www.npmjs.com/package/http-errorsNew
- Support custom streams
@KristapsRkoajs/koa#1825- Support WHATWG response bodies koajs/koa#1830
@kravorkid- Use asyncLocalStorage to get current context from app, e.g.:
const ctx = app.currentContext.Fixes
- Handle responses when socket is no longer writable
@titanism@azlondkoajs/koa#1593- fix: Do not response Content-Length if Transfer-Encoding is defined #1562
@charlyzeng- fix: Set body to 'null' if
ctx.type = 'json'andctx.body = null#1059@likegun- fix: can not get currentContext in error handler (#1758) (Gxkl )
- Fix exports.defaults in package.json koajs/koa#1630
- Fix leaky handles in tests koajs/koa#1838
- Fix body null checks koajs/koa#1814
- Fix reformatting redirect URLs koajs/koa#1805 koajs/koa#1804
- Fix passing ctx in error handler koajs/koa#1758
- Avoid redos on host and protocol getter
Refactors
- Replace node query string with URLSearchParams koajs/koa#1828
@kravorkidDependencies
- bump type-is@2
- bump http-errors@2
- bump [email protected]
- bump statuses@2
- bump supertest@7
3.0.0-alpha.5
fix: don't render redirect values in anchor ref
... (truncated)
Changelog
Sourced from koa's changelog.
[!IMPORTANT] Moving forwards we are using the GitHub releases page at https://github.com/koajs/koa/releases in combination with np for publishing releases and their changelogs.
3.0.0-alpha.3 / 2025-02-11
fixes
- Avoid redos on host and protocol getter
3.0.0-alpha.2 / 2024-11-04
breaking changes
- Update
http-errorstov2.0.0#1486
ctx.thrownow requires a format ofctx.throw(status, error, properties). See: https://www.npmjs.com/package/http-errors- Remove
res.redirect('back'), addback()method toctx#1115- Replace node querystring with
URLSearchParams#1828- Remove obsolete
createAsyncCtxStorageMiddleware#1817features
- Add support for web WHATWG #1830
updates
fixes
- Fix
exports.defaultsinpackage.json#1630- Fix leaky handles in tests #1838
- Fix body null checks #1814
- Fix reformatting redirect URLs #1805 #1804
- Fix passing
ctxin error handler #1758migrations
- Migrate from
jestto the native node test runner #18453.0.0-alpha.1 / 2023-04-12
fixes
3.0.0-alpha.0 / 2023-01-02
Breaking Changes
... (truncated)
Commits
ead934d3.0.028e8fedfix: remove unused depdcdc5802fix: remove a conlogd601d7bbreaking: remove redirect(back) for v37716028build(deps-dev): bump c8 from 8.0.1 to 10.1.3 (#1874)0b515d2chore: adds updated codecov (#1873)16b6e083.0.0-alpha.53c892f9:chore: :arrow_up: dependenciesff25eb4fix: don't render redirect values in anchor refd5081a1build(deps): bump type-is from 1.6.18 to 2.0.1 (#1866)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
@fastify/benchmarks This is failing because koa-isomorphic-router depends on koa v2. Should we drop koa-isomorphic-router from benchmarks? Its weekly download rates have dropped well below our requirements (currently at 22 downloads a week).
@dependabot rebase