Skip to content

Commit 61fac6a

Browse files
committed
fix: include rc.0 and default to false with invalid semver
1 parent c55f332 commit 61fac6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/compass-schema-validation/src/modules/validation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,9 @@ export const activateValidation = (): SchemaValidationThunkAction<void> => {
489489
export const hasErrorAndLogValidationActionSupport = (
490490
serverVersion: string
491491
) => {
492-
return semver.gte(serverVersion, '8.1.0');
492+
try {
493+
return semver.gte(serverVersion, '8.1.0-rc.0');
494+
} catch (err) {
495+
return false;
496+
}
493497
};

0 commit comments

Comments
 (0)