diff --git a/deno.json b/deno.json index 50b4159..80ae286 100644 --- a/deno.json +++ b/deno.json @@ -26,15 +26,16 @@ "packages/" ], "imports": { + "@deno/gfm": "jsr:@deno/gfm@^0.10.0", + "@std/fs": "jsr:@std/fs@^1.0.6", + "@std/path": "jsr:@std/path@^1.0.8", "fresh": "jsr:@fresh/core@^2.0.0-alpha.25", - "$std/": "https://deno.land/std@0.208.0/", ":components/": "./components/", ":islands/": "./islands/", ":src/": "./src/", ":types": "./types.ts", "@cohabit/mailer": "jsr:@cohabit/mailer@^0.3.3", "@cohabit/resources-manager": "jsr:@cohabit/resources-manager@^0.2.1", - "@deno/gfm": "https://deno.land/x/gfm@0.6.0/mod.ts", "@jotsr/delayed": "jsr:@jotsr/delayed@^2.1.1", "@jotsr/smart-css-bundler": "jsr:@jotsr/smart-css-bundler@^0.3.0", "@preact/signals": "npm:@preact/signals@^1.3.0", @@ -44,10 +45,10 @@ "@std/encoding": "jsr:@std/encoding@^0.224.3", "@std/front-matter": "jsr:@std/front-matter@^0.224.2", "@std/http": "jsr:@std/http@^0.224.4", - "@std/json": "jsr:@std/json@^0.224.1", + "@std/json": "jsr:@std/json@^1.0.1", "@std/streams": "jsr:@std/streams@^0.224.5", - "@univoq/": "https://deno.land/x/univoq@0.2.0/", "preact": "npm:preact@^10.24.2", + "@univoq/": "https://deno.land/x/univoq@0.2.0/", "univoq": "https://deno.land/x/univoq@0.2.0/mod.ts", "web-push": "npm:web-push@^3.6.7" }, diff --git a/islands/AiChatBox.tsx b/islands/AiChatBox.tsx index 46bdce6..be174e9 100644 --- a/islands/AiChatBox.tsx +++ b/islands/AiChatBox.tsx @@ -1,4 +1,4 @@ -import { JsonParseStream } from '$std/json/mod.ts' +import { JsonParseStream } from '@std/json' import { Markdown } from ':components/Markdown.tsx' import { Signal, signal, useSignal } from '@preact/signals' import { JSX } from 'preact' diff --git a/routes/api/serviceworker/precache.tsx b/routes/api/serviceworker/precache.tsx index 9b53d5a..57e203e 100644 --- a/routes/api/serviceworker/precache.tsx +++ b/routes/api/serviceworker/precache.tsx @@ -1,4 +1,4 @@ -import { expandGlob } from '$std/fs/mod.ts' +import { expandGlob } from '@std/fs' import { SessionHandlers } from ':src/session/mod.ts' import { respondApi } from ':src/utils.ts' import { BUILD_ID } from '$fresh/src/server/build_id.ts' diff --git a/scripts/add_package.ts b/scripts/add_package.ts index 671f78f..7b90eeb 100644 --- a/scripts/add_package.ts +++ b/scripts/add_package.ts @@ -1,5 +1,5 @@ -import { ensureDir } from '$std/fs/mod.ts' -import { join } from '$std/path/join.ts' +import { ensureDir } from '@std/fs' +import { join } from '@std/path' import denoJson from '../deno.json' with { type: 'json' } // Get package from cli diff --git a/src/db/mod.ts b/src/db/mod.ts index 711590f..3d4fd35 100644 --- a/src/db/mod.ts +++ b/src/db/mod.ts @@ -3,8 +3,7 @@ import { Group, User } from '@cohabit/resources-manager/models' import type { MailAddress } from '@cohabit/resources-manager/types' // Import Datas -import { exists } from '$std/fs/exists.ts' -import { ensureDir } from '$std/fs/mod.ts' +import { ensureDir, exists } from '@std/fs' import groups from ':src/db/mock/groups.json' with { type: 'json' } import users from ':src/db/mock/users.json' with { type: 'json' } diff --git a/src/serviceworker/mod.ts b/src/serviceworker/mod.ts index 6f75fd9..0e31d89 100644 --- a/src/serviceworker/mod.ts +++ b/src/serviceworker/mod.ts @@ -1,7 +1,7 @@ /// /// -import type { JsonValue } from '$std/json/common.ts' +import type { JsonValue } from '@std/json' import { ApiPayload } from ':src/utils.ts' import type { PrecacheResponse } from '../../routes/api/serviceworker/precache.tsx' import { FetchStrategy } from './src/fetch_strategy.ts' diff --git a/src/utils.ts b/src/utils.ts index 63ea524..4fcf9d9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,8 +1,6 @@ import type { Signal } from '@preact/signals' -import { JsonValue } from '$std/json/common.ts' +import { JsonParseStream, JsonStringifyStream, JsonValue } from '@std/json' import { decodeBase64 } from '@std/encoding/base64' -import { JsonStringifyStream } from '@std/json' -import { JsonParseStream } from '@std/json/json-parse-stream' import { TextLineStream } from '@std/streams/text-line-stream' export type JsonCompatible = JsonValue | { toJSON(): JsonValue } | unknown