Skip to content

powersync-sqlite-core 0.3.6 #211

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
Nov 11, 2024
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
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 2024-11-11

### Changes

---

Packages with breaking changes:

- There are no breaking changes in this release.

Packages with other changes:

- [`powersync_flutter_libs` - `v0.4.3`](#powersync_flutter_libs---v043)
- [`powersync` - `v1.9.3`](#powersync---v193)
- [`powersync_attachments_helper` - `v0.6.15+2`](#powersync_attachments_helper---v06152)

Packages with dependency updates only:

> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.

- `powersync` - `v1.9.3`
- `powersync_attachments_helper` - `v0.6.15+2`

---

#### `powersync_flutter_libs` - `v0.4.3`

- powersync-sqlite-core 0.3.6 - fixes dangling rows issue


## 2024-11-06

### Changes
Expand Down
2 changes: 1 addition & 1 deletion demos/benchmarks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync: ^1.8.6
powersync: ^1.9.3
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
Expand Down
2 changes: 1 addition & 1 deletion demos/django-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync: ^1.9.2
powersync: ^1.9.3
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-anonymous-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
flutter:
sdk: flutter

powersync: ^1.9.2
powersync: ^1.9.3
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-edge-function-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
flutter:
sdk: flutter

powersync: ^1.9.2
powersync: ^1.9.3
path_provider: ^2.1.1
supabase_flutter: ^2.0.2
path: ^1.8.3
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-simple-chat/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies:

supabase_flutter: ^2.0.2
timeago: ^3.6.0
powersync: ^1.9.2
powersync: ^1.9.3
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist-drift/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync_attachments_helper: ^0.6.15+1
powersync: ^1.9.2
powersync_attachments_helper: ^0.6.15+2
powersync: ^1.9.3
path_provider: ^2.1.1
supabase_flutter: ^2.0.1
path: ^1.8.3
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-todolist-optional-sync/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync: ^1.9.2
powersync: ^1.9.3
path_provider: ^2.1.1
supabase_flutter: ^2.0.1
path: ^1.8.3
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync_attachments_helper: ^0.6.15+1
powersync: ^1.9.2
powersync_attachments_helper: ^0.6.15+2
powersync: ^1.9.3
path_provider: ^2.1.1
supabase_flutter: ^2.0.1
path: ^1.8.3
Expand Down
4 changes: 4 additions & 0 deletions packages/powersync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.9.3

- Update a dependency to the latest release.

## 1.9.2

- [Web] Automatically flush IndexedDB storage to fix durability issues
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync/lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const String libraryVersion = '1.9.2';
const String libraryVersion = '1.9.3';
4 changes: 2 additions & 2 deletions packages/powersync/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: powersync
version: 1.9.2
version: 1.9.3
homepage: https://powersync.com
repository: https://github.com/powersync-ja/powersync.dart
description: PowerSync Flutter SDK - sync engine for building local-first apps.
Expand All @@ -16,7 +16,7 @@ dependencies:
sqlite3: ^2.4.6
universal_io: ^2.0.0
sqlite3_flutter_libs: ^0.5.23
powersync_flutter_libs: ^0.4.2
powersync_flutter_libs: ^0.4.3
meta: ^1.0.0
http: ^1.1.0
uuid: ^4.2.0
Expand Down
28 changes: 28 additions & 0 deletions packages/powersync/test/bucket_storage_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,34 @@ void main() {
await expectNoAssets();
});

test('put | put remove', () async {
await bucketStorage.saveSyncData(SyncDataBatch([
SyncBucketData(bucket: 'bucket1', data: [putAsset1_1]),
]));

await syncLocalChecked(Checkpoint(lastOpId: '1', checksums: [
BucketChecksum(bucket: 'bucket1', checksum: 1),
]));

expect(
await powersync.execute(
"SELECT id, description, make FROM assets WHERE id = 'O1'"),
equals([
{'id': 'O1', 'description': 'bar', 'make': null}
]));

await bucketStorage.saveSyncData(SyncDataBatch([
SyncBucketData(bucket: 'bucket1', data: [putAsset1_3]),
SyncBucketData(bucket: 'bucket1', data: [removeAsset1_5])
]));

await syncLocalChecked(Checkpoint(lastOpId: '5', checksums: [
BucketChecksum(bucket: 'bucket1', checksum: 9),
]));

await expectNoAssets();
});

test('should use subkeys', () async {
// subkeys cause this to be treated as a separate entity in the oplog,
// but same entity in the local db.
Expand Down
4 changes: 4 additions & 0 deletions packages/powersync_attachments_helper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.15+2

- Update a dependency to the latest release.

## 0.6.15+1

- Update a dependency to the latest release.
Expand Down
4 changes: 2 additions & 2 deletions packages/powersync_attachments_helper/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: powersync_attachments_helper
description: A helper library for handling attachments when using PowerSync.
version: 0.6.15+1
version: 0.6.15+2
repository: https://github.com/powersync-ja/powersync.dart
homepage: https://www.powersync.com/
environment:
Expand All @@ -10,7 +10,7 @@ dependencies:
flutter:
sdk: flutter

powersync: ^1.9.2
powersync: ^1.9.3
logging: ^1.2.0
sqlite_async: ^0.11.0
path_provider: ^2.0.13
Expand Down
4 changes: 4 additions & 0 deletions packages/powersync_flutter_libs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.3

- powersync-sqlite-core 0.3.6 - fixes dangling rows issue

## 0.4.2

- Update a dependency to the latest release.
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync_flutter_libs/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ android {
}

dependencies {
implementation 'co.powersync:powersync-sqlite-core:0.3.4'
implementation 'co.powersync:powersync-sqlite-core:0.3.6'
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A new Flutter FFI plugin project.
s.dependency 'Flutter'
s.platform = :ios, '11.0'

s.dependency "powersync-sqlite-core", "~> 0.3.4"
s.dependency "powersync-sqlite-core", "~> 0.3.6"

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A new Flutter FFI plugin project.
s.source_files = 'Classes/**/*'
s.dependency 'FlutterMacOS'

s.dependency "powersync-sqlite-core", "~> 0.3.4"
s.dependency "powersync-sqlite-core", "~> 0.3.6"

s.platform = :osx, '10.11'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync_flutter_libs/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: powersync_flutter_libs
description: PowerSync core binaries for the PowerSync Flutter SDK. Needs to be included for Flutter apps.
version: 0.4.2
version: 0.4.3
repository: https://github.com/powersync-ja/powersync.dart
homepage: https://www.powersync.com/

Expand Down
2 changes: 1 addition & 1 deletion scripts/download_core_binary_demos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import 'dart:io';

final coreUrl =
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.4';
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.6';

void main() async {
final powersyncLibsLinuxPath = "packages/powersync_flutter_libs/linux";
Expand Down
2 changes: 1 addition & 1 deletion scripts/init_powersync_core_binary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'dart:io';
import 'package:melos/melos.dart';

final sqliteUrl =
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.4';
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.6';

void main() async {
final sqliteCoreFilename = getLibraryForPlatform();
Expand Down
Loading