Versions 67 to 68
Lines 4–14 at 68 (were 4–12 at 67)
66
7−import { readFileSync, statSync } from "node:fs";
1012
1214
Lines 78–143 at 68 (were 76–87 at 67)
7678
7880
83+
91+
80− * When this client was bundled for a server and that server is now a different
81− * commit. Undefined when they match, when the server can't be asked, or when
82− * this client runs from a checkout, which abso sync updates and no server serves.
84−export async function newerCommitNote(server: string): Promise<string | undefined> {
106+ const kept = JSON.parse(readFileSync(file, "utf8")) as { checked?: unknown; latest?: unknown };
107+ if (typeof kept.checked === "number" && now - kept.checked < DAY && typeof kept.latest === "string")
114+ if (typeof body.version !== "string" || !/^\d+\.\d+\.\d+$/.test(body.version)) return undefined;
128+
140+ if (pkg) return newerPackageNote(pkg, at.home ?? homedir(), at.registry ?? NPM_LATEST, at.now ?? Date.now());
- MCP
- compare on this site's /mcp
- CLI
- abso diff 67 68 client/src/client-version.ts --json
- JSON
- /christopher/abso-core/compare/67..68?file=client%2Fsrc%2Fclient-version.ts&format=json