Files
gunshiz be095ab236
CI / Verify (push) Successful in 1m8s
CI / Build immutable images and deploy (push) Has been skipped
feat(deploy): notify clients of new releases
2026-08-29 07:13:04 +00:00

16 lines
470 B
TypeScript

export function normalizeDeploymentId(
value: string | null | undefined,
): string | null {
const normalized = value?.trim();
return normalized ? normalized : null;
}
export function hasDeploymentChanged(
current: string | null | undefined,
next: string | null | undefined,
): boolean {
const currentId = normalizeDeploymentId(current);
const nextId = normalizeDeploymentId(next);
return currentId !== null && nextId !== null && currentId !== nextId;
}