Skip to content

Commit

Permalink
chore: bump Deno to v0.31.0 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored Jan 26, 2020
1 parent 550bf5f commit f3e71a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: generic

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

services:
Expand All @@ -14,5 +14,5 @@ before_script:
- psql -c "CREATE DATABASE deno_postgres OWNER test;" -U postgres

script:
- deno run -c tsconfig.test.json -r --allow-net --allow-env test.ts
- deno run -r --allow-net --allow-env test.ts
- deno fmt -- --check
6 changes: 4 additions & 2 deletions connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ export class Connection {

async startup() {
const { host, port } = this.connParams;
const address = `${host}:${port}`;
this.conn = await Deno.dial({ port: parseInt(port, 10), hostname: host });
this.conn = await Deno.connect({
port: parseInt(port, 10),
hostname: host
});

this.bufReader = new BufReader(this.conn);
this.bufWriter = new BufWriter(this.conn);
Expand Down
10 changes: 5 additions & 5 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
export {
BufReader,
BufWriter
} from "https://deno.land/std@v0.26.0/io/bufio.ts";
} from "https://deno.land/std@v0.31.0/io/bufio.ts";

export { copyBytes } from "https://deno.land/std@v0.26.0/io/util.ts";
export { copyBytes } from "https://deno.land/std@v0.31.0/io/util.ts";

export {
assert,
assertEquals,
assertStrContains,
assertThrowsAsync
} from "https://deno.land/std@v0.26.0/testing/asserts.ts";
} from "https://deno.land/std@v0.31.0/testing/asserts.ts";

export {
runTests,
test,
TestFunction
} from "https://deno.land/std@v0.26.0/testing/mod.ts";
} from "https://deno.land/std@v0.31.0/testing/mod.ts";

export {
Deferred,
deferred
} from "https://deno.land/std@v0.26.0/util/async.ts";
} from "https://deno.land/std@v0.31.0/util/async.ts";

export { Hash } from "https://deno.land/x/[email protected]/mod.ts";
5 changes: 0 additions & 5 deletions tsconfig.test.json

This file was deleted.

0 comments on commit f3e71a2

Please sign in to comment.