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:
@@ -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",
|
||||
|
||||
@@ -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`));
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
},
|
||||
[],
|
||||
|
||||
@@ -33,7 +33,7 @@ export function PasswordSignInContainer({
|
||||
|
||||
onSignIn(userId);
|
||||
}
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// wrong credentials, do nothing
|
||||
} finally {
|
||||
resetCaptchaToken();
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -78,7 +78,7 @@ function CreateOrganizationAccountForm(props: { onClose: () => void }) {
|
||||
startTransition(async () => {
|
||||
try {
|
||||
await createTeamAccountAction(data);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
setError(true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -63,7 +63,7 @@ function DeleteInvitationForm({
|
||||
await deleteInvitationAction({ invitationId });
|
||||
|
||||
setIsOpen(false);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
setError(true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -68,7 +68,7 @@ function RenewInvitationForm({
|
||||
await renewInvitationAction({ invitationId });
|
||||
|
||||
setIsOpen(false);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
setError(true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -93,7 +93,7 @@ function UpdateInvitationForm({
|
||||
});
|
||||
|
||||
setIsOpen(false);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
setError(true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -68,7 +68,7 @@ function RemoveMemberForm({
|
||||
await removeMemberFromAccountAction({ accountId, userId });
|
||||
|
||||
setIsOpen(false);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
setError(true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -102,7 +102,7 @@ function TransferOrganizationOwnershipForm({
|
||||
await transferOwnershipAction(data);
|
||||
|
||||
setIsOpen(false);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
setError(true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -103,7 +103,7 @@ function UpdateMemberForm({
|
||||
});
|
||||
|
||||
setIsOpen(false);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
setError(true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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>,
|
||||
|
||||
@@ -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>) {
|
||||
|
||||
Reference in New Issue
Block a user