Skip to content

fix(deps): keep one copy of @trpc/server and undici across the workspace - #135

Merged
agentHits merged 1 commit into
AgentHits-Devfrom
fix/trpc-server-range
Nov 1, 2026
Merged

agentHits merged 1 commit into
AgentHits-Devfrom
fix/trpc-server-range

Conversation

@agentHits

Copy link
Copy Markdown
Collaborator

The daily dependency update (deps/auto-update) failed its tests: every
router test that expects a TRPCError got "expected TRPCError to be an
instance of TRPCError". apps/dokploy declares @trpc/server as
^11.19.0, packages/server as the exact 11.19.0. The update moved the
range to 11.22.1 and left the exact version alone, so the lockfile kept
two copies: packages/server threw TRPCError from 11.19.0 and the router
and tests checked against the class from 11.22.1. That also breaks how
tRPC maps such errors to HTTP status codes.

packages/server now declares @trpc/server as ^11.19.0 and undici
as ^8.12.3, the ranges apps/dokploy already uses. undici had the same
split (^8.12.3 against 8.12.3) and would have forked on its next
release. The installed versions do not change here; the next daily
update moves each package in both places to one version. The exact
pins came from upstream, where packages/server pins most packages.

CLAUDE.md notes the rule: a package that packages/server and an app
both declare takes the same range in both.

Checks: bun install --frozen-lockfile; bun run typecheck; the update
the daily workflow runs (bun update --recursive, one-day release age)
on top of this change leaves one @trpc/server and one undici in
bun.lock, and the two test files that failed on deps/auto-update,
env/blind-env-router.test.ts and git-provider/git-provider-idor.test.ts,
pass on it.

After the merge, run deps-auto-update again (gh workflow run deps-auto-update.yml --ref AgentHits-Dev) so #130 is rebuilt on this base.

🤖 Generated with Claude Code

The daily dependency update (deps/auto-update) failed its tests: every
router test that expects a TRPCError got "expected TRPCError to be an
instance of TRPCError". apps/dokploy declares `@trpc/server` as
`^11.19.0`, packages/server as the exact `11.19.0`. The update moved the
range to 11.22.1 and left the exact version alone, so the lockfile kept
two copies: packages/server threw TRPCError from 11.19.0 and the router
and tests checked against the class from 11.22.1. That also breaks how
tRPC maps such errors to HTTP status codes.

packages/server now declares `@trpc/server` as `^11.19.0` and `undici`
as `^8.12.3`, the ranges apps/dokploy already uses. undici had the same
split (`^8.12.3` against `8.12.3`) and would have forked on its next
release. The installed versions do not change here; the next daily
update moves each package in both places to one version. The exact
pins came from upstream, where packages/server pins most packages.

CLAUDE.md notes the rule: a package that packages/server and an app
both declare takes the same range in both.

Checks: bun install --frozen-lockfile; bun run typecheck; the update
the daily workflow runs (bun update --recursive, one-day release age)
on top of this change leaves one @trpc/server and one undici in
bun.lock, and the two test files that failed on deps/auto-update,
env/blind-env-router.test.ts and git-provider/git-provider-idor.test.ts,
pass on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@agentHits
agentHits merged commit 7e2631d into AgentHits-Dev Nov 1, 2026
7 checks passed
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