Skip to content

Release version 0.3.11 #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ inherits = "release"
inherits = "wasm"

[workspace.package]
version = "0.3.10"
version = "0.3.11"
edition = "2021"
authors = ["JourneyApps"]
keywords = ["sqlite", "powersync"]
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "co.powersync"
version = "0.3.10"
version = "0.3.11"
description = "PowerSync Core SQLite Extension"

repositories {
Expand Down
2 changes: 1 addition & 1 deletion android/src/prefab/prefab.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "powersync_sqlite_core",
"schema_version": 2,
"dependencies": [],
"version": "0.3.10"
"version": "0.3.11"
}
2 changes: 1 addition & 1 deletion crates/core/src/sync_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl<'a> SyncOperation<'a> {

fn can_apply_sync_changes(&self) -> Result<bool, SQLiteError> {
// Don't publish downloaded data until the upload queue is empty (except for downloaded data
//in priority 0, which is published earlier).
// in priority 0, which is published earlier).

let needs_check = match &self.partial {
Some(p) => !p.priority.may_publish_with_outstanding_uploads(),
Expand Down
7 changes: 7 additions & 0 deletions dart/test/sync_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ void main() {

expect(db.select('select 1 from ps_sync_state where priority = ?', [i]),
isNotEmpty);
// A sync at this priority includes all higher priorities too, so they
// should be cleared.
expect(db.select('select 1 from ps_sync_state where priority < ?', [i]),
isEmpty);
}
});

Expand All @@ -192,10 +196,13 @@ void main() {
isTrue);
expect(db.select('SELECT powersync_last_synced_at() AS r').single,
{'r': isNotNull});
expect(db.select('SELECT priority FROM ps_sync_state').single,
{'priority': 2147483647});

db.execute('SELECT powersync_clear(0)');
expect(db.select('SELECT powersync_last_synced_at() AS r').single,
{'r': isNull});
expect(db.select('SELECT * FROM ps_sync_state'), hasLength(0));
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion powersync-sqlite-core.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'powersync-sqlite-core'
s.version = '0.3.10'
s.version = '0.3.11'
s.summary = 'PowerSync SQLite Extension'
s.description = <<-DESC
PowerSync extension for SQLite.
Expand Down
4 changes: 2 additions & 2 deletions tool/build_xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ function createXcframework() {
<key>MinimumOSVersion</key>
<string>11.0</string>
<key>CFBundleVersion</key>
<string>0.3.10</string>
<string>0.3.11</string>
<key>CFBundleShortVersionString</key>
<string>0.3.10</string>
<string>0.3.11</string>
</dict>
</plist>
EOF
Expand Down