BREAKING CHANGE(request): introduce lazy request body parsing via ctx.json()/text()/arrayBuffer()/formData and remove IRequestContext.body
This commit is contained in:
10
changelog.md
10
changelog.md
@@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-12-20 - 2.0.0 - BREAKING CHANGE(request)
|
||||
introduce lazy request body parsing via ctx.json()/text()/arrayBuffer()/formData and remove IRequestContext.body
|
||||
|
||||
- Add RequestContext class implementing lazy, cached body parsing methods: json(), text(), arrayBuffer(), formData.
|
||||
- Remove IRequestContext.body property — handlers and interceptors must call ctx.json()/ctx.text()/... to access the request body (breaking API change).
|
||||
- createContext now returns a RequestContext synchronously and no longer pre-parses or coerces the body.
|
||||
- OpenAPI validator (validateRequest) made async and updated to use ctx.json() for request body validation; createValidationInterceptor now awaits validation.
|
||||
- Updated README and tests to use async handlers and ctx.json() for body access.
|
||||
- Updated npmextra.json: replaced gitzone key with @git.zone/cli, replaced npmci with @ship.zone/szci, and added release registries and accessLevel.
|
||||
|
||||
## 2025-12-08 - 1.4.0 - feat(openapi)
|
||||
Add OpenAPI module: decorators, spec generator, runtime validation and Swagger UI
|
||||
|
||||
|
||||
Reference in New Issue
Block a user