Skip to content

Commit 0946d0b

Browse files
committed
chore: bump TypeScript to 7.0 RC
1 parent 904abe1 commit 0946d0b

14 files changed

Lines changed: 509 additions & 189 deletions

File tree

.changeset/evil-seas-dig.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.yarnrc.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
catalog:
22
"@types/jest": ^29.2.1
3-
"@typescript/native-preview": ^7.0.0-0
43
eslint: ^9.0.0
54
jest: ^29.2.1
65
oxfmt: ^0.46.0
76
oxlint: ^1.61.0
8-
typescript: ^6.0.0
7+
typescript: ^7.0.1-0
8+
9+
catalogs:
10+
compat:
11+
typescript: "^6.0.0"
912

1013
compressionLevel: 0
1114

docsite/yarn.lock

Lines changed: 177 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4006,84 +4006,143 @@ __metadata:
40064006
languageName: node
40074007
linkType: hard
40084008

4009-
"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260216.1":
4010-
version: 7.0.0-dev.20260216.1
4011-
resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260216.1"
4009+
"@typescript/typescript-aix-ppc64@npm:7.0.1-rc":
4010+
version: 7.0.1-rc
4011+
resolution: "@typescript/typescript-aix-ppc64@npm:7.0.1-rc"
4012+
conditions: os=aix & cpu=ppc64
4013+
languageName: node
4014+
linkType: hard
4015+
4016+
"@typescript/typescript-darwin-arm64@npm:7.0.1-rc":
4017+
version: 7.0.1-rc
4018+
resolution: "@typescript/typescript-darwin-arm64@npm:7.0.1-rc"
40124019
conditions: os=darwin & cpu=arm64
40134020
languageName: node
40144021
linkType: hard
40154022

4016-
"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260216.1":
4017-
version: 7.0.0-dev.20260216.1
4018-
resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260216.1"
4023+
"@typescript/typescript-darwin-x64@npm:7.0.1-rc":
4024+
version: 7.0.1-rc
4025+
resolution: "@typescript/typescript-darwin-x64@npm:7.0.1-rc"
40194026
conditions: os=darwin & cpu=x64
40204027
languageName: node
40214028
linkType: hard
40224029

4023-
"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260216.1":
4024-
version: 7.0.0-dev.20260216.1
4025-
resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260216.1"
4030+
"@typescript/typescript-freebsd-arm64@npm:7.0.1-rc":
4031+
version: 7.0.1-rc
4032+
resolution: "@typescript/typescript-freebsd-arm64@npm:7.0.1-rc"
4033+
conditions: os=freebsd & cpu=arm64
4034+
languageName: node
4035+
linkType: hard
4036+
4037+
"@typescript/typescript-freebsd-x64@npm:7.0.1-rc":
4038+
version: 7.0.1-rc
4039+
resolution: "@typescript/typescript-freebsd-x64@npm:7.0.1-rc"
4040+
conditions: os=freebsd & cpu=x64
4041+
languageName: node
4042+
linkType: hard
4043+
4044+
"@typescript/typescript-linux-arm64@npm:7.0.1-rc":
4045+
version: 7.0.1-rc
4046+
resolution: "@typescript/typescript-linux-arm64@npm:7.0.1-rc"
40264047
conditions: os=linux & cpu=arm64
40274048
languageName: node
40284049
linkType: hard
40294050

4030-
"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260216.1":
4031-
version: 7.0.0-dev.20260216.1
4032-
resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260216.1"
4051+
"@typescript/typescript-linux-arm@npm:7.0.1-rc":
4052+
version: 7.0.1-rc
4053+
resolution: "@typescript/typescript-linux-arm@npm:7.0.1-rc"
40334054
conditions: os=linux & cpu=arm
40344055
languageName: node
40354056
linkType: hard
40364057

