diff --git a/deno.json b/deno.json index 1482f56c6..fc0926c81 100644 --- a/deno.json +++ b/deno.json @@ -7,8 +7,8 @@ "db:seed": "deno run --allow-read --allow-env --allow-net --unstable tasks/db_seed.ts", "db:migrate": "deno run --allow-read --allow-env --allow-net --unstable tasks/db_migrate.ts", "db:reset": "deno run --allow-read --allow-env --unstable tasks/db_reset.ts", - "start": "deno run --unstable -A --watch=static/,routes/ dev.ts", - "test": "DENO_KV_PATH=:memory: GITHUB_CLIENT_ID=xxx GITHUB_CLIENT_SECRET=xxx deno test -A --unstable --parallel --coverage=./cov --doc", + "start": "deno run --unstable -A --watch=static/,routes/ --env dev.ts", + "test": "DENO_KV_PATH=:memory: deno test -A --unstable --parallel --coverage=./cov --env --doc", "check:license": "deno run --allow-read --allow-write tasks/check_license.ts", "check:types": "deno check **/*.ts && deno check **/*.tsx", "ok": "deno fmt --check && deno lint && deno task check:license --check && deno task check:types && deno task test", @@ -23,7 +23,7 @@ "imports": { "@/": "./", "$fresh/": "https://deno.land/x/fresh@1.5.2/", - "$gfm": "https://deno.land/x/gfm@0.2.4/mod.ts", + "$gfm": "https://deno.land/x/gfm@0.2.5/mod.ts", "preact": "https://esm.sh/preact@10.18.1", "preact/": "https://esm.sh/preact@10.18.1/", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.2", @@ -31,7 +31,7 @@ "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.0", "twind-preset-tailwind/": "https://esm.sh/@twind/preset-tailwind@1.1.4/", "twind-preset-ext": "https://esm.sh/@twind/preset-ext@1.0.7/", - "std/": "https://deno.land/std@0.202.0/", + "std/": "https://deno.land/std@0.205.0/", "stripe": "npm:/stripe@13.5.0", "feed": "npm:/feed@4.2.2", "kv_oauth/": "https://deno.land/x/deno_kv_oauth@v0.9.1/", diff --git a/dev.ts b/dev.ts index c3879c1cb..35decc5a8 100755 --- a/dev.ts +++ b/dev.ts @@ -3,6 +3,5 @@ import dev from "$fresh/dev.ts"; import config from "./fresh.config.ts"; -import "std/dotenv/load.ts"; await dev(import.meta.url, "./main.ts", config); diff --git a/e2e_test.ts b/e2e_test.ts index a174d1111..4098aea54 100644 --- a/e2e_test.ts +++ b/e2e_test.ts @@ -24,7 +24,7 @@ import { assertObjectMatch, assertStringIncludes, } from "std/assert/mod.ts"; -import { isRedirectStatus } from "std/http/http_status.ts"; +import { isRedirectStatus } from "std/http/status.ts"; import { resolvesNext, returnsNext, stub } from "std/testing/mock.ts"; import Stripe from "stripe"; import options from "./fresh.config.ts"; diff --git a/plugins/error_handling.ts b/plugins/error_handling.ts index 196ff2d4f..03b3d0765 100644 --- a/plugins/error_handling.ts +++ b/plugins/error_handling.ts @@ -3,7 +3,7 @@ import type { Plugin } from "$fresh/server.ts"; import type { State } from "@/plugins/session.ts"; import { Status } from "$fresh/server.ts"; import { BadRequestError, redirect, UnauthorizedError } from "@/utils/http.ts"; -import { STATUS_TEXT } from "std/http/http_status.ts"; +import { STATUS_TEXT } from "std/http/status.ts"; /** * Returns the HTTP status code corresponding to a given runtime error. By diff --git a/tasks/init_stripe.ts b/tasks/init_stripe.ts index c771a4065..8f162e67d 100644 --- a/tasks/init_stripe.ts +++ b/tasks/init_stripe.ts @@ -1,7 +1,6 @@ // Copyright 2023 the Deno authors. All rights reserved. MIT license. import type Stripe from "stripe"; import { SITE_DESCRIPTION } from "@/utils/constants.ts"; -import "std/dotenv/load.ts"; import { isStripeEnabled, stripe } from "@/utils/stripe.ts"; async function createPremiumTierProduct(stripe: Stripe) { diff --git a/utils/http.ts b/utils/http.ts index 36bead0be..44f978df3 100644 --- a/utils/http.ts +++ b/utils/http.ts @@ -1,5 +1,5 @@ // Copyright 2023 the Deno authors. All rights reserved. MIT license. -import { RedirectStatus, Status } from "std/http/http_status.ts"; +import { RedirectStatus, Status } from "std/http/status.ts"; /** * Returns a response that redirects the client to the given location (URL). diff --git a/utils/posts.ts b/utils/posts.ts index c44052b5f..131d9a987 100644 --- a/utils/posts.ts +++ b/utils/posts.ts @@ -1,6 +1,6 @@ // Copyright 2023 the Deno authors. All rights reserved. MIT license. import { extract } from "std/front_matter/yaml.ts"; -import { join } from "std/path/mod.ts"; +import { join } from "std/path/join.ts"; /** * This code is based on the diff --git a/utils/stripe.ts b/utils/stripe.ts index 5220023e0..f73c51edc 100644 --- a/utils/stripe.ts +++ b/utils/stripe.ts @@ -1,6 +1,5 @@ // Copyright 2023 the Deno authors. All rights reserved. MIT license. import Stripe from "stripe"; -import "std/dotenv/load.ts"; import { AssertionError } from "std/assert/assertion_error.ts"; const STRIPE_SECRET_KEY = Deno.env.get("STRIPE_SECRET_KEY");