Releases: expresso/router
Releases · expresso/router
v7.0.1
v7.0.0
v6.3.0
v6.2.0
6.2.0 (2024-03-30)
- fix: narrow response types
makes response types not arbitrary. Users can no longer pass whatever status with whatever bodies
-
feat(openapi): support zod openapi extension
-
docs(openapi): improve docs
-
feat(createapi): add support for nested routes
Allows specifying one level of nesting when defining the routing object
- docs(readme): nested routing example
Add an example of how to use nested/prefixed routes
- fix(createendpoint): require at least one handler
No longer allow an empty array to be passed to the handler parameter
- test(integration): add integration tests for documentation and input validation
v6.1.0
v6.0.0
v5.0.2
v5.0.1
v5.0.0
v4.0.0
4.0.0 (2022-02-06)
Features
- add support for transforms (2a3989a)
- automatic error recovery (bcb3ea3)
- cleaner error message (b780945)
BREAKING CHANGES
- Remove
outputHeaders
from thecreateEndpoint
params object. Theoutput
property now requires you to specify, for each status code, an object which must have abody
property, containing the Zod schema for the body of the response for that status. Optionally, you
can also specify aheaders
property to each status code containing the response headers for that
status code