Skip to content

Commit 2325fc5

Browse files
committed
Require new sqlite3 version
1 parent d370db8 commit 2325fc5

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

packages/powersync_core/lib/web.dart

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ export 'src/web/worker_utils.dart' show PowerSyncAdditionalOpenOptions;
55
export 'package:sqlite_async/sqlite3_web.dart';
66
export 'package:sqlite_async/web.dart';
77

8+
import 'package:sqlite_async/web.dart';
9+
import 'powersync_core.dart' as core;
810
import 'src/open_factory/web/web_open_factory.dart';
911

12+
/// The default [core.PowerSyncOpenFactory] implementation for the web. Unlike
13+
/// the cross-platform interface, this is guaranteed to implement
14+
/// [WebSqliteOpenFactory].
15+
///
16+
/// This typedef is mostly used internally, e.g. in the web implementation of
17+
/// `powersync_sqlcipher` which relies on the fact that web-specific factory
18+
/// methods are available.
1019
typedef PowerSyncWebOpenFactory = PowerSyncOpenFactory;

packages/powersync_core/pubspec.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ environment:
88
sdk: ^3.4.3
99

1010
dependencies:
11-
sqlite_async: ^0.11.1
11+
sqlite_async: ^0.11.2
1212
# We only use sqlite3 as a transitive dependency,
1313
# but right now we need a minimum of v2.4.6.
1414
sqlite3: ^2.4.6
15+
# We implement a database controller, which is an interface of sqlite3_web.
16+
sqlite3_web: ^0.3.0
1517
universal_io: ^2.0.0
1618
meta: ^1.0.0
1719
http: ^1.1.0

packages/powersync_sqlcipher/pubspec.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ dependencies:
1515
powersync_core: ^1.1.1
1616
powersync_flutter_libs: ^0.4.4
1717
sqlcipher_flutter_libs: ^0.6.4
18+
sqlite3_web: ^0.3.0
19+
1820
dev_dependencies:
1921
flutter_test:
2022
sdk: flutter

0 commit comments

Comments
 (0)