4037-
"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260216.1":
4038-
version: 7.0.0-dev.20260216.1
4039-
resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260216.1"
4058+
"@typescript/typescript-linux-loong64@npm:7.0.1-rc":
4059+
version: 7.0.1-rc
4060+
resolution: "@typescript/typescript-linux-loong64@npm:7.0.1-rc"
4061+
conditions: os=linux & cpu=loong64
4062+
languageName: node
4063+
linkType: hard
4064+
4065+
"@typescript/typescript-linux-mips64el@npm:7.0.1-rc":
4066+
version: 7.0.1-rc
4067+
resolution: "@typescript/typescript-linux-mips64el@npm:7.0.1-rc"
4068+
conditions: os=linux & cpu=mips64el
4069+
languageName: node
4070+
linkType: hard
4071+
4072+
"@typescript/typescript-linux-ppc64@npm:7.0.1-rc":
4073+
version: 7.0.1-rc
4074+
resolution: "@typescript/typescript-linux-ppc64@npm:7.0.1-rc"
4075+
conditions: os=linux & cpu=ppc64
4076+
languageName: node
4077+
linkType: hard
4078+
4079+
"@typescript/typescript-linux-riscv64@npm:7.0.1-rc":
4080+
version: 7.0.1-rc
4081+
resolution: "@typescript/typescript-linux-riscv64@npm:7.0.1-rc"
4082+
conditions: os=linux & cpu=riscv64
4083+
languageName: node
4084+
linkType: hard
4085+
4086+
"@typescript/typescript-linux-s390x@npm:7.0.1-rc":
4087+
version: 7.0.1-rc
4088+
resolution: "@typescript/typescript-linux-s390x@npm:7.0.1-rc"
4089+
conditions: os=linux & cpu=s390x
4090+
languageName: node
4091+
linkType: hard
4092+
4093+
"@typescript/typescript-linux-x64@npm:7.0.1-rc":
4094+
version: 7.0.1-rc
4095+
resolution: "@typescript/typescript-linux-x64@npm:7.0.1-rc"
40404096
conditions: os=linux & cpu=x64
40414097
languageName: node
40424098
linkType: hard
40434099

4044-
"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260216.1":
4045-
version: 7.0.0-dev.20260216.1
4046-
resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260216.1"
4047-
conditions: os=win32 & cpu=arm64
4100+
"@typescript/typescript-netbsd-arm64@npm:7.0.1-rc":
4101+
version: 7.0.1-rc
4102+
resolution: "@typescript/typescript-netbsd-arm64@npm:7.0.1-rc"
4103+
conditions: os=netbsd & cpu=arm64
40484104
languageName: node
40494105
linkType: hard
40504106

4051-
"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260216.1":
4052-
version: 7.0.0-dev.20260216.1
4053-
resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260216.1"
4054-
conditions: os=win32 & cpu=x64
4107+
"@typescript/typescript-netbsd-x64@npm:7.0.1-rc":
4108+
version: 7.0.1-rc
4109+
resolution: "@typescript/typescript-netbsd-x64@npm:7.0.1-rc"
4110+
conditions: os=netbsd & cpu=x64
40554111
languageName: node
40564112
linkType: hard
40574113

4058-
"@typescript/native-preview@npm:^7.0.0-0":
4059-
version: 7.0.0-dev.20260216.1
4060-
resolution: "@typescript/native-preview@npm:7.0.0-dev.20260216.1"
4061-
dependencies:
4062-
"@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20260216.1"
4063-
"@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20260216.1"
4064-
"@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20260216.1"
4065-
"@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20260216.1"
4066-
"@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20260216.1"
4067-
"@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20260216.1"
4068-
"@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20260216.1"
4069-
dependenciesMeta:
4070-
"@typescript/native-preview-darwin-arm64":
4071-
optional: true
4072-
"@typescript/native-preview-darwin-x64":
4073-
optional: true
4074-
"@typescript/native-preview-linux-arm":
4075-
optional: true
4076-
"@typescript/native-preview-linux-arm64":
4077-
optional: true
4078-
"@typescript/native-preview-linux-x64":
4079-
optional: true
4080-
"@typescript/native-preview-win32-arm64":
4081-
optional: true
4082-
"@typescript/native-preview-win32-x64":
4083-
optional: true
4084-
bin:
4085-
tsgo: bin/tsgo.js
4086-
checksum: 10c0/db461ea3c92cf34f865e37418498aa6af38375af71d747550121468e310f8a1cc3e74467a61c240ad55b33d5c4728dc2be8eb3a1b2ee718d8c783af710df3c68
4114+
"@typescript/typescript-openbsd-arm64@npm:7.0.1-rc":
4115+
version: 7.0.1-rc
4116+
resolution: "@typescript/typescript-openbsd-arm64@npm:7.0.1-rc"
4117+
conditions: os=openbsd & cpu=arm64
4118+
languageName: node
4119+
linkType: hard
4120+
4121+
"@typescript/typescript-openbsd-x64@npm:7.0.1-rc":
4122+
version: 7.0.1-rc
4123+
resolution: "@typescript/typescript-openbsd-x64@npm:7.0.1-rc"
4124+
conditions: os=openbsd & cpu=x64
4125+
languageName: node
4126+
linkType: hard
4127+
4128+
"@typescript/typescript-sunos-x64@npm:7.0.1-rc":
4129+
version: 7.0.1-rc
4130+
resolution: "@typescript/typescript-sunos-x64@npm:7.0.1-rc"
4131+
conditions: os=sunos & cpu=x64
4132+
languageName: node
4133+
linkType: hard
4134+
4135+
"@typescript/typescript-win32-arm64@npm:7.0.1-rc":
4136+
version: 7.0.1-rc
4137+
resolution: "@typescript/typescript-win32-arm64@npm:7.0.1-rc"
4138+
conditions: os=win32 & cpu=arm64
4139+
languageName: node
4140+
linkType: hard
4141+
4142+
"@typescript/typescript-win32-x64@npm:7.0.1-rc":
4143+
version: 7.0.1-rc
4144+
resolution: "@typescript/typescript-win32-x64@npm:7.0.1-rc"
4145+
conditions: os=win32 & cpu=x64
40874146
languageName: node
40884147
linkType: hard
40894148

