Update dependencies

Upgraded multiple dependencies across the project, including @types/node to ^22.5.1 and @supabase/supabase-js to ^2.45.3. This change also includes updates to react-related types and various other packages to their latest versions to maintain compatibility and leverage new features.
This commit is contained in:
gbuomprisco
2024-08-31 17:47:21 +02:00
parent 0c415be8ee
commit 53302fba7e
33 changed files with 648 additions and 734 deletions

View File

@@ -28,11 +28,10 @@
"@kit/prettier-config": "workspace:*",
"@kit/tailwind-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@supabase/gotrue-js": "2.64.4",
"@supabase/ssr": "^0.5.1",
"@supabase/supabase-js": "^2.45.2",
"@supabase/supabase-js": "^2.45.3",
"@tanstack/react-query": "5.52.2",
"@types/react": "^18.3.4",
"@types/react": "^18.3.5",
"next": "14.2.7",
"react": "18.3.1",
"server-only": "^0.0.1",

View File

@@ -1,4 +1,4 @@
import type { SignInWithPasswordlessCredentials } from '@supabase/gotrue-js';
import type { SignInWithPasswordlessCredentials } from '@supabase/supabase-js';
import { useMutation } from '@tanstack/react-query';

View File

@@ -1,4 +1,4 @@
import type { SignInWithOAuthCredentials } from '@supabase/gotrue-js';
import type { SignInWithOAuthCredentials } from '@supabase/supabase-js';
import { useMutation } from '@tanstack/react-query';

View File

@@ -1,7 +1,8 @@
import { useMemo } from 'react';
import { getSupabaseBrowserClient } from '../clients/browser-client';
import { Database } from '../database.types';
export function useSupabase() {
return useMemo(() => getSupabaseBrowserClient(), []);
export function useSupabase<Db = Database>() {
return useMemo(() => getSupabaseBrowserClient<Db>(), []);
}

View File

@@ -1,4 +1,4 @@
import type { UserAttributes } from '@supabase/gotrue-js';
import type { UserAttributes } from '@supabase/supabase-js';
import { useMutation } from '@tanstack/react-query';

View File

@@ -1,4 +1,4 @@
import type { VerifyOtpParams } from '@supabase/gotrue-js';
import type { VerifyOtpParams } from '@supabase/supabase-js';
import { useMutation } from '@tanstack/react-query';