monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

Update TypeScript to TS 5.4.5 in all projects, vendored files

Open johnyanarella opened this issue 1 year ago • 10 comments

This commit updates the version of TypeScript vendored into the monaco-editor (via npm run import-typescript) to the latest version (5.3.3). It also aligns the explicit TypeScript dependencies throughout the repo for "typescript" to match.

This upgrade is essential to ensure monaco-editor can provide accurate diagnostics for JSX when using the latest React types (ex. via addExtraLib()), given the introduction of JSX.ElementType and associated changes to TypeScript support for JSX introduced in TypeScript 5.1.

cc: @jakebailey (as this follows your example from #3721)

johnyanarella avatar Dec 15 '23 02:12 johnyanarella

@microsoft-github-policy-service agree

johnyanarella avatar Dec 15 '23 02:12 johnyanarella

VSCode already supported TypeScript 5.3 few months ago. Why this PR is hanging so long?

wirekang avatar Feb 13 '24 04:02 wirekang

Updated to upgrade to TypeScript v5.4.2 now.

Recapping - the changes introduced by this PR were:

  • bumping the version of TypeScript in all of the package.json files (and tsdocs for the website to be compatible)
  • running npm i and yarn install (for the website) for the affected packages
  • executing the pre-existing import-typescript script from the root package.json to generate the vendored files

I completely understand if it is awkward to accept the PR given the large amount of generated / vendor code. Perhaps a maintainer could pull this PR locally and then re-run the import-typescript script to validate that the PR contains the unmodified outcome of the script your team created (i.e. no changes to commit).

johnyanarella avatar Mar 07 '24 04:03 johnyanarella

@hediet Noticed your recent bumps to other dependencies. Can you help with this? (see also #4412)

johnyanarella avatar Apr 02 '24 03:04 johnyanarella

FWIW you probably want to wait for 5.4.4, just because it has some critical bugfixes.

jakebailey avatar Apr 02 '24 17:04 jakebailey

Great to know. Thanks, @jakebailey!

johnyanarella avatar Apr 02 '24 21:04 johnyanarella

Updated to upgrade to TypeScript v5.4.4 now.

johnyanarella avatar Apr 06 '24 02:04 johnyanarella

Looks like we're getting a 5.4.5 too, sorry!

jakebailey avatar Apr 08 '24 18:04 jakebailey

Updated PR to upgrade to TypeScript v5.4.5 now.

johnyanarella avatar Apr 12 '24 01:04 johnyanarella

Is there any progress on this PR? Will we have access to the updated TS version at some point soon?

IMax153 avatar Apr 26 '24 14:04 IMax153

Thanks! Sorry for the delay!

hediet avatar May 03 '24 09:05 hediet

@hediet - apologies for the ping, but does this need approval from another maintainer?

It looks like CI is locked up on Community PR Approvals.

IMax153 avatar May 03 '24 12:05 IMax153

Delay was on me. I was reviewing and noticed an issue while doing so, and then I used this PR to investigate the issue I was seeing.

alexr00 avatar May 03 '24 12:05 alexr00

Delay was on me. I was reviewing and noticed an issue while doing so, and then I used this PR to investigate the issue I was seeing.

Thank you both so much for getting this PR over the finish line :)

IMax153 avatar May 03 '24 13:05 IMax153

We use this PR several months, glad to see it finally be merged, hope the new version will be released soon so we can switch back to the official release. Thank you!

hax avatar May 08 '24 00:05 hax