Updated dependencies; fixes some TS issues uncovered by update

This commit is contained in:
gbuomprisco
2024-09-10 10:55:28 +02:00
parent 460479bf1a
commit bc624e7d96
23 changed files with 554 additions and 531 deletions

View File

@@ -31,7 +31,7 @@
"@types/react": "^18.3.5",
"date-fns": "^3.6.0",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"react": "18.3.1",
"react-hook-form": "^7.53.0",
"react-i18next": "^15.0.1",

View File

@@ -14,7 +14,7 @@
"./components": "./src/components/index.ts"
},
"dependencies": {
"@lemonsqueezy/lemonsqueezy.js": "3.3.0"
"@lemonsqueezy/lemonsqueezy.js": "3.3.1"
},
"devDependencies": {
"@kit/billing": "workspace:^",
@@ -26,7 +26,7 @@
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:^",
"@types/react": "^18.3.5",
"next": "14.2.8",
"next": "14.2.9",
"react": "18.3.1",
"zod": "^3.23.8"
},

View File

@@ -30,7 +30,7 @@
"@kit/ui": "workspace:^",
"@types/react": "^18.3.5",
"date-fns": "^3.6.0",
"next": "14.2.8",
"next": "14.2.9",
"react": "18.3.1",
"zod": "^3.23.8"
},

View File

@@ -39,7 +39,7 @@
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"next-themes": "0.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",

View File

@@ -12,7 +12,6 @@ export function usePersonalAccountData(
name: string | null;
picture_url: string | null;
}
| undefined,
) {
const client = useSupabase();
const queryKey = ['account:data', userId];

View File

@@ -26,7 +26,7 @@
"@tanstack/react-table": "^8.20.5",
"@types/react": "^18.3.5",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.53.0",

View File

@@ -32,7 +32,7 @@
"@tanstack/react-query": "5.55.4",
"@types/react": "^18.3.5",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"react-hook-form": "^7.53.0",
"react-i18next": "^15.0.1",
"sonner": "^1.5.0",

View File

@@ -40,7 +40,7 @@
"class-variance-authority": "^0.7.0",
"date-fns": "^3.6.0",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.53.0",

View File

@@ -223,7 +223,7 @@ export class TeamAccountsApi {
.gte('expires_at', new Date().toISOString())
.single();
if (!invitation ?? error) {
if (error ?? !invitation) {
return null;
}

View File

@@ -25,7 +25,7 @@
"react-i18next": "^15.0.1"
},
"dependencies": {
"i18next": "^23.14.0",
"i18next": "^23.15.1",
"i18next-browser-languagedetector": "8.0.0",
"i18next-resources-to-backend": "^1.2.1"
},

View File

@@ -13,7 +13,7 @@ export function useBaselime(): MonitoringService {
return useMemo(() => {
return {
captureException(error: Error, extra?: React.ErrorInfo | undefined) {
captureException(error: Error, extra?: React.ErrorInfo) {
void captureException(error, extra);
},
identifyUser(params) {

View File

@@ -16,7 +16,7 @@
"./config/server": "./src/sentry.client.server.ts"
},
"dependencies": {
"@sentry/nextjs": "^8.28.0"
"@sentry/nextjs": "^8.29.0"
},
"devDependencies": {
"@kit/eslint-config": "workspace:*",

View File

@@ -22,7 +22,7 @@
"@kit/tailwind-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@supabase/supabase-js": "^2.45.3",
"next": "14.2.8",
"next": "14.2.9",
"zod": "^3.23.8"
},
"eslintConfig": {

View File

@@ -32,7 +32,7 @@
"@supabase/supabase-js": "^2.45.3",
"@tanstack/react-query": "5.55.4",
"@types/react": "^18.3.5",
"next": "14.2.8",
"next": "14.2.9",
"react": "18.3.1",
"server-only": "^0.0.1",
"zod": "^3.23.8"

View File

@@ -49,7 +49,7 @@
"class-variance-authority": "^0.7.0",
"date-fns": "^3.6.0",
"eslint": "^8.57.0",
"next": "14.2.8",
"next": "14.2.9",
"next-themes": "0.3.0",
"prettier": "^3.3.3",
"react-day-picker": "^8.10.1",
@@ -58,7 +58,7 @@
"sonner": "^1.5.0",
"tailwindcss": "3.4.10",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"zod": "^3.23.8"
},
"eslintConfig": {

View File

@@ -10,7 +10,7 @@ const ROOT_PATH = '/';
export function isRouteActive(
path: string,
currentPath: string,
end?: boolean | ((path: string) => boolean) | undefined,
end?: boolean | ((path: string) => boolean),
) {
// if the path is the same as the current path, we return true
if (path === currentPath) {

View File

@@ -171,6 +171,7 @@ const ChartTooltipContent = React.forwardRef<
labelKey,
]);
/* @ts-expect-error: TS issue */
if (!active ?? !payload?.length) {
return null;
}