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
@@ -29,7 +29,6 @@
"@homarr/docker": "workspace:^0.1.0",
"@homarr/integrations": "workspace:^0.1.0",
"@homarr/redis": "workspace:^0.1.0",
"@homarr/version": "workspace:^0.1.0",
"dayjs": "catalog:",
"octokit": "catalog:",
"superjson": "catalog:",
@@ -6,7 +6,8 @@ import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/h
import { createLogger } from "@homarr/core/infrastructure/logs";
import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error";
import { createGetSetChannel, createLockChannel } from "@homarr/redis";
import { VERSION } from "@homarr/version";
import packageJson from "../../../package.json";
const logger = createLogger({ module: "updateCheckerRequestHandler" });
@@ -21,7 +22,7 @@ type UpdateCheckCacheEntry = {
checkedAt: number | null;
};
const updateCheckCacheVersion = `v2:${VERSION}`;
const updateCheckCacheVersion = `v2:${packageJson.version}`;
const freshUpdateCheckChannel = createGetSetChannel<UpdateCheckCacheEntry>(
`update-checker:fresh:${updateCheckCacheVersion}`,
);
@@ -68,7 +69,7 @@ const getCachedAvailableUpdatesAsync = async (): Promise<UpdateCheckCacheEntry>
try {
const attemptedAt = Date.now();
const availableUpdates = await getAvailableUpdatesAsync(VERSION);
const availableUpdates = await getAvailableUpdatesAsync(packageJson.version);
const result: UpdateCheckCacheEntry = {
availableUpdates,
attemptedAt,