Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update deps and lints
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmartos96 committed Jun 19, 2024
1 parent 6bad78f commit 20941d7
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 56 deletions.
3 changes: 1 addition & 2 deletions packages/electricsql/lib/src/notifiers/event.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:collection/collection.dart';
import 'package:electricsql/electricsql.dart';
import 'package:electricsql/src/notifiers/notifiers.dart';
import 'package:electricsql/src/util/debug/debug.dart';
Expand Down Expand Up @@ -78,7 +77,7 @@ class EventNotifier implements Notifier {
return QualifiedTablename(dbAlias, qualifiedTablename.tablename);
}
})
.whereNotNull()
.nonNulls
.toList();
}

Expand Down
10 changes: 4 additions & 6 deletions packages/electricsql/lib/src/satellite/shapes/shape_manager.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';
import 'dart:convert';

import 'package:collection/collection.dart';
import 'package:electricsql/satellite.dart';
import 'package:electricsql/src/client/model/shapes.dart';
import 'package:electricsql/src/util/js_array_funs.dart';
Expand Down Expand Up @@ -152,7 +151,7 @@ class ShapeManager {
_knownSubscriptions.values
.where((x) => !requested.contains(x?.fullKey))
.map((x) => x?.shapes)
.whereNotNull()
.nonNulls
.expand((x) => x)
.toList(),
defaultNamespace,
Expand Down Expand Up @@ -411,7 +410,7 @@ class ShapeManager {
} else {
final ids = sub.overshadowsFullKeys
.map((x) => _knownSubscriptions[x]?.serverId)
.whereNotNull()
.nonNulls
.toList();
return () => ids;
}
Expand Down Expand Up @@ -459,8 +458,7 @@ class ShapeManager {
}

List<RequestedSubscription> _getSubscriptionsWaitingForUnsub(String fullKey) {
return _knownSubscriptions.values
.whereNotNull()
return _knownSubscriptions.values.nonNulls
.where((x) => x.overshadowsFullKeys.any((y) => y == fullKey))
.toList();
}
Expand All @@ -477,7 +475,7 @@ class ShapeManager {
.map((k) => _activeSubscriptions[k])
.map((k) => k != null ? _knownSubscriptions[k] : null)
.map((x) => x?.serverId)
.whereNotNull()
.nonNulls
.toList();
}

Expand Down
4 changes: 2 additions & 2 deletions packages/electricsql_devtools_extension/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
auto_size_text: ^3.0.0
code_text_field: ^1.1.0
data_table_2: ^2.5.12
devtools_app_shared: ^0.1.1
devtools_extensions: ^0.1.1
devtools_app_shared: ^0.2.1
devtools_extensions: ^0.2.1
electricsql: ^0.7.0
flutter:
sdk: flutter
Expand Down
86 changes: 43 additions & 43 deletions todos_flutter/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ packages:
dependency: transitive
description:
name: archive
sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d"
sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d
url: "https://pub.dev"
source: hosted
version: "3.4.10"
version: "3.6.1"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -109,10 +109,10 @@ packages:
dependency: transitive
description:
name: build_daemon
sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1"
sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9"
url: "https://pub.dev"
source: hosted
version: "4.0.1"
version: "4.0.2"
build_resolvers:
dependency: transitive
description:
Expand All @@ -125,18 +125,18 @@ packages:
dependency: "direct dev"
description:
name: build_runner
sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22"
sha256: "644dc98a0f179b872f612d3eb627924b578897c629788e858157fa5e704ca0c7"
url: "https://pub.dev"
source: hosted
version: "2.4.9"
version: "2.4.11"
build_runner_core:
dependency: transitive
description:
name: build_runner_core
sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799"
sha256: e3c79f69a64bdfcd8a776a3c28db4eb6e3fb5356d013ae5eb2e52007706d5dbe
url: "https://pub.dev"
source: hosted
version: "7.3.0"
version: "7.3.1"
built_collection:
dependency: transitive
description:
Expand Down Expand Up @@ -237,10 +237,10 @@ packages:
dependency: transitive
description:
name: dart_jsonwebtoken
sha256: "40dc3a4788c02a44bc97ea0c8c4a078ae58c9a45acc2312ee6a689b0e8f5b5b9"
sha256: "346e9a21e4bf6e6a431e19ece00ebb2e3668e1e339cabdf6f46d18d88692a848"
url: "https://pub.dev"
source: hosted
version: "2.13.0"
version: "2.14.0"
dart_style:
dependency: transitive
description:
Expand Down Expand Up @@ -277,10 +277,10 @@ packages:
dependency: "direct main"
description:
name: drift_postgres
sha256: "2ab59ba15b9411423c5750cac4ade2013b80de352000e0639e5bdce99b07b2ea"
sha256: ce1fe060b2d329b45423892501355f1982e099faba9e75bcba307f390b1b20a3
url: "https://pub.dev"
source: hosted
version: "1.2.3"
version: "1.3.0"
ed25519_edwards:
dependency: transitive
description:
Expand Down Expand Up @@ -375,10 +375,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
version: "4.0.0"
flutter_riverpod:
dependency: transitive
description:
Expand Down Expand Up @@ -492,10 +492,10 @@ packages:
dependency: transitive
description:
name: json_annotation
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
url: "https://pub.dev"
source: hosted
version: "4.8.1"
version: "4.9.0"
leak_tracker:
dependency: transitive
description:
Expand Down Expand Up @@ -524,10 +524,10 @@ packages:
dependency: transitive
description:
name: lints
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
url: "https://pub.dev"
source: hosted
version: "3.0.0"
version: "4.0.0"
logging:
dependency: "direct main"
description:
Expand All @@ -540,10 +540,10 @@ packages:
dependency: transitive
description:
name: lottie
sha256: ce2bb2605753915080e4ee47f036a64228c88dc7f56f7bc1dbe912d75b55b1e2
sha256: "6a24ade5d3d918c306bb1c21a6b9a04aab0489d51a2582522eea820b4093b62b"
url: "https://pub.dev"
source: hosted
version: "3.1.0"
version: "3.1.2"
mason_logger:
dependency: transitive
description:
Expand Down Expand Up @@ -580,10 +580,10 @@ packages:
dependency: "direct main"
description:
name: material_symbols_icons
sha256: "36d4e5dd72f2fd282aca127cc4c4c29786d702cb506231ea73a5497fc324bf46"
sha256: a2c78726048c755f0f90fd2b7c8799cd94338e2e9b7ab6498ae56503262c14bc
url: "https://pub.dev"
source: hosted
version: "4.2741.0"
version: "4.2762.0"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -636,18 +636,18 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: a248d8146ee5983446bf03ed5ea8f6533129a12b11f12057ad1b4a67a2b3b41d
sha256: bca87b0165ffd7cdb9cad8edd22d18d2201e886d9a9f19b4fb3452ea7df3a72a
url: "https://pub.dev"
source: hosted
version: "2.2.4"
version: "2.2.6"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f"
sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
url: "https://pub.dev"
source: hosted
version: "2.3.2"
version: "2.4.0"
path_provider_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -692,10 +692,10 @@ packages:
dependency: "direct dev"
description:
name: platform
sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
url: "https://pub.dev"
source: hosted
version: "3.1.4"
version: "3.1.5"
platform_info:
dependency: transitive
description:
Expand All @@ -716,10 +716,10 @@ packages:
dependency: transitive
description:
name: pointycastle
sha256: "79fbafed02cfdbe85ef3fd06c7f4bc2cbcba0177e61b765264853d4253b21744"
sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe"
url: "https://pub.dev"
source: hosted
version: "3.9.0"
version: "3.9.1"
pool:
dependency: transitive
description:
Expand All @@ -732,10 +732,10 @@ packages:
dependency: "direct main"
description:
name: postgres
sha256: bd1df6d2f4ad71aef92dc59e867e3ba9ec22cf2212a81cf9d35aa061ce80b1ae
sha256: ad94089c7f18f4fcae83f42b475c32dfe7619df2fa8c86e17b2309f6c547897b
url: "https://pub.dev"
source: hosted
version: "3.2.0"
version: "3.2.1"
protobuf:
dependency: transitive
description:
Expand All @@ -756,10 +756,10 @@ packages:
dependency: transitive
description:
name: pubspec_parse
sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367
sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8
url: "https://pub.dev"
source: hosted
version: "1.2.3"
version: "1.3.0"
rate_limiter:
dependency: transitive
description:
Expand Down Expand Up @@ -836,10 +836,10 @@ packages:
dependency: transitive
description:
name: shelf_web_socket
sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1"
sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611"
url: "https://pub.dev"
source: hosted
version: "1.0.4"
version: "2.0.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -873,18 +873,18 @@ packages:
dependency: "direct main"
description:
name: sqlite3
sha256: "1abbeb84bf2b1a10e5e1138c913123c8aa9d83cd64e5f9a0dd847b3c83063202"
sha256: b384f598b813b347c5a7e5ffad82cbaff1bec3d1561af267041e66f6f0899295
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.4.3"
sqlite3_flutter_libs:
dependency: "direct main"
description:
name: sqlite3_flutter_libs
sha256: fb2a106a2ea6042fe57de2c47074cc31539a941819c91e105b864744605da3f5
sha256: "1e62698dc1ab396152ccaf3b3990d826244e9f3c8c39b51805f209adcd6dbea3"
url: "https://pub.dev"
source: hosted
version: "0.5.21"
version: "0.5.22"
sqlparser:
dependency: transitive
description:
Expand Down Expand Up @@ -1057,10 +1057,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: "0a989dc7ca2bb51eac91e8fd00851297cfffd641aa7538b165c62637ca0eaa4a"
sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4
url: "https://pub.dev"
source: hosted
version: "5.4.0"
version: "5.5.1"
xdg_directories:
dependency: transitive
description:
Expand All @@ -1086,5 +1086,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.3.0 <4.0.0"
dart: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
6 changes: 3 additions & 3 deletions todos_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ dependencies:
material_symbols_icons: ^4.2741.0
path: ^1.8.2
path_provider: ^2.1.1
sqlite3: ^2.4.2
sqlite3: ^2.4.3
# Pinned, because the web requires an extra file per version
# https://github.com/simolus3/sqlite3.dart/releases?q=sqlite3_flutter_libs&expanded=true
sqlite3_flutter_libs: 0.5.21
sqlite3_flutter_libs: 0.5.22

# THese are only used for the backend example, they are not needed to use Electric
# in Flutter apps.
Expand All @@ -46,7 +46,7 @@ dev_dependencies:
path: ../packages/electricsql_cli
file: ^7.0.0 # Lowest version supported

flutter_lints: ^3.0.1
flutter_lints: ^4.0.0
flutter_test:
sdk: flutter

Expand Down
Binary file modified todos_flutter/web/sqlite3.wasm
Binary file not shown.

0 comments on commit 20941d7

Please sign in to comment.