Skip to content

chore: migrate to TypeScript 6.0#40429

Merged
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:ts-1
Apr 28, 2026
Merged

chore: migrate to TypeScript 6.0#40429
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:ts-1

Conversation

@pavelfeldman
Copy link
Copy Markdown
Member

Summary

  • Bumps typescript to ^6.0.3 and @typescript-eslint/* to ^8.59.0.
  • Fixes the URLPattern extractor in utils/generate_types/overrides.d.ts to pull the instance type instead of the constructor type — root cause of the otherwise large TS 6 cascade.
  • Adds TS 6 deprecation flags to the few tsconfigs that need them (baseUrl, moduleResolution: "node").
  • Splits eslint.config.mjs to point @typescript-eslint's parser at the extension's own tsconfigs, since the root tsc now excludes packages/extension.
  • Small test fixes for stricter event-listener and this checks.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread tests/library/locator-dispatchevent-touch.spec.ts Outdated
Comment thread tests/page/page-evaluate.spec.ts Outdated
Comment thread tests/page/workers.spec.ts Outdated
}

function onupgrade(req: http.IncomingMessage, socket: net.Socket, head: Buffer) {
function onupgrade(this: ProxyServer, req: http.IncomingMessage, socket: net.Socket, head: Buffer) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why is this needed? It's not like we use this in this function.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this.localAddress is used four lines below at localAddress: this.localAddress. Without the annotation TS 6 errors with this implicitly has type any - other handlers in this file (onrequest, onconnect) already declare this: ProxyServer for the same reason.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Line 474

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

13 flaky ⚠️ [installation tests] › playwright-packages-install-behavior.spec.ts:99 › @playwright/test should work `@package-installations-ubuntu-latest`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:449 › should be able to connect via localhost `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:449 › should be able to connect via localhost `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:682 › screencast › should capture full viewport on hidpi `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:449 › should be able to connect via localhost `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:449 › should be able to connect via localhost `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:449 › should be able to connect via localhost `@chromium-ubuntu-22.04-node22`
⚠️ [chromium-library] › library/inspector/recorder-api.spec.ts:120 › should type `@chromium-ubuntu-22.04-node22`
⚠️ [chromium-library] › library/popup.spec.ts:261 › should not throw when click closes popup `@chromium-ubuntu-22.04-node22`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1080 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-page] › page/page-wait-for-function.spec.ts:104 › should work with strict CSP policy `@firefox-ubuntu-22.04-node20`

41461 passed, 847 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [chrome] › mcp/dashboard.spec.ts:207 › should enter annotate mode on fresh dashboard.tsx mount with -s --annotate @mcp-windows-latest

6807 passed, 927 skipped


Merge workflow run.

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