fix: update imports for Deno 2.x compatibility (#448) (#449)

This commit is contained in:
Sibaram 2026-07-25 05:23:09 +05:30 • committed by GitHub
parent ccb591b887
commit 119ea4cd3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import { Card } from "../src/card.ts";
import { CONSTANTS, parseParams } from "../src/utils.ts";
import { COLORS, Theme } from "../src/theme.ts";
import { Error400 } from "../src/error_page.ts";
import "https://deno.land/x/dotenv@v0.5.0/load.ts";
import "@std/dotenv/load";
import { staticRenderRegeneration } from "../src/StaticRenderRegeneration/index.ts";
import { GithubRepositoryService } from "../src/Repository/GithubRepository.ts";
import { GithubApiService } from "../src/Services/GithubApiService.ts";

View file

@ -5,5 +5,8 @@
"format": "deno fmt",
"lint": "deno lint",
"test": "ENV_TYPE=test deno test --allow-env"
},
"imports": {
"@std/dotenv": "jsr:@std/dotenv@^0.224.0"
}
}
}

View file

@ -1,4 +1,4 @@
import { serve } from "https://deno.land/std@0.125.0/http/server.ts";
import { serve } from "https://deno.land/std@0.224.0/http/server.ts";
import requestHandler from "./api/index.ts";
serve(requestHandler, { port: Number(Deno.env.get("PORT")) || 8080 });
serve(requestHandler, { port: Number(Deno.env.get("PORT")) || 8080 });