v3.3.0
Added 1
- Re-export http-errors utilities
Changed 2
- Node.js versions tested in CI bumped to 22-26
- ctx.assert errors are instances of HttpError
Fixed 9
- Response content-type value is kept as one value with a test case behavior changed · inferred, marked in the notes below
- Absolute-form request targets are parsed in request.URL
- Blob content type is kept instead of forcing application/octet-stream in response
- Multiple values for singleton response headers are rejected behavior changed · inferred, marked in the notes below
- Booleans are preserved when assigning query parameters
- Prototype-based HttpError instanceof checks are preserved
- HttpError subclass instance checks are preserved
- X-Forwarded-Proto is lowercased in request.protocol
- IPv6 hostname is parsed from request.host
Security 1
- Prototype mutation is prevented when parsing query parameters
2 changes to check, marked in the notes below
From koa
What's Changed
- chore: Tell dependabot to update GH Actions by @olleolleolle in https://github.com/koajs/koa/pull/1963
- build(deps): bump actions/checkout from 4 to 6 by @dependabot[bot] in https://github.com/koajs/koa/pull/1966
- build(deps): bump actions/setup-node from 4 to 6 by @dependabot[bot] in https://github.com/koajs/koa/pull/1965
- build(deps): bump codecov/codecov-action from 5 to 6 by @dependabot[bot] in https://github.com/koajs/koa/pull/1964
- build(deps-dev): bump flatted from 3.3.3 to 3.4.2 by @dependabot[bot] in https://github.com/koajs/koa/pull/1945
- build(deps-dev): bump c8 from 10.1.3 to 11.0.0 by @dependabot[bot] in https://github.com/koajs/koa/pull/1931
- build(deps-dev): bump supertest from 7.1.4 to 7.2.2 by @dependabot[bot] in https://github.com/koajs/koa/pull/1924
- build(deps): bump type-is from 2.0.1 to 2.1.0 by @dependabot[bot] in https://github.com/koajs/koa/pull/1969
- build(deps): bump minimatch from 3.1.2 to 3.1.5 by @dependabot[bot] in https://github.com/koajs/koa/pull/1962
- fix: response content-type value amount as one with testcase by @PoChenKuo in https://github.com/koajs/koa/pull/1899
- docs: fix app.currentContext example (read the getter, don't assign to it) by @DucMinhNe in https://github.com/koajs/koa/pull/1978
- build(deps): bump codecov/codecov-action from 6 to 7 by @dependabot[bot] in https://github.com/koajs/koa/pull/1979
- docs: improve JSDoc parameter descriptions for
Applicationconstructor by @kshitijanurag in https://github.com/koajs/koa/pull/1941 - feat: re-export http-errors utilities by @nuintun in https://github.com/koajs/koa/pull/1991
- ci: bump node versions to 22-26 by @jonathanong in https://github.com/koajs/koa/pull/1972
- patch: make ctx.assert errors instanceof HttpError by @yowainwright in https://github.com/koajs/koa/pull/1998
- fix: parse absolute-form request targets in request.URL by @xia-chao in https://github.com/koajs/koa/pull/1999
- docs: point request.hostname URL link at current Node.js docs by @JiuYue0820 in https://github.com/koajs/koa/pull/1994
- fix(response): keep the Blob content type instead of forcing octet-stream by @spokodev in https://github.com/koajs/koa/pull/1987 behavior changed · inferred
- fix: reject multiple values for singleton response headers by @shuaiyafei in https://github.com/koajs/koa/pull/2012 behavior changed · inferred
- fix: preserve booleans when assigning query parameters by @tianrking in https://github.com/koajs/koa/pull/2013
- fix: prevent prototype mutation when parsing query parameters by @yowainwright in https://github.com/koajs/koa/pull/2024
- fix: keep prototype-based HttpError instanceof checks by @jonathanong in https://github.com/koajs/koa/pull/2025
- chore: minor release bump by @yowainwright in https://github.com/koajs/koa/pull/2031
- fix: preserve HttpError subclass instance checks by @yowainwright in https://github.com/koajs/koa/pull/2033
- fix: lowercase X-Forwarded-Proto in request.protocol by @jipeng6036-del in https://github.com/koajs/koa/pull/2029
- fix: parse IPv6 hostname from request.host by @yowainwright in https://github.com/koajs/koa/pull/2034
New Contributors
- @PoChenKuo made their first contribution in https://github.com/koajs/koa/pull/1899
- @DucMinhNe made their first contribution in https://github.com/koajs/koa/pull/1978
- @kshitijanurag made their first contribution in https://github.com/koajs/koa/pull/1941
- @nuintun made their first contribution in https://github.com/koajs/koa/pull/1991
- @xia-chao made their first contribution in https://github.com/koajs/koa/pull/1999
- @JiuYue0820 made their first contribution in https://github.com/koajs/koa/pull/1994
- @spokodev made their first contribution in https://github.com/koajs/koa/pull/1987
- @shuaiyafei made their first contribution in https://github.com/koajs/koa/pull/2012
- @tianrking made their first contribution in https://github.com/koajs/koa/pull/2013
- @jipeng6036-del made their first contribution in https://github.com/koajs/koa/pull/2029
Full Changelog: https://github.com/koajs/koa/compare/v3.2.1...v3.3.0