Skip to content

Commit 5c840c2

Browse files
committed
Increase supported version range.
1 parent 77e196d commit 5c840c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/common/src/client/AbstractPowerSyncDatabase.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,13 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
314314
.map((n) => parseInt(n));
315315
} catch (e) {
316316
throw new Error(
317-
`Unsupported powersync extension version. Need >=0.2.0 <0.4.0, got: ${this.sdkVersion}. Details: ${e.message}`
317+
`Unsupported powersync extension version. Need >=0.2.0 <1.0.0, got: ${this.sdkVersion}. Details: ${e.message}`
318318
);
319319
}
320320

321-
// Validate >=0.2.0 <0.4.0
322-
if (versionInts[0] != 0 || (versionInts[1] != 2 && versionInts[1] != 3) || versionInts[2] < 0) {
323-
throw new Error(`Unsupported powersync extension version. Need >=0.2.0 <0.4.0, got: ${this.sdkVersion}`);
321+
// Validate >=0.2.0 <1.0.0
322+
if (versionInts[0] != 0 || versionInts[1] < 2 || versionInts[2] < 0) {
323+
throw new Error(`Unsupported powersync extension version. Need >=0.2.0 <1.0.0, got: ${this.sdkVersion}`);
324324
}
325325
}
326326

0 commit comments

Comments
 (0)