Skip to content

Commit

Permalink
chore: update dependencies (#640)
Browse files Browse the repository at this point in the history
Updates dependencies and uses `--env` from the latest Deno 1.38 release.
  • Loading branch information
iuioiua authored Nov 2, 2023
1 parent d19880e commit 73a2874
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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: GITHUB_CLIENT_ID=xxx GITHUB_CLIENT_SECRET=xxx deno test -A --unstable --parallel --coverage=./cov",
"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",
Expand All @@ -23,15 +23,15 @@
"imports": {
"@/": "./",
"$fresh/": "https://deno.land/x/[email protected]/",
"$gfm": "https://deno.land/x/[email protected].4/mod.ts",
"$gfm": "https://deno.land/x/[email protected].5/mod.ts",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"preact-render-to-string": "https://esm.sh/*[email protected]",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"twind-preset-tailwind/": "https://esm.sh/@twind/[email protected]/",
"twind-preset-ext": "https://esm.sh/@twind/[email protected]/",
"std/": "https://deno.land/std@0.202.0/",
"std/": "https://deno.land/std@0.205.0/",
"stripe": "npm:/[email protected]",
"feed": "npm:/[email protected]",
"kv_oauth/": "https://deno.land/x/[email protected]/",
Expand Down
1 change: 0 additions & 1 deletion dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 1 addition & 1 deletion e2e_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion plugins/error_handling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tasks/init_stripe.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion utils/http.ts
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion utils/posts.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion utils/stripe.ts
Original file line number Diff line number Diff line change
@@ -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");
Expand Down

0 comments on commit 73a2874

Please sign in to comment.