Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Releases: reno-router/reno

Response assertion function for unit testing

13 Nov 17:29
Compare
Choose a tag to compare
  • 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

25 Oct 14:53
Compare
Choose a tag to compare

Adds the streamResponse helper for explicitly receiving Reader instances to be written as response bodies.

Adds support for string paths

18 Oct 16:09
Compare
Choose a tag to compare

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

09 Oct 15:56
Compare
Choose a tag to compare
  • Adds textResponse response creator export
  • Upgrades to Deno 0.2.0

Entry point update

22 Jul 09:45
0d67d6a
Compare
Choose a tag to compare
v0.0.2

Updates download point

Initial release!

22 Jul 09:43
Compare
Choose a tag to compare
v0.0.1

Adds TODO