We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce6c0bb commit 6e93075Copy full SHA for 6e93075
packages/sdk/src/db_connection_builder.ts
@@ -215,13 +215,9 @@ export class DbConnectionBuilder<
215
'Database name or address is required to connect to SpacetimeDB'
216
);
217
}
218
- let versionString: string | undefined = undefined;
219
- if (this.remoteModule.versionInfo) {
220
- versionString = this.remoteModule.versionInfo.cliVersion;
221
- }
222
// We could consider making this an `onConnectError` instead of throwing here.
223
// Ideally, it would be a compile time error, but I'm not sure how to accomplish that.
224
- ensureMinimumVersionOrThrow(versionString);
+ ensureMinimumVersionOrThrow(this.remoteModule.versionInfo?.cliVersion);
225
226
return this.dbConnectionConstructor(
227
new DbConnectionImpl({
0 commit comments