BREAKING CHANGE(typedserver): migrate route handlers to use IRequestContext and lazy body parsers

This commit is contained in:
2025-12-20 08:11:04 +00:00
parent d5800f58b4
commit 64f8f400c2
12 changed files with 193 additions and 127 deletions

View File

@@ -1,5 +1,17 @@
# Changelog
## 2025-12-20 - 8.0.0 - BREAKING CHANGE(typedserver)
migrate route handlers to use IRequestContext and lazy body parsers
- Route handlers now receive plugins.smartserve.IRequestContext instead of Request (breaking API change). addRoute no longer wraps handlers to convert context → Request.
- createContext() is now synchronous and provides lazy body accessors: ctx.json(), ctx.text(), ctx.arrayBuffer(), ctx.formData(); ctx.body property was removed.
- DevToolsController constructor now accepts optional options and supplies no-op defaults so controllers can be auto-instantiated without args.
- TypedRequest controller now reads the request via await ctx.json() and forwards typed requests accordingly.
- Utility website server handlers and other internal callsites updated to use ctx.params and the new context API.
- Tests updated to the new TypedServer API, improved assertions, changed test port and reduced delays, and switched tap runner export to default.
- Bumped dependency @push.rocks/smartserve to ^2.0.1 to match API changes.
- npmextra.json reorganized git.zone/tsdoc entries and added release registries and @ship.zone/szci metadata.
## 2025-12-08 - 7.11.1 - fix(dependencies)
Upgrade dependencies: bump @design.estate/dees-catalog to v3.1.1 and @push.rocks/smartwatch to v6.0.0; update migration notes in readme.hints.md