Skip to content

chore: bump TypeScript to 7.0.2 - #2679

Open
joyenjoyer wants to merge 2 commits into
INSTUI-5144-swap-ts-6-compiler-api-to-jscodeshift-in-codemodsfrom
INSTUI-5147-replace-typescript-compiler-to-ts-7-0-2
Open

chore: bump TypeScript to 7.0.2#2679
joyenjoyer wants to merge 2 commits into
INSTUI-5144-swap-ts-6-compiler-api-to-jscodeshift-in-codemodsfrom
INSTUI-5147-replace-typescript-compiler-to-ts-7-0-2

Conversation

@joyenjoyer

@joyenjoyer joyenjoyer commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bump typescript to 7.0.2 in the root package.json
  • Fix two @ts-expect-error directives (in packages/__docs__/globals.ts and ui-table's Table.test.tsx) that TS7's stricter validation now flags as stale, since they no longer suppress a real error
  • Restore __docs__'s JSDoc extraction (getJSDoc.mts), which also depends on the removed Compiler API, by importing it from @typescript/typescript6 (Microsoft's official TS 6.0 compatibility shim), scoped to that package only, the rest of the repo's type-checking/build still runs on TypeScript 7

Fixes INSTUI-5147

joyenjoyer and others added 2 commits August 5, 2026 16:25
TypeScript 7 tightened validation of @ts-expect-error: it now errors when
the directive doesn't suppress an actual error. Two now-stale directives
(one in packages/__docs__/globals.ts, one in ui-table's Table.test.tsx)
no longer trigger real errors under TS7 and were changed to @ts-ignore.

Lockfile updated accordingly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@joyenjoyer joyenjoyer self-assigned this Aug 5, 2026
@joyenjoyer
joyenjoyer requested a review from HerrTopi August 5, 2026 14:30
@joyenjoyer
joyenjoyer changed the base branch from master to INSTUI-5144-swap-ts-6-compiler-api-to-jscodeshift-in-codemods August 5, 2026 14:32
"react-docgen": "8.0.3",
"style-loader": "4.0.0",
"thread-loader": "^4.0.4",
"typescript-compiler-api": "npm:@typescript/typescript6@^6.0.2",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

TS7 has no compiler API (that is used in getJSDoc). They promise a new API in 7.1 and recommends adding in this compatibility packages until it is released.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2679/

Built to branch gh-pages at 2026-08-05 14:33 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

github-actions Bot pushed a commit that referenced this pull request Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Visual regression report

⚠️ Changes detected.

Status Count
Unchanged 0
Changed 1
New 96
Removed 32

📊 View full report

Diff images (33)

alert.png — baseline no longer produced

avatar.png — baseline no longer produced

badge.png — baseline no longer produced

billboard.png — baseline no longer produced

breadcrumb.png — baseline no longer produced

button-and-derivatives.png — baseline no longer produced

byline.png — baseline no longer produced

calendar.png — baseline no longer produced

checkbox.png — baseline no longer produced

checkboxgroup.png — baseline no longer produced

colorpicker.png — baseline no longer produced

contextview.png — baseline no longer produced

custom-and-lucide-icons.png — baseline no longer produced

dateinput-dateinput2.png — baseline no longer produced

datetimeinput.png — baseline no longer produced

diff-demo.png — 6324 pixels differ

drilldown.png — baseline no longer produced

filedrop.png — baseline no longer produced

form-errors.png — baseline no longer produced

heading.png — baseline no longer produced

img.png — baseline no longer produced

link.png — baseline no longer produced

menu.png — baseline no longer produced

metric-pill-tag-timeselect-text.png — baseline no longer produced

options.png — baseline no longer produced

pagination.png — baseline no longer produced

progressbar.png — baseline no longer produced

select-simpleselect.png — baseline no longer produced

table.png — baseline no longer produced

tabs.png — baseline no longer produced

tooltip.png — baseline no longer produced

treebrowser.png — baseline no longer produced

view.png — baseline no longer produced

Baselines come from the visual-baselines branch. They refresh on every merge to master.

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