Skip to content

Commit

Permalink
Merge branch 'main' into feat/powersync-sqlcipher
Browse files Browse the repository at this point in the history
  • Loading branch information
mugikhan committed Nov 11, 2024
2 parents 18cad56 + 2286830 commit cc21ff9
Show file tree
Hide file tree
Showing 22 changed files with 90 additions and 20 deletions.
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
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 @@ -12,7 +12,7 @@ dependencies:

sqlite3_flutter_libs: ^0.5.23
powersync_core: ^0.0.1
powersync_flutter_libs: ^0.4.1
powersync_flutter_libs: ^0.4.3
collection: ^1.17.0
pubspec_parse: ^1.3.0
args: ^2.5.0
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
2 changes: 1 addition & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion packages/powersync_core/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';
28 changes: 28 additions & 0 deletions packages/powersync_core/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_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

0 comments on commit cc21ff9

Please sign in to comment.