Skip to content

build!: bump TypeScript to v7 - #18

Merged
ilbertt merged 1 commit into
mainfrom
build/typescript-7
Jul 9, 2026
Merged

build!: bump TypeScript to v7#18
ilbertt merged 1 commit into
mainfrom
build/typescript-7

Conversation

@ilbertt

@ilbertt ilbertt commented Jul 9, 2026

Copy link
Copy Markdown
Owner

TypeScript 7 is the native (Go) compiler and no longer ships the JS compiler API that bun-sqlgen-core builds on (ts.factory, printer, program, checker). This bumps the toolchain to TS 7 for type-checking and sources the compiler API from the side-by-side @typescript/typescript6 package.

  • typescript^7.0.2; add @typescript/typescript6 ^6.0.2 for the compiler API (imported by bun-sqlgen-core)
  • @typescript/typescript6 ships as a normal dependency of @ilbertt/bun-sqlgen (previously typescript was a peer dep) — decoupled from the consumer's TS version
  • base tsconfig now sets types: ["bun"] — TS 7 no longer auto-discovers ambient @types; declared @types/bun where it was implicit

BREAKING CHANGE: drops the typescript peer dependency; the published package now targets the TypeScript 7 toolchain.

Verified bun check:all (8/8, including the examples' codegen --check) and bun run build (including native TS 7 declaration emit) pass — generated output is byte-identical.

🤖 Generated with Claude Code

TS 7 is the native compiler and drops the JS compiler API that
bun-sqlgen-core builds on (ts.factory, printer, program, checker).
Source that API from the side-by-side @typescript/typescript6 package
instead, and type-check the repo with the native TS 7 tsc.

- catalog: typescript ^7.0.2 + @typescript/typescript6 ^6.0.2
- @typescript/typescript6 ships as a normal dependency of the published
  package (previously typescript was a peer dep)
- base tsconfig sets types: ["bun"] — TS 7 no longer auto-discovers
  ambient @types; declare @types/bun where it was implicit

BREAKING CHANGE: drops the typescript peer dependency; the published
package now targets the TypeScript 7 toolchain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ilbertt
ilbertt merged commit 037a77f into main Jul 9, 2026
5 checks passed
@ilbertt
ilbertt deleted the build/typescript-7 branch July 9, 2026 11:26
ilbertt added a commit that referenced this pull request Jul 15, 2026
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