From 00d0671b46fe7e35ec826be2a0ab42dbd2e4b68c Mon Sep 17 00:00:00 2001 From: Yusuke Sakurai Date: Sun, 8 Sep 2019 01:54:02 +0900 Subject: [PATCH] bump: deno@v0.17.0, deno_std@v0.17.0 (#18) --- .circleci/config.yml | 4 ++-- README.md | 6 +++--- agent.ts | 4 ++-- agent_test.ts | 6 +++--- fixtures/gen.ts | 4 ++-- readers.ts | 4 ++-- readers_test.ts | 12 ++++++------ responder_test.ts | 8 ++++---- router.ts | 2 +- router_test.ts | 6 +++--- serveio.ts | 10 +++++----- serveio_test.ts | 6 +++--- server.ts | 2 +- server_test.ts | 10 +++++----- tests.ts | 2 +- 15 files changed, 43 insertions(+), 43 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2032c47..773fa71 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,9 +8,9 @@ jobs: - run: name: Install Deno command: | - curl -fsSL https://deno.land/x/install/install.sh | bash -s -- v0.15.0 + curl -fsSL https://deno.land/x/install/install.sh | bash -s -- v0.17.0 - run: name: Run Tests command: | export PATH=$HOME/.deno/bin:$PATH - deno -A tests.ts \ No newline at end of file + deno -A tests.ts diff --git a/README.md b/README.md index f988554..a7125fa 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ [![CircleCI](https://circleci.com/gh/keroxp/servest.svg?style=svg)](https://circleci.com/gh/keroxp/servest) ![https://img.shields.io/github/tag/keroxp/servest.svg](https://img.shields.io/github/tag/keroxp/servest.svg) [![license](https://img.shields.io/github/license/keroxp/servest.svg)](https://github.com/keroxp/servest) -[![tag](https://img.shields.io/badge/deno__std-v0.15.0-green.svg)](https://github.com/denoland/deno_std) -[![tag](https://img.shields.io/badge/deno-v0.15.0-green.svg)](https://github.com/denoland/deno) +[![tag](https://img.shields.io/badge/deno__std-v0.17.0-green.svg)](https://github.com/denoland/deno_std) +[![tag](https://img.shields.io/badge/deno-v0.17.0-green.svg)](https://github.com/denoland/deno) 🌾A progressive http server / router for deno🌾 @@ -12,7 +12,7 @@ ### Serve API -Serve API is similar to [deno_std@v0.15.0](https://github.com/denoland/deno_std/blob/master/http/server.ts) but has different implementation. +Serve API is similar to [deno_std@v0.17.0](https://github.com/denoland/deno_std/blob/master/http/server.ts) but has different implementation. Some progressive features for HTTP/1.1 server are implemented. - Support Keep-Alive connection diff --git a/agent.ts b/agent.ts index 65b7ad2..1425606 100644 --- a/agent.ts +++ b/agent.ts @@ -1,13 +1,13 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. import { ClientRequest, ClientResponse } from "./server.ts"; -import { assert } from "https://deno.land/std@v0.15.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@v0.17.0/testing/asserts.ts"; import { defer, Deferred } from "./promises.ts"; import { readResponse, writeRequest } from "./serveio.ts"; import Conn = Deno.Conn; import { BufReader, BufWriter -} from "https://deno.land/std@v0.15.0/io/bufio.ts"; +} from "https://deno.land/std@v0.17.0/io/bufio.ts"; import Reader = Deno.Reader; /** keep-alive http agent for single host. each message will be sent in serial */ diff --git a/agent_test.ts b/agent_test.ts index 623703c..8d03783 100644 --- a/agent_test.ts +++ b/agent_test.ts @@ -1,13 +1,13 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. -import { runIfMain, test } from "https://deno.land/std@v0.15.0/testing/mod.ts"; +import { runIfMain, test } from "https://deno.land/std@v0.17.0/testing/mod.ts"; import { defer, Deferred } from "./promises.ts"; -import { encode } from "https://deno.land/std@v0.15.0/strings/encode.ts"; +import { encode } from "https://deno.land/std@v0.17.0/strings/encode.ts"; import { createAgent } from "./agent.ts"; import { createRouter } from "./router.ts"; import { assertEquals, assertThrows -} from "https://deno.land/std@v0.15.0/testing/asserts.ts"; +} from "https://deno.land/std@v0.17.0/testing/asserts.ts"; import Reader = Deno.Reader; import Buffer = Deno.Buffer; import copy = Deno.copy; diff --git a/fixtures/gen.ts b/fixtures/gen.ts index 76942c1..70f759a 100644 --- a/fixtures/gen.ts +++ b/fixtures/gen.ts @@ -1,7 +1,7 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. import { writeRequest, writeResponse, writeTrailers } from "../serveio.ts"; -import { encode } from "https://deno.land/std@v0.15.0/strings/encode.ts"; -import { StringReader } from "https://deno.land/std@v0.15.0/io/readers.ts"; +import { encode } from "https://deno.land/std@v0.17.0/strings/encode.ts"; +import { StringReader } from "https://deno.land/std@v0.17.0/io/readers.ts"; async function main() { await basicRequestGet(); diff --git a/readers.ts b/readers.ts index 0d50370..b584580 100644 --- a/readers.ts +++ b/readers.ts @@ -1,6 +1,6 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. -import { BufReader } from "https://deno.land/std@v0.15.0/io/bufio.ts"; -import { TextProtoReader } from "https://deno.land/std@v0.15.0/textproto/mod.ts"; +import { BufReader } from "https://deno.land/std@v0.17.0/io/bufio.ts"; +import { TextProtoReader } from "https://deno.land/std@v0.17.0/textproto/mod.ts"; import { promiseInterrupter } from "./promises.ts"; import Reader = Deno.Reader; import EOF = Deno.EOF; diff --git a/readers_test.ts b/readers_test.ts index 3f9749a..ed17117 100644 --- a/readers_test.ts +++ b/readers_test.ts @@ -1,12 +1,12 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. -import { runIfMain, test } from "https://deno.land/std@v0.15.0/testing/mod.ts"; +import { runIfMain, test } from "https://deno.land/std@v0.17.0/testing/mod.ts"; import { BodyReader, TimeoutReader } from "./readers.ts"; -import { assertThrowsAsync } from "https://deno.land/std@v0.15.0/testing/asserts.ts"; +import { assertThrowsAsync } from "https://deno.land/std@v0.17.0/testing/asserts.ts"; import ReadResult = Deno.ReadResult; -import { BufReader } from "https://deno.land/std@v0.15.0/io/bufio.ts"; -import { StringReader } from "https://deno.land/std@v0.15.0/io/readers.ts"; -import { assertEquals } from "https://deno.land/std@v0.15.0/testing/asserts.ts"; -import { decode } from "https://deno.land/std@v0.15.0/strings/decode.ts"; +import { BufReader } from "https://deno.land/std@v0.17.0/io/bufio.ts"; +import { StringReader } from "https://deno.land/std@v0.17.0/io/readers.ts"; +import { assertEquals } from "https://deno.land/std@v0.17.0/testing/asserts.ts"; +import { decode } from "https://deno.land/std@v0.17.0/strings/decode.ts"; import { TimeoutError } from "./promises.ts"; test(async function readersBodyReader() { diff --git a/responder_test.ts b/responder_test.ts index 3deb468..bece294 100644 --- a/responder_test.ts +++ b/responder_test.ts @@ -1,14 +1,14 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. -import { runIfMain, test } from "https://deno.land/std@v0.15.0/testing/mod.ts"; +import { runIfMain, test } from "https://deno.land/std@v0.17.0/testing/mod.ts"; import { createResponder } from "./responder.ts"; import { assert, assertEquals, assertThrowsAsync -} from "https://deno.land/std@v0.15.0/testing/asserts.ts"; -import { StringReader } from "https://deno.land/std@v0.15.0/io/readers.ts"; +} from "https://deno.land/std@v0.17.0/testing/asserts.ts"; +import { StringReader } from "https://deno.land/std@v0.17.0/io/readers.ts"; import { readResponse } from "./serveio.ts"; -import { StringWriter } from "https://deno.land/std@v0.15.0/io/writers.ts"; +import { StringWriter } from "https://deno.land/std@v0.17.0/io/writers.ts"; import Buffer = Deno.Buffer; import copy = Deno.copy; import Reader = Deno.Reader; diff --git a/router.ts b/router.ts index e0b416e..4f5b590 100644 --- a/router.ts +++ b/router.ts @@ -1,6 +1,6 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. import { listenAndServe, ServeOptions, ServerRequest } from "./server.ts"; -import { encode } from "https://deno.land/std@v0.15.0/strings/encode.ts"; +import { encode } from "https://deno.land/std@v0.17.0/strings/encode.ts"; export type RoutedServerRequest = ServerRequest & { match?: RegExpMatchArray; diff --git a/router_test.ts b/router_test.ts index 8cb5947..6fe8d10 100644 --- a/router_test.ts +++ b/router_test.ts @@ -1,12 +1,12 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. import { createRouter, findLongestAndNearestMatch } from "./router.ts"; -import { runIfMain, test } from "https://deno.land/std@v0.15.0/testing/mod.ts"; +import { runIfMain, test } from "https://deno.land/std@v0.17.0/testing/mod.ts"; import { defer } from "./promises.ts"; import { assert, assertEquals -} from "https://deno.land/std@v0.15.0/testing/asserts.ts"; -import { StringReader } from "https://deno.land/std@v0.15.0/io/readers.ts"; +} from "https://deno.land/std@v0.17.0/testing/asserts.ts"; +import { StringReader } from "https://deno.land/std@v0.17.0/io/readers.ts"; test(function httpMatchNearest() { assertEquals( diff --git a/serveio.ts b/serveio.ts index 43fe439..996fa45 100644 --- a/serveio.ts +++ b/serveio.ts @@ -2,8 +2,8 @@ import { BufReader, BufWriter -} from "https://deno.land/std@v0.15.0/io/bufio.ts"; -import { TextProtoReader } from "https://deno.land/std@v0.15.0/textproto/mod.ts"; +} from "https://deno.land/std@v0.17.0/io/bufio.ts"; +import { TextProtoReader } from "https://deno.land/std@v0.17.0/textproto/mod.ts"; import { BodyReader, ChunkedBodyReader, @@ -11,7 +11,7 @@ import { TimeoutReader } from "./readers.ts"; import { defer, promiseInterrupter } from "./promises.ts"; -import { assert } from "https://deno.land/std@v0.15.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@v0.17.0/testing/asserts.ts"; import { ClientRequest, IncomingHttpRequest, @@ -23,8 +23,8 @@ import { import Reader = Deno.Reader; import Writer = Deno.Writer; import Buffer = Deno.Buffer; -import { encode } from "https://deno.land/std@v0.15.0/strings/encode.ts"; -import { decode } from "https://deno.land/std@v0.15.0/strings/decode.ts"; +import { encode } from "https://deno.land/std@v0.17.0/strings/encode.ts"; +import { decode } from "https://deno.land/std@v0.17.0/strings/decode.ts"; import EOF = Deno.EOF; function bufReader(r: Reader): BufReader { diff --git a/serveio_test.ts b/serveio_test.ts index 856e3c2..9937d0e 100644 --- a/serveio_test.ts +++ b/serveio_test.ts @@ -1,5 +1,5 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. -import { runIfMain, test } from "https://deno.land/std@v0.15.0/testing/mod.ts"; +import { runIfMain, test } from "https://deno.land/std@v0.17.0/testing/mod.ts"; import { parseKeepAlive, readRequest, @@ -9,8 +9,8 @@ import { import { assert, assertEquals -} from "https://deno.land/std@v0.15.0/testing/asserts.ts"; -import { encode } from "https://deno.land/std@v0.15.0/strings/encode.ts"; +} from "https://deno.land/std@v0.17.0/testing/asserts.ts"; +import { encode } from "https://deno.land/std@v0.17.0/strings/encode.ts"; import Reader = Deno.Reader; import Buffer = Deno.Buffer; import copy = Deno.copy; diff --git a/server.ts b/server.ts index af7c103..193ab01 100644 --- a/server.ts +++ b/server.ts @@ -5,7 +5,7 @@ import Reader = Deno.Reader; import { BufReader, BufWriter -} from "https://deno.land/std@v0.15.0/io/bufio.ts"; +} from "https://deno.land/std@v0.17.0/io/bufio.ts"; import { defer, Deferred, promiseInterrupter } from "./promises.ts"; import { initServeOptions, readRequest } from "./serveio.ts"; import { createResponder, ServerResponder } from "./responder.ts"; diff --git a/server_test.ts b/server_test.ts index dee32b7..a6a0a05 100644 --- a/server_test.ts +++ b/server_test.ts @@ -1,14 +1,14 @@ // Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. -import { runIfMain, test } from "https://deno.land/std@v0.15.0/testing/mod.ts"; +import { runIfMain, test } from "https://deno.land/std@v0.17.0/testing/mod.ts"; import { defer } from "./promises.ts"; import { listenAndServe } from "./server.ts"; -import { StringReader } from "https://deno.land/std@v0.15.0/io/readers.ts"; -import { StringWriter } from "https://deno.land/std@v0.15.0/io/writers.ts"; +import { StringReader } from "https://deno.land/std@v0.17.0/io/readers.ts"; +import { StringWriter } from "https://deno.land/std@v0.17.0/io/writers.ts"; import { assertEquals, assertThrowsAsync -} from "https://deno.land/std@v0.15.0/testing/asserts.ts"; -import { encode } from "https://deno.land/std@v0.15.0/strings/encode.ts"; +} from "https://deno.land/std@v0.17.0/testing/asserts.ts"; +import { encode } from "https://deno.land/std@v0.17.0/strings/encode.ts"; import { createAgent } from "./agent.ts"; import copy = Deno.copy; import { promiseTimeout } from "./test_util.ts"; diff --git a/tests.ts b/tests.ts index 4ec644e..55a307e 100755 --- a/tests.ts +++ b/tests.ts @@ -5,7 +5,7 @@ import "./responder_test.ts"; import "./router_test.ts"; import "./serveio_test.ts"; import "./agent_test.ts"; -import { runTests } from "https://deno.land/std@v0.15.0/testing/mod.ts"; +import { runTests } from "https://deno.land/std@v0.17.0/testing/mod.ts"; runTests({ exitOnFail: true }).then(() => { Deno.exit(0); });