Skip to content

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

Open
sm60786 wants to merge 1 commit into
ryo-ma:masterfrom
sm60786:fix/deno2-http-server-import
Open

fix: update imports for Deno 2.x compatibility (#448)#449
sm60786 wants to merge 1 commit into
ryo-ma:masterfrom
sm60786:fix/deno2-http-server-import

Conversation

@sm60786

@sm60786 sm60786 commented Jul 5, 2026

Copy link
Copy Markdown

Fixes #448
The std@0.125.0/http/server.ts module was removed in Deno 2.x,
causing deno task start to fail and breaking the deployment.
Changes:

  • Updated main.ts: std import from 0.125.0 → 0.224.0
  • Updated api/index.ts: replaced deprecated dotenv@v0.5.0
    import with JSR-compatible @std/dotenv/load
  • Updated deno.json: added imports map for @std/dotenv
    This restores compatibility with Deno 2.x and unblocks
    the paused deployment (Deployment Temporarily Paused #439).

@sm60786

sm60786 commented Jul 5, 2026

Copy link
Copy Markdown
Author

Note: The Vercel check failure is due to the maintainer's
Vercel account being blocked (see #439) — not related to
these code changes. The code fix itself is correct and
conflict-free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main.ts imports removed std@0.125.0 http/server.ts:serve — breaks deno task start on Deno 2.x

1 participant