Skip to content

chore(deps): bump typescript to v6#932

Open
SnowboardTechie wants to merge 3 commits into
mainfrom
chore/catalog-typescript-6
Open

chore(deps): bump typescript to v6#932
SnowboardTechie wants to merge 3 commits into
mainfrom
chore/catalog-typescript-6

Conversation

@SnowboardTechie

@SnowboardTechie SnowboardTechie commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps the catalog typescript from ^5.9.3 to ^6.0.3 (latest 6.x).
  • Co-bumps typescript-eslint ^8.61.0^8.61.1. Its typescript peer range is >=4.8.4 <6.1.0, so it supports TS 6.0.x — that compatibility is what gates this bump, and it passes.
  • Handles two TS 6 breaking changes (deprecated baseUrl, stricter exports resolution) so the whole workspace stays green.
  • Time to review: 5 minutes

Changes proposed

  • pnpm-workspace.yaml: typescript^6.0.3, typescript-eslint^8.61.1.
  • lib/ts-sdk/tsconfig.json and website/tsconfig.json: removed the deprecated baseUrl.
  • lib/ts-sdk/tsconfig.json: added a json-schema-faker paths entry pointing at its bundled declarations.
  • pnpm-lock.yaml: regenerated.

Context for reviewers

Breaking changes handled

  1. baseUrl deprecated (TS5101). TS 6 errors on baseUrl and removes it as a module-resolution lookup root. Both ts-sdk and website used it only as a prefix for paths, so per the TS 6 migration guidance it's removed and the paths values are made explicitly relative (./src/* etc.) — resolution is unchanged.

  2. Stricter exports resolution (TS2307). json-schema-faker@0.6.x (a test-only devDependency) ships an exports map with only an import condition — no require/default. ts-sdk compiles in CommonJS mode, so under TS 6's stricter resolution tsc enters the conditional exports, finds no matching condition, and no longer falls back to the top-level types field (TS 5 did). --traceResolution confirmed Saw non-matching condition 'import' … Module name 'json-schema-faker' was not resolved. The package's bundled .d.ts is valid and runtime resolution (vitest/esbuild) is unaffected, so a paths entry points types at the bundled declarations. Downgrading to the last 0.5.x (which has a correct exports map) was rejected — 0.6.x changed generate to async, so it's an API change unrelated to this bump.

Verification

  • pnpm run ci (core → changelog-emitter → cli → sdk → website) passes end-to-end, exit 0. Tests: 7 + 18 + 22 + 7 across the suites; lint, prettier, and CSpell clean.
  • No changeset. typescript/typescript-eslint are build/dev tools, and the emitted public .d.ts of the published packages is byte-identical between 5.9.3 and 6.0.3 (verified by diffing declaration-only output of ts-sdk — 56 files, zero differences). No consumer-visible surface change.

Additional information

templates/express-js uses moduleResolution: "node" (the node10 resolver, not the removed classic) and isn't in the pnpm workspace, so it's unaffected. No outFile or target: es5 usage anywhere.

CI note: undici override (dropped on rebase)

An earlier revision carried a pnpm-workspace.yaml override pinning undici to 7.28.0 to clear a high advisory (GHSA-vmh5-mc38-953g, TLS cert validation bypass) that was failing validate on main and all sibling catalog PRs. That override has been dropped: main now resolves undici@7.28.0 transitively on its own, so it's no longer needed. Verified after rebasing onto current mainaudit-deps.js --level high reports no high-severity advisories, with undici resolving to 7.28.0.

@github-actions github-actions Bot added website Issues related to the website dependencies Pull requests that update a dependency file sdk Issue or PR related to our SDKs typescript Issue or PR related to TypeScript tooling ts-sdk Related to TypeScript SDK labels Jun 18, 2026
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Website Preview Deployed!

Preview your changes at: https://cg-pr-932.billy-daly.workers.dev

This preview will be automatically deleted when the PR is closed.

Bump the catalog `typescript` to ^6.0.3 and co-bump `typescript-eslint`
to ^8.61.1 (its typescript peer range is >=4.8.4 <6.1.0, so it supports
TS 6.0.x).

Handle TS 6 breaking changes:
- Remove the deprecated `baseUrl` from lib/ts-sdk and website tsconfigs
  (TS 6 errors on it via TS5101). Both used it only as a prefix for
  `paths`, so the path entries are made explicitly relative instead.
- json-schema-faker@0.6.x (test-only dep) ships an `exports` map with
  only an `import` condition; under TS 6's stricter exports resolution
  the CommonJS ts-sdk can't resolve its types. Point them at the bundled
  declarations via a tsconfig `paths` entry.

No changeset: typescript/typescript-eslint are build/dev tools and the
emitted .d.ts surface of published packages is byte-identical between
5.9.3 and 6.0.3 (verified by diffing declaration output).
@SnowboardTechie SnowboardTechie force-pushed the chore/catalog-typescript-6 branch from 1c503e3 to 27eb1fa Compare June 22, 2026 22:26
@SnowboardTechie SnowboardTechie marked this pull request as ready for review June 22, 2026 22:49
@SnowboardTechie SnowboardTechie requested a review from widal001 July 7, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file sdk Issue or PR related to our SDKs ts-sdk Related to TypeScript SDK typescript Issue or PR related to TypeScript tooling website Issues related to the website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant