diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec2379fa..ff10a8b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-16.04 strategy: matrix: - deno: [1.11.0] + deno: [1.12.0] name: Deno ${{ matrix.deno }} steps: - uses: actions/checkout@master diff --git a/README.md b/README.md index ff88337b..c7c45077 100644 --- a/README.md +++ b/README.md @@ -432,7 +432,7 @@ Use `context.response.setNotRespond()` for return the rest of the requests [Full example](https://github.com/alosaur/alosaur/tree/master/examples/ws) ```ts -import { acceptWebSocket } from "https://deno.land/std@0.98.0/ws/mod.ts"; +import { acceptWebSocket } from "https://deno.land/std@0.102.0/ws/mod.ts"; import { HttpContext, PreRequestMiddleware, @@ -623,8 +623,8 @@ new Handlebars( By default you can use `@Body` in action for read form-data with files. ```ts -import { FormFile } from "https://deno.land/std@0.98.0/mime/multipart.ts"; -import { move } from "https://deno.land/std@0.98.0/fs/move.ts"; +import { FormFile } from "https://deno.land/std@0.102.0/mime/multipart.ts"; +import { move } from "https://deno.land/std@0.102.0/fs/move.ts"; ... diff --git a/README_zh.md b/README_zh.md index d6b81a20..0ea63f26 100644 --- a/README_zh.md +++ b/README_zh.md @@ -441,7 +441,7 @@ app.use(/\//, new Log()); [完整的示例](https://github.com/alosaur/alosaur/tree/master/examples/ws) ```ts -import { acceptWebSocket } from "https://deno.land/std@0.98.0/ws/mod.ts"; +import { acceptWebSocket } from "https://deno.land/std@0.102.0/ws/mod.ts"; import { HttpContext, PreRequestMiddleware, @@ -630,8 +630,8 @@ new Handlebars( 默认情况下使用在控制器方法中使用`@Body`解析通过HTML表单上传的文件. ```ts -import { FormFile } from "https://deno.land/std@0.98.0/mime/multipart.ts"; -import { move } from "https://deno.land/std@0.98.0/fs/move.ts"; +import { FormFile } from "https://deno.land/std@0.102.0/mime/multipart.ts"; +import { move } from "https://deno.land/std@0.102.0/fs/move.ts"; ... diff --git a/examples/form-data/areas/core.area.ts b/examples/form-data/areas/core.area.ts index 95416af5..c32d4970 100644 --- a/examples/form-data/areas/core.area.ts +++ b/examples/form-data/areas/core.area.ts @@ -8,8 +8,8 @@ import { Post, } from "alosaur/mod.ts"; -import { FormFile } from "https://deno.land/std@0.98.0/mime/multipart.ts"; -import { move } from "https://deno.land/std@0.98.0/fs/move.ts"; +import { FormFile } from "https://deno.land/std@0.102.0/mime/multipart.ts"; +import { move } from "https://deno.land/std@0.102.0/fs/move.ts"; @Controller() export class CoreController { diff --git a/examples/sse/app.ts b/examples/sse/app.ts index fe49efc1..2818a779 100644 --- a/examples/sse/app.ts +++ b/examples/sse/app.ts @@ -2,8 +2,8 @@ import { Cookie, getCookies, setCookie, -} from "https://deno.land/std@0.98.0/http/cookie.ts"; -import { Response } from "https://deno.land/std@0.98.0/http/server.ts"; +} from "https://deno.land/std@0.102.0/http/cookie.ts"; +import { Response } from "https://deno.land/std@0.102.0/http/server.ts"; import { App, Area, diff --git a/examples/static/app.ts b/examples/static/app.ts index 2922c4e3..f9e95ec7 100644 --- a/examples/static/app.ts +++ b/examples/static/app.ts @@ -2,8 +2,8 @@ import { Cookie, getCookies, setCookie, -} from "https://deno.land/std@0.98.0/http/cookie.ts"; -import { Response } from "https://deno.land/std@0.98.0/http/server.ts"; +} from "https://deno.land/std@0.102.0/http/cookie.ts"; +import { Response } from "https://deno.land/std@0.102.0/http/server.ts"; import { App, Area, diff --git a/examples/ws/README.md b/examples/ws/README.md index a29a781c..909f860c 100644 --- a/examples/ws/README.md +++ b/examples/ws/README.md @@ -1,6 +1,6 @@ # Websocket chat example This example is an adapter from -https://deno.land/std@0.98.0/examples/chat/server.ts; +https://deno.land/std@0.102.0/examples/chat/server.ts; It shows how to implement Alosaur Middleware for WebSocket. diff --git a/examples/ws/app.ts b/examples/ws/app.ts index 3d477819..c156b337 100644 --- a/examples/ws/app.ts +++ b/examples/ws/app.ts @@ -2,8 +2,8 @@ import { Cookie, getCookies, setCookie, -} from "https://deno.land/std@0.98.0/http/cookie.ts"; -import { Response } from "https://deno.land/std@0.98.0/http/server.ts"; +} from "https://deno.land/std@0.102.0/http/cookie.ts"; +import { Response } from "https://deno.land/std@0.102.0/http/server.ts"; import { App, Area, diff --git a/examples/ws/chat.handler.ts b/examples/ws/chat.handler.ts index 09ae1dd2..78fd041e 100644 --- a/examples/ws/chat.handler.ts +++ b/examples/ws/chat.handler.ts @@ -1,7 +1,7 @@ import { isWebSocketCloseEvent, WebSocket, -} from "https://deno.land/std@0.98.0/ws/mod.ts"; +} from "https://deno.land/std@0.102.0/ws/mod.ts"; const clients = new Map(); let clientId = 0; diff --git a/examples/ws/websocket.middlware.ts b/examples/ws/websocket.middlware.ts index 26cb8da1..c4498f62 100644 --- a/examples/ws/websocket.middlware.ts +++ b/examples/ws/websocket.middlware.ts @@ -1,5 +1,5 @@ import { HttpContext, PreRequestMiddleware } from "alosaur/mod.ts"; -import { acceptWebSocket } from "https://deno.land/std@0.98.0/ws/mod.ts"; +import { acceptWebSocket } from "https://deno.land/std@0.102.0/ws/mod.ts"; import { ChatHandler } from "./chat.handler.ts"; export class WebsocketMiddleware implements PreRequestMiddleware { diff --git a/mod.ts b/mod.ts index 4bf28213..b6e07a4e 100644 --- a/mod.ts +++ b/mod.ts @@ -27,8 +27,8 @@ export { serve, Server, ServerRequest, -} from "https://deno.land/std@0.98.0/http/server.ts"; -export type { HTTPOptions } from "https://deno.land/std@0.98.0/http/server.ts"; +} from "https://deno.land/std@0.102.0/http/server.ts"; +export type { HTTPOptions } from "https://deno.land/std@0.102.0/http/server.ts"; // Version export * from "./src/version.ts"; diff --git a/src/deps.ts b/src/deps.ts index 6d3ee284..06219142 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -2,13 +2,13 @@ export { serve, Server, ServerRequest, -} from "https://deno.land/std@0.98.0/http/server.ts"; +} from "https://deno.land/std@0.102.0/http/server.ts"; export type { HTTPOptions, Response, -} from "https://deno.land/std@0.98.0/http/server.ts"; -export { getCookies } from "https://deno.land/std@0.98.0/http/cookie.ts"; -export { MultipartReader } from "https://deno.land/std@0.98.0/mime/mod.ts"; +} from "https://deno.land/std@0.102.0/http/server.ts"; +export { getCookies } from "https://deno.land/std@0.102.0/http/cookie.ts"; +export { MultipartReader } from "https://deno.land/std@0.102.0/mime/mod.ts"; export { basename, @@ -19,6 +19,6 @@ export { parse, resolve, sep, -} from "https://deno.land/std@0.98.0/path/mod.ts"; +} from "https://deno.land/std@0.102.0/path/mod.ts"; export { contentType } from "https://deno.land/x/media_types@v2.7.1/mod.ts"; diff --git a/src/deps_test.ts b/src/deps_test.ts index f6c70c44..f8ff1d35 100644 --- a/src/deps_test.ts +++ b/src/deps_test.ts @@ -3,8 +3,8 @@ export { assertEquals, assertThrows, assertThrowsAsync, -} from "https://deno.land/std@0.98.0/testing/asserts.ts"; +} from "https://deno.land/std@0.102.0/testing/asserts.ts"; -export { TextProtoReader } from "https://deno.land/std@0.98.0/textproto/mod.ts"; +export { TextProtoReader } from "https://deno.land/std@0.102.0/textproto/mod.ts"; -export { BufReader } from "https://deno.land/std@0.98.0/io/bufio.ts"; +export { BufReader } from "https://deno.land/std@0.102.0/io/bufio.ts"; diff --git a/src/security/authentication/cookies/src/cookies.scheme.ts b/src/security/authentication/cookies/src/cookies.scheme.ts index 15e8ae81..a0dbc276 100644 --- a/src/security/authentication/cookies/src/cookies.scheme.ts +++ b/src/security/authentication/cookies/src/cookies.scheme.ts @@ -7,7 +7,7 @@ import { SESSION_SIGNATURE_PREFIX_KEY, SessionInterface, } from "../../../session/src/session.interface.ts"; -import { deleteCookie } from "https://deno.land/std@0.98.0/http/cookie.ts"; +import { deleteCookie } from "https://deno.land/std@0.102.0/http/cookie.ts"; import { SecurityContext } from "../../../context/security-context.ts"; import { Redirect } from "../../../../renderer/redirect.ts"; diff --git a/src/security/session/src/session.instance.ts b/src/security/session/src/session.instance.ts index 48a515c7..77ee6363 100644 --- a/src/security/session/src/session.instance.ts +++ b/src/security/session/src/session.instance.ts @@ -1,7 +1,7 @@ import { SessionInterface } from "./session.interface.ts"; import { SessionStore } from "./store/store.interface.ts"; import { v4 } from "https://deno.land/std/uuid/mod.ts"; -import { createHash } from "https://deno.land/std@0.98.0/hash/mod.ts"; +import { createHash } from "https://deno.land/std@0.102.0/hash/mod.ts"; /** * Object of session for job with store diff --git a/src/security/session/src/session.middleware.ts b/src/security/session/src/session.middleware.ts index ba7be584..1adddf7d 100644 --- a/src/security/session/src/session.middleware.ts +++ b/src/security/session/src/session.middleware.ts @@ -6,7 +6,7 @@ import { Session } from "./session.instance.ts"; import { getCookies, setCookie, -} from "https://deno.land/std@0.98.0/http/cookie.ts"; +} from "https://deno.land/std@0.102.0/http/cookie.ts"; import { SESSION_SIGNATURE_PREFIX_KEY, SessionOptions, diff --git a/src/sse/accept-sse.ts b/src/sse/accept-sse.ts index 07861f9f..6fe4fca5 100644 --- a/src/sse/accept-sse.ts +++ b/src/sse/accept-sse.ts @@ -1,4 +1,4 @@ -import { STATUS_TEXT } from "https://deno.land/std@0.98.0/http/http_status.ts"; +import { STATUS_TEXT } from "https://deno.land/std@0.102.0/http/http_status.ts"; import { HttpContext } from "../models/http-context.ts"; import { assert } from "../deps_test.ts"; diff --git a/src/version.ts b/src/version.ts index cc42f4b9..23344b55 100644 --- a/src/version.ts +++ b/src/version.ts @@ -15,4 +15,4 @@ export class Version { } } -export const VERSION = new Version("0.31.1"); +export const VERSION = new Version("0.32.0");