chore: ⬆️ Upgrade dependencies

This commit is contained in:
Jesse Wierzbinski 2025-11-21 08:31:02 +01:00
parent f260064083
commit f00ac1a590
No known key found for this signature in database
173 changed files with 665 additions and 752 deletions

View file

@ -3,7 +3,7 @@ import { db, Token } from "@versia-server/kit/db";
import { Tokens } from "@versia-server/kit/tables";
import { and, eq } from "drizzle-orm";
import { describeRoute, resolver, validator } from "hono-openapi";
import { z } from "zod/v4";
import { z } from "zod";
export default apiRoute((app) => {
app.post(

View file

@ -19,7 +19,7 @@ import { setCookie } from "hono/cookie";
import { sign } from "hono/jwt";
import { describeRoute, validator } from "hono-openapi";
import * as client from "openid-client";
import { z } from "zod/v4";
import { z } from "zod";
import { randomString } from "@/math.ts";
export default apiRoute((app) => {

View file

@ -6,7 +6,7 @@ import { OpenIdLoginFlows } from "@versia-server/kit/tables";
import { randomUUIDv7 } from "bun";
import { describeRoute, validator } from "hono-openapi";
import * as client from "openid-client";
import { z } from "zod/v4";
import { z } from "zod";
import { oauthRedirectUri } from "@/lib";
export default apiRoute((app) => {

View file

@ -76,7 +76,9 @@ describe("/oauth/token", () => {
expect(response.status).toBe(422);
const body = await response.json();
expect(body.error).toInclude(`Expected string at "code"`);
expect(body.error).toInclude(
`expected string, received undefined at "code"`,
);
});
test("should return error for missing redirect_uri", async () => {
@ -95,7 +97,9 @@ describe("/oauth/token", () => {
expect(response.status).toBe(422);
const body = await response.json();
expect(body.error).toInclude(`Expected string at "redirect_uri"`);
expect(body.error).toInclude(
`expected string, received undefined at "redirect_uri"`,
);
});
test("should return error for missing client_id", async () => {
@ -114,7 +118,9 @@ describe("/oauth/token", () => {
expect(response.status).toBe(422);
const body = await response.json();
expect(body.error).toInclude(`Expected string at "client_id"`);
expect(body.error).toInclude(
`expected string, received undefined at "client_id"`,
);
});
test("should return error for invalid client credentials", async () => {

View file

@ -5,7 +5,7 @@ import { AuthorizationCodes } from "@versia-server/kit/tables";
import { randomUUIDv7 } from "bun";
import { and, eq } from "drizzle-orm";
import { describeRoute, resolver, validator } from "hono-openapi";
import { z } from "zod/v4";
import { z } from "zod";
import { randomString } from "@/math";
export default apiRoute((app) => {