@@ -12226,13 +12285,74 @@ __metadata:
1222612285
languageName: node
1222712286
linkType: hard
1222812287

12229-
"typescript@npm:^6.0.0":
12230-
version: 6.0.3
12231-
resolution: "typescript@npm:6.0.3"
12288+
"typescript@npm:^7.0.1-0":
12289+
version: 7.0.1-rc
12290+
resolution: "typescript@npm:7.0.1-rc"
12291+
dependencies:
12292+
"@typescript/typescript-aix-ppc64": "npm:7.0.1-rc"
12293+
"@typescript/typescript-darwin-arm64": "npm:7.0.1-rc"
12294+
"@typescript/typescript-darwin-x64": "npm:7.0.1-rc"
12295+
"@typescript/typescript-freebsd-arm64": "npm:7.0.1-rc"
12296+
"@typescript/typescript-freebsd-x64": "npm:7.0.1-rc"
12297+
"@typescript/typescript-linux-arm": "npm:7.0.1-rc"
12298+
"@typescript/typescript-linux-arm64": "npm:7.0.1-rc"
12299+
"@typescript/typescript-linux-loong64": "npm:7.0.1-rc"
12300+
"@typescript/typescript-linux-mips64el": "npm:7.0.1-rc"
12301+
"@typescript/typescript-linux-ppc64": "npm:7.0.1-rc"
12302+
"@typescript/typescript-linux-riscv64": "npm:7.0.1-rc"
12303+
"@typescript/typescript-linux-s390x": "npm:7.0.1-rc"
12304+
"@typescript/typescript-linux-x64": "npm:7.0.1-rc"
12305+
"@typescript/typescript-netbsd-arm64": "npm:7.0.1-rc"
12306+
"@typescript/typescript-netbsd-x64": "npm:7.0.1-rc"
12307+
"@typescript/typescript-openbsd-arm64": "npm:7.0.1-rc"
12308+
"@typescript/typescript-openbsd-x64": "npm:7.0.1-rc"
12309+
"@typescript/typescript-sunos-x64": "npm:7.0.1-rc"
12310+
"@typescript/typescript-win32-arm64": "npm:7.0.1-rc"
12311+
"@typescript/typescript-win32-x64": "npm:7.0.1-rc"
12312+
dependenciesMeta:
12313+
"@typescript/typescript-aix-ppc64":
12314+
optional: true
12315+
"@typescript/typescript-darwin-arm64":
12316+
optional: true
12317+
"@typescript/typescript-darwin-x64":
12318+
optional: true
12319+
"@typescript/typescript-freebsd-arm64":
12320+
optional: true
12321+
"@typescript/typescript-freebsd-x64":
12322+
optional: true
12323+
"@typescript/typescript-linux-arm":
12324+
optional: true
12325+
"@typescript/typescript-linux-arm64":
12326+
optional: true
12327+
"@typescript/typescript-linux-loong64":
12328+
optional: true
12329+
"@typescript/typescript-linux-mips64el":
12330+
optional: true
12331+
"@typescript/typescript-linux-ppc64":
12332+
optional: true
12333+
"@typescript/typescript-linux-riscv64":
12334+
optional: true
12335+
"@typescript/typescript-linux-s390x":
12336+
optional: true
12337+
"@typescript/typescript-linux-x64":
12338+
optional: true
12339+
"@typescript/typescript-netbsd-arm64":
12340+
optional: true
12341+
"@typescript/typescript-netbsd-x64":
12342+
optional: true
12343+
"@typescript/typescript-openbsd-arm64":
12344+
optional: true
12345+
"@typescript/typescript-openbsd-x64":
12346+
optional: true
12347+
"@typescript/typescript-sunos-x64":
12348+
optional: true
12349+
"@typescript/typescript-win32-arm64":
12350+
optional: true
12351+
"@typescript/typescript-win32-x64":
12352+
optional: true
1223212353
bin:
1223312354
tsc: bin/tsc
12234-
tsserver: bin/tsserver
12235-
checksum: 10c0/4a25ff5045b984370f48f196b3a0120779b1b343d40b9a68d114ea5e5fff099809b2bb777576991a63a5cd59cf7bffd96ff6fe10afcefbcb8bd6fb96ad4b6606
12355+
checksum: 10c0/f83e3c85823b5b76d131a985fad2112d01006bce2ad752f4b92ee4794c53a760acd5f6c760ec4d9f105baa848f4ffe0f8107a5c80b8abd504a1c906bef34e29f
1223612356
languageName: node
1223712357
linkType: hard
1223812358

