Skip to content

Open-source status page, incident response and uptime monitoring

🚧 workflow pause monitors (#1159)

Thibault Le Ouaycaf3eeddab98
diff --git a/apps/web/package.json b/apps/web/package.json
index b1d082826..1d1e4d159 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -101,11 +101,5 @@
"tailwindcss": "3.4.3",
"typescript": "5.6.2",
"unified": "10.1.2"
- },
- "pnpm": {
- "overrides": {
- "@types/react": "19.0.1",
- "@types/react-dom": "19.0.2"
- }
}
}
diff --git a/apps/workflows/package.json b/apps/workflows/package.json
index 2b08ba5d4..f111202c8 100644
--- a/apps/workflows/package.json
+++ b/apps/workflows/package.json
@@ -10,6 +10,7 @@
"@openstatus/db": "workspace:*",
"@openstatus/emails": "workspace:*",
"@openstatus/utils": "workspace:*",
+ "@openstatus/upstash": "workspace:*",
"hono": "4.5.3",
"zod": "3.23.8"
},
diff --git a/apps/workflows/src/cron/index.ts b/apps/workflows/src/cron/index.ts
index ed3df21aa..11b6c073c 100644
--- a/apps/workflows/src/cron/index.ts
+++ b/apps/workflows/src/cron/index.ts
@@ -3,6 +3,13 @@ import { Hono } from "hono";
import { env } from "../env";
import { sendCheckerTasks } from "./checker";
import { sendFollowUpEmails } from "./emails";
+import {
+ LaunchMonitorWorkflow,
+ Step3Days,
+ Step14Days,
+ StepPaused,
+ workflowStepSchema,
+} from "./monitor";
const app = new Hono({ strict: false });
@@ -43,4 +50,48 @@ app.get("/emails/follow-up", async (c) => {
}
});
+app.get("/monitors", async (c) => {
+ await LaunchMonitorWorkflow();
+ return c.json({ success: true }, 200);
+});
+
+app.get("/monitors/:step", async (c) => {
+ const step = c.req.param("step");
+ const schema = workflowStepSchema.safeParse(step);
+
+ const userId = c.req.query("userId");
+ const initialRun = c.req.query("initialRun");
+ if (!schema.success) {
+ return c.json({ error: schema.error.issues?.[0].message }, 400);
+ }
+
+ if (!userId) {
+ return c.json({ error: "userId is required" }, 400);
+ }
+ if (!initialRun) {
+ return c.json({ error: "initialRun is required" }, 400);
+ }
+
+ switch (schema.data) {
+ case "14days":
+ // We send the first email
+ await Step14Days(Number(userId));
+ break;
+ case "3days":
+ await Step3Days(Number(userId), Number(initialRun));
+ // 3 days before we send the second email
+ break;
+ case "paused":
+ // Let's pause the monitor
+ await StepPaused(Number(userId), Number(initialRun));
+ break;
+ default:
+ throw new Error("Invalid step");
+ }
+ // Swith on step
+ // and do the right action
+ //
+ return c.json({ success: true }, 200);
+});
+
export { app as cronRouter };
diff --git a/apps/workflows/src/cron/monitor.ts b/apps/workflows/src/cron/monitor.ts
new file mode 100644
index 000000000..1445f2502
--- /dev/null
+++ b/apps/workflows/src/cron/monitor.ts
@@ -0,0 +1,365 @@
+import type { google } from "@google-cloud/tasks/build/protos/protos";
+import {
+ and,
+ db,
+ desc,
+ eq,
+ isNull,
+ lte,
+ max,
+ ne,
+ or,
+ schema,
+} from "@openstatus/db";
+import { session, user } from "@openstatus/db/src/schema";
+
+import { CloudTasksClient } from "@google-cloud/tasks";
+import {
+ MonitorDeactivationEmail,
+ MonitorPausedEmail,
+} from "@openstatus/emails";
+import { sendWithRender } from "@openstatus/emails/src/send";
+import { Redis } from "@openstatus/upstash";
+import { z } from "zod";
+import { env } from "../env";
+
+const redis = Redis.fromEnv();
+
+const client = new CloudTasksClient({
+ projectId: env().GCP_PROJECT_ID,
+ credentials: {
+ client_email: env().GCP_CLIENT_EMAIL,
+ private_key: env().GCP_PRIVATE_KEY.replaceAll("\\n", "\n"),
+ },
+});
+
+const parent = client.queuePath(
+ env().GCP_PROJECT_ID,
+ env().GCP_LOCATION,
+ "workflow",
+);
+
+export async function LaunchMonitorWorkflow() {
+ // Expires is one month after last connection, so if we want to reach people who connected 3 months ago we need to check for people with expires 2 months ago
+ const twoMonthAgo = new Date().setMonth(new Date().getMonth() - 2);
+
+ const date = new Date(twoMonthAgo);
+ // User without session
+ const userWithoutSession = db
+ .select({
+ userId: schema.user.id,
+ email: schema.user.email,
+ updatedAt: schema.user.updatedAt,
+ })
+ .from(schema.user)
+ .leftJoin(schema.session, eq(schema.session.userId, schema.user.id))
+ .where(isNull(schema.session.userId))
+ .as("query");
+ // Only free users monitors are paused
+ // We don't need to handle multi users per workspace because free workspaces only have one user
+ // Only free users monitors are paused
+
+ const u1 = await db
+ .select({
+ userId: userWithoutSession.userId,
+ email: userWithoutSession.email,
+ workspaceId: schema.workspace.id,
+ })
+ .from(userWithoutSession)
+ .innerJoin(
+ schema.usersToWorkspaces,
+ eq(userWithoutSession.userId, schema.usersToWorkspaces.userId),
+ )
+ .innerJoin(
+ schema.workspace,
+ eq(schema.usersToWorkspaces.workspaceId, schema.workspace.id),
+ )
+ .where(
+ and(
+ or(
+ lte(userWithoutSession.updatedAt, date),
+ isNull(userWithoutSession.updatedAt),
+ ),
+ or(isNull(schema.workspace.plan), eq(schema.workspace.plan, "free")),
+ ),
+ );
+
+ console.log(`Found ${u1.length} users without session to start the workflow`);
+ const maxSessionPerUser = db
+ .select({
+ userId: schema.user.id,
+ email: schema.user.email,
+ lastConnection: max(schema.session.expires).as("lastConnection"),
+ })
+ .from(schema.user)
+ .innerJoin(schema.session, eq(schema.session.userId, schema.user.id))
+ .groupBy(schema.user.id)
+ .as("maxSessionPerUser");
+ // Only free users monitors are paused
+ // We don't need to handle multi users per workspace because free workspaces only have one user
+ // Only free users monitors are paused
+
+ const u = await db
+ .select({
+ userId: maxSessionPerUser.userId,
+ email: maxSessionPerUser.email,
+ workspaceId: schema.workspace.id,
+ })
+ .from(maxSessionPerUser)
+ .innerJoin(
+ schema.usersToWorkspaces,
+ eq(maxSessionPerUser.userId, schema.usersToWorkspaces.userId),
+ )
+ .innerJoin(
+ schema.workspace,
+ eq(schema.usersToWorkspaces.workspaceId, schema.workspace.id),
+ )
+ .where(
+ and(
+ lte(maxSessionPerUser.lastConnection, date),
+ or(isNull(schema.workspace.plan), eq(schema.workspace.plan, "free")),
+ ),
+ );
+ // Let's merge both results
+ const users = [...u, ...u1];
+ // iterate over users
+ for (const user of users) {
+ console.log(`Starting workflow for ${user.userId}`);
+ // Let's check if the user is in the workflow
+ const isMember = await redis.sismember("workflow:users", user.userId);
+ if (isMember) {
+ continue;
+ }
+ // check if user has some running monitors
+ const nbRunningMonitor = await db.$count(
+ schema.monitor,
+ and(
+ eq(schema.monitor.workspaceId, user.workspaceId),
+ eq(schema.monitor.active, true),
+ isNull(schema.monitor.deletedAt),
+ ),
+ );
+ if (nbRunningMonitor > 0) {
+ continue;
+ }
+ await CreateTask({
+ parent,
+ client: client,
+ step: "14days",
+ userId: user.userId,
+ initialRun: new Date().getTime(),
+ });
+ // // Add our user to the list of users that have started the workflow
+
+ await redis.sadd("workflow:users", user.userId);
+ console.log(`user workflow started for ${user.userId}`);
+ }
+}
+
+export async function Step14Days(userId: number) {
+ const user = await getUser(userId);
+
+ // Send email saying we are going to pause the monitors
+ // The task has just been created we don't double check if the user has logged in :scary:
+ // send First email
+ // TODO: Send email
+
+ if (user.email) {
+ sendWithRender({
+ to: [user.email],
+ subject: "Your OpenStatus monitors will be paused soon",
+ from: "Thibault From OpenStatus <[email protected]>",
+ react: MonitorDeactivationEmail({
+ lastLogin: new Date(),
+ deactivateAt: new Date(new Date().setDate(new Date().getDate() + 14)),
+ }),
+ });
+ }
+}
+
+export async function Step3Days(userId: number, workFlowRunTimestamp: number) {
+ // check if user has connected
+ const hasConnected = await hasUserLoggedIn({
+ userId,
+ date: new Date(workFlowRunTimestamp),
+ });
+
+ if (hasConnected) {
+ //
+ await redis.srem("workflow:users", userId);
+ return;
+ }
+
+ const user = await getUser(userId);
+
+ if (user.email) {
+ sendWithRender({
+ to: [user.email],
+ subject: "Your OpenStatus monitors will be paused in 3 days",
+ from: "Thibault From OpenStatus <[email protected]>",
+ react: MonitorDeactivationEmail({
+ lastLogin: new Date(workFlowRunTimestamp),
+ deactivateAt: new Date(new Date().setDate(new Date().getDate() + 3)),
+ }),
+ });
+ }
+
+ // Send second email
+ //TODO: Send email
+ // Let's schedule the next task
+ await CreateTask({
+ client,
+ parent,
+ step: "paused",
+ userId,
+ initialRun: workFlowRunTimestamp,
+ });
+}
+
+export async function StepPaused(userId: number, workFlowRunTimestamp: number) {
+ const hasConnected = await hasUserLoggedIn({
+ userId,
+ date: new Date(workFlowRunTimestamp),
+ });
+ if (!hasConnected) {
+ // sendSecond pause email
+ const users = await db
+ .select({
+ userId: schema.user.id,
+ email: schema.user.email,
+ workspaceId: schema.workspace.id,
+ })
+ .from(user)
+ .innerJoin(session, eq(schema.user.id, schema.session.userId))
+ .innerJoin(
+ schema.usersToWorkspaces,
+ eq(schema.user.id, schema.usersToWorkspaces.userId),
+ )
+ .innerJoin(
+ schema.workspace,
+ eq(schema.usersToWorkspaces.workspaceId, schema.workspace.id),
+ )
+ .where(
+ and(
+ or(isNull(schema.workspace.plan), eq(schema.workspace.plan, "free")),
+ eq(schema.user.id, userId),
+ ),
+ )
+ .get();
+ // We should only have one user :)
+ if (!users) {
+ throw new Error("Too many users found");
+ }
+
+ await db
+ .update(schema.monitor)
+ .set({ active: false })
+ .where(eq(schema.monitor.workspaceId, users.workspaceId));
+ // Send last email with pause monitor
+ }
+
+ const currentUser = await getUser(userId);
+ // TODO: Send email
+ // Remove user for workflow
+
+ if (currentUser.email) {
+ sendWithRender({
+ to: [currentUser.email],
+ subject: "Your monitors have been paused",
+ from: "Thibault From OpenStatus <[email protected]>",
+ react: MonitorPausedEmail(),
+ });
+ }
+ await redis.srem("workflow:users", userId);
+}
+
+async function hasUserLoggedIn({
+ userId,
+ date,
+}: {
+ userId: number;
+ date: Date;
+}) {
+ const userResult = await db
+ .select({ lastSession: schema.session.expires })
+ .from(schema.session)
+ .where(eq(schema.session.userId, userId))
+ .orderBy(desc(schema.session.expires));
+
+ if (userResult.length === 0) {
+ return false;
+ }
+ const user = userResult[0];
+ if (user.lastSession === null) {
+ return false;
+ }
+ return user.lastSession > date;
+}
+
+function CreateTask({
+ parent,
+ client,
+ step,
+ userId,
+ initialRun,
+}: {
+ parent: string;
+ client: CloudTasksClient;
+ step: z.infer<typeof workflowStepSchema>;
+ userId: number;
+ initialRun: number;
+}) {
+ const url = `https://openstatus-workflows.fly.dev/cron/monitors/${step}?userId=${userId}&initialRun=${initialRun}`;
+ const timestamp = getScheduledTime(step);
+ const newTask: google.cloud.tasks.v2beta3.ITask = {
+ httpRequest: {
+ headers: {
+ "Content-Type": "application/json", // Set content type to ensure compatibility your application's request parsing
+ Authorization: `Basic ${env().CRON_SECRET}`,
+ },
+ httpMethod: "GET",
+ url,
+ },
+ scheduleTime: {
+ seconds: timestamp,
+ },
+ };
+
+ const request = { parent: parent, task: newTask };
+ return client.createTask(request);
+}
+
+function getScheduledTime(step: z.infer<typeof workflowStepSchema>) {
+ switch (step) {
+ case "14days":
+ // let's triger it now
+ return new Date().getTime() / 1000;
+ case "3days":
+ // it's 11 days after the 14 days
+ return new Date().setDate(new Date().getDate() + 11) / 1000;
+ case "paused":
+ // it's 3 days after the 3 days step
+ return new Date().setDate(new Date().getDate() + 3) / 1000;
+ default:
+ throw new Error("Invalid step");
+ }
+}
+
+export const workflowStep = ["14days", "3days", "paused"] as const;
+export const workflowStepSchema = z.enum(workflowStep);
+
+async function getUser(userId: number) {
+ const currentUser = await db
+ .select()
+ .from(user)
+ .where(eq(schema.user.id, userId))
+ .get();
+
+ if (!currentUser) {
+ throw new Error("User not found");
+ }
+ if (!currentUser.email) {
+ throw new Error("User email not found");
+ }
+ return currentUser;
+}
diff --git a/packages/emails/emails/monitor-deactivation.tsx b/packages/emails/emails/monitor-deactivation.tsx
index 778c81528..6731e256e 100644
--- a/packages/emails/emails/monitor-deactivation.tsx
+++ b/packages/emails/emails/monitor-deactivation.tsx
@@ -16,7 +16,6 @@ import { styles } from "./_components/styles";
export const MonitorDeactivationSchema = z.object({
lastLogin: z.coerce.date(),
deactivateAt: z.coerce.date(),
- reminder: z.boolean().optional(),
});
export type MonitorDeactivationProps = z.infer<
@@ -26,32 +25,44 @@ export type MonitorDeactivationProps = z.infer<
const MonitorDeactivationEmail = ({
lastLogin,
deactivateAt,
- reminder,
}: MonitorDeactivationProps) => {
return (
<Html>
<Head />
<Preview>
- {reminder ? "[REMINDER] " : ""}Deactivation of your monitor(s)
+ Login to your OpenStatus account to keep your monitors active.
</Preview>
<Body style={styles.main}>
<Layout>
- <Heading as="h3">Deactivation of the your monitor(s)</Heading>
+ <Text>Hello πŸ‘‹</Text>
+ {/* <Heading as="h3">Deactivation of the your monitor(s)</Heading> */}
+ <Text>
+ To save on cloud resources and avoid having stale monitors. We are
+ deactivating monitors for free account if you have not logged in for
+ the last 2 months.
+ </Text>
<Text>Your last login was {lastLogin.toDateString()}.</Text>
<Text>
- To avoid having stale monitors and reduce the number of testing
- accounts, we will deactivate your monitor(s) at{" "}
- {deactivateAt.toDateString()}.
+ Your monitor(s) will be deactivated on {deactivateAt.toDateString()}
+ .
</Text>
<Text>
If you would like to keep your monitor(s) active, please login to
- your account or upgrade your plan.
+ your account or upgrade to a paid plan.
</Text>
<Text style={{ textAlign: "center" }}>
- <Button style={styles.button} href="https://.openstatus.dev/app">
+ <Button style={styles.button} href="https://www.openstatus.dev/app">
Login
</Button>
</Text>
+ <Text>If you have any questions, please reply to this email.</Text>
+ <Text>Thibault </Text>
+ <Text>
+ Check out our latest update{" "}
+ <a href="https://www.openstatus.dev/changelog?ref=paused-email">
+ here
+ </a>
+ </Text>
</Layout>
</Body>
</Html>
@@ -61,7 +72,6 @@ const MonitorDeactivationEmail = ({
MonitorDeactivationEmail.PreviewProps = {
lastLogin: new Date(new Date().setDate(new Date().getDate() - 100)),
deactivateAt: new Date(new Date().setDate(new Date().getDate() + 7)),
- reminder: true,
} satisfies MonitorDeactivationProps;
export default MonitorDeactivationEmail;
diff --git a/packages/emails/emails/monitor-paused.tsx b/packages/emails/emails/monitor-paused.tsx
new file mode 100644
index 000000000..a5d292176
--- /dev/null
+++ b/packages/emails/emails/monitor-paused.tsx
@@ -0,0 +1,53 @@
+/** @jsxImportSource react */
+
+import {
+ Body,
+ Button,
+ Head,
+ Heading,
+ Html,
+ Preview,
+ Text,
+} from "@react-email/components";
+import { z } from "zod";
+import { Layout } from "./_components/layout";
+import { styles } from "./_components/styles";
+
+const MonitorPausedEmail = () => {
+ return (
+ <Html>
+ <Head />
+ <Preview>Your monitors have been paused</Preview>
+ <Body style={styles.main}>
+ <Layout>
+ <Text>Hello πŸ‘‹</Text>
+ {/* <Heading as="h3">Deactivation of the your monitor(s)</Heading> */}
+ <Text>
+ To save on cloud resources, your monitor(s) has been paused due to
+ inactivity.
+ </Text>
+ <Text>
+ If you would like to unpause your monitor(s), please login to your
+ account or upgrade to a paid plan.
+ </Text>
+ <Text style={{ textAlign: "center" }}>
+ <Button style={styles.button} href="https://www.openstatus.dev/app">
+ Login
+ </Button>
+ </Text>
+
+ <Text>If you have any questions, please reply to this email.</Text>
+ <Text>Thibault</Text>
+ <Text>
+ Check out our latest update{" "}
+ <a href="https://www.openstatus.dev/changelog?ref=paused-email">
+ here
+ </a>
+ </Text>
+ </Layout>
+ </Body>
+ </Html>
+ );
+};
+
+export default MonitorPausedEmail;
diff --git a/packages/emails/src/index.ts b/packages/emails/src/index.ts
index 5d34587b1..d7bc99005 100644
--- a/packages/emails/src/index.ts
+++ b/packages/emails/src/index.ts
@@ -2,6 +2,9 @@ export { default as FollowUpEmail } from "../emails/followup";
export { default as SubscribeEmail } from "../emails/subscribe";
export { default as WelcomeEmail } from "../emails/welcome";
export { default as TeamInvitationEmail } from "../emails/team-invitation";
+export { default as MonitorPausedEmail } from "../emails/monitor-paused";
+export { default as MonitorDeactivationEmail } from "../emails/monitor-deactivation";
+
export { sendEmail, sendEmailHtml, sendBatchEmailHtml } from "./send";
export { EmailClient } from "./client";
diff --git a/packages/emails/src/send.ts b/packages/emails/src/send.ts
index 6c623b19a..f1eb95751 100644
--- a/packages/emails/src/send.ts
+++ b/packages/emails/src/send.ts
@@ -1,6 +1,7 @@
import type React from "react";
import { Resend } from "resend";
+import { render } from "@react-email/render";
import { env } from "./env";
export const resend = new Resend(env.RESEND_API_KEY);
@@ -41,3 +42,12 @@ export const sendEmailHtml = async (emails: EmailHtml[]) => {
body: JSON.stringify(emails),
});
};
+
+export const sendWithRender = async (email: Emails) => {
+ if (process.env.NODE_ENV !== "production") return;
+ const html = await render(email.react);
+ await resend.emails.send({
+ ...email,
+ html,
+ });
+};
diff --git a/packages/notifications/discord/package.json b/packages/notifications/discord/package.json
index 051bb49a8..5f4bf89cc 100644
--- a/packages/notifications/discord/package.json
+++ b/packages/notifications/discord/package.json
@@ -4,7 +4,7 @@
"main": "src/index.ts",
"dependencies": {
"@openstatus/db": "workspace:*",
- "zod": "3.22.4"
+ "zod": "3.23.8"
},
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
diff --git a/packages/notifications/opsgenie/package.json b/packages/notifications/opsgenie/package.json
index f513c4a9f..dd826b9e6 100644
--- a/packages/notifications/opsgenie/package.json
+++ b/packages/notifications/opsgenie/package.json
@@ -7,7 +7,7 @@
"@t3-oss/env-core": "0.7.1",
"@types/validator": "13.11.6",
"validator": "13.12.0",
- "zod": "3.22.4"
+ "zod": "3.23.8"
},
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
diff --git a/packages/notifications/pagerduty/package.json b/packages/notifications/pagerduty/package.json
index 8d1033893..f59b4ae3d 100644
--- a/packages/notifications/pagerduty/package.json
+++ b/packages/notifications/pagerduty/package.json
@@ -7,7 +7,7 @@
"@t3-oss/env-core": "0.7.1",
"@types/validator": "13.11.6",
"validator": "13.12.0",
- "zod": "3.22.4"
+ "zod": "3.23.8"
},
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
diff --git a/packages/notifications/slack/package.json b/packages/notifications/slack/package.json
index 785105d53..9e539400a 100644
--- a/packages/notifications/slack/package.json
+++ b/packages/notifications/slack/package.json
@@ -4,7 +4,7 @@
"main": "src/index.ts",
"dependencies": {
"@openstatus/db": "workspace:*",
- "zod": "3.22.4"
+ "zod": "3.23.8"
},
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3e521a3a7..69bbd433c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -92,7 +92,7 @@ importers:
version: 2.6.2
drizzle-orm:
specifier: 0.35.3
hono:
specifier: 4.5.3
version: 4.5.3
@@ -168,7 +168,7 @@ importers:
version: link:../../packages/utils
'@scalar/hono-api-reference':
specifier: 0.5.131
'@t3-oss/env-core':
specifier: 0.7.1
@@ -486,6 +486,9 @@ importers:
'@openstatus/emails':
specifier: workspace:*
version: link:../../packages/emails
+ '@openstatus/upstash':
+ specifier: workspace:*
+ version: link:../../packages/upstash
'@openstatus/utils':
specifier: workspace:*
version: link:../../packages/utils
@@ -612,10 +615,10 @@ importers:
drizzle-orm:
specifier: 0.35.3
drizzle-zod:
specifier: 0.5.1
zod:
specifier: 3.23.8
version: 3.23.8
@@ -728,8 +731,8 @@ importers:
specifier: workspace:*
version: link:../../db
zod:
- specifier: 3.22.4
- version: 3.22.4
+ specifier: 3.23.8
+ version: 3.23.8
devDependencies:
'@openstatus/tsconfig':
specifier: workspace:*
@@ -785,7 +788,7 @@ importers:
version: link:../../db
'@t3-oss/env-core':
specifier: 0.7.1
'@types/validator':
specifier: 13.11.6
version: 13.11.6
@@ -793,8 +796,8 @@ importers:
specifier: 13.12.0
version: 13.12.0
zod:
- specifier: 3.22.4
- version: 3.22.4
+ specifier: 3.23.8
+ version: 3.23.8
devDependencies:
'@openstatus/tsconfig':
specifier: workspace:*
@@ -819,7 +822,7 @@ importers:
version: link:../../db
'@t3-oss/env-core':
specifier: 0.7.1
'@types/validator':
specifier: 13.11.6
version: 13.11.6
@@ -827,8 +830,8 @@ importers:
specifier: 13.12.0
version: 13.12.0
zod:
- specifier: 3.22.4
- version: 3.22.4
+ specifier: 3.23.8
+ version: 3.23.8
devDependencies:
'@openstatus/tsconfig':
specifier: workspace:*
@@ -852,8 +855,8 @@ importers:
specifier: workspace:*
version: link:../../db
zod:
- specifier: 3.22.4
- version: 3.22.4
+ specifier: 3.23.8
+ version: 3.23.8
devDependencies:
'@openstatus/tsconfig':
specifier: workspace:*
@@ -1716,8 +1719,8 @@ packages:
'@chronark/[email protected]':
resolution: {integrity: sha512-hE8kCGLJK5ncH8F7uPaqPiOOqo68vUI66nusg7HO5X9BcyN8lXfeQliu6Ou1kOSq95OYshf9nB2fk2+LEvF4ng==}
- '@cloudflare/[email protected]':
- resolution: {integrity: sha512-Y0brjmJHcAZBXOPI7lU5hbiXglQWniA1kQjot2ata+HFimyjPPcz+4QWBRrmWcMPo0OadR2Vmac7WStDLpvz0w==}
+ '@cloudflare/[email protected]':
+ resolution: {integrity: sha512-dtLD4jY35Lb750cCVyO1i/eIfdZJg2Z0i+B1RYX6BVeRPlgaHx/H18ImKAkYmy0g09Ow8R2jZy3hIxMgXun0WQ==}
'@codemirror/[email protected]':
resolution: {integrity: sha512-fdfj6e6ZxZf8yrkMHUSJJir7OJkHkZKaOZGzLWIYp2PZ3jd+d+UjG8zVPqJF6d3bKxkhvXTPan/UZ1t7Bqm0gA==}
@@ -10316,9 +10319,6 @@ packages:
peerDependencies:
zod: ^3.18.0
- resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}
-
resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}
@@ -11329,7 +11329,7 @@ snapshots:
dependencies:
zod: 3.23.8
- '@cloudflare/[email protected]':
+ '@cloudflare/[email protected]':
optional: true
'@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
@@ -12009,9 +12009,9 @@ snapshots:
protobufjs: 7.2.5
yargs: 17.7.2
dependencies:
dependencies:
@@ -13695,9 +13695,9 @@ snapshots:
'@rollup/[email protected]':
optional: true
dependencies:
- '@headlessui/tailwindcss': 0.2.0([email protected]([email protected](@types/[email protected])([email protected])))
+ '@headlessui/tailwindcss': 0.2.0([email protected]([email protected](@types/[email protected])([email protected])))
'@headlessui/vue': 1.7.22([email protected]([email protected]))
'@scalar/draggable': 0.1.4([email protected])
@@ -13733,11 +13733,11 @@ snapshots:
- typescript
- vitest
dependencies:
'@floating-ui/vue': 1.1.1([email protected]([email protected]))
'@headlessui/vue': 1.7.22([email protected]([email protected]))
'@scalar/oas-utils': 0.2.26([email protected])
'@scalar/openapi-parser': 0.7.2
@@ -13822,9 +13822,9 @@ snapshots:
transitivePeerDependencies:
- typescript
dependencies:
hono: 4.5.3
transitivePeerDependencies:
- '@jest/globals'
@@ -14569,9 +14569,9 @@ snapshots:
optionalDependencies:
typescript: 5.6.2
dependencies:
- zod: 3.22.4
+ zod: 3.23.8
optionalDependencies:
typescript: 5.4.5
@@ -15353,7 +15353,7 @@ snapshots:
dependencies:
- debug: 4.3.7
+ debug: 4.4.0
transitivePeerDependencies:
- supports-color
@@ -16270,11 +16270,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@libsql/client-wasm': 0.14.0
optionalDependencies:
- '@cloudflare/workers-types': 4.20241218.0
+ '@cloudflare/workers-types': 4.20241230.0
'@libsql/client': 0.14.0([email protected])([email protected])
'@opentelemetry/api': 1.9.0
'@types/pg': 8.11.10
@@ -16283,11 +16283,11 @@ snapshots:
bun-types: 1.1.40
react: 19.0.0
dependencies:
'@libsql/client-wasm': 0.14.0
optionalDependencies:
- '@cloudflare/workers-types': 4.20241218.0
+ '@cloudflare/workers-types': 4.20241230.0
'@libsql/client': 0.14.0([email protected])([email protected])
'@opentelemetry/api': 1.9.0
'@types/pg': 8.11.10
@@ -16296,9 +16296,9 @@ snapshots:
bun-types: 1.1.40
react: 19.0.0
dependencies:
zod: 3.23.8
@@ -17314,7 +17314,7 @@ snapshots:
dependencies:
'@tootallnate/once': 2.0.0
agent-base: 6.0.2
- debug: 4.3.7
+ debug: 4.4.0
transitivePeerDependencies:
- supports-color
@@ -17328,7 +17328,7 @@ snapshots:
dependencies:
agent-base: 6.0.2
- debug: 4.3.4
+ debug: 4.4.0
transitivePeerDependencies:
- supports-color
@@ -18765,7 +18765,7 @@ snapshots:
isbinaryfile: 4.0.10
lodash.get: 4.4.2
mkdirp: 0.5.6
- resolve: 1.22.8
+ resolve: 1.22.9
@@ -19151,21 +19151,21 @@ snapshots:
postcss: 8.4.38
ts-node: 10.9.2(@types/[email protected])([email protected])
dependencies:
lilconfig: 3.1.2
yaml: 2.6.1
optionalDependencies:
postcss: 8.4.49
- ts-node: 10.9.2(@types/[email protected])([email protected])
+ ts-node: 10.9.2(@types/[email protected])([email protected])
dependencies:
lilconfig: 3.1.2
yaml: 2.6.1
optionalDependencies:
postcss: 8.4.49
- ts-node: 10.9.2(@types/[email protected])([email protected])
+ ts-node: 10.9.2(@types/[email protected])([email protected])
dependencies:
@@ -20405,7 +20405,7 @@ snapshots:
dependencies:
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -20424,7 +20424,7 @@ snapshots:
postcss: 8.4.49
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.2.0([email protected])
postcss-selector-parser: 6.1.2
resolve: 1.22.9
@@ -20432,7 +20432,7 @@ snapshots:
transitivePeerDependencies:
- ts-node
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -20451,7 +20451,7 @@ snapshots:
postcss: 8.4.49
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.2.0([email protected])
postcss-selector-parser: 6.1.2
resolve: 1.22.9
@@ -20702,26 +20702,26 @@ snapshots:
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
- '@types/node': 20.8.0
+ '@types/node': 22.10.2
acorn: 8.11.3
acorn-walk: 8.3.2
arg: 4.1.3
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.7.2
+ typescript: 5.6.2
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
optional: true
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -20735,7 +20735,7 @@ snapshots:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.6.2
+ typescript: 5.7.2
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
optional: true
@@ -21537,8 +21537,6 @@ snapshots:
dependencies:
zod: 3.23.8
-