File tree 19 files changed +73
-32
lines changed
supabase-edge-function-auth
powersync_attachments_helper
19 files changed +73
-32
lines changed Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ ## 2024-07-04
7
+
8
+ ### Changes
9
+
10
+ ---
11
+
12
+ Packages with breaking changes:
13
+
14
+ - There are no breaking changes in this release.
15
+
16
+ Packages with other changes:
17
+
18
+ - [ ` powersync ` - ` v1.3.0-alpha.8 ` ] ( #powersync---v130-alpha8 )
19
+ - [ ` powersync_attachments_helper ` - ` v0.3.0-alpha.3 ` ] ( #powersync_attachments_helper---v030-alpha3 )
20
+
21
+ Packages with dependency updates only:
22
+
23
+ > 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.
24
+
25
+ - ` powersync_attachments_helper ` - ` v0.3.0-alpha.3 `
26
+
27
+ ---
28
+
29
+ #### ` powersync ` - ` v1.3.0-alpha.8 `
30
+
31
+ - ** FIX** (powersync-attachements-helper): pubspec file (#29 ).
32
+ - ** DOCS** : update readme and getting started (#51 ).
33
+
34
+
6
35
## 2024-05-30
7
36
8
37
### Changes
Original file line number Diff line number Diff line change @@ -480,10 +480,10 @@ packages:
480
480
dependency: "direct main"
481
481
description:
482
482
name: sqlite_async
483
- sha256: bf989697c50db97043702c625330895a8ebec4491548a8e46d315b9f60b7582e
483
+ sha256: "7c5a9bec86b6f5b7511b9ba30974fa7ea470aee2dc0d5b7021f6321a439a8d63"
484
484
url: "https://pub.dev"
485
485
source: hosted
486
- version: "0.7.0-alpha.5 "
486
+ version: "0.8.0 "
487
487
stack_trace:
488
488
dependency: transitive
489
489
description:
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ dependencies:
11
11
flutter :
12
12
sdk : flutter
13
13
14
- powersync : ^ 1.3.0-alpha.7
14
+ powersync : 1.3.0-alpha.8
15
15
path_provider : ^2.1.1
16
16
supabase_flutter : ^2.0.2
17
17
path : ^1.8.3
18
18
logging : ^1.2.0
19
- sqlite_async : 0.7.0-alpha.5
19
+ sqlite_async : ^0.8.0
20
20
universal_io : ^2.2.2
21
21
22
22
dev_dependencies :
Original file line number Diff line number Diff line change @@ -480,10 +480,10 @@ packages:
480
480
dependency: "direct main"
481
481
description:
482
482
name: sqlite_async
483
- sha256: bf989697c50db97043702c625330895a8ebec4491548a8e46d315b9f60b7582e
483
+ sha256: "7c5a9bec86b6f5b7511b9ba30974fa7ea470aee2dc0d5b7021f6321a439a8d63"
484
484
url: "https://pub.dev"
485
485
source: hosted
486
- version: "0.7.0-alpha.5 "
486
+ version: "0.8.0 "
487
487
stack_trace:
488
488
dependency: transitive
489
489
description:
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ dependencies:
11
11
flutter :
12
12
sdk : flutter
13
13
14
- powersync : ^ 1.3.0-alpha.7
14
+ powersync : 1.3.0-alpha.8
15
15
path_provider : ^2.1.1
16
16
supabase_flutter : ^2.0.2
17
17
path : ^1.8.3
18
18
logging : ^1.2.0
19
- sqlite_async : 0.7.0-alpha.5
19
+ sqlite_async : ^0.8.0
20
20
universal_io : ^2.2.2
21
21
22
22
dev_dependencies :
Original file line number Diff line number Diff line change @@ -536,10 +536,10 @@ packages:
536
536
dependency: transitive
537
537
description:
538
538
name: sqlite_async
539
- sha256: bf989697c50db97043702c625330895a8ebec4491548a8e46d315b9f60b7582e
539
+ sha256: "7c5a9bec86b6f5b7511b9ba30974fa7ea470aee2dc0d5b7021f6321a439a8d63"
540
540
url: "https://pub.dev"
541
541
source: hosted
542
- version: "0.7.0-alpha.5 "
542
+ version: "0.8.0 "
543
543
stack_trace:
544
544
dependency: transitive
545
545
description:
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ dependencies:
37
37
38
38
supabase_flutter : ^1.10.25
39
39
timeago : ^3.6.0
40
- powersync : ^ 1.3.0-alpha.7
40
+ powersync : 1.3.0-alpha.8
41
41
path_provider : ^2.1.1
42
42
path : ^1.8.3
43
43
logging : ^1.2.0
Original file line number Diff line number Diff line change @@ -591,10 +591,10 @@ packages:
591
591
dependency: "direct main"
592
592
description:
593
593
name: sqlite_async
594
- sha256: bf989697c50db97043702c625330895a8ebec4491548a8e46d315b9f60b7582e
594
+ sha256: "7c5a9bec86b6f5b7511b9ba30974fa7ea470aee2dc0d5b7021f6321a439a8d63"
595
595
url: "https://pub.dev"
596
596
source: hosted
597
- version: "0.7.0-alpha.5 "
597
+ version: "0.8.0 "
598
598
stack_trace:
599
599
dependency: transitive
600
600
description:
Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ environment:
10
10
dependencies :
11
11
flutter :
12
12
sdk : flutter
13
- powersync_attachments_helper : ^0.3.0-alpha.2
13
+ powersync_attachments_helper : ^0.3.0-alpha.3
14
14
15
- powersync : ^ 1.3.0-alpha.7
15
+ powersync : 1.3.0-alpha.8
16
16
path_provider : ^2.1.1
17
17
supabase_flutter : ^2.0.1
18
18
path : ^1.8.3
19
19
logging : ^1.2.0
20
20
camera : ^0.10.5+7
21
21
image : ^4.1.3
22
22
universal_io : ^2.2.2
23
- sqlite_async : 0.7.0-alpha.5
23
+ sqlite_async : ^0.8.0
24
24
25
25
dev_dependencies :
26
26
flutter_test :
Original file line number Diff line number Diff line change
1
+ ## 1.3.0-alpha.8
2
+
3
+ - ** FIX** (powersync-attachements-helper): pubspec file (#29 ).
4
+ - ** DOCS** : update readme and getting started (#51 ).
5
+ - Updates and uses the latest ` sqlite_async ` package.
6
+
1
7
## 1.3.0-alpha.7
2
8
3
9
- Updates and uses the latest ` sqlite_async ` alpha.
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ Future<void> _powerSyncDatabaseIsolate(
325
325
}
326
326
327
327
runZonedGuarded (() async {
328
- db = await args.dbRef.openFactory
328
+ db = args.dbRef.openFactory
329
329
.open (SqliteOpenOptions (primaryConnection: false , readOnly: false ));
330
330
final connection = SyncSqliteConnection (db! , mutex);
331
331
Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
+ import 'package:universal_io/io.dart' ;
2
3
import 'dart:math' ;
3
4
4
5
import 'package:powersync/sqlite_async.dart' ;
@@ -28,8 +29,8 @@ abstract class AbstractPowerSyncOpenFactory extends DefaultSqliteOpenFactory {
28
29
}
29
30
30
31
@override
31
- FutureOr < CommonDatabase > open (SqliteOpenOptions options) async {
32
- var db = await _retriedOpen (options);
32
+ CommonDatabase open (SqliteOpenOptions options) {
33
+ var db = _retriedOpen (options);
33
34
for (final statement in pragmaStatements (options)) {
34
35
db.select (statement);
35
36
}
@@ -48,15 +49,15 @@ abstract class AbstractPowerSyncOpenFactory extends DefaultSqliteOpenFactory {
48
49
/// Usually a delay of 1-2ms is sufficient for the next try to succeed, but
49
50
/// we increase the retry delay up to 16ms per retry, and a maximum of 500ms
50
51
/// in total.
51
- FutureOr < CommonDatabase > _retriedOpen (SqliteOpenOptions options) async {
52
+ CommonDatabase _retriedOpen (SqliteOpenOptions options) {
52
53
final stopwatch = Stopwatch ()..start ();
53
54
var retryDelay = 2 ;
54
55
while (stopwatch.elapsedMilliseconds < 500 ) {
55
56
try {
56
57
return super .open (options);
57
58
} catch (e) {
58
59
if (e is SqliteException && e.resultCode == 5 ) {
59
- await Future . delayed (Duration (milliseconds: retryDelay));
60
+ sleep (Duration (milliseconds: retryDelay));
60
61
retryDelay = min (retryDelay * 2 , 16 );
61
62
continue ;
62
63
}
Original file line number Diff line number Diff line change 1
- import 'dart:async' ;
2
- import 'dart:io' ;
1
+ import 'package:universal_io/io.dart' ;
3
2
import 'dart:isolate' ;
4
3
import 'package:powersync/src/open_factory/abstract_powersync_open_factory.dart' ;
5
4
import 'package:sqlite_async/sqlite3.dart' as sqlite;
@@ -59,10 +58,10 @@ class PowerSyncOpenFactory extends AbstractPowerSyncOpenFactory {
59
58
}
60
59
61
60
@override
62
- FutureOr < CommonDatabase > open (SqliteOpenOptions options) async {
61
+ CommonDatabase open (SqliteOpenOptions options) {
63
62
// ignore: deprecated_member_use_from_same_package
64
63
_sqliteSetup? .setup ();
65
- var db = await super .open (options);
64
+ var db = super .open (options);
66
65
db.execute ('PRAGMA recursive_triggers = TRUE' );
67
66
return db;
68
67
}
Original file line number Diff line number Diff line change 1
1
name : powersync
2
- version : 1.3.0-alpha.7
2
+ version : 1.3.0-alpha.8
3
3
homepage : https://powersync.com
4
4
repository : https://github.com/powersync-ja/powersync.dart
5
5
description : PowerSync Flutter SDK - keep PostgreSQL databases in sync with on-device SQLite databases.
@@ -10,7 +10,8 @@ dependencies:
10
10
flutter :
11
11
sdk : flutter
12
12
13
- sqlite_async : 0.7.0-alpha.5
13
+ sqlite_async : ^0.8.0
14
+ universal_io : ^2.0.0
14
15
sqlite3_flutter_libs : ^0.5.15
15
16
meta : ^1.0.0
16
17
http : ^1.1.0
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class TestOpenFactory extends PowerSyncOpenFactory {
14
14
TestOpenFactory ({required super .path});
15
15
16
16
@override
17
- FutureOr < CommonDatabase > open (SqliteOpenOptions options) {
17
+ CommonDatabase open (SqliteOpenOptions options) {
18
18
sqlite_open.open.overrideFor (sqlite_open.OperatingSystem .linux, () {
19
19
return DynamicLibrary .open ('libsqlite3.so.0' );
20
20
});
Original file line number Diff line number Diff line change
1
+ ## 0.3.0-alpha.3
2
+
3
+ - Update a dependency to the latest release.
4
+
1
5
## 0.3.0-alpha.2
2
6
3
7
> Note: This release has breaking changes.
Original file line number Diff line number Diff line change 1
1
name : powersync_attachments_helper
2
2
description : A helper library for handling attachments when using PowerSync.
3
- version : 0.3.0-alpha.2
3
+ version : 0.3.0-alpha.3
4
4
repository : https://github.com/powersync-ja/powersync.dart
5
5
homepage : https://www.powersync.com/
6
6
environment :
@@ -10,7 +10,7 @@ dependencies:
10
10
flutter :
11
11
sdk : flutter
12
12
13
- powersync : ^ 1.3.0-alpha.7
13
+ powersync : 1.3.0-alpha.8
14
14
logging : ^1.2.0
15
15
sqlite3 : " ^2.4.4"
16
16
path_provider : ^2.0.13
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ packages:
266
266
source: hosted
267
267
version: "2.1.0"
268
268
path:
269
- dependency: transitive
269
+ dependency: "direct dev"
270
270
description:
271
271
name: path
272
272
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ description: A sample command-line application.
3
3
version : 1.0.0
4
4
5
5
environment :
6
- sdk : ' >=3.3.0 <4.0.0'
6
+ sdk : " >=3.3.0 <4.0.0"
7
7
8
8
# Add regular dependencies here.
9
9
10
10
dev_dependencies :
11
11
lints : ^2.1.1
12
12
melos : ^3.4.0
13
13
test : ^1.25.0
14
+ path : ^1.0.0
You can’t perform that action at this time.
0 commit comments