update-package-deps

This commit is contained in:
John Yeo
2026-02-08 19:19:59 -08:00
parent 1d180acbea
commit 3fec1f82cd
4 changed files with 422 additions and 663 deletions

1042
bun.lock

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,7 @@
"stripe": "19.3.0-beta.1",
"drizzle-orm": "0.43.1",
"drizzle-kit": "^0.31.1",
"@sentry/bun": "10.25.0",
"@sentry/bun": "10.38.0",
"@clickhouse/client": "1.11.2",
"@date-fns/utc": "2.1.0",
"@better-auth/dash": "0.1.6",
@@ -24,11 +24,27 @@
},
"overrides": {
"@better-auth/core": "1.4.12",
"better-auth": "1.4.12"
"better-auth": "1.4.12",
"@modelcontextprotocol/sdk": "1.26.0",
"@isaacs/brace-expansion": "5.0.1",
"fast-xml-parser": "5.3.4",
"esbuild": "0.25.0",
"diff": "8.0.3",
"@smithy/config-resolver": "^4.4.0",
"lodash": "4.17.23",
"lodash-es": "4.17.23"
},
"resolutions": {
"@better-auth/core": "1.4.12",
"better-auth": "1.4.12"
"better-auth": "1.4.12",
"@modelcontextprotocol/sdk": "1.26.0",
"@isaacs/brace-expansion": "5.0.1",
"fast-xml-parser": "5.3.4",
"esbuild": "0.25.0",
"diff": "8.0.3",
"@smithy/config-resolver": "^4.4.0",
"lodash": "4.17.23",
"lodash-es": "4.17.23"
},
"type": "module",
"scripts": {
@@ -56,9 +72,7 @@
"prepare": "husky"
},
"dependencies": {
"@aws-sdk/client-firehose": "^3.975.0",
"@aws-sdk/client-s3": "^3.975.0",
"@aws-sdk/client-sts": "^3.975.0",
"@aws-sdk/client-sqs": "^3.985.0",
"@better-auth/core": "1.4.12",
"@better-auth/oauth-provider": "1.4.12",
"@wooorm/starry-night": "^3.8.0",

View File

@@ -40,9 +40,7 @@
"@ai-sdk/anthropic": "^3.0.9",
"@anthropic-ai/sdk": "^0.32.1",
"@autumn/shared": "workspace:*",
"@aws-sdk/client-firehose": "^3.958.0",
"@aws-sdk/client-scheduler": "^3.958.0",
"@aws-sdk/client-sqs": "^3.926.0",
"@aws-sdk/client-sqs": "^3.958.0",
"@axiomhq/pino": "^1.3.1",
"@better-auth/oauth-provider": "^1.4.12",
"@better-auth/dash": "catalog:",
@@ -100,7 +98,7 @@
"express": "^4.21.1",
"express-rate-limit": "^7.5.1",
"fetch-retry": "^6.0.0",
"hono": "4.9.9",
"hono": "4.11.7",
"hono-rate-limiter": "^0.4.2",
"http-status-codes": "^2.3.0",
"ink": "^6.3.1",
@@ -109,7 +107,6 @@
"jose": "^6.1.0",
"kafkajs": "^2.2.4",
"ksuid": "^3.0.0",
"lodash-es": "^4.17.21",
"loops": "^5.0.1",
"mime-detect": "^1.3.0",
"nanoid": "^5.1.6",
@@ -137,7 +134,6 @@
"@types/chai-http": "^3.0.5",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.3",
"@types/lodash-es": "^4.17.12",
"@types/mocha": "^10.0.10",
"@types/node": "^25.0.7",
"@types/pg": "^8.11.10",

View File

@@ -1,5 +1,6 @@
import type { AffectedResource, ApiVersion } from "@autumn/shared";
import type { Context, Env, Handler, MiddlewareHandler } from "hono";
import type { Context, Env } from "hono";
import type { H } from "hono/types";
import type { ZodType, z } from "zod/v4";
import type { DrizzleCli } from "@/db/initDrizzle.js";
import { acquireLock, clearLock } from "@/external/redis/redisUtils.js";
@@ -107,8 +108,8 @@ export function createRoute<
/** Error message to show when lock is already held */
errorMessage?: string;
};
}) {
const middlewares: MiddlewareHandler[] = [];
}): [H, ...H[]] {
const middlewares: H[] = [];
// Use versioned validator if versionedBody provided
if (opts.versionedBody && opts.resource) {
@@ -187,5 +188,5 @@ export function createRoute<
}
};
return [...middlewares, wrappedHandler as Handler] as const;
return [...middlewares, wrappedHandler as H] as unknown as [H, ...H[]];
}