Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
♻️ Use namespace import for zod (#2393)
Luke Vellac7b758a182ae
diff --git a/apps/api/src/utils/timezone-schema.ts b/apps/api/src/utils/timezone-schema.tsindex fdc0d1142..8c8b7058e 100644--- a/apps/api/src/utils/timezone-schema.ts+++ b/apps/api/src/utils/timezone-schema.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import * as z from "zod";// Override runtime canonicalization when ICU data lags behind IANA updates.const ianaOverrides: Record<string, string> = {diff --git a/apps/web/src/features/event-types/components/event-type-form.tsx b/apps/web/src/features/event-types/components/event-type-form.tsxindex 8fde494b7..afb8b2824 100644--- a/apps/web/src/features/event-types/components/event-type-form.tsx+++ b/apps/web/src/features/event-types/components/event-type-form.tsx@@ -14,7 +14,7 @@ import { Textarea } from "@rallly/ui/textarea";import { Link2Icon, MapPinIcon, PlusIcon } from "lucide-react";import React from "react";import type { UseFormReturn } from "react-hook-form";-import { z } from "zod";+import * as z from "zod";import type { EventTypeDTO } from "@/features/event-types/types";import { Trans, useTranslation } from "@/i18n/client";import type { Location } from "@/lib/location";diff --git a/apps/web/src/features/event-types/schema.ts b/apps/web/src/features/event-types/schema.tsindex 8198f722f..cbb1fde4d 100644--- a/apps/web/src/features/event-types/schema.ts+++ b/apps/web/src/features/event-types/schema.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import * as z from "zod";import { locationSchema } from "@/lib/location";export const eventTypeInputSchema = z.object({diff --git a/apps/web/src/lib/location.ts b/apps/web/src/lib/location.tsindex 41acfc959..72c00ea52 100644--- a/apps/web/src/lib/location.ts+++ b/apps/web/src/lib/location.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import * as z from "zod";const inPersonLocationSchema = z.object({type: z.literal("in_person"),diff --git a/apps/web/src/trpc/routers/event-types.ts b/apps/web/src/trpc/routers/event-types.tsindex 6df29a131..4a8e3f6f5 100644--- a/apps/web/src/trpc/routers/event-types.ts+++ b/apps/web/src/trpc/routers/event-types.ts@@ -1,6 +1,6 @@import { Prisma, prisma } from "@rallly/database";import { TRPCError } from "@trpc/server";-import { z } from "zod";+import * as z from "zod";import { isEventTypesEnabled } from "@/features/event-types/constants";import { createEventTypeDTO, getEventTypes } from "@/features/event-types/data";import {diff --git a/apps/web/src/utils/timezone-schema.ts b/apps/web/src/utils/timezone-schema.tsindex fdc0d1142..8c8b7058e 100644--- a/apps/web/src/utils/timezone-schema.ts+++ b/apps/web/src/utils/timezone-schema.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import * as z from "zod";// Override runtime canonicalization when ICU data lags behind IANA updates.const ianaOverrides: Record<string, string> = {