Problem
main.ts imports serve from deno.land/std@0.125.0/http/server.ts (Feb 2022). The std serve function was deprecated then removed; Dockerfile pins denoland/deno:latest (Deno 2.x), so deno task start fails or emits a deprecation warning against a URL that will 404 once the std release is pruned.
Steps
docker build -t trophy .
docker run --rm -e PORT=8080 trophy (equivalent to deno task start per CONTRIBUTING.md).
Expected
Server listens on :8080.
Actual
Deprecation warning on the std@0.125.0/http/server.ts import; the serve(handler, opts) shape is the legacy one.
Cite
main.ts:1 — import { serve } from "https://deno.land/std@0.125.0/http/server.ts";
Dockerfile:1 — FROM denoland/deno:latest
CONTRIBUTING.md env: Deno >= v1.36.1
Fix
Replace with builtin Deno.serve(...); drops the std dep entirely.
Environment
OS: Linux (container), Deno: latest (2.x), std pin: 0.125.0
Thanks for maintaining ryo-ma/github-profile-trophy!
Problem
main.tsimportsservefromdeno.land/std@0.125.0/http/server.ts(Feb 2022). The stdservefunction was deprecated then removed; Dockerfile pinsdenoland/deno:latest(Deno 2.x), sodeno task startfails or emits a deprecation warning against a URL that will 404 once the std release is pruned.Steps
docker build -t trophy .docker run --rm -e PORT=8080 trophy(equivalent todeno task startperCONTRIBUTING.md).Expected
Server listens on
:8080.Actual
Deprecation warning on the
std@0.125.0/http/server.tsimport; theserve(handler, opts)shape is the legacy one.Cite
main.ts:1—import { serve } from "https://deno.land/std@0.125.0/http/server.ts";Dockerfile:1—FROM denoland/deno:latestCONTRIBUTING.mdenv: Deno >= v1.36.1Fix
Replace with builtin
Deno.serve(...); drops the std dep entirely.Environment
OS: Linux (container), Deno: latest (2.x), std pin: 0.125.0
Thanks for maintaining ryo-ma/github-profile-trophy!