Skip to content

Commit bc40db5

Browse files
committed
fix: include rc.0 and default to false with invalid semver
1 parent 657f1bb commit bc40db5

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
@@ -539,5 +539,9 @@ export const activateValidation = (): SchemaValidationThunkAction<void> => {
539539
export const hasErrorAndLogValidationActionSupport = (
540540
serverVersion: string
541541
) => {
542-
return semver.gte(serverVersion, '8.1.0');
542+
try {
543+
return semver.gte(serverVersion, '8.1.0-rc.0');
544+
} catch (err) {
545+
return false;
546+
}
543547
};

0 commit comments

Comments
 (0)