Skip to content

Commit

Permalink
Upgrade to Deno 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
sholladay committed Sep 26, 2019
1 parent 83562de commit 1397a10
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: python

install:
- curl -fsSL https://deno.land/x/install/install.sh | sh -s v0.17.0
- curl -fsSL https://deno.land/x/install/install.sh | sh -s v0.18.0
- export PATH="$HOME/.deno/bin:$PATH"

script:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ Sets the response [status code](https://developer.mozilla.org/en-US/docs/Web/HTT

```js
import { Status as status } from 'https://deno.land/std/http/http_status.ts';
const handler = (request, h) => {
return response.code(status.Teapot);
const handler = (request) => {
return request.response.code(status.Teapot);
};
```

Expand Down
6 changes: 3 additions & 3 deletions dependencies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as http from "https://deno.land/std@v0.17.0/http/server.ts";
import { Status as status } from "https://deno.land/std@v0.17.0/http/http_status.ts";
import { STATUS_TEXT as statusText } from "https://deno.land/std@v0.17.0/http/http_status.ts";
import * as http from "https://deno.land/std@v0.18.0/http/server.ts";
import { Status as status } from "https://deno.land/std@v0.18.0/http/http_status.ts";
import { STATUS_TEXT as statusText } from "https://deno.land/std@v0.18.0/http/http_status.ts";

export { http, status, statusText };
4 changes: 2 additions & 2 deletions test/router.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Router from '../lib/router.js';
import { assertEquals } from 'https://deno.land/std@v0.17.0/testing/asserts.ts';
import { runTests, test } from 'https://deno.land/std@v0.17.0/testing/mod.ts';
import { assertEquals } from 'https://deno.land/std@v0.18.0/testing/asserts.ts';
import { runTests, test } from 'https://deno.land/std@v0.18.0/testing/mod.ts';

test('add() static routes', () => {
const router = new Router();
Expand Down
4 changes: 2 additions & 2 deletions test/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals, assertStrictEq } from 'https://deno.land/std@v0.17.0/testing/asserts.ts';
import { runTests, test } from 'https://deno.land/std@v0.17.0/testing/mod.ts';
import { assertEquals, assertStrictEq } from 'https://deno.land/std@v0.18.0/testing/asserts.ts';
import { runTests, test } from 'https://deno.land/std@v0.18.0/testing/mod.ts';
import pogo from '../main.js';

const encoder = new TextEncoder();
Expand Down
4 changes: 2 additions & 2 deletions test/toolkit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals, assertStrictEq } from 'https://deno.land/std@v0.17.0/testing/asserts.ts';
import { runTests, test } from 'https://deno.land/std@v0.17.0/testing/mod.ts';
import { assertEquals, assertStrictEq } from 'https://deno.land/std@v0.18.0/testing/asserts.ts';
import { runTests, test } from 'https://deno.land/std@v0.18.0/testing/mod.ts';
import pogo from '../main.js';

const encoder = new TextEncoder();
Expand Down

0 comments on commit 1397a10

Please sign in to comment.