Skip to content

Commit 42ca7fb

Browse files
committed
Update dependencies in powersync_core
1 parent 05e0526 commit 42ca7fb

File tree

10 files changed

+19
-13
lines changed

10 files changed

+19
-13
lines changed

packages/powersync_core/pubspec.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ dependencies:
2020
logging: ^1.1.1
2121
collection: ^1.17.0
2222
fetch_client: ^1.1.2
23-
js: ^0.7.0
2423
web: ^1.0.0
24+
2525
dev_dependencies:
26-
dcli: ^4.0.0
27-
lints: ^3.0.0
26+
lints: ^5.1.1
2827
test: ^1.25.0
2928
test_api: ^0.7.0
30-
path_provider: ^2.0.13
3129
shelf: ^1.4.1
3230
shelf_router: ^1.1.4
3331
shelf_static: ^1.1.2

packages/powersync_core/test/connected_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@TestOn('!browser')
2+
library;
3+
24
// This test uses a local server which is possible to control in Web via hybrid main,
35
// but this makes the test significantly more complex.
46
import 'dart:async';

packages/powersync_core/test/performance_native_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@TestOn('!browser')
2+
library;
3+
24
import 'package:powersync_core/powersync_core.dart';
35
import 'package:test/test.dart';
46

packages/powersync_core/test/powersync_native_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@TestOn('!browser')
2+
library;
3+
24
import 'dart:async';
35
import 'dart:math';
46

packages/powersync_core/test/server/worker_server.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'dart:io';
22

3-
import 'package:dcli/dcli.dart';
43
import 'package:path/path.dart' as p;
54
import 'package:shelf/shelf.dart';
65
import 'package:shelf/shelf_io.dart' as io;
@@ -9,8 +8,7 @@ import 'package:stream_channel/stream_channel.dart';
98
import 'asset_server.dart';
109

1110
Future<void> hybridMain(StreamChannel<Object?> channel) async {
12-
final assetsDirectory = p
13-
.normalize(p.join(DartScript.self.pathToScriptDirectory, '../../assets'));
11+
final assetsDirectory = p.normalize('assets');
1412

1513
// Copy sqlite3.wasm file expected by the worker
1614
final sqliteOutputPath = p.join(assetsDirectory, 'sqlite3.wasm');

packages/powersync_core/test/stream_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@TestOn('!browser')
2+
library;
3+
24
import 'dart:async';
35
import 'dart:convert';
46
import 'dart:io';

packages/powersync_core/test/streaming_sync_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@TestOn('!browser')
2+
library;
3+
24
// TODO setup hybrid server
35
import 'dart:async';
46
import 'dart:math';

packages/powersync_core/test/upload_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@TestOn('!browser')
2+
library;
23

34
import 'package:powersync_core/powersync_core.dart';
45
import 'package:test/test.dart';

packages/powersync_core/test/utils/web_test_utils.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import 'dart:async';
2-
import 'dart:html';
2+
import 'dart:js_interop';
33

4-
import 'package:js/js.dart';
54
import 'package:logging/logging.dart';
65
import 'package:powersync_core/powersync_core.dart';
76
import 'package:sqlite_async/sqlite3_common.dart';
87
import 'package:sqlite_async/sqlite_async.dart';
98
import 'package:test/test.dart';
9+
import 'package:web/web.dart' show Blob, BlobPropertyBag;
1010
import 'abstract_test_utils.dart';
1111

1212
@JS('URL.createObjectURL')
@@ -29,8 +29,9 @@ class TestUtils extends AbstractTestUtils {
2929
// Cross origin workers are not supported, but we can supply a Blob
3030
final workerUriSource = 'http://localhost:$port/powersync_db.worker.js';
3131

32-
final blob = Blob(<String>['importScripts("$workerUriSource");'],
33-
'application/javascript');
32+
final blob = Blob(
33+
<JSString>['importScripts("$workerUriSource");'.toJS].toJS,
34+
BlobPropertyBag(type: 'application/javascript'));
3435
workerUri = _createObjectURL(blob);
3536
}
3637

packages/powersync_core/test/watch_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
library;
2-
31
import 'dart:async';
42
import 'dart:math';
53

0 commit comments

Comments
 (0)