Remove Cloudflare mailer implementation, update dependencies and updated code to reflect stricter EsLint settings

Deleted CloudflareMailer class and its implementation from the mailers package. Updated dependencies across various packages, converting certain imports to use `type` only, and bumped versions for packages like `react-query`, `lucide-react`, and others.
This commit is contained in:
gbuomprisco
2024-08-01 14:57:55 +02:00
parent 5c28eaabeb
commit 23154c366d
48 changed files with 607 additions and 469 deletions

View File

@@ -35,10 +35,10 @@
"@kit/ui": "workspace:^",
"@radix-ui/react-icons": "^1.3.0",
"@supabase/supabase-js": "^2.45.0",
"@tanstack/react-query": "5.51.15",
"@tanstack/react-query": "5.51.16",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"lucide-react": "^0.417.0",
"lucide-react": "^0.418.0",
"next": "14.2.5",
"next-themes": "0.3.0",
"react": "18.3.1",

View File

@@ -74,6 +74,7 @@ export const UpdatePasswordForm = ({
// if the user does not have an email assigned, it's possible they
// don't have an email/password factor linked, and the UI is out of sync
if (!email) {
/* eslint-disable @typescript-eslint/prefer-promise-reject-errors */
return Promise.reject(t(`cannotUpdatePassword`));
}

View File

@@ -22,10 +22,10 @@
"@makerkit/data-loader-supabase-core": "^0.0.8",
"@makerkit/data-loader-supabase-nextjs": "^1.2.3",
"@supabase/supabase-js": "^2.45.0",
"@tanstack/react-query": "5.51.15",
"@tanstack/react-query": "5.51.16",
"@tanstack/react-table": "^8.19.3",
"@types/react": "^18.3.3",
"lucide-react": "^0.417.0",
"lucide-react": "^0.418.0",
"next": "14.2.5",
"react": "18.3.1",
"react-dom": "18.3.1",

View File

@@ -29,9 +29,9 @@
"@marsidev/react-turnstile": "^0.7.2",
"@radix-ui/react-icons": "^1.3.0",
"@supabase/supabase-js": "^2.45.0",
"@tanstack/react-query": "5.51.15",
"@tanstack/react-query": "5.51.16",
"@types/react": "^18.3.3",
"lucide-react": "^0.417.0",
"lucide-react": "^0.418.0",
"next": "14.2.5",
"react-hook-form": "^7.52.1",
"react-i18next": "^15.0.0",

View File

@@ -32,7 +32,7 @@ export function OauthProviders(props: {
const credential = await signInRequest();
if (!credential) {
return Promise.reject();
return Promise.reject(new Error('Failed to sign in with provider'));
}
},
[],

View File

@@ -33,7 +33,7 @@ export function PasswordSignInContainer({
onSignIn(userId);
}
} catch (e) {
} catch {
// wrong credentials, do nothing
} finally {
resetCaptchaToken();

View File

@@ -21,9 +21,9 @@
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:*",
"@supabase/supabase-js": "^2.45.0",
"@tanstack/react-query": "5.51.15",
"@tanstack/react-query": "5.51.16",
"@types/react": "^18.3.3",
"lucide-react": "^0.417.0",
"lucide-react": "^0.418.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-i18next": "^15.0.0"

View File

@@ -33,13 +33,13 @@
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:^",
"@supabase/supabase-js": "^2.45.0",
"@tanstack/react-query": "5.51.15",
"@tanstack/react-query": "5.51.16",
"@tanstack/react-table": "^8.19.3",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"class-variance-authority": "^0.7.0",
"date-fns": "^3.6.0",
"lucide-react": "^0.417.0",
"lucide-react": "^0.418.0",
"next": "14.2.5",
"react": "18.3.1",
"react-dom": "18.3.1",

View File

@@ -78,7 +78,7 @@ function CreateOrganizationAccountForm(props: { onClose: () => void }) {
startTransition(async () => {
try {
await createTeamAccountAction(data);
} catch (error) {
} catch {
setError(true);
}
});

View File

@@ -63,7 +63,7 @@ function DeleteInvitationForm({
await deleteInvitationAction({ invitationId });
setIsOpen(false);
} catch (e) {
} catch {
setError(true);
}
});

View File

@@ -68,7 +68,7 @@ function RenewInvitationForm({
await renewInvitationAction({ invitationId });
setIsOpen(false);
} catch (e) {
} catch {
setError(true);
}
});

View File

@@ -93,7 +93,7 @@ function UpdateInvitationForm({
});
setIsOpen(false);
} catch (e) {
} catch {
setError(true);
}
});

View File

@@ -68,7 +68,7 @@ function RemoveMemberForm({
await removeMemberFromAccountAction({ accountId, userId });
setIsOpen(false);
} catch (e) {
} catch {
setError(true);
}
});

View File

@@ -102,7 +102,7 @@ function TransferOrganizationOwnershipForm({
await transferOwnershipAction(data);
setIsOpen(false);
} catch (error) {
} catch {
setError(true);
}
});

View File

@@ -103,7 +103,7 @@ function UpdateMemberForm({
});
setIsOpen(false);
} catch (e) {
} catch {
setError(true);
}
});

View File

@@ -8,9 +8,9 @@ import { z } from 'zod';
import { getLogger } from '@kit/shared/logger';
import { Database } from '@kit/supabase/database';
import { DeleteInvitationSchema } from '../../schema/delete-invitation.schema';
import { InviteMembersSchema } from '../../schema/invite-members.schema';
import { UpdateInvitationSchema } from '../../schema/update-invitation.schema';
import type { DeleteInvitationSchema } from '../../schema/delete-invitation.schema';
import type { InviteMembersSchema } from '../../schema/invite-members.schema';
import type { UpdateInvitationSchema } from '../../schema/update-invitation.schema';
export function createAccountInvitationsService(
client: SupabaseClient<Database>,

View File

@@ -7,9 +7,9 @@ import { z } from 'zod';
import { getLogger } from '@kit/shared/logger';
import { Database } from '@kit/supabase/database';
import { RemoveMemberSchema } from '../../schema/remove-member.schema';
import { TransferOwnershipConfirmationSchema } from '../../schema/transfer-ownership-confirmation.schema';
import { UpdateMemberRoleSchema } from '../../schema/update-member-role.schema';
import type { RemoveMemberSchema } from '../../schema/remove-member.schema';
import type { TransferOwnershipConfirmationSchema } from '../../schema/transfer-ownership-confirmation.schema';
import type { UpdateMemberRoleSchema } from '../../schema/update-member-role.schema';
import { createAccountPerSeatBillingService } from './account-per-seat-billing.service';
export function createAccountMembersService(client: SupabaseClient<Database>) {