Skip to content

Commit 4e2605a

Browse files
chore: bump typescript version (#4853)
1 parent eb4d982 commit 4e2605a

File tree

37 files changed

+339
-328
lines changed

37 files changed

+339
-328
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@
5959
"redaxios": "^0.5.1",
6060
"rimraf": "^6.0.1",
6161
"tinyglobby": "^0.2.12",
62-
"typescript": "^5.8.2",
63-
"typescript53": "npm:[email protected]",
62+
"typescript": "^5.9.0",
63+
"vite": "6.3.5",
64+
"vitest": "^3.0.6",
6465
"typescript54": "npm:[email protected]",
6566
"typescript55": "npm:[email protected]",
6667
"typescript56": "npm:[email protected]",
6768
"typescript57": "npm:[email protected]",
68-
"vite": "6.3.5",
69-
"vitest": "^3.0.6"
69+
"typescript58": "npm:[email protected]"
7070
},
7171
"pnpm": {
7272
"overrides": {

packages/arktype-adapter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"clean": "rimraf ./dist && rimraf ./coverage",
2828
"test:eslint": "eslint ./src",
2929
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
30-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js",
3130
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js",
3231
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js",
3332
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js",
3433
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js",
35-
"test:types:ts58": "tsc",
34+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js",
35+
"test:types:ts59": "tsc",
3636
"test:unit": "vitest",
3737
"test:unit:dev": "pnpm run test:unit --watch --typecheck",
3838
"test:build": "publint --strict && attw --ignore-rules no-resolution --pack .",

packages/directive-functions-plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
"test:unit:dev": "vitest --watch",
3131
"test:eslint": "eslint ./src",
3232
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
33-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js",
3433
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js",
3534
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js",
3635
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js",
3736
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js",
38-
"test:types:ts58": "tsc",
37+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js",
38+
"test:types:ts59": "tsc",
3939
"test:build": "publint --strict && attw --ignore-rules no-resolution --pack .",
4040
"build": "vite build"
4141
},

packages/eslint-plugin-router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"clean": "rimraf ./dist ./coverage",
1919
"test:eslint": "eslint ./src",
2020
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
21-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js",
2221
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js",
2322
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js",
2423
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js",
2524
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js",
26-
"test:types:ts58": "tsc",
25+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js",
26+
"test:types:ts59": "tsc",
2727
"test:unit": "vitest",
2828
"test:unit:dev": "pnpm run test:unit --watch --typecheck",
2929
"test:build": "publint --strict && attw --pack .",

packages/history/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"clean": "rimraf ./dist && rimraf ./coverage",
2323
"test:eslint": "eslint ./src",
2424
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
25-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js",
2625
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js",
2726
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js",
2827
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js",
2928
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js",
30-
"test:types:ts58": "tsc",
29+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js",
30+
"test:types:ts59": "tsc",
3131
"test:build": "publint --strict && attw --ignore-rules no-resolution --pack .",
3232
"test:unit": "vitest",
3333
"test:unit:dev": "pnpm run test:unit --watch",

packages/react-router-devtools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"clean": "rimraf ./dist && rimraf ./coverage",
2828
"test:eslint": "eslint ./src",
2929
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
30-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js",
3130
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js",
3231
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js",
3332
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js",
3433
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js",
35-
"test:types:ts58": "tsc",
34+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js",
35+
"test:types:ts59": "tsc",
3636
"test:build": "publint --strict && attw --ignore-rules no-resolution --pack .",
3737
"build": "vite build"
3838
},

packages/react-router-with-query/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"clean": "rimraf ./dist && rimraf ./coverage",
2828
"test:eslint": "eslint ./src",
2929
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
30-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js",
3130
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js",
3231
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js",
3332
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js",
3433
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js",
35-
"test:types:ts58": "tsc",
34+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js",
35+
"test:types:ts59": "tsc",
3636
"test:unit": "vitest",
3737
"test:unit:dev": "pnpm run test:unit --watch",
3838
"test:build": "publint --strict && attw --ignore-rules no-resolution --pack .",

packages/react-router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"clean": "rimraf ./dist && rimraf ./coverage",
2828
"test:eslint": "eslint",
2929
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
30-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js -p tsconfig.legacy.json",
3130
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js -p tsconfig.legacy.json",
3231
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js -p tsconfig.legacy.json",
3332
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js -p tsconfig.legacy.json",
3433
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js -p tsconfig.legacy.json",
35-
"test:types:ts58": "tsc -p tsconfig.legacy.json",
34+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js -p tsconfig.legacy.json",
35+
"test:types:ts59": "tsc -p tsconfig.legacy.json",
3636
"test:unit": "vitest",
3737
"test:unit:dev": "pnpm run test:unit --watch --hideSkippedTests",
3838
"test:perf": "vitest bench",

