Skip to content

Commit 51a6061

Browse files
authored
Merge pull request #232 from powersync-ja/fix/update-dependencies
Update lints and dependencies in released packages
2 parents 05e0526 + 7160c79 commit 51a6061

File tree

16 files changed

+28
-19
lines changed

16 files changed

+28
-19
lines changed

packages/powersync/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ repository: https://github.com/powersync-ja/powersync.dart
55
description: PowerSync Flutter SDK - sync engine for building local-first apps.
66
environment:
77
sdk: ^3.4.0
8+
89
dependencies:
910
# Needed because of sqlite3_flutter_libs
1011
flutter:
@@ -17,8 +18,9 @@ dependencies:
1718
pubspec_parse: ^1.3.0
1819
args: ^2.5.0
1920
pub_semver: ^2.1.4
21+
2022
dev_dependencies:
21-
lints: ^3.0.0
23+
lints: ^5.1.0
2224
path: ^1.8.3
2325
path_provider: ^2.0.13
2426

packages/powersync_attachments_helper/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# (the recommended set includes the core lints).
1212
# The core lints are also what is used by pub.dev for scoring packages.
1313

14-
include: package:lints/recommended.yaml
14+
include: package:flutter_lints/flutter.yaml
1515

1616
# Uncomment the following section to specify additional rules.
1717

packages/powersync_attachments_helper/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
path_provider: ^2.0.13
1717

1818
dev_dependencies:
19-
lints: ^3.0.0
19+
flutter_lints: ^5.0.0
2020
test: ^1.25.2
2121

2222
platforms:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/// PowerSync Flutter Libs.
22
///
33
/// This provides binary files for the [PowerSync SQLite Rust Core](https://github.com/powersync-ja/powersync-sqlite-core)
4-
library powersync_flutter_libs;
4+
library;

packages/powersync_flutter_libs/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
dev_dependencies:
1616
flutter_test:
1717
sdk: flutter
18-
flutter_lints: ^3.0.0
18+
flutter_lints: ^5.0.0
1919

2020
flutter:
2121
plugin:

packages/powersync_sqlcipher/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ dependencies:
1515
powersync_core: ^1.1.1
1616
powersync_flutter_libs: ^0.4.4
1717
sqlcipher_flutter_libs: ^0.6.4
18+
1819
dev_dependencies:
1920
flutter_test:
2021
sdk: flutter
21-
flutter_lints: ^3.0.0
22+
flutter_lints: ^5.0.0
2223
test_api: ^0.7.0
2324
path: ^1.8.3
2425
path_provider: ^2.0.13

0 commit comments

Comments
 (0)