Skip to content

Upgrade to TypeScript 7 - #455

Open
ctate wants to merge 3 commits into
mainfrom
typescript-7
Open

ctate wants to merge 3 commits into
mainfrom
typescript-7

Conversation

@ctate

@ctate ctate commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator
  • Move the packages and docs site to TypeScript 7
  • Replace tsup's dts with tsc declarations, and ESLint with oxlint in the docs site and UI package
  • Keep the Svelte packages and examples on TypeScript 5, whose tooling needs its API

- Move the packages and docs site to TypeScript 7
- Replace tsup's dts with tsc declarations, and ESLint with oxlint in the docs site and UI package
- Keep the Svelte packages and examples on TypeScript 5, whose tooling needs its API
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
json-render Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-chat-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-chat-sdk-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-dashboard-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-game-engine-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-image-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-no-ai Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-react-email-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-react-pdf-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-react-three-fiber-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-remotion-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-solid-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-svelte-chat-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-svelte-demo Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC
json-render-vue Ready Ready Preview, v0 Nov 10, 2026 1:47am UTC

@socket-security

socket-security Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​rolldown@​1.2.16951007899100
Updatednpm/​typescript@​5.9.2 ⏵ 7.0.29910089 -1100100 +10
Addednpm/​oxlint@​1.91.0991009196100
Addednpm/​rolldown-plugin-dts@​0.29.09910010096100

View full report

Comment thread packages/codegen/tsup.config.ts Resolved
- Watch src in tsup dev so type-only edits re-emit declarations
- Give the Solid providers explicit return types, so their declarations parse in TypeScript before 5.3

@lahfir lahfir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me. two things:

Comment thread apps/web/package.json Outdated
"start": "next start",
"test:routes": "node scripts/test-routes.mjs",
"lint": "eslint --max-warnings 0",
"lint": "oxlint",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

before, only-warn + --max-warnings 0 meant any lint hit failed CI. oxlint exits 0 on warnings, so the warn rules here (exhaustive-deps, the nextjs/* ones) now pass CI. oxlint --deny-warnings brings that back, same for packages/ui. both are at 0 diagnostics today so nothing breaks.

Comment thread scripts/emit-types.mjs Outdated
import { isAbsolute, join } from "node:path";

export async function emitTypes(packageDir, { bundle } = {}) {
execFileSync("tsc", ["-p", "tsconfig.build.json"], {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if tsc fails here in watch mode, the throw skips tsup's startWatcher(). a type error at startup makes tsup --watch src exit 1. in next/tanstack-start it quietly stops the client config's watcher while the server one keeps going. and in the bundled packages clean: true no longer keeps .d.ts, so dist/index.d.ts disappears until the error is fixed. what if we only throw when not watching, and still run the rolldown step when tsc fails?

This branch was successfully deployed

14 active deployments
Preview – json-render-svelte-chat-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-dashboard-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-game-engine-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-chat-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-react-three-fiber-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-react-pdf-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-remotion-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-no-ai — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-react-email-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-image-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-vue — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-svelte-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
Preview – json-render-solid-demo — 96649ab4 Deployed Nov 10, 2026 by vercel[bot]
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.

2 participants