packages/react-router/tests/optional-path-params.test.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('React Router - Optional Path Parameters', () => {
4343
await act(() => router.load())
4444

4545
const paramsElement = await screen.findByTestId('params')
46-
expect(JSON.parse(paramsElement.textContent!)).toEqual({})
46+
expect(JSON.parse(paramsElement.textContent)).toEqual({})
4747
})
4848

4949
it('should match route with one optional parameter', async () => {
@@ -71,7 +71,7 @@ describe('React Router - Optional Path Parameters', () => {
7171
await act(() => router.load())
7272

7373
const paramsElement = await screen.findByTestId('params')
74-
expect(JSON.parse(paramsElement.textContent!)).toEqual({
74+
expect(JSON.parse(paramsElement.textContent)).toEqual({
7575
category: 'tech',
7676
})
7777
})
@@ -101,7 +101,7 @@ describe('React Router - Optional Path Parameters', () => {
101101
await act(() => router.load())
102102

103103
const paramsElement = await screen.findByTestId('params')
104-
expect(JSON.parse(paramsElement.textContent!)).toEqual({
104+
expect(JSON.parse(paramsElement.textContent)).toEqual({
105105
category: 'tech',
106106
slug: 'hello-world',
107107
})
@@ -140,7 +140,7 @@ describe('React Router - Optional Path Parameters', () => {
140140
await act(() => router.load())
141141

142142
const paramsElement = await screen.findByTestId('params')
143-
expect(JSON.parse(paramsElement.textContent!)).toEqual(expectedParams)
143+
expect(JSON.parse(paramsElement.textContent)).toEqual(expectedParams)
144144
},
145145
)
146146

@@ -500,7 +500,7 @@ describe('React Router - Optional Path Parameters', () => {
500500

501501
await expect(screen.findByText('Posts')).resolves.toBeInTheDocument()
502502
const paramsElement = await screen.findByTestId('params')
503-
expect(JSON.parse(paramsElement.textContent!)).toEqual({})
503+
expect(JSON.parse(paramsElement.textContent)).toEqual({})
504504
expect(router.state.location.pathname).toBe('/posts')
505505
}
506506

@@ -520,7 +520,7 @@ describe('React Router - Optional Path Parameters', () => {
520520

521521
await expect(screen.findByText('Posts')).resolves.toBeInTheDocument()
522522
const updatedParamsElement = await screen.findByTestId('params')
523-
expect(JSON.parse(updatedParamsElement.textContent!)).toEqual({
523+
expect(JSON.parse(updatedParamsElement.textContent)).toEqual({
524524
category: 'tech',
525525
})
526526
expect(router.state.location.pathname).toBe('/posts/tech')
@@ -847,10 +847,10 @@ describe('React Router - Optional Path Parameters', () => {
847847
const paramsElement = await screen.findByTestId('params')
848848
const searchElement = await screen.findByTestId('search')
849849

850-
expect(JSON.parse(paramsElement.textContent!)).toEqual({
850+
expect(JSON.parse(paramsElement.textContent)).toEqual({
851851
category: 'tech',
852852
})
853-
expect(JSON.parse(searchElement.textContent!)).toEqual({
853+
expect(JSON.parse(searchElement.textContent)).toEqual({
854854
page: 2,
855855
sort: 'title',
856856
})
@@ -892,7 +892,7 @@ describe('React Router - Optional Path Parameters', () => {
892892
await act(() => router.load())
893893

894894
const paramsElement = await screen.findByTestId('params')
895-
expect(JSON.parse(paramsElement.textContent!)).toEqual(expectedParams)
895+
expect(JSON.parse(paramsElement.textContent)).toEqual(expectedParams)
896896
},
897897
)
898898

@@ -1001,8 +1001,8 @@ describe('React Router - Optional Path Parameters', () => {
10011001
const paramsElement = await screen.findByTestId('params')
10021002
const loaderDataElement = await screen.findByTestId('loader-data')
10031003

1004-
expect(JSON.parse(paramsElement.textContent!)).toEqual({})
1005-
expect(JSON.parse(loaderDataElement.textContent!)).toEqual({
1004+
expect(JSON.parse(paramsElement.textContent)).toEqual({})
1005+
expect(JSON.parse(loaderDataElement.textContent)).toEqual({
10061006
category: 'all',
10071007
data: 'Data for all',
10081008
})

packages/react-start-client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
"test:unit:dev": "vitest --watch",
3131
"test:eslint": "eslint ./src",
3232
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
33-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js",
3433
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js",
3534
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js",
3635
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js",
3736
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js",
38-
"test:types:ts58": "tsc",
37+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js",
38+
"test:types:ts59": "tsc",
3939
"test:build": "publint --strict && attw --ignore-rules no-resolution --pack .",
4040
"build": "vite build"
4141
},

0 commit comments

Comments
 (0)