revert(version): undo version refactor and tests, keep single-file change

Keep the User-Agent change as a single edit to
packages/core/src/infrastructure/http/request.ts. Remove the @homarr/version
package, the consumer migrations, and the unit tests.
This commit is contained in:
ajnart committed 2026-08-16 15:50:35 +02:00
1 parent 44d7426e9f
commit 1b74d73de0
13 files changed
+19 -154

No files matched your search

-1
View File
@@ -26,7 +26,6 @@
"@homarr/core": "workspace:^0.1.0",
"@homarr/db": "workspace:^0.1.0",
"@homarr/docker": "workspace:^0.1.0",
"@homarr/version": "workspace:^0.1.0",
"posthog-node": "catalog:"
},
"devDependencies": {
@@ -28,8 +28,8 @@ import {
users,
} from "@homarr/db/schema";
import { env as dockerEnv } from "@homarr/docker/env";
import { VERSION } from "@homarr/version";
import packageJson from "../../../package.json";
import { getPostHogClient } from "./client";
const logger = createLogger({ module: "analytics" });
@@ -121,7 +121,7 @@ export const sendServerAnalyticsAsync = async (): Promise<AnalyticsResult> => {
const enabledAuthProviders = (["credentials", "oidc", "ldap"] as const).filter(isProviderEnabled);
const properties: Record<string, unknown> = {
homarrVersion: VERSION,
homarrVersion: packageJson.version,
databaseType: isMysql() ? "mysql" : isPostgresql() ? "postgresql" : "sqlite",
dockerEnabled: Boolean(dockerEnv.ENABLE_DOCKER),
kubernetesEnabled: Boolean(dockerEnv.ENABLE_KUBERNETES),