Skip to content

Commit 7cb9688

Browse files
Brooooooklynclaude
andcommitted
Require platform 1.1.11 in the CLI.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent fa03fd3 commit 7cb9688

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎packages/void/src/cli/client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function readCliVersion(): string | null {
2929
const VOID_CLI_VERSION = readCliVersion();
3030

3131
/** The oldest Void platform release this CLI supports. */
32-
export const MIN_PLATFORM_VERSION = '0.28.0';
32+
export const MIN_PLATFORM_VERSION = '1.1.11';
3333

3434
const RELEASE_VERSION = /^(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$/;
3535

‎packages/void/test/unit/client-platform-version.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function client(options: { checkPlatformVersion?: boolean } = {}): PlatformClien
5353
}
5454

5555
describe('minimum platform version', () => {
56-
it.each(['0.28.0', '0.29.0', '1.0.0', 'hosted'])(
56+
it.each(['1.1.11', '1.2.0', '2.0.0', 'hosted'])(
5757
'accepts a platform reporting %s',
5858
async (version) => {
5959
serve(version);
@@ -63,22 +63,22 @@ describe('minimum platform version', () => {
6363
);
6464

6565
it('sends discovery without the account token', async () => {
66-
serve('0.28.0');
66+
serve('1.1.11');
6767
await client().listProjectChoices();
6868
const [, init] = fetchMock.mock.calls[0] as [string, RequestInit];
6969
expect(init.headers).not.toHaveProperty('Authorization');
7070
});
7171

72-
it.each(['0.22.0', '0.27.0', '0.28.0-1'])('refuses a platform reporting %s', async (version) => {
72+
it.each(['1.1.0', '1.1.9', '1.1.11-1'])('refuses a platform reporting %s', async (version) => {
7373
serve(version);
7474
await expect(client().listProjectChoices()).rejects.toThrow(
75-
`The Void platform at ${origin} runs version ${version}, but this CLI requires 0.28.0 or later. Ask its administrator to upgrade the platform runtime with \`void platform upgrade\`.`,
75+
`The Void platform at ${origin} runs version ${version}, but this CLI requires 1.1.11 or later. Ask its administrator to upgrade the platform runtime with \`void platform upgrade\`.`,
7676
);
7777
expect(requestedPaths()).toEqual(['/.well-known/void-platform']);
7878
});
7979

8080
it('checks once per process and base URL, sharing a concurrent first check', async () => {
81-
serve('0.28.0');
81+
serve('1.1.11');
8282
await Promise.all([client().listProjectChoices(), client().listProjects()]);
8383
await client().listProjectChoices();
8484
expect(requestedPaths().filter((path) => path === '/.well-known/void-platform')).toHaveLength(
@@ -109,7 +109,7 @@ describe('minimum platform version', () => {
109109
['a JSON 404', () => Response.json({ error: 'not found' }, { status: 404 })],
110110
])('refuses a platform that answers discovery with %s', async (_label, answer) => {
111111
serve(answer);
112-
const message = `The Void platform at ${origin} does not report its version, but this CLI requires 0.28.0 or later. Ask its administrator to upgrade the platform runtime with \`void platform upgrade\`.`;
112+
const message = `The Void platform at ${origin} does not report its version, but this CLI requires 1.1.11 or later. Ask its administrator to upgrade the platform runtime with \`void platform upgrade\`.`;
113113
await expect(client().listProjectChoices()).rejects.toThrow(message);
114114
await expect(client().listProjects()).rejects.toThrow(message);
115115
expect(requestedPaths()).toEqual(['/.well-known/void-platform']);

0 commit comments

Comments
 (0)