Skip to content

Commit

Permalink
Require new sqlite3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Jan 27, 2025
1 parent d370db8 commit 2325fc5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/powersync_core/lib/web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ export 'src/web/worker_utils.dart' show PowerSyncAdditionalOpenOptions;
export 'package:sqlite_async/sqlite3_web.dart';
export 'package:sqlite_async/web.dart';

import 'package:sqlite_async/web.dart';
import 'powersync_core.dart' as core;
import 'src/open_factory/web/web_open_factory.dart';

/// The default [core.PowerSyncOpenFactory] implementation for the web. Unlike
/// the cross-platform interface, this is guaranteed to implement
/// [WebSqliteOpenFactory].
///
/// This typedef is mostly used internally, e.g. in the web implementation of
/// `powersync_sqlcipher` which relies on the fact that web-specific factory
/// methods are available.
typedef PowerSyncWebOpenFactory = PowerSyncOpenFactory;
4 changes: 3 additions & 1 deletion packages/powersync_core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ environment:
sdk: ^3.4.3

dependencies:
sqlite_async: ^0.11.1
sqlite_async: ^0.11.2
# We only use sqlite3 as a transitive dependency,
# but right now we need a minimum of v2.4.6.
sqlite3: ^2.4.6
# We implement a database controller, which is an interface of sqlite3_web.
sqlite3_web: ^0.3.0
universal_io: ^2.0.0
meta: ^1.0.0
http: ^1.1.0
Expand Down
2 changes: 2 additions & 0 deletions packages/powersync_sqlcipher/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dependencies:
powersync_core: ^1.1.1
powersync_flutter_libs: ^0.4.4
sqlcipher_flutter_libs: ^0.6.4
sqlite3_web: ^0.3.0

dev_dependencies:
flutter_test:
sdk: flutter
Expand Down

0 comments on commit 2325fc5

Please sign in to comment.