Skip to content

Commit 56f37c8

Browse files
authored
Merge pull request #62 from powersync-ja/release
Release version 0.3.11
2 parents 67d584c + 5cbd17e commit 56f37c8

File tree

8 files changed

+18
-11
lines changed

8 files changed

+18
-11
lines changed

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ inherits = "release"
2929
inherits = "wasm"
3030

3131
[workspace.package]
32-
version = "0.3.10"
32+
version = "0.3.11"
3333
edition = "2021"
3434
authors = ["JourneyApps"]
3535
keywords = ["sqlite", "powersync"]

android/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "co.powersync"
9-
version = "0.3.10"
9+
version = "0.3.11"
1010
description = "PowerSync Core SQLite Extension"
1111

1212
repositories {

android/src/prefab/prefab.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"name": "powersync_sqlite_core",
33
"schema_version": 2,
44
"dependencies": [],
5-
"version": "0.3.10"
5+
"version": "0.3.11"
66
}

crates/core/src/sync_local.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl<'a> SyncOperation<'a> {
6363

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

6868
let needs_check = match &self.partial {
6969
Some(p) => !p.priority.may_publish_with_outstanding_uploads(),

dart/test/sync_test.dart

+7
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ void main() {
180180

181181
expect(db.select('select 1 from ps_sync_state where priority = ?', [i]),
182182
isNotEmpty);
183+
// A sync at this priority includes all higher priorities too, so they
184+
// should be cleared.
185+
expect(db.select('select 1 from ps_sync_state where priority < ?', [i]),
186+
isEmpty);
183187
}
184188
});
185189

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

196202
db.execute('SELECT powersync_clear(0)');
197203
expect(db.select('SELECT powersync_last_synced_at() AS r').single,
198204
{'r': isNull});
205+
expect(db.select('SELECT * FROM ps_sync_state'), hasLength(0));
199206
});
200207
});
201208
}

powersync-sqlite-core.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'powersync-sqlite-core'
3-
s.version = '0.3.10'
3+
s.version = '0.3.11'
44
s.summary = 'PowerSync SQLite Extension'
55
s.description = <<-DESC
66
PowerSync extension for SQLite.

tool/build_xcframework.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function createXcframework() {
2828
<key>MinimumOSVersion</key>
2929
<string>11.0</string>
3030
<key>CFBundleVersion</key>
31-
<string>0.3.10</string>
31+
<string>0.3.11</string>
3232
<key>CFBundleShortVersionString</key>
33-
<string>0.3.10</string>
33+
<string>0.3.11</string>
3434
</dict>
3535
</plist>
3636
EOF

0 commit comments

Comments
 (0)