Skip to content

Remove unused pg dependency#40

Merged
AquiGorka merged 1 commit intodevfrom
chore/remove-unused-pg-dep
Mar 17, 2026
Merged

Remove unused pg dependency#40
AquiGorka merged 1 commit intodevfrom
chore/remove-unused-pg-dep

Conversation

@AquiGorka
Copy link

Summary

  • Removes pg and @types/pg from deno.json imports — only used by drizzle-kit (migrations), not at runtime
  • Regenerates deno.lock so drizzle-orm resolves without pg as a peer dep

Context

With pg in imports, drizzle-orm resolves as drizzle-orm@0.44.7_@opentelemetry+api@1.9.0_@types+pg@8.18.0_pg@8.20.0_postgres@3.4.8. This can interfere with OTEL context propagation — the pg module's connection handling conflicts with the postgres.js driver the app actually uses.

Without pg: drizzle-orm@0.44.7_@opentelemetry+api@1.9.0_postgres@3.4.8

Test plan

  • deno task serve starts without errors
  • deno task db:migrate still works (drizzle-kit resolves pg independently)
  • E2E passes on testnet

@AquiGorka AquiGorka force-pushed the chore/remove-unused-pg-dep branch from bc5cc5e to e18878f Compare March 17, 2026 17:24
pg (node-postgres) is only used by drizzle-kit for migrations, not at
runtime. Having it in deno.json causes drizzle-orm to resolve with pg
as a peer dep, which can interfere with OTEL context propagation.
The app uses postgres (postgres.js) for all database operations.
@AquiGorka AquiGorka force-pushed the chore/remove-unused-pg-dep branch from e18878f to b26b0b6 Compare March 17, 2026 17:28
@AquiGorka AquiGorka merged commit f9768f5 into dev Mar 17, 2026
2 checks passed
@AquiGorka AquiGorka deleted the chore/remove-unused-pg-dep branch March 17, 2026 17:36
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