Releases: keroxp/servest
Releases · keroxp/servest
v0.21.0
- fix: use raw url of request for req.url (#44)
- changed: [serveStatic] handle filename in case sensitive
- changed: [router] match paths in case sensitive
v0.20.0
- feat:
BodyParser
for ServerRequest.body
and ClientResponse.body
- feat: Added
application/x-www-form-urlencoded
parser
- site: Added examples for
BodyParser
- refactored:
BodyReader
, ChunkedBodyReader
, TimeoutReader
are now removed
v0.19.0
- site: added error page
- added:
React
and ReactDOMServer
type definitions
- changed: Return type of
HttpHandler
and ErrorHandler
to void | Promise<void>
v0.18.0
- fix: [router]
RoutedServerRequest.match
should be defined
- added: [serve_static] filter option
- site: serve source code via github
- site: use parente vendor codes
v0.17.0
- bump: [email protected]
- feat:
serveJsx()
serveJsx
is similar middleware to serveStatic
. It will find .jsx
/.tsx
file from specified directory and import it dynamically, render to string and serve as HTML.
- This is early implementation of SSR framework like Next.js
- feat:
createRecorder()
createRecorder()
create dummy ServerRequest
. It can be passed to HTTPHandler
middleware and records response. It is useful for testing.
- fix: Router misc
- site: Use serveJsx
v0.16.0
- changed: [router] string pattern should be served when full path matches
v0.15.0
- feat:
listenAndServe()
returns Deno.Closer
- feat: Added
logger
module
- feat:
Router.get()
Router.post()
- del:
serve()
now removed
v0.14.0
v0.14.0 (#28)
* Create body_parser.ts
* Update tests.ts