Skip to content

Commit

Permalink
up to Deno 0.12.0 & std 0.102.
Browse files Browse the repository at this point in the history
  • Loading branch information
irustm committed Jul 19, 2021
1 parent 55294b5 commit 2ab7d4d
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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";

...

Expand Down
6 changes: 3 additions & 3 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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";

...

Expand Down
4 changes: 2 additions & 2 deletions examples/form-data/areas/core.area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions examples/sse/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions examples/static/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/ws/README.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions examples/ws/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/ws/chat.handler.ts
Original file line number Diff line number Diff line change
@@ -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<number, WebSocket>();
let clientId = 0;
Expand Down
2 changes: 1 addition & 1 deletion examples/ws/websocket.middlware.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
10 changes: 5 additions & 5 deletions src/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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";
6 changes: 3 additions & 3 deletions src/deps_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
2 changes: 1 addition & 1 deletion src/security/authentication/cookies/src/cookies.scheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/security/session/src/session.instance.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/security/session/src/session.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/sse/accept-sse.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export class Version {
}
}

export const VERSION = new Version("0.31.1");
export const VERSION = new Version("0.32.0");

0 comments on commit 2ab7d4d

Please sign in to comment.