Skip to content

chore: TypeScript 7 - #331

Merged
Makisuo merged 1 commit into
t3/adopt-effect-ormfrom
t3/typescript-7
Oct 12, 2026
Merged

Makisuo merged 1 commit into
t3/adopt-effect-ormfrom
t3/typescript-7

Conversation

@Makisuo

@Makisuo Makisuo commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #330. Moves the workspace to TypeScript 7 (typescript@7.0.2, the native compiler), as Maple already does.

Changes

  • Shared version: every workspace package now takes typescript from a shared catalog:tooling entry (^7.0.2). Before, each package pinned its own 5.9.x.
  • apps/web, apps/docs: drop baseUrl, which TS 7 removed. Their paths are relative; docs' .source/* becomes ./.source/*.
  • apps/landing: stays on TypeScript 5.9. astro check runs @astrojs/language-server, which calls the TypeScript JS API (ts.findConfigFile), and the native compiler doesn't ship that API. Move it once Astro supports TS 7.

Testing

  • Typecheck: turbo run typecheck passes all 19 tasks; the alchemy config typechecks clean.
  • Builds: apps/web and apps/docs (vite build) and libs/bot-sdk (tsdown, including .d.ts output) all succeed.
  • Tests: vitest passes 286 of 286 across 41 files (backend, cluster, electric-proxy, bot-gateway, db, backend-core, auth, domain), including the real-Postgres integration tests.
  • Docs: apps/docs has no typecheck task. Running tsc on it shows the same 14 errors on 5.9 and on 7, so they predate this change.

Note

TS 7 doesn't load tsconfig plugins, so the @effect/language-service diagnostics that reportSuggestionsAsWarningsInTsc added to tsc output no longer run. The plugin entries are harmless and still used by editors on the TS 5 language service. Maple restores those diagnostics with @effect/tsgo; that can be a follow-up here.

🤖 Generated with Claude Code

Every workspace package takes typescript from a shared catalog:tooling
entry at ^7.0.2, as Maple does. apps/web and apps/docs drop baseUrl,
which TypeScript 7 removed (their paths are relative already). apps/
landing stays on 5.9: astro check runs the Astro language server, which
needs the TypeScript JS API the native compiler does not ship.

Under 7 a concrete PG.insertInto(table) is assignable to effect-orm's
Runnable again, so @hazel/db's widened Runnable workaround is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 23cfee86-4ac0-42ec-9578-cf6936a79c01
📥 Commits

Reviewing files that changed from the base of the PR and between 611a36c and ab3293f.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (31)
  • apps/actors/package.json
  • apps/backend/package.json
  • apps/bot-gateway/package.json
  • apps/cluster/package.json
  • apps/desktop/package.json
  • apps/docs/package.json
  • apps/docs/tsconfig.json
  • apps/electric-proxy/package.json
  • apps/link-preview-worker/package.json
  • apps/web-foldkit/package.json
  • apps/web/package.json
  • apps/web/tsconfig.json
  • libs/bot-sdk/package.json
  • libs/effect-electric-db-collection/package.json
  • libs/tanstack-db-atom/package.json
  • package.json
  • packages/actors/package.json
  • packages/auth/package.json
  • packages/backend-core/package.json
  • packages/db/package.json
  • packages/db/src/services/database.ts
  • packages/domain/package.json
  • packages/effect-bun/package.json
  • packages/effect-cloudflare/package.json
  • packages/infra/package.json
  • packages/integrations/package.json
  • packages/rivet-effect/package.json
  • packages/schema/package.json
  • packages/setup/package.json
  • packages/ui-parity/package.json
  • packages/ui/package.json
 __________________________________________________________________
< Series-B funding secured. Now, I can afford to review your code. >
 ------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@claude

claude Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

@Makisuo
Makisuo added this pull request to stack #332 October 12, 2026 23:31
@Makisuo
Makisuo merged commit e9517ab into main Oct 12, 2026
4 of 7 checks passed
@Makisuo
Makisuo deleted the t3/typescript-7 branch October 12, 2026 23:32
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 50.08% 4321 / 8628
🔵 Statements 49.69% 4505 / 9066
🔵 Functions 37.97% 1011 / 2662
🔵 Branches 37.35% 1476 / 3951
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/db/src/services/database.ts 78.2% 59.15% 78.78% 79.71% 53, 69, 72, 77-79, 143, 154, 234-235, 290-302, 308-310, 321-322
Generated in workflow #1811 for commit ab3293f by the Vitest Coverage Report Action

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