diff --git a/example/serve.ts b/example/serve.ts index 3efeaf0..1f9cb2d 100644 --- a/example/serve.ts +++ b/example/serve.ts @@ -1,3 +1,3 @@ -import { serve } from "https://deno.land/std@0.178.0/http/mod.ts"; +import { serve } from "https://deno.land/std@0.184.0/http/mod.ts"; import { serveDirWithTs } from "../mod.ts"; serve((req) => serveDirWithTs(req, { fsRoot: "example" })); diff --git a/file_server_test.ts b/file_server_test.ts index 206c2ad..9b04573 100644 --- a/file_server_test.ts +++ b/file_server_test.ts @@ -1,8 +1,8 @@ import { assertEquals, fail, -} from "https://deno.land/std@0.178.0/testing/asserts.ts"; -import { serve } from "https://deno.land/std@0.178.0/http/mod.ts"; +} from "https://deno.land/std@0.184.0/testing/asserts.ts"; +import { serve } from "https://deno.land/std@0.184.0/http/mod.ts"; import { MediaType, serveDirWithTs, diff --git a/mod.ts b/mod.ts index a33defb..f226362 100644 --- a/mod.ts +++ b/mod.ts @@ -10,7 +10,7 @@ import { MediaType, transpile } from "./utils/transpile.ts"; * In that case, calling this function in advance can speed up later calls to the transpile function. * * ```ts - * import { serve } from "https://deno.land/std@0.178.0/http/mod.ts"; + * import { serve } from "https://deno.land/std@0.184.0/http/mod.ts"; * import { serveDirWithTs, fourceInstantiateWasm } from "https://deno.land/x/ts_serve@$MODULE_VERSION/mod.ts"; * * // load the wasm file in the background when the server starts. diff --git a/mod_test.ts b/mod_test.ts index f2ea3ce..afa070b 100644 --- a/mod_test.ts +++ b/mod_test.ts @@ -1,8 +1,8 @@ -import { assert } from "https://deno.land/std@0.178.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.184.0/testing/asserts.ts"; import { assertSpyCalls, stub, -} from "https://deno.land/std@0.178.0/testing/mock.ts"; +} from "https://deno.land/std@0.184.0/testing/mock.ts"; import { fourceInstantiateWasm, MediaType, transpile } from "./mod.ts"; diff --git a/oak_test.ts b/oak_test.ts index 0c92e88..de0e5e4 100644 --- a/oak_test.ts +++ b/oak_test.ts @@ -1,9 +1,9 @@ import { assertEquals, fail, -} from "https://deno.land/std@0.178.0/testing/asserts.ts"; -import { deferred } from "https://deno.land/std@0.178.0/async/mod.ts"; -import { Application } from "https://deno.land/x/oak@v12.0.1/mod.ts"; +} from "https://deno.land/std@0.184.0/testing/asserts.ts"; +import { deferred } from "https://deno.land/std@0.184.0/async/mod.ts"; +import { Application } from "https://deno.land/x/oak@v12.3.0/mod.ts"; import { MediaType, transpile, tsMiddleware } from "./mod.ts"; const port = 8888; diff --git a/src/file_server.ts b/src/file_server.ts index 697c502..56926d3 100644 --- a/src/file_server.ts +++ b/src/file_server.ts @@ -3,15 +3,15 @@ import { type ServeDirOptions, serveFile, type ServeFileOptions, -} from "https://deno.land/std@0.178.0/http/file_server.ts"; +} from "https://deno.land/std@0.184.0/http/file_server.ts"; import { transpileResponse } from "../utils/transpile_response.ts"; /** - * This can be used in the same way as the [serveFile](https://doc.deno.land/https://deno.land/std@0.178.0/http/file_server.ts/~/serveFile) function of the standard library, but if the file is TypeScript, it will be rewritten to JavaScript. + * This can be used in the same way as the [serveFile](https://doc.deno.land/https://deno.land/std@0.184.0/http/file_server.ts/~/serveFile) function of the standard library, but if the file is TypeScript, it will be rewritten to JavaScript. * * ```ts - * import { serve } from "https://deno.land/std@0.178.0/http/mod.ts"; + * import { serve } from "https://deno.land/std@0.184.0/http/mod.ts"; * import { serveFileWithTs, fourceInstantiateWasm } from "https://deno.land/x/ts_serve@$MODULE_VERSION/mod.ts"; * * fourceInstantiateWasm(); @@ -28,10 +28,10 @@ export async function serveFileWithTs( } /** - * This can be used in the same way as the [serveDir](https://doc.deno.land/https://deno.land/std@0.178.0/http/file_server.ts/~/serveDir) function of the standard library, but if the file is TypeScript, it will be rewritten to JavaScript. + * This can be used in the same way as the [serveDir](https://doc.deno.land/https://deno.land/std@0.184.0/http/file_server.ts/~/serveDir) function of the standard library, but if the file is TypeScript, it will be rewritten to JavaScript. * * ```ts - * import { serve } from "https://deno.land/std@0.178.0/http/mod.ts"; + * import { serve } from "https://deno.land/std@0.184.0/http/mod.ts"; * import { serveDirWithTs, fourceInstantiateWasm } from "https://deno.land/x/ts_serve@$MODULE_VERSION/mod.ts"; * * fourceInstantiateWasm(); diff --git a/src/oak.ts b/src/oak.ts index 96b8aff..4c9788d 100644 --- a/src/oak.ts +++ b/src/oak.ts @@ -1,5 +1,5 @@ -import type { Context } from "https://deno.land/x/oak@v12.0.1/mod.ts"; -import { convertBodyToBodyInit } from "https://deno.land/x/oak@v12.0.1/response.ts"; +import type { Context } from "https://deno.land/x/oak@v12.3.0/mod.ts"; +import { convertBodyToBodyInit } from "https://deno.land/x/oak@v12.3.0/response.ts"; import { MediaType, transpile } from "../utils/transpile.ts"; @@ -14,7 +14,7 @@ const jsxType = new Set(["jsx", ".jsx", "text/jsx"]); * Oak middleware that rewrites TypeScript response to JavaScript response. * * ```ts - * import { Application } from "https://deno.land/x/oak@v12.0.1/mod.ts"; + * import { Application } from "https://deno.land/x/oak@v12.3.0/mod.ts"; * import { tsMiddleware, fourceInstantiateWasm } from "https://deno.land/x/ts_serve@$MODULE_VERSION/mod.ts"; * * fourceInstantiateWasm(); diff --git a/utils/transpile.ts b/utils/transpile.ts index a62d09a..521c170 100644 --- a/utils/transpile.ts +++ b/utils/transpile.ts @@ -1,4 +1,4 @@ -import { emit } from "https://deno.land/x/emit@0.16.0/mod.ts"; +import { emit } from "https://deno.land/x/emit@0.20.0/mod.ts"; /** File type. You can pass it as an option to the transpile function to tell it what media type the source is. */ export enum MediaType { diff --git a/utils/transpile_response.ts b/utils/transpile_response.ts index 0f06d55..740a009 100644 --- a/utils/transpile_response.ts +++ b/utils/transpile_response.ts @@ -1,4 +1,4 @@ -import { contentType } from "https://deno.land/std@0.178.0/media_types/mod.ts"; +import { contentType } from "https://deno.land/std@0.184.0/media_types/mod.ts"; import { MediaType, transpile } from "../utils/transpile.ts"; const jsContentType = contentType(".js"); @@ -7,8 +7,8 @@ const jsContentType = contentType(".js"); * Transpile the body of the response and return a new response. * * ```ts - * import { serve } from "https://deno.land/std@0.178.0/http/mod.ts"; - * import { serveFile } from "https://deno.land/std@0.178.0/http/file_server.ts"; + * import { serve } from "https://deno.land/std@0.184.0/http/mod.ts"; + * import { serveFile } from "https://deno.land/std@0.184.0/http/file_server.ts"; * * import { transpileResponse } from "https://deno.land/x/ts_serve@$MODULE_VERSION/utils/transpile_response.ts" * diff --git a/utils/transpile_response_test.ts b/utils/transpile_response_test.ts index 0f8ebe5..701b245 100644 --- a/utils/transpile_response_test.ts +++ b/utils/transpile_response_test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std@0.178.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.184.0/testing/asserts.ts"; import { transpileResponse } from "./transpile_response.ts"; Deno.test({ diff --git a/utils/transpile_test.ts b/utils/transpile_test.ts index ae29491..1e25f72 100644 --- a/utils/transpile_test.ts +++ b/utils/transpile_test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std@0.178.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.184.0/testing/asserts.ts"; import { MediaType, transpile } from "./transpile.ts"; const codes = [