This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
Releases: reno-router/reno
Releases · reno-router/reno
Response assertion function for unit testing
- Bumps Deno to v0.23.0
- Adds response assertion function for unit testing:
import { jsonResponse, assertResponsesMatch } from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.4.0/reno/mod.ts";
test({
name: "ronSwansonQuoteHandler should fetch a quote from an API and return it",
async fn() {
// [...]
const response = await ronSwansonQuoteHandler(req);
/* Will deeply compare headers and
* convert body bytes to strings */
assertResponsesMatch(response, jsonResponse(quotes, {
"X-Foo": "bar"
}));
}
});
Support for streaming responses
Adds the streamResponse
helper for explicitly receiving Reader
instances to be written as response bodies.
Adds support for string paths
Route paths can now be defined as strings e.g.
export const routes = new RouteMap([
["/home", () => textResponse('Hello world!')]
]);
This fix also resolves issues with passing query params through deep router trees.
textResponse and Deno upgrade
- Adds
textResponse
response creator export - Upgrades to Deno 0.2.0
Entry point update
v0.0.2 Updates download point
Initial release!
v0.0.1 Adds TODO