Skip to content

powersync-sqlite-core 0.3.0 #185

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 4 commits into from
Oct 14, 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
8 changes: 4 additions & 4 deletions demos/django-todolist/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- powersync-sqlite-core (0.2.1)
- powersync-sqlite-core (0.3.0)
- powersync_flutter_libs (0.0.1):
- Flutter
- powersync-sqlite-core (~> 0.2.1)
- powersync-sqlite-core (~> 0.3.0)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
Expand Down Expand Up @@ -56,8 +56,8 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
powersync-sqlite-core: 38ead13d8b21920cfbc79e9b3415b833574a506d
powersync_flutter_libs: 9d26987384a376a18879b9d4fa71629407683163
powersync-sqlite-core: ad0e70e23bacd858fe2e79032dc4aabdf972d1bd
powersync_flutter_libs: 064c44b51fb07df9486b735fb96ab7608a89e18b
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqlite3: 0bb0e6389d824e40296f531b858a2a0b71c0d2fb
sqlite3_flutter_libs: c00457ebd31e59fa6bb830380ddba24d44fbcd3b
Expand Down
2 changes: 1 addition & 1 deletion demos/django-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.8.2"
version: "1.8.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-anonymous-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.8.2"
version: "1.8.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-edge-function-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.8.2"
version: "1.8.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-simple-chat/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.8.2"
version: "1.8.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
8 changes: 4 additions & 4 deletions demos/supabase-todolist-drift/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- powersync-sqlite-core (0.1.6)
- powersync-sqlite-core (0.3.0)
- powersync_flutter_libs (0.0.1):
- Flutter
- powersync-sqlite-core (~> 0.1.6)
- powersync-sqlite-core (~> 0.3.0)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
Expand Down Expand Up @@ -73,8 +73,8 @@ SPEC CHECKSUMS:
camera_avfoundation: dd002b0330f4981e1bbcb46ae9b62829237459a4
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
powersync-sqlite-core: 4c38c8f470f6dca61346789fd5436a6826d1e3dd
powersync_flutter_libs: 5d6b132a398de442c0853a8b14bfbb62cd4ff5a1
powersync-sqlite-core: ad0e70e23bacd858fe2e79032dc4aabdf972d1bd
powersync_flutter_libs: 064c44b51fb07df9486b735fb96ab7608a89e18b
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqlite3: 292c3e1bfe89f64e51ea7fc7dab9182a017c8630
sqlite3_flutter_libs: c00457ebd31e59fa6bb830380ddba24d44fbcd3b
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist-drift/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -686,14 +686,14 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.8.2"
version: "1.8.4"
powersync_attachments_helper:
dependency: "direct main"
description:
path: "../../packages/powersync_attachments_helper"
relative: true
source: path
version: "0.6.6"
version: "0.6.8"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
8 changes: 4 additions & 4 deletions demos/supabase-todolist-optional-sync/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- powersync-sqlite-core (0.2.1)
- powersync-sqlite-core (0.3.0)
- powersync_flutter_libs (0.0.1):
- Flutter
- powersync-sqlite-core (~> 0.2.1)
- powersync-sqlite-core (~> 0.3.0)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
Expand Down Expand Up @@ -73,8 +73,8 @@ SPEC CHECKSUMS:
camera_avfoundation: 759172d1a77ae7be0de08fc104cfb79738b8a59e
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
powersync-sqlite-core: 38ead13d8b21920cfbc79e9b3415b833574a506d
powersync_flutter_libs: 9d26987384a376a18879b9d4fa71629407683163
powersync-sqlite-core: ad0e70e23bacd858fe2e79032dc4aabdf972d1bd
powersync_flutter_libs: 064c44b51fb07df9486b735fb96ab7608a89e18b
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqlite3: 0bb0e6389d824e40296f531b858a2a0b71c0d2fb
sqlite3_flutter_libs: c00457ebd31e59fa6bb830380ddba24d44fbcd3b
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-todolist-optional-sync/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.8.2"
version: "1.8.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
8 changes: 4 additions & 4 deletions demos/supabase-todolist/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- powersync-sqlite-core (0.2.1)
- powersync-sqlite-core (0.3.0)
- powersync_flutter_libs (0.0.1):
- Flutter
- powersync-sqlite-core (~> 0.2.1)
- powersync-sqlite-core (~> 0.3.0)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
Expand Down Expand Up @@ -73,8 +73,8 @@ SPEC CHECKSUMS:
camera_avfoundation: dd002b0330f4981e1bbcb46ae9b62829237459a4
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
powersync-sqlite-core: 38ead13d8b21920cfbc79e9b3415b833574a506d
powersync_flutter_libs: 9d26987384a376a18879b9d4fa71629407683163
powersync-sqlite-core: ad0e70e23bacd858fe2e79032dc4aabdf972d1bd
powersync_flutter_libs: 064c44b51fb07df9486b735fb96ab7608a89e18b
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqlite3: 0bb0e6389d824e40296f531b858a2a0b71c0d2fb
sqlite3_flutter_libs: c00457ebd31e59fa6bb830380ddba24d44fbcd3b
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,14 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.8.2"
version: "1.8.4"
powersync_attachments_helper:
dependency: "direct main"
description:
path: "../../packages/powersync_attachments_helper"
relative: true
source: path
version: "0.6.6"
version: "0.6.8"
powersync_flutter_libs:
dependency: "direct overridden"
description:
Expand Down
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ scripts:

test:web:
description: Run web tests in a specific package.
run: dart test -p chrome
run: dart test -p chrome --concurrency=1
exec:
concurrency: 1
packageFilters:
Expand Down
6 changes: 4 additions & 2 deletions packages/powersync/bin/setup_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ void main(List<String> arguments) async {
}

bool coreVersionIsInRange(String tag) {
//Sets the range of powersync core version that is compatible with the sqlite3 version
VersionConstraint constraint = VersionConstraint.parse('>=0.2.0 <0.3.0');
// Sets the range of powersync core version that is compatible with the sqlite3 version
// We're a little more selective in the versions chosen here than the range
// we're compatible with.
VersionConstraint constraint = VersionConstraint.parse('>=0.3.0 <0.4.0');
List<String> parts = tag.split('-');
String powersyncPart = parts[1];

Expand Down
10 changes: 6 additions & 4 deletions packages/powersync/lib/src/database/powersync_db_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,15 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
version.split(RegExp(r'[./]')).take(3).map(int.parse).toList();
} catch (e) {
throw SqliteException(1,
'Unsupported powersync extension version. Need ^0.2.0, got: $version. Details: $e');
'Unsupported powersync extension version. Need >=0.2.0 <1.0.0, got: $version. Details: $e');
}

// Validate ^0.2.0
if (versionInts[0] != 0 || versionInts[1] != 2 || versionInts[2] < 0) {
// Validate >=0.2.0 <1.0.0
if (versionInts[0] != 0 ||
(versionInts[1] < 2) ||
(versionInts[1] == 2 && versionInts[2] < 0)) {
throw SqliteException(1,
'Unsupported powersync extension version. Need ^0.2.0, got: $version');
'Unsupported powersync extension version. Need >=0.2.0 <1.0.0, got: $version');
}
}

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.2.1'
implementation 'co.powersync:powersync-sqlite-core:0.3.0'
}
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.2.1"
s.dependency "powersync-sqlite-core", "~> 0.3.0"

# 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.2.1"
s.dependency "powersync-sqlite-core", "~> 0.3.0"

s.platform = :osx, '10.11'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
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.2.1';
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.0';

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.2.1';
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.0';

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