Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Mar 5, 2025

When opening databases, we check whether the version of the core extension we've loaded is compatible with our Dart SDK. This check was not updated for the update to bucket priorities, allowing SDK versions <0.3.11 to be used. This breaks immediately afterwards when selecting from ps_sync_state.

This updates the version check to the new minimum version and refactors the check to make minimum and maximum versions easier to update the future.
When the version check fails on the web (the most likely cause since we expect powersync and powersync_flutter_libs to be updated as one, but require users to update our WebAssembly files manually), this also improves the error message to point to the docs explaining how to update these assets.

Resolves #248.

rkistner
rkistner previously approved these changes Mar 5, 2025
@rkistner
Copy link
Contributor

rkistner commented Mar 5, 2025

Just need to update the tests to use the new extension

@simolus3 simolus3 merged commit b866741 into main Mar 6, 2025
5 checks passed
@simolus3 simolus3 deleted the version-check-on-init branch March 6, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version 1.12.0 Initialization error in web build

2 participants