Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add comment about using semverCompare to handle the database pseudo semantic version (#4216)

h3n4l93fcc9c61253
diff --git a/frontend/src/utils/util.ts b/frontend/src/utils/util.ts
index b747e9529b..4b9d0a37e5 100644
--- a/frontend/src/utils/util.ts
+++ b/frontend/src/utils/util.ts
@@ -190,6 +190,7 @@ export function removeElementBySelector(selector: string) {
}
// semverCompare compares version string v1 is greater than v2.
+// It should be used to handle the database pseudo semantic version likes "8.0.29-0ubuntu0.20.04.3".
export function semverCompare(v1: string, v2: string) {
const formatedV1 = semver.coerce(v1);
const formatedV2 = semver.coerce(v2);