chore: Bump Typescript to 5.9 (#38945)

* Move typescript version definition to pnpm-workspace.

* Bump typescript to 5.9.

* Minor fixes to satisfy the compiler.

---------

Co-authored-by: Raúl Barroso <code@raulb.dev>
This commit is contained in:
Ivan Vasilov
2025-09-23 17:50:54 +03:00
committed by GitHub
parent f4149525d5
commit 051d31ef07
22 changed files with 294 additions and 290 deletions

View File

@@ -56,7 +56,7 @@
"sharp": "0.32.6",
"tailwind-merge": "^1.13.2",
"tsx": "^4.19.3",
"typescript": "~5.5.0"
"typescript": "catalog:"
},
"externals": {
"sharp": "commonjs sharp"

View File

@@ -60,7 +60,7 @@
"tailwindcss": "catalog:",
"tsconfig": "workspace:*",
"tsx": "^4.19.3",
"typescript": "~5.5.0",
"typescript": "catalog:",
"unist-builder": "3.0.0"
}
}

View File

@@ -75,7 +75,7 @@ function htmlShell(
body: string
) {
const libraryName = REFERENCES[lib].name
let title = libraryName + ': ' + section.title ?? ''
let title = libraryName + ': ' + (section.title ?? '')
return (
'<!doctype html><html>' +
@@ -106,7 +106,7 @@ function libraryNav(sections: Array<AbbrevApiReferenceSection & { url: URL }>) {
async function sectionDetails(lib: string, version: string, section: AbbrevApiReferenceSection) {
const libraryName = REFERENCES[lib].name
let result = '<h1>' + (libraryName + ': ' + section.title ?? '') + '</h1>'
let result = '<h1>' + (libraryName + ': ' + (section.title ?? '')) + '</h1>'
if (section.type === 'markdown') {
result += await markdown(lib, version, section)

View File

@@ -1,9 +1,9 @@
import Link from 'next/link'
import { ChevronLeft } from 'lucide-react'
import { BASE_PATH } from '~/lib/constants'
import clientLibsCommon from '~/spec/common-cli.yml' with { type: 'yml' }
import * as NavItems from './NavigationMenu.constants'
import { ChevronLeft } from 'lucide-react'
const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
const menu = NavItems[id]
@@ -111,7 +111,7 @@ const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
</Link>
<div className="flex items-center gap-3 my-3">
<img
src={`${BASE_PATH}` + menu.icon ?? `/img/icons/menu/${id}.svg`}
src={`${BASE_PATH}` + (menu.icon ?? `/img/icons/menu/${id}.svg`)}
className="w-5 rounded"
/>

View File

@@ -160,7 +160,7 @@
"tsconfig": "workspace:*",
"tsx": "^4.19.3",
"twoslash": "^0.3.1",
"typescript": "~5.5.0",
"typescript": "catalog:",
"unist-util-visit-parents": "5.1.3",
"vite": "catalog:",
"vite-tsconfig-paths": "^4.3.2",

View File

@@ -199,7 +199,7 @@
"require-in-the-middle": "^7.5.2",
"tailwindcss": "catalog:",
"tsx": "^4.19.3",
"typescript": "~5.5.0",
"typescript": "catalog:",
"vite": "catalog:",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^3.0.5"

View File

@@ -109,7 +109,7 @@
"tailwindcss": "catalog:",
"tsconfig": "workspace:*",
"tsx": "^4.19.3",
"typescript": "~5.5.0",
"typescript": "catalog:",
"vite": "catalog:"
}
}

View File

@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react'
import dayjs from 'dayjs'
import { useEffect, useState } from 'react'
import { Area, AreaChart, ResponsiveContainer, Tooltip, XAxis } from 'recharts'
import { cn } from 'ui'
@@ -85,7 +85,7 @@ const Metrics = ({ isActive }: { isActive?: boolean }) => {
<div className="relative rounded-md w-full h-full border border-overlay shadow p-4 !min-w-[300px]">
<p className="text-foreground text-sm mb-2">Execution time</p>
<p className="text-foreground text-base mb-4">
{displayValue ? data[displayValue]?.pv : highlightedValue}ms {!displayValue ?? '(Avg)'}
{displayValue ? data[displayValue]?.pv : highlightedValue}ms {displayValue ? '' : '(Avg)'}
</p>
<ResponsiveContainer minWidth={200} minHeight={200} width="100%" height="90%">
<AreaChart

View File

@@ -74,7 +74,7 @@
"shared-data": "workspace:*",
"swiper": "^11.0.7",
"typed.js": "^2.0.16",
"typescript": "~5.5.0",
"typescript": "catalog:",
"ui": "workspace:*",
"ui-patterns": "workspace:*",
"use-debounce": "^7.0.1",

View File

@@ -56,7 +56,7 @@
"supabase": "^1.151.1",
"supports-color": "^8.0.0",
"turbo": "2.3.3",
"typescript": "~5.5.0"
"typescript": "catalog:"
},
"repository": {
"type": "git",

View File

@@ -34,7 +34,7 @@
"mdast-util-from-markdown": "^2.0.0",
"sql-formatter": "^15.0.0",
"tsconfig": "workspace:*",
"typescript": "~5.5.0",
"typescript": "catalog:",
"vite": "catalog:",
"vitest": "^3.0.5"
}

View File

@@ -14,6 +14,6 @@
"devDependencies": {
"openapi-typescript": "^7.4.3",
"prettier": "3.2.4",
"typescript": "~5.5.0"
"typescript": "catalog:"
}
}

View File

@@ -33,7 +33,7 @@
"@vitest/coverage-v8": "^3.0.9",
"@vitest/ui": "^3.0.0",
"tsconfig": "workspace:*",
"typescript": "~5.5.0",
"typescript": "catalog:",
"vitest": "^3.0.5"
},
"peerDependencies": {

View File

@@ -19,6 +19,6 @@
"devDependencies": {
"tailwindcss": "catalog:",
"tailwindcss-animate": "^1.0.6",
"typescript": "~5.5.0"
"typescript": "catalog:"
}
}

View File

@@ -13,6 +13,6 @@
"eslint-config-turbo": "^2.0.4"
},
"devDependencies": {
"typescript": "~5.5.0"
"typescript": "catalog:"
}
}

View File

@@ -7,7 +7,7 @@
"clean": "rimraf node_modules"
},
"dependencies": {
"typescript": "~5.5.0",
"typescript": "catalog:",
"@supabase/build-icons": "workspace:*"
},
"devDependencies": {

View File

@@ -24,7 +24,7 @@
"npm-run-all": "^4.1.5",
"pg": "^8.13.1",
"postgres-array": "^3.0.2",
"typescript": "~5.5.0",
"typescript": "catalog:",
"vite": "catalog:",
"vitest": "^3.0.5"
}

View File

@@ -537,7 +537,7 @@
"api-types": "workspace:*",
"next-router-mock": "^0.9.13",
"tsx": "^4.19.3",
"typescript": "~5.5.0",
"typescript": "catalog:",
"unified": "^11.0.5",
"vfile": "^6.0.3",
"vite": "catalog:",

View File

@@ -95,7 +95,7 @@
"glob": "^8.1.0",
"style-dictionary": "^3.7.1",
"tsconfig": "workspace:*",
"typescript": "~5.5.0",
"typescript": "catalog:",
"vite": "catalog:",
"vitest": "^3.0.5"
},

View File

@@ -6,7 +6,7 @@ import * as React from 'react'
import { cn } from '../../../lib/utils/cn'
const MenubarMenu = MenubarPrimitive.Menu
const MenubarMenu = MenubarPrimitive.Menu as typeof MenubarPrimitive.Menu
const MenubarGroup = MenubarPrimitive.Group

531
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,18 +5,19 @@ packages:
catalog:
'@types/node': ^22.0.0
'@types/react': '^18.3.0'
'@types/react-dom': '^18.3.0'
'@supabase/auth-js': 2.72.0-rc.11
'@supabase/supabase-js': ^2.47.14
'@supabase/realtime-js': ^2.11.3
'next': ^15.5.2
'react': '^18.3.0'
'react-dom': '^18.3.0'
'@types/react': '^18.3.0'
'@types/react-dom': '^18.3.0'
'tailwindcss': '3.4.1'
'typescript': '~5.9.0'
'valtio': '^1.12.0'
'vite': '^6.2.7'
'zod': '^3.25.76'
'tailwindcss': '3.4.1'
minimumReleaseAge: 10080
minimumReleaseAgeExclude: