Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Deno Dependencies #8

Merged
merged 1 commit into from
Aug 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions file_server_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
import { serve } from "https://deno.land/std@0.149.0/http/mod.ts";
import { assertEquals } from "https://deno.land/std@0.151.0/testing/asserts.ts";
import { serve } from "https://deno.land/std@0.151.0/http/mod.ts";
import { serveDirWithTs, serveFileWithTs, transpile } from "./mod.ts";

Deno.test({
Expand Down
12 changes: 6 additions & 6 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
type ServeDirOptions,
serveFile,
type ServeFileOptions,
} from "https://deno.land/std@0.149.0/http/file_server.ts";
import { contentType } from "https://deno.land/std@0.149.0/media_types/mod.ts";
} from "https://deno.land/std@0.151.0/http/file_server.ts";
import { contentType } from "https://deno.land/std@0.151.0/media_types/mod.ts";
import type { Context } from "https://deno.land/x/oak@v10.6.0/mod.ts";
import { convertBodyToBodyInit } from "https://deno.land/x/oak@v10.6.0/response.ts";
import { transpile } from "./utils/transpile.ts";
Expand All @@ -21,10 +21,10 @@ const jsxUrl = new URL("file:///src.jsx");
const jsContentType = contentType(".js")!;

/**
* This can be used in the same way as the [serveFile](https://doc.deno.land/https://deno.land/std@0.149.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.151.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.149.0/http/mod.ts";
* import { serve } from "https://deno.land/std@0.151.0/http/mod.ts";
* import { serveFileWithTs } from "https://deno.land/x/ts_serve@$VERSION/mod.ts";
*
* serve((request) => serveFileWithTs(request, "./mod.ts"));
Expand All @@ -50,10 +50,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.149.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.151.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.149.0/http/mod.ts";
* import { serve } from "https://deno.land/std@0.151.0/http/mod.ts";
* import { serveDirWithTs } from "https://deno.land/x/ts_serve@$VERSION/mod.ts";
*
* serve((request) => serveDirWithTs(request));
Expand Down
4 changes: 2 additions & 2 deletions oak_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
import { deferred } from "https://deno.land/std@0.149.0/async/mod.ts";
import { assertEquals } from "https://deno.land/std@0.151.0/testing/asserts.ts";
import { deferred } from "https://deno.land/std@0.151.0/async/mod.ts";
import { Application } from "https://deno.land/x/oak@v10.6.0/mod.ts";
import { transpile, tsMiddleware } from "./mod.ts";

Expand Down
4 changes: 2 additions & 2 deletions utils/transpile_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.151.0/testing/asserts.ts";
import { transpile } from "./transpile.ts";

const codes = [
Expand All @@ -22,7 +22,7 @@ const codes = [
],
[
"file:///src.jsx",
`import { render } from "https://esm.sh/react-dom@17.0.2";`,
`import { render } from "https://esm.sh/react-dom@18.3.0-next-e61fd91f5-20220630/";`,
"//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9",
],
] as const;
Expand Down