Skip to content

Commit 40dd302

Browse files
chrisbobbegnprice
authored andcommitted
api: Don't allow connecting to servers <7.0; show nag banner on <8.0
The last one of these was 48f1e47 on 2025-04-04, released in v27.234 on 2025-04-24. As mentioned there, the last 6.x release, 6.2, went out on 2023-05-19, which is outside the 18-month window. We've been showing the nag banner for that release since v27.234, so we can expect server admins to have seen and acted on it, and we can refuse to connect. The last 7.x release, 7.5, went out on 2023-11-16, which turns 18 months old tomorrow, 2025-05-16. So we can start to show the nag banner for that.
1 parent 91f5c32 commit 40dd302

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/apiErrors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const interpretApiResponse = (httpStatus: number, data: mixed): mixed =>
182182
*/
183183
// This should lag a bit behind the threshold version for ServerCompatBanner
184184
// (kMinSupportedVersion), to give users time to see and act on the banner.
185-
export const kMinAllowedServerVersion: ZulipVersion = new ZulipVersion('5.0');
185+
export const kMinAllowedServerVersion: ZulipVersion = new ZulipVersion('7.0');
186186

187187
/**
188188
* An error we throw in API bindings on finding a server is too old.

src/common/ServerCompatBanner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ export const kServerSupportDocUrl: URL = new URL(
3232
* See also kMinAllowedServerVersion in apiErrors.js, for the version below
3333
* which we just refuse to connect.
3434
*/
35-
export const kMinSupportedVersion: ZulipVersion = new ZulipVersion('7.0');
35+
export const kMinSupportedVersion: ZulipVersion = new ZulipVersion('8.0');
3636

3737
/**
3838
* The next value we'll give to kMinSupportedVersion in the future.
3939
*
4040
* This should be the next major Zulip Server version after kMinSupportedVersion.
4141
*/
42-
export const kNextMinSupportedVersion: ZulipVersion = new ZulipVersion('8.0');
42+
export const kNextMinSupportedVersion: ZulipVersion = new ZulipVersion('9.0');
4343

4444
type Props = $ReadOnly<{||}>;
4545

0 commit comments

Comments
 (0)