chore: lifecycle metadata (#9103)

feat(server): track endpoint lifecycle
This commit is contained in:
Jason Rasmussen
2024-04-29 09:48:28 -04:00
committed by GitHub
parent 6eb5d2e95e
commit 59caf1fce4
22 changed files with 171 additions and 19 deletions

View File

@@ -61,4 +61,12 @@ export class Version implements IVersion {
const [bool, type] = this.compare(version);
return bool > 0 ? type : VersionType.EQUAL;
}
compareTo(other: Version) {
if (this.isEqual(other)) {
return 0;
}
return this.isNewerThan(other) ? 1 : -1;
}
}