diff --git a/bench/run.ts b/bench/run.ts index 962576f03..01c1b51d8 100644 --- a/bench/run.ts +++ b/bench/run.ts @@ -1,5 +1,5 @@ import { delay } from "jsr:@std/async@^0.224.1"; -import { markdownTable } from "https://esm.sh/markdown-table@3.0.2"; +import { markdownTable } from "npm:markdown-table@3.0.2"; const time = 10; async function oha(url?: string) { diff --git a/core/build/deps.ts b/core/build/deps.ts index 8bfe17cee..11eba5293 100644 --- a/core/build/deps.ts +++ b/core/build/deps.ts @@ -1,3 +1,3 @@ -import * as esbuild from "npm:esbuild@0.23.1"; -export { denoPlugins } from "jsr:@luca/esbuild-deno-loader@^0.10.3"; +import * as esbuild from "npm:esbuild@0.24.0"; +export { denoPlugins } from "jsr:@luca/esbuild-deno-loader@^0.11.0"; export { esbuild }; diff --git a/core/server/deps.ts b/core/server/deps.ts index 8382a5be0..32dfa9705 100644 --- a/core/server/deps.ts +++ b/core/server/deps.ts @@ -6,14 +6,14 @@ export * from "jsr:@std/path@^1.0.1"; export { encodeHex } from "jsr:@std/encoding@^1.0.5/hex"; export { assert, assertEquals, assertExists } from "jsr:@std/assert@^1.0.6"; -export { h } from "https://esm.sh/preact@10.25.0"; +export { h } from "npm:preact@^10.25.0"; export type { ComponentChild, ComponentChildren, JSX, VNode, -} from "https://esm.sh/preact@10.25.0"; +} from "npm:preact@^10.25.0"; export { renderToString, renderToStringAsync, -} from "https://esm.sh/preact-render-to-string@6.5.11?deps=preact@10.25.0"; +} from "npm:preact-render-to-string@^6.5.11"; diff --git a/deno.json b/deno.json index 862fda207..a9c7829e5 100644 --- a/deno.json +++ b/deno.json @@ -12,8 +12,9 @@ }, "imports": { "@app/": "./", - "preact": "https://esm.sh/preact@10.25.0", - "preact/": "https://esm.sh/preact@10.25.0/" + "preact": "npm:preact@^10.25.0", + "@preact/signals": "npm:@preact/signals@^1.2.3", + "preact-render-to-string": "npm:preact-render-to-string@^6.5.11" }, "compilerOptions": { "jsx": "react-jsx", @@ -21,7 +22,7 @@ }, "nodeModulesDir": "auto", "tasks": { - "start": "ENV=DEVELOPMENT deno run --env --unstable-kv -A --watch modules/app/main.ts --debug", + "start": "ENV=DEVELOPMENT deno run -r --env --unstable-kv -A --watch modules/app/main.ts --debug", "build": "deno run --env -A --unstable-kv modules/app/main.ts --build ", "prod": "deno run --env --unstable-kv -A modules/app/main.ts", "test": "rm -rf .hydrate && rm -rf cov && deno test --env --unstable-kv -A --coverage=cov && deno coverage cov", diff --git a/middleware/tailwind/mod.ts b/middleware/tailwind/mod.ts index c66da9aa2..8a3d20fac 100644 --- a/middleware/tailwind/mod.ts +++ b/middleware/tailwind/mod.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file no-explicit-any -import tailwindCss, { Config } from "npm:tailwindcss@3.4.4"; +import tailwindCss, { Config } from "npm:tailwindcss@3.4.15"; import postcss from "npm:postcss@8.4.35"; import cssnano from "npm:cssnano@6.0.1"; import autoprefixer from "npm:autoprefixer@10.4.16"; diff --git a/modules/index/index.context.ts b/modules/index/index.context.ts index 75bd865e5..fb9df9e0c 100644 --- a/modules/index/index.context.ts +++ b/modules/index/index.context.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file -import { signal } from "https://esm.sh/@preact/signals@1.3.0"; +import { signal } from "@preact/signals"; import { createContext } from "preact"; import { DataType, RoomType } from "@app/modules/types/mod.ts"; diff --git a/modules/index/index.launchpad.tsx b/modules/index/index.launchpad.tsx index 2550e0f61..1c3e17a7a 100644 --- a/modules/index/index.launchpad.tsx +++ b/modules/index/index.launchpad.tsx @@ -4,7 +4,7 @@ import { Menu } from "@app/modules/index/index.menu.tsx"; import useFetch from "@app/modules/hook/fetch.ts"; import { DataType, RoomType } from "@app/modules/types/mod.ts"; import { useContext } from "preact/hooks"; -import { effect } from "https://esm.sh/@preact/signals@1.3.0"; +import { effect } from "@preact/signals"; import { AppContext } from "@app/modules/index/index.context.ts"; function Loader(props: { text: string }) { diff --git a/modules/index/index.main.tsx b/modules/index/index.main.tsx index 451ed4185..09408f020 100644 --- a/modules/index/index.main.tsx +++ b/modules/index/index.main.tsx @@ -7,7 +7,7 @@ import useFetch from "@app/modules/hook/fetch.ts"; import type { DataType, RoomType } from "@app/modules/types/mod.ts"; import { initialData } from "@app/modules/socket/init.ts"; import { AppContext } from "@app/modules/index/index.context.ts"; -import { effect } from "https://esm.sh/@preact/signals@1.3.0"; +import { effect } from "@preact/signals"; import MessageInput from "@app/modules/index/index.input.tsx"; function ListMessage(props: { data: DataType[] }) { diff --git a/modules/index/index.navigation.tsx b/modules/index/index.navigation.tsx index 9e44e4856..63109058d 100644 --- a/modules/index/index.navigation.tsx +++ b/modules/index/index.navigation.tsx @@ -1,6 +1,6 @@ // deno-lint-ignore-file no-explicit-any // import Ads from "@app/modules/index/index.ads.tsx"; -import { effect } from "https://esm.sh/@preact/signals@1.3.0"; +import { effect } from "@preact/signals"; import { AppContext } from "@app/modules/index/index.context.ts"; import { useContext, useEffect, useState } from "preact/hooks"; diff --git a/post/tailwind.md b/post/tailwind.md index 6e9f191d3..f02eda5e0 100644 --- a/post/tailwind.md +++ b/post/tailwind.md @@ -16,7 +16,7 @@ you can now style your web app with Tailwind CSS in a super easy way. Create `tailwind.config.ts` file. ```ts -import { type Config } from "npm:tailwindcss@3.3.5"; +import { type Config } from "npm:tailwindcss@3.4.15"; export default { content: [ "./modules/**/*.tsx", diff --git a/tailwind.config.ts b/tailwind.config.ts index b885f4064..20e083dc9 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,4 +1,4 @@ -import { type Config } from "npm:tailwindcss@3.4.14"; +import { type Config } from "npm:tailwindcss@3.4.15"; /** * see: https://tailwindcss.com/docs/content-configuration