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

Commit 8a33c0a

Browse files
Pulls Sinon type def as remote import
1 parent fc95746 commit 8a33c0a

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

Package.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
name = "[email protected]/reno"
22
description = "A thin routing library designed to sit on top of Deno's standard HTTP module"
3-
version = "0.6.2"
3+
version = "0.6.3"

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
textResponse,
1313
jsonResponse,
1414
streamResponse,
15-
} from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.2/reno/mod.ts";
15+
} from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.3/reno/mod.ts";
1616

1717
export const routes = createRouteMap([
1818
["/home", () => textResponse("Hello world!")],
@@ -52,7 +52,7 @@ const router = createRouter(routes);
5252
This, along with request handlers being [pure functions](https://en.wikipedia.org/wiki/Pure_function), makes unit testing Reno services a breeze:
5353

5454
```ts
55-
import { jsonResponse, assertResponsesMatch } from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.2/reno/mod.ts";
55+
import { jsonResponse, assertResponsesMatch } from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.3/reno/mod.ts";
5656
import { createRonSwansonQuoteHandler } from './routes.ts';
5757

5858
const createFetchStub = (response: string[]) =>
@@ -85,7 +85,7 @@ test({
8585
Deno emulates the middleware pattern, [found in Express](https://expressjs.com/en/guide/using-middleware.html), favouring [function piping](https://www.sitepoint.com/function-composition-in-javascript/#theimportanceofinvocationorder) to create reusable, higher-order route handlers:
8686

8787
```ts
88-
import { createRouteMap, jsonResponse, pipe } from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.2/reno/mod.ts";
88+
import { createRouteMap, jsonResponse, pipe } from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.3/reno/mod.ts";
8989

9090
const withCaching = pipe(
9191
(req, res) => {

deps.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Recommended as per https://deno.land/std/manual.md#linking-to-third-party-code
22

3-
// @deno-types="./types/sinon.d.ts"
43
import __jsSinon from "https://cdn.pika.dev/-/sinon/7.5.0/dist-es2017/sinon.min.js";
5-
import Sinon from "./types/sinon.d.ts";
4+
import Sinon from "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/949922e0959ccea0cad7a6fa787b63b7d4e67d3f/types/sinon/index.d.ts";
65

76
export * from "https://deno.land/[email protected]/testing/asserts.ts";
87
export * from "https://deno.land/[email protected]/testing/mod.ts";

tools/cut-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env sh
22

3-
deno --allow-read --allow-write --allow-run tools/cut-release.ts
3+
deno --allow-read --allow-write --allow-run tools/cut-release.ts

tools/install-types.sh

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ echo "Installing type definitions..."
88

99
mkdir types
1010
deno types > types/deno.d.ts
11-
curl https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/949922e0959ccea0cad7a6fa787b63b7d4e67d3f/types/sinon/index.d.ts > types/sinon.d.ts

0 commit comments

Comments
 (0)