Skip to content

chore: migrate dependencies from Node.js to Deno native#289

Merged
jaypatrick merged 12 commits intomainfrom
migrate-node-to-deno
Feb 11, 2026
Merged

chore: migrate dependencies from Node.js to Deno native#289
jaypatrick merged 12 commits intomainfrom
migrate-node-to-deno

Conversation

@jaypatrick
Copy link
Owner

Summary

Migrates dependencies from Node.js/npm to Deno native equivalents where possible.

Changes

  • @std/flags@std/cli: Replaced deprecated @std/flags with the modern @std/cli package (using parseArgs from @std/cli/parse-args)
  • Removed @luca/cases: Was declared in imports but never used in code
  • Removed node:process: Replaced with native Deno.env.get() in PrismaStorageAdapter

Files Modified

  • deno.json - Updated import map
  • deno.lock - Updated lockfile
  • src/cli/ArgumentParser.ts - Uses parseArgs
  • src/cli/CliApp.deno.ts - Uses parseArgs
  • scripts/record-deployment.ts - Uses parseArgs
  • src/storage/PrismaStorageAdapter.ts - Uses Deno.env.get()

Testing

  • All CLI tests pass
  • Type checking passes

- Replace @std/flags with @std/cli (parseArgs)
- Remove unused @luca/cases import
- Replace node:process with Deno.env.get()
- Update deno.lock with new dependencies
Copilot AI review requested due to automatic review settings February 11, 2026 21:54
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 11, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
adblock-compiler b0fe0a8 Feb 11 2026, 10:24 PM

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR migrates CLI argument parsing from the deprecated @std/flags to @std/cli, removes unused @luca/cases dependency, and replaces Node.js process.env usage with native Deno.env.get() in PrismaStorageAdapter.

Concerns

  • Unrelated file in PR: The .github/agents/code-task-executor.agent.md file is completely unrelated to the dependency migration described in the PR title/description. This should either be removed from this PR or the PR description should be updated to reflect all changes.
  • The core migration changes (parseparseArgs, @std/flags@std/cli/parse-args) are correct and the API surface appears compatible.

Verdict

Found: 0 critical, 1 important, 1 suggestion

Approve with nits — the dependency migration is correct, but the unrelated agent file should be addressed

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates CLI/runtime dependencies away from Node.js/npm-style and deprecated Deno std modules toward Deno-native equivalents, primarily updating argument parsing and environment access patterns.

Changes:

  • Replaced @std/flags usage with parseArgs from @std/cli.
  • Removed unused @luca/cases references from the Deno import map / lockfile.
  • Updated Prisma storage adapter to read DATABASE_URL via Deno.env.get() (removing node:process).

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/storage/PrismaStorageAdapter.ts Removes node:process usage and updates env var lookup for DB connection.
src/cli/CliApp.deno.ts Switches CLI arg parsing from @std/flags to @std/cli.
src/cli/ArgumentParser.ts Switches shared arg parser from @std/flags to @std/cli.
scripts/record-deployment.ts Switches script arg parsing from @std/flags to @std/cli.
deno.json Updates import map (drops @std/flags / @luca/cases, adds @std/cli).
deno.lock Lockfile updates reflecting dependency changes.
.github/agents/code-task-executor.agent.md Adds an agent instruction file (new).

@jaypatrick jaypatrick self-assigned this Feb 11, 2026
@jaypatrick jaypatrick added the enhancement New feature or request label Feb 11, 2026
@github-actions
Copy link

I detected a CI failure. I have created a fix PR: #292

@jaypatrick
Copy link
Owner Author

@copilot plesae fix the CI format check error

Copy link

Copilot AI commented Feb 11, 2026

@jaypatrick I've opened a new pull request, #293, to work on those changes. Once the pull request is ready, I'll request review from you.

@jaypatrick
Copy link
Owner Author

@copilot bump the version to 0.12.0

Copy link

Copilot AI commented Feb 11, 2026

@jaypatrick I've opened a new pull request, #294, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits February 11, 2026 22:22
Co-authored-by: jaypatrick <1800595+jaypatrick@users.noreply.github.com>
@jaypatrick jaypatrick merged commit 8c98f38 into main Feb 11, 2026
12 checks passed
@jaypatrick jaypatrick deleted the migrate-node-to-deno branch February 12, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants