Skip to content

chore: bump TypeScript to ^6.0.0 - #51

Open
edwardweymouth-wk wants to merge 7 commits into
masterfrom
bump-typescript-v6
Open

chore: bump TypeScript to ^6.0.0#51
edwardweymouth-wk wants to merge 7 commits into
masterfrom
bump-typescript-v6

Conversation

@edwardweymouth-wk

@edwardweymouth-wk edwardweymouth-wk commented Aug 28, 2026

Copy link
Copy Markdown

Summary

Org-wide TypeScript v6 upgrade.

  • Bumps typescript from ^3.8.3 to ^6.0.0 in package.json
  • Bumps @typescript-eslint/eslint-plugin from ^3.1.0 to ^8.65.0
  • Bumps @typescript-eslint/parser from ^3.1.0 to ^8.65.0
  • Bumps Node.js from 17 to 24 in CI
  • Adds skipLibCheck: true and esModuleInterop: true to tsconfig.json
  • Fixes src/extension.ts: changes Number/Boolean wrapper types to number/boolean primitives (TS6 rejects comparing wrapper types with >)
  • Fixes src/test/suite/index.ts: uses import Mocha from 'mocha' / import glob from 'glob' (default imports via esModuleInterop) instead of namespace imports, which TS6 no longer allows to be used as constructors

Test plan

  • CI passes

Comment thread .github/workflows/ci.yaml Outdated
uses: actions/setup-node@v3
with:
node-version: 17
node-version: 20

@matthewnitschke-wk matthewnitschke-wk Aug 31, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

woah, thats old, was node 20 required? did 24 have more errors than it was worth bumping to?

@matthewnitschke-wk matthewnitschke-wk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

2 comments, but I'm not overly concerned about them

Comment thread src/test/suite/index.ts Outdated
Comment on lines +16 to +17
import * as Mocha from 'mocha';
import * as glob from 'glob';
import Mocha = require('mocha');
import glob = require('glob');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fixes src/test/suite/index.ts: changes import * as Mocha/import * as glob to import = require style for correct CommonJS constructability

I'm not sure this is what we want to do, cjs is quite deprecated and the less ideal path

Why was this required?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

oh yeh... geez that is just wrong. Missed that in the shuffle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants