Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"db:generate": "drizzle-kit generate",
"db:push": "drizzle-kit push",
"db:studio": "drizzle-kit studio",
"auth:generate": "npx auth@1.7.14 generate --config ./src/auth.ts --output ./src/db/auth-schema.ts --yes"
"auth:generate": "npx auth@1.7.16 generate --config ./src/auth.ts --output ./src/db/auth-schema.ts --yes"
},
"keywords": [],
"author": "",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@archiver/archiver": "0.3.0",
"@better-auth/core": "1.7.14",
"@better-auth/expo": "1.7.14",
"@better-auth/i18n": "1.7.14",
"@better-auth/oauth-provider": "1.7.14",
"@better-auth/passkey": "1.7.14",
"@better-auth/core": "1.7.16",
"@better-auth/expo": "1.7.16",
"@better-auth/i18n": "1.7.16",
"@better-auth/oauth-provider": "1.7.16",
"@better-auth/passkey": "1.7.16",
"@fastify/cors": "^11.3.1",
"@fastify/helmet": "^13.2.0",
"@hey-api/client-fetch": "workspace:*",
Expand All @@ -41,7 +41,7 @@
"@opentelemetry/api": "^1.10.0",
"@opentelemetry/exporter-prometheus": "^0.300.0",
"@opentelemetry/sdk-metrics": "^3.0.0",
"better-auth": "1.7.14",
"better-auth": "1.7.16",
"better-auth-harmony": "^1.3.2",
"cached-hafas-client": "^5.1.9",
"drizzle-orm": "^0.45.4",
Expand Down
17 changes: 9 additions & 8 deletions apps/api/src/auth-oauth-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { getTableColumns } from "drizzle-orm";
import { getTableConfig } from "drizzle-orm/pg-core";
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";

const BETTER_AUTH_VERSION = "1.7.16";
const ORIGINAL_SECRET = process.env.BETTER_AUTH_SECRET;

function policyIdentity(id: string, role: string) {
Expand Down Expand Up @@ -52,7 +53,7 @@ afterAll(() => {
});

describe("managed OAuth provider policy", () => {
it("pins every runtime Better Auth package and the schema CLI to 1.7.14", () => {
it(`pins every runtime Better Auth package and the schema CLI to ${BETTER_AUTH_VERSION}`, () => {
const apiManifest = JSON.parse(
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
) as { dependencies: Record<string, string>; scripts: Record<string, string> };
Expand Down Expand Up @@ -83,21 +84,21 @@ describe("managed OAuth provider policy", () => {
const webPackages = ["@better-auth/core", "@better-auth/passkey", "better-auth"];

for (const packageName of apiPackages) {
expect(apiManifest.dependencies[packageName]).toBe("1.7.14");
expect(apiManifest.dependencies[packageName]).toBe(BETTER_AUTH_VERSION);
const lockName = packageName.startsWith("@") ? `'${packageName}'` : packageName;
expect(apiLock).toContain(`${lockName}:\n specifier: 1.7.14`);
expect(apiLock).toContain(`${lockName}:\n specifier: ${BETTER_AUTH_VERSION}`);
}
for (const packageName of corePackages) {
expect(coreManifest.dependencies[packageName]).toBe("1.7.14");
expect(coreManifest.dependencies[packageName]).toBe(BETTER_AUTH_VERSION);
const lockName = packageName.startsWith("@") ? `'${packageName}'` : packageName;
expect(coreLock).toContain(`${lockName}:\n specifier: 1.7.14`);
expect(coreLock).toContain(`${lockName}:\n specifier: ${BETTER_AUTH_VERSION}`);
}
for (const packageName of webPackages) {
expect(webManifest.dependencies[packageName]).toBe("1.7.14");
expect(webManifest.dependencies[packageName]).toBe(BETTER_AUTH_VERSION);
const lockName = packageName.startsWith("@") ? `'${packageName}'` : packageName;
expect(webLock).toContain(`${lockName}:\n specifier: 1.7.14`);
expect(webLock).toContain(`${lockName}:\n specifier: ${BETTER_AUTH_VERSION}`);
}
expect(apiManifest.scripts["auth:generate"]).toContain("auth@1.7.14 generate");
expect(apiManifest.scripts["auth:generate"]).toContain(`auth@${BETTER_AUTH_VERSION} generate`);
for (const importer of [apiLock, coreLock, webLock]) {
expect(importer).not.toContain("specifier: 1.6.");
}
Expand Down
6 changes: 3 additions & 3 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"style:poi": "node scripts/apply-poi-visibility.mjs && node scripts/generate-dark-map-style.mjs"
},
"dependencies": {
"@better-auth/core": "1.7.14",
"@better-auth/passkey": "1.7.14",
"@better-auth/core": "1.7.16",
"@better-auth/passkey": "1.7.16",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^10.0.0",
Expand Down Expand Up @@ -53,7 +53,7 @@
"@turf/helpers": "^7.4.0",
"@turf/length": "^7.4.0",
"@turf/line-slice-along": "^7.4.0",
"better-auth": "1.7.14",
"better-auth": "1.7.16",
"emoji-mart": "^5.6.0",
"fflate": "0.8.3",
"hls.js": "^1.7.4",
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@
}
},
"dependencies": {
"@better-auth/core": "1.7.14",
"@better-auth/oauth-provider": "1.7.14",
"@better-auth/passkey": "1.7.14",
"@better-auth/core": "1.7.16",
"@better-auth/oauth-provider": "1.7.16",
"@better-auth/passkey": "1.7.16",
"@openmapx/air-quality": "workspace:*",
"@openmapx/extension-contracts": "workspace:^",
"@openmapx/mobility-core": "workspace:^",
Expand All @@ -251,7 +251,7 @@
"@turf/nearest-point-on-line": "^7.4.0",
"@types/geojson": "^7946.0.16",
"@types/tz-lookup": "^6.1.2",
"better-auth": "1.7.14",
"better-auth": "1.7.16",
"escape-html": "1.0.3",
"js-yaml": "^5.5.0",
"opening_hours": "^3.15.0",
Expand Down
Loading
Loading