incubator/typedoc-tsc6/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# @rnx-kit/typedoc-tsc6
2+
3+
[![Build](https://github.com/microsoft/rnx-kit/actions/workflows/build.yml/badge.svg)](https://github.com/microsoft/rnx-kit/actions/workflows/build.yml)
4+
[![npm version](https://img.shields.io/npm/v/@rnx-kit/typedoc-tsc6)](https://www.npmjs.com/package/@rnx-kit/typedoc-tsc6)
5+
6+
This is a package for forcing TypeDoc to use TypeScript 6.0.
7+
8+
## Motivation
9+
10+
Normally, TypeDoc will use whatever TypeScript version is installed. However,
11+
TypeDoc does not yet support 7.0 and we want to use 7.0 because it's faster.
12+
13+
## Installation
14+
15+
This package is not meant for public use. It is only used internally, by
16+
`scripts/src/commands/updateApiReadme.js`.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "@rnx-kit/typedoc-tsc6",
3+
"version": "0.0.1",
4+
"private": true,
5+
"description": "Forces TypeDoc to use TypeScript 6.0",
6+
"homepage": "https://github.com/microsoft/rnx-kit/tree/main/incubator/typedoc-tsc6#readme",
7+
"license": "MIT",
8+
"author": {
9+
"name": "Microsoft Open Source",
10+
"email": "microsoftopensource@users.noreply.github.com"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/microsoft/rnx-kit",
15+
"directory": "incubator/typedoc-tsc6"
16+
},
17+
"type": "module",
18+
"main": "src/index.ts",
19+
"dependencies": {
20+
"typedoc": "^0.28.0",
21+
"typescript": "catalog:compat"
22+
},
23+
"engines": {
24+
"node": ">=20.18"
25+
},
26+
"experimental": true
27+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// oxlint-disable-next-line @rnx-kit/no-export-all
2+
export * from "typedoc";

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,14 @@
4444
"devDependencies": {
4545
"@changesets/cli": "^2.22.0",
4646
"@types/node": "^24.0.0",
47-
"@typescript/native-preview": "catalog:",
4847
"@yarnpkg/types": "^4.0.0",
4948
"eslint": "catalog:",
5049
"knip": "^6.0.0",
5150
"nx": "patch:nx@npm%3A22.5.4#~/.yarn/patches/nx-npm-22.5.4-3d43ac9c10.patch",
5251
"oxfmt": "catalog:",
5352
"oxlint": "catalog:",
5453
"suggestion-bot": "workspace:*",
55-
"typescript": "catalog:"
54+
"typescript": "catalog:compat"
5655
},
5756
"resolutions": {
5857
"@fluentui/dom-utilities": "ignore:",

packages/metro-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"main": "src/index.js",
2020
"scripts": {
21-
"build": "rnx-kit-scripts build --with-tsc",
21+
"build": "rnx-kit-scripts build --with-tsc6",
2222
"format": "rnx-kit-scripts format",
2323
"lint": "rnx-kit-scripts lint",
2424
"test": "rnx-kit-scripts test"

packages/suggestion-bot/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"./package.json": "./package.json"
3939
},
4040
"scripts": {
41-
"//build": "We run `tsgo` directly because we don't want to output to `lib`",
42-
"build": "yarn clean && tsgo",
41+
"//build": "We run `tsc` directly because we don't want to output to `lib`",
42+
"build": "yarn clean && tsc",
4343
"clean": "git clean -dfqx -- src/ test/",
4444
"format": "rnx-kit-scripts format",
4545
"lint": "rnx-kit-scripts lint",

0 commit comments

Comments
 (0)