🚀 koajs/koa - Release Notes
3.0.0-alpha.4 (2025-03-21)
Breaking Changes:
- .req.origin now represents `req.headers.origin`
- `.body=` does not overwrite `.type=` if the type is already json
- Removed special `ENOENT` error support - please check your file handling functions
- .res.set - do not coerce headers to be strings
2.16.0 (2025-02-27)
This is a backported release to fix core underlying issue with `HEAD` requests when using `http2.createSecureServer`. See discussion at https://github.com/koajs/koa/pull/1593 and https://github.com/koajs/koa/issues/1547.
* fix missing cleanup, if response socket is no longer writeable (issue 1547) (https://github.com/koajs/koa/pull/1593) 399cb6b0dd2104224c0ef0ce8e92f84e4f7faf42
2.15.4 (2025-02-12)
**Full Changelog**: https://github.com/koajs/koa/compare/2.15.3...2.15.4
Fix: avoid redos on host and protocol getter, see https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m
3.0.0-alpha.2 (2024-11-04)
**breaking changes**
- Update `http-errors` to `v2.0.0` [#1486](https://github.com/koajs/koa/pull/1486)
- `ctx.throw` now requires a format of `ctx.throw(status, error, properties)`. See: https://www.npmjs.com/package/http-errors
- Remove `res.redirect('back')`, add `back()` method to `ctx` [#1115](https://github.com/koajs/koa/pull/1115)
- Replace node querystring with `URLSearchParams` [#1828](https://github.com/koajs/koa/pull/1828)
- Remove obsolete `createAsyncCtxStorageMiddleware` [#1817](https://github.com/koajs/koa/pull/1817)
**features**
- Add support for web WHATWG [#1830](https://github.com/koajs/koa/pull/1830)
**updates**
- Update `cookies` to `~0.9.1` [#1846](https://github.com/koajs/koa/pull/1846)
- Update `statuses` to `^2.0.1`
- Update `supertest` to `^7.0.0` [#1841](https://github.com/koajs/koa/pull/1841)
**fixes**
- Fix `exports.defaults` in `package.json` [#1630](https://github.com/koajs/koa/pull/1630)
- Fix leaky handles in tests [#1838](https://github.com/koajs/koa/pull/1838)
- Fix body null checks [#1814](https://github.com/koajs/koa/pull/1814)
- Fix reformatting redirect URLs [#1805](https://github.com/koajs/koa/pull/1805) [#1804](https://github.com/koajs/koa/pull/1804)
- Fix passing `ctx` in error handler [#1758](https://github.com/koajs/koa/pull/1758)
**migrations**
- Migrate from `jest` to the native node test runner [#1845](https://github.com/koajs/koa/pull/1845)