Skip to content

Chore/tksilicon/deno2 maintenance - #43

Draft
tksilicon wants to merge 4 commits into
manyuanrong:masterfrom
tksilicon:chore/tksilicon/deno2-maintenance
Draft

tksilicon wants to merge 4 commits into
manyuanrong:masterfrom
tksilicon:chore/tksilicon/deno2-maintenance

Conversation

@tksilicon

Copy link
Copy Markdown
Collaborator

Summary

This PR migrates the project to a Deno 2-compatible baseline, restores green integration tests, and hardens CI and local developer workflows.

What Changed

  • upgraded runtime dependencies to Deno 2-compatible versions
  • added and enforced a checked-in deno.lock for deterministic dependency resolution
  • updated CI to use GitHub Actions with separate format and test jobs
  • enforced frozen lockfile usage in CI
  • fixed type/export compatibility issues for modern Deno and TypeScript behavior
  • fixed update() safety so it no longer emits invalid SQL when called without a where clause or primary key
  • fixed the transaction success test to query the correct model
  • added a regression test covering unsafe update() calls
  • removed unconditional schema sync SQL logging in normal runs
  • documented the Deno 2 run/test workflow and lockfile usage in the README

Validation

Local verification was done with Deno 2.7.11.

Commands used:

deno fmt --check
DSO_DB_PORT=3306 deno test --frozen --lock=deno.lock -c tsconfig.json --allow-net --allow-env --allow-import=deno.land,denopkg.com

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.

1 participant