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:
@@ -56,7 +56,7 @@
|
|||||||
"sharp": "0.32.6",
|
"sharp": "0.32.6",
|
||||||
"tailwind-merge": "^1.13.2",
|
"tailwind-merge": "^1.13.2",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
"typescript": "~5.5.0"
|
"typescript": "catalog:"
|
||||||
},
|
},
|
||||||
"externals": {
|
"externals": {
|
||||||
"sharp": "commonjs sharp"
|
"sharp": "commonjs sharp"
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
"tailwindcss": "catalog:",
|
"tailwindcss": "catalog:",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"unist-builder": "3.0.0"
|
"unist-builder": "3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ function htmlShell(
|
|||||||
body: string
|
body: string
|
||||||
) {
|
) {
|
||||||
const libraryName = REFERENCES[lib].name
|
const libraryName = REFERENCES[lib].name
|
||||||
let title = libraryName + ': ' + section.title ?? ''
|
let title = libraryName + ': ' + (section.title ?? '')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
'<!doctype html><html>' +
|
'<!doctype html><html>' +
|
||||||
@@ -106,7 +106,7 @@ function libraryNav(sections: Array<AbbrevApiReferenceSection & { url: URL }>) {
|
|||||||
|
|
||||||
async function sectionDetails(lib: string, version: string, section: AbbrevApiReferenceSection) {
|
async function sectionDetails(lib: string, version: string, section: AbbrevApiReferenceSection) {
|
||||||
const libraryName = REFERENCES[lib].name
|
const libraryName = REFERENCES[lib].name
|
||||||
let result = '<h1>' + (libraryName + ': ' + section.title ?? '') + '</h1>'
|
let result = '<h1>' + (libraryName + ': ' + (section.title ?? '')) + '</h1>'
|
||||||
|
|
||||||
if (section.type === 'markdown') {
|
if (section.type === 'markdown') {
|
||||||
result += await markdown(lib, version, section)
|
result += await markdown(lib, version, section)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
|
||||||
|
import { ChevronLeft } from 'lucide-react'
|
||||||
import { BASE_PATH } from '~/lib/constants'
|
import { BASE_PATH } from '~/lib/constants'
|
||||||
import clientLibsCommon from '~/spec/common-cli.yml' with { type: 'yml' }
|
import clientLibsCommon from '~/spec/common-cli.yml' with { type: 'yml' }
|
||||||
import * as NavItems from './NavigationMenu.constants'
|
import * as NavItems from './NavigationMenu.constants'
|
||||||
import { ChevronLeft } from 'lucide-react'
|
|
||||||
|
|
||||||
const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
|
const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
|
||||||
const menu = NavItems[id]
|
const menu = NavItems[id]
|
||||||
@@ -111,7 +111,7 @@ const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
|
|||||||
</Link>
|
</Link>
|
||||||
<div className="flex items-center gap-3 my-3">
|
<div className="flex items-center gap-3 my-3">
|
||||||
<img
|
<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"
|
className="w-5 rounded"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@
|
|||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
"twoslash": "^0.3.1",
|
"twoslash": "^0.3.1",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"unist-util-visit-parents": "5.1.3",
|
"unist-util-visit-parents": "5.1.3",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
"vite-tsconfig-paths": "^4.3.2",
|
"vite-tsconfig-paths": "^4.3.2",
|
||||||
|
|||||||
@@ -199,7 +199,7 @@
|
|||||||
"require-in-the-middle": "^7.5.2",
|
"require-in-the-middle": "^7.5.2",
|
||||||
"tailwindcss": "catalog:",
|
"tailwindcss": "catalog:",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
"vite-tsconfig-paths": "^4.3.2",
|
"vite-tsconfig-paths": "^4.3.2",
|
||||||
"vitest": "^3.0.5"
|
"vitest": "^3.0.5"
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
"tailwindcss": "catalog:",
|
"tailwindcss": "catalog:",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"vite": "catalog:"
|
"vite": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react'
|
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
|
import { useEffect, useState } from 'react'
|
||||||
import { Area, AreaChart, ResponsiveContainer, Tooltip, XAxis } from 'recharts'
|
import { Area, AreaChart, ResponsiveContainer, Tooltip, XAxis } from 'recharts'
|
||||||
import { cn } from 'ui'
|
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]">
|
<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-sm mb-2">Execution time</p>
|
||||||
<p className="text-foreground text-base mb-4">
|
<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>
|
</p>
|
||||||
<ResponsiveContainer minWidth={200} minHeight={200} width="100%" height="90%">
|
<ResponsiveContainer minWidth={200} minHeight={200} width="100%" height="90%">
|
||||||
<AreaChart
|
<AreaChart
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
"shared-data": "workspace:*",
|
"shared-data": "workspace:*",
|
||||||
"swiper": "^11.0.7",
|
"swiper": "^11.0.7",
|
||||||
"typed.js": "^2.0.16",
|
"typed.js": "^2.0.16",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"ui": "workspace:*",
|
"ui": "workspace:*",
|
||||||
"ui-patterns": "workspace:*",
|
"ui-patterns": "workspace:*",
|
||||||
"use-debounce": "^7.0.1",
|
"use-debounce": "^7.0.1",
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
"supabase": "^1.151.1",
|
"supabase": "^1.151.1",
|
||||||
"supports-color": "^8.0.0",
|
"supports-color": "^8.0.0",
|
||||||
"turbo": "2.3.3",
|
"turbo": "2.3.3",
|
||||||
"typescript": "~5.5.0"
|
"typescript": "catalog:"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
"mdast-util-from-markdown": "^2.0.0",
|
"mdast-util-from-markdown": "^2.0.0",
|
||||||
"sql-formatter": "^15.0.0",
|
"sql-formatter": "^15.0.0",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
"vitest": "^3.0.5"
|
"vitest": "^3.0.5"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"openapi-typescript": "^7.4.3",
|
"openapi-typescript": "^7.4.3",
|
||||||
"prettier": "3.2.4",
|
"prettier": "3.2.4",
|
||||||
"typescript": "~5.5.0"
|
"typescript": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
"@vitest/coverage-v8": "^3.0.9",
|
"@vitest/coverage-v8": "^3.0.9",
|
||||||
"@vitest/ui": "^3.0.0",
|
"@vitest/ui": "^3.0.0",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"vitest": "^3.0.5"
|
"vitest": "^3.0.5"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@@ -19,6 +19,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tailwindcss": "catalog:",
|
"tailwindcss": "catalog:",
|
||||||
"tailwindcss-animate": "^1.0.6",
|
"tailwindcss-animate": "^1.0.6",
|
||||||
"typescript": "~5.5.0"
|
"typescript": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,6 @@
|
|||||||
"eslint-config-turbo": "^2.0.4"
|
"eslint-config-turbo": "^2.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "~5.5.0"
|
"typescript": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"clean": "rimraf node_modules"
|
"clean": "rimraf node_modules"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"@supabase/build-icons": "workspace:*"
|
"@supabase/build-icons": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"pg": "^8.13.1",
|
"pg": "^8.13.1",
|
||||||
"postgres-array": "^3.0.2",
|
"postgres-array": "^3.0.2",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
"vitest": "^3.0.5"
|
"vitest": "^3.0.5"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -537,7 +537,7 @@
|
|||||||
"api-types": "workspace:*",
|
"api-types": "workspace:*",
|
||||||
"next-router-mock": "^0.9.13",
|
"next-router-mock": "^0.9.13",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"unified": "^11.0.5",
|
"unified": "^11.0.5",
|
||||||
"vfile": "^6.0.3",
|
"vfile": "^6.0.3",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
"glob": "^8.1.0",
|
"glob": "^8.1.0",
|
||||||
"style-dictionary": "^3.7.1",
|
"style-dictionary": "^3.7.1",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"typescript": "~5.5.0",
|
"typescript": "catalog:",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
"vitest": "^3.0.5"
|
"vitest": "^3.0.5"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import * as React from 'react'
|
|||||||
|
|
||||||
import { cn } from '../../../lib/utils/cn'
|
import { cn } from '../../../lib/utils/cn'
|
||||||
|
|
||||||
const MenubarMenu = MenubarPrimitive.Menu
|
const MenubarMenu = MenubarPrimitive.Menu as typeof MenubarPrimitive.Menu
|
||||||
|
|
||||||
const MenubarGroup = MenubarPrimitive.Group
|
const MenubarGroup = MenubarPrimitive.Group
|
||||||
|
|
||||||
|
|||||||
531
pnpm-lock.yaml
generated
531
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -5,18 +5,19 @@ packages:
|
|||||||
|
|
||||||
catalog:
|
catalog:
|
||||||
'@types/node': ^22.0.0
|
'@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/auth-js': 2.72.0-rc.11
|
||||||
'@supabase/supabase-js': ^2.47.14
|
'@supabase/supabase-js': ^2.47.14
|
||||||
'@supabase/realtime-js': ^2.11.3
|
'@supabase/realtime-js': ^2.11.3
|
||||||
'next': ^15.5.2
|
'next': ^15.5.2
|
||||||
'react': '^18.3.0'
|
'react': '^18.3.0'
|
||||||
'react-dom': '^18.3.0'
|
'react-dom': '^18.3.0'
|
||||||
'@types/react': '^18.3.0'
|
'tailwindcss': '3.4.1'
|
||||||
'@types/react-dom': '^18.3.0'
|
'typescript': '~5.9.0'
|
||||||
'valtio': '^1.12.0'
|
'valtio': '^1.12.0'
|
||||||
'vite': '^6.2.7'
|
'vite': '^6.2.7'
|
||||||
'zod': '^3.25.76'
|
'zod': '^3.25.76'
|
||||||
'tailwindcss': '3.4.1'
|
|
||||||
|
|
||||||
minimumReleaseAge: 10080
|
minimumReleaseAge: 10080
|
||||||
minimumReleaseAgeExclude:
|
minimumReleaseAgeExclude:
|
||||||
|
|||||||
Reference in New Issue
Block a user