This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumps Deno to 1.7.2 and std to 0.86.0
- Loading branch information
1 parent
8d8e5bf
commit 9cdbe6f
Showing
14 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.6.1 | ||
1.7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name = "reno" | ||
description = "A thin routing library designed to sit on top of Deno's standard HTTP module" | ||
version = "1.3.9" | ||
version = "1.3.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
[![Build status](https://github.com/reno-router/reno/workflows/CI/badge.svg)](https://github.com/reno-router/reno/actions) | ||
|
||
[![Deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].9/reno/mod.ts) | ||
[![Deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].10/reno/mod.ts) | ||
|
||
Reno is a thin routing library designed to sit on top of [Deno](https://deno.land/)'s [standard HTTP module](https://github.com/denoland/deno/tree/master/std/http). | ||
|
||
|
@@ -18,7 +18,7 @@ Reno is a thin routing library designed to sit on top of [Deno](https://deno.lan | |
## Overview | ||
|
||
```tsx | ||
import { listenAndServe } from "https://deno.land/std@0.81.0/http/server.ts"; | ||
import { listenAndServe } from "https://deno.land/std@0.86.0/http/server.ts"; | ||
|
||
import { | ||
createRouter, | ||
|
@@ -28,7 +28,7 @@ import { | |
jsonResponse, | ||
streamResponse, | ||
NotFoundError, | ||
} from "https://deno.land/x/[email protected].9/reno/mod.ts"; | ||
} from "https://deno.land/x/[email protected].10/reno/mod.ts"; | ||
|
||
function createErrorResponse(status: number, { message }: Error) { | ||
return textResponse(message, {}, status); | ||
|
@@ -84,7 +84,7 @@ await listenAndServe( | |
This, along with request handlers being [pure functions](https://en.wikipedia.org/wiki/Pure_function), makes unit testing Reno services a breeze: | ||
|
||
```ts | ||
import { jsonResponse, assertResponsesAreEqual } from "https://deno.land/x/[email protected].9/reno/mod.ts"; | ||
import { jsonResponse, assertResponsesAreEqual } from "https://deno.land/x/[email protected].10/reno/mod.ts"; | ||
import { createRonSwansonQuoteHandler } from "./routes.ts"; | ||
|
||
const createFetchStub = (response: string[]) => | ||
|
@@ -168,7 +168,7 @@ import { | |
RouteHandler, | ||
textResponse, | ||
createRouteMap | ||
} from "https://deno.land/x/[email protected].9/reno/mod.ts"; | ||
} from "https://deno.land/x/[email protected].10/reno/mod.ts"; | ||
|
||
import isValidAPIKey from "./api_keys.ts"; | ||
|
||
|
@@ -206,7 +206,7 @@ export const routes = createRouteMap([ | |
Additionally, Reno provides a `pipe` utility for creating a higher-order route handler that invokes a sequence of functions against both the original request _and_ the computed response: | ||
|
||
```ts | ||
import { createRouteMap, jsonResponse, pipe } from "https://deno.land/x/[email protected].9/reno/mod.ts"; | ||
import { createRouteMap, jsonResponse, pipe } from "https://deno.land/x/[email protected].10/reno/mod.ts"; | ||
|
||
const withCaching = pipe( | ||
(req, res) => { | ||
|
@@ -255,11 +255,11 @@ Deno.test("/ should return the expected response", async () => { | |
|
||
## Example Apps | ||
|
||
As well as the [example app found in this repo](https://github.com/reno-router/reno/tree/v1.3.9/example), which is targetted by the end-to-end test suite, there is a [standalone repository for a blog microservice](https://github.com/reno-router/blog-microservice) built with Deno, Reno, PostgreSQL, and Docker. | ||
As well as the [example app found in this repo](https://github.com/reno-router/reno/tree/v1.3.10/example), which is targetted by the end-to-end test suite, there is a [standalone repository for a blog microservice](https://github.com/reno-router/blog-microservice) built with Deno, Reno, PostgreSQL, and Docker. | ||
|
||
## API Documentation | ||
|
||
Consult [Reno's entry on the Deno Doc website](https://doc.deno.land/https/deno.land/x/[email protected].9/reno/mod.ts) for comprehensive documentation on Reno's API. | ||
Consult [Reno's entry on the Deno Doc website](https://doc.deno.land/https/deno.land/x/[email protected].10/reno/mod.ts) for comprehensive documentation on Reno's API. | ||
|
||
## Local Development | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Recommended as per https://deno.land/std/manual.md#linking-to-third-party-code | ||
|
||
export * from "https://deno.land/std@0.81.0/testing/asserts.ts"; | ||
export * from "https://deno.land/std@0.81.0/io/mod.ts"; | ||
export type { Response, ServerRequest } from "https://deno.land/std@0.81.0/http/server.ts"; | ||
export * from "https://deno.land/std@0.86.0/testing/asserts.ts"; | ||
export * from "https://deno.land/std@0.86.0/io/mod.ts"; | ||
export type { Response, ServerRequest } from "https://deno.land/std@0.86.0/http/server.ts"; | ||
|
||
import __jsTestDouble from "https://dev.jspm.io/[email protected]"; | ||
import * as TestDouble from "https://raw.githubusercontent.com/testdouble/testdouble.js/ecd90efe4649b287c33831a7b94a8a5eb96b8ed0/index.d.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
$HOME/.deno/bin/deno test --allow-net e2e_tests | ||
$HOME/.deno/bin/deno test --allow-net --location https://host/ e2e_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters