Releases: NeaByteLab/Deserve
Releases · NeaByteLab/Deserve
Release list
v0.15.0
This release moves the template engine into the standalone @neabyte/dve package and redesigns the request and response surface around grouped namespaces.
Highlights
- Grouped context API: read the request with
ctx.get.*, stage the response withctx.set.*, and finish withctx.send.* - Rendering now runs on
@neabyte/dve0.1.1 with layouts, blocks, slots, comments, whitespace control,else if, and static validation - New send helpers
ctx.send.empty(status)andctx.send.download(body, filename, options) - Static mounts can be backed by a callback as well as a directory, with
HEAD, range,Last-Modified, andIf-Rangesupport - Per-source request validation reachable through
ctx.get.validated(), and a WebSocket middleware viaMware.websocket(options) - Expanded observability events for new lifecycle and rejection moments
Breaking Changes
- The flat
ctxmethods and setters are replaced by thectx.get.*andctx.set.*namespaces - Lifecycle events were renamed, for example
request:completetorequest:completedandview:errortoview:failed - Router config moved the routes directory under
routes, view config underviews, and renamed the timeout totimeoutMs SecHeadersrenamed toSecurityHeaders,Corsrenamed toCORS, andWrapMwarereplaced byWrap.applySessionOptionsnow requiressecretin place ofcookieSecretand keys the cookie name undername- The package root export list is now explicit and no longer re-exports
DefineorLoader
Full notes in the CHANGELOG.