diff --git a/packages/functions_client/pubspec.yaml b/packages/functions_client/pubspec.yaml index bfce1bb2..7738631a 100644 --- a/packages/functions_client/pubspec.yaml +++ b/packages/functions_client/pubspec.yaml @@ -13,5 +13,5 @@ dependencies: yet_another_json_isolate: 2.0.1 dev_dependencies: - lints: ^2.1.1 + lints: ^3.0.0 test: ^1.16.4 diff --git a/packages/gotrue/lib/src/types/auth_exception.dart b/packages/gotrue/lib/src/types/auth_exception.dart index 89030085..0a02750e 100644 --- a/packages/gotrue/lib/src/types/auth_exception.dart +++ b/packages/gotrue/lib/src/types/auth_exception.dart @@ -22,7 +22,7 @@ class AuthException implements Exception { } class AuthPKCEGrantCodeExchangeError extends AuthException { - AuthPKCEGrantCodeExchangeError(String message) : super(message); + AuthPKCEGrantCodeExchangeError(super.message); } class AuthSessionMissingException extends AuthException { @@ -38,8 +38,7 @@ class AuthRetryableFetchException extends AuthException { } class AuthApiException extends AuthException { - AuthApiException(String message, {String? statusCode}) - : super(message, statusCode: statusCode); + AuthApiException(super.message, {super.statusCode}); } class AuthUnknownException extends AuthException { diff --git a/packages/gotrue/lib/src/types/user_attributes.dart b/packages/gotrue/lib/src/types/user_attributes.dart index 2a90ac8d..60fd12d2 100644 --- a/packages/gotrue/lib/src/types/user_attributes.dart +++ b/packages/gotrue/lib/src/types/user_attributes.dart @@ -77,16 +77,16 @@ class AdminUserAttributes extends UserAttributes { final String? banDuration; AdminUserAttributes({ - String? email, - String? phone, - String? password, - Object? data, + super.email, + super.phone, + super.password, + super.data, this.userMetadata, this.appMetadata, this.emailConfirm, this.phoneConfirm, this.banDuration, - }) : super(email: email, phone: phone, password: password, data: data); + }); @override Map toJson() { diff --git a/packages/gotrue/pubspec.yaml b/packages/gotrue/pubspec.yaml index 9861ce42..259eec29 100644 --- a/packages/gotrue/pubspec.yaml +++ b/packages/gotrue/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: dev_dependencies: dart_jsonwebtoken: ^2.4.1 dotenv: ^4.1.0 - lints: ^2.1.1 + lints: ^3.0.0 test: ^1.16.4 otp: ^3.1.3 diff --git a/packages/postgrest/lib/src/postgrest_filter_builder.dart b/packages/postgrest/lib/src/postgrest_filter_builder.dart index 5161b4ee..e51d295a 100644 --- a/packages/postgrest/lib/src/postgrest_filter_builder.dart +++ b/packages/postgrest/lib/src/postgrest_filter_builder.dart @@ -1,7 +1,7 @@ part of 'postgrest_builder.dart'; class PostgrestFilterBuilder extends PostgrestTransformBuilder { - PostgrestFilterBuilder(PostgrestBuilder builder) : super(builder); + PostgrestFilterBuilder(super.builder); @override PostgrestFilterBuilder copyWithUrl(Uri url) => diff --git a/packages/postgrest/pubspec.yaml b/packages/postgrest/pubspec.yaml index 88ca97ec..7f78da72 100644 --- a/packages/postgrest/pubspec.yaml +++ b/packages/postgrest/pubspec.yaml @@ -15,5 +15,5 @@ dependencies: dev_dependencies: collection: ^1.16.0 - lints: ^2.1.1 + lints: ^3.0.0 test: ^1.21.4 diff --git a/packages/realtime_client/pubspec.yaml b/packages/realtime_client/pubspec.yaml index 625e3a67..62edb249 100644 --- a/packages/realtime_client/pubspec.yaml +++ b/packages/realtime_client/pubspec.yaml @@ -12,9 +12,9 @@ dependencies: collection: ^1.15.0 http: '>=0.13.0 <2.0.0' meta: ^1.7.0 - web_socket_channel: ^2.3.0 + web_socket_channel: '>=2.3.0 <4.0.0' dev_dependencies: - lints: ^2.1.1 + lints: ^3.0.0 mocktail: ^1.0.0 test: ^1.16.5 diff --git a/packages/realtime_client/test/socket_test_stubs.dart b/packages/realtime_client/test/socket_test_stubs.dart index 0a636004..86aa3d53 100644 --- a/packages/realtime_client/test/socket_test_stubs.dart +++ b/packages/realtime_client/test/socket_test_stubs.dart @@ -13,7 +13,7 @@ class MockChannel extends Mock implements RealtimeChannel {} class MockPush extends Mock implements Push {} class SocketWithMockedChannel extends RealtimeClient { - SocketWithMockedChannel(String endPoint) : super(endPoint); + SocketWithMockedChannel(super.endPoint); Map mockedChannelLooker = {}; diff --git a/packages/storage_client/lib/src/types.dart b/packages/storage_client/lib/src/types.dart index 5f6d43f0..a73d3b61 100644 --- a/packages/storage_client/lib/src/types.dart +++ b/packages/storage_client/lib/src/types.dart @@ -212,13 +212,10 @@ class SignedUploadURLResponse extends SignedUrl { final String token; const SignedUploadURLResponse({ - required String signedUrl, - required String path, + required super.signedUrl, + required super.path, required this.token, - }) : super( - signedUrl: signedUrl, - path: path, - ); + }); } class StorageException implements Exception { diff --git a/packages/storage_client/pubspec.yaml b/packages/storage_client/pubspec.yaml index f9b8c14d..6c88e522 100644 --- a/packages/storage_client/pubspec.yaml +++ b/packages/storage_client/pubspec.yaml @@ -17,5 +17,5 @@ dependencies: dev_dependencies: test: ^1.21.4 - lints: ^2.1.1 + lints: ^3.0.0 path: ^1.8.2 diff --git a/packages/supabase/lib/src/auth_user.dart b/packages/supabase/lib/src/auth_user.dart index f56a9615..b915764e 100644 --- a/packages/supabase/lib/src/auth_user.dart +++ b/packages/supabase/lib/src/auth_user.dart @@ -2,33 +2,18 @@ import 'package:gotrue/gotrue.dart' show User; class AuthUser extends User { AuthUser({ - required String id, - required Map appMetadata, - required Map userMetadata, - required String aud, - required String? email, - required String? phone, - required String createdAt, - String? confirmedAt, - String? emailConfirmedAt, - String? phoneConfirmedAt, - String? lastSignInAt, - required String role, - required String updatedAt, - }) : super( - id: id, - appMetadata: appMetadata, - userMetadata: userMetadata, - aud: aud, - email: email, - phone: phone, - createdAt: createdAt, - // ignore: deprecated_member_use - confirmedAt: confirmedAt, - emailConfirmedAt: emailConfirmedAt, - phoneConfirmedAt: phoneConfirmedAt, - lastSignInAt: lastSignInAt, - role: role, - updatedAt: updatedAt, - ); + required super.id, + required super.appMetadata, + required super.userMetadata, + required super.aud, + required super.email, + required super.phone, + required super.createdAt, + super.confirmedAt, + super.emailConfirmedAt, + super.phoneConfirmedAt, + super.lastSignInAt, + required super.role, + required super.updatedAt, + }); } diff --git a/packages/supabase/lib/src/supabase_query_builder.dart b/packages/supabase/lib/src/supabase_query_builder.dart index 37b95ed7..1c9b4bcb 100644 --- a/packages/supabase/lib/src/supabase_query_builder.dart +++ b/packages/supabase/lib/src/supabase_query_builder.dart @@ -1,6 +1,4 @@ -import 'package:http/http.dart'; import 'package:supabase/supabase.dart'; -import 'package:yet_another_json_isolate/yet_another_json_isolate.dart'; class SupabaseQueryBuilder extends PostgrestQueryBuilder { final RealtimeClient _realtime; @@ -11,22 +9,18 @@ class SupabaseQueryBuilder extends PostgrestQueryBuilder { SupabaseQueryBuilder( String url, RealtimeClient realtime, { - Map headers = const {}, - required String schema, + super.headers = const {}, + required String super.schema, required String table, - Client? httpClient, + super.httpClient, required int incrementId, - required YAJsonIsolate isolate, + required super.isolate, }) : _realtime = realtime, _schema = schema, _table = table, _incrementId = incrementId, super( url: Uri.parse(url), - headers: headers, - schema: schema, - httpClient: httpClient, - isolate: isolate, ); /// Returns real-time data from your table as a `Stream`. diff --git a/packages/supabase/pubspec.yaml b/packages/supabase/pubspec.yaml index 7d7fff70..8eac567f 100644 --- a/packages/supabase/pubspec.yaml +++ b/packages/supabase/pubspec.yaml @@ -19,6 +19,6 @@ dependencies: yet_another_json_isolate: 2.0.1 dev_dependencies: - lints: ^2.1.1 + lints: ^3.0.0 test: ^1.17.9 - web_socket_channel: ^2.2.0 + web_socket_channel: '>=2.2.0 <4.0.0' \ No newline at end of file diff --git a/packages/supabase_flutter/example/pubspec.yaml b/packages/supabase_flutter/example/pubspec.yaml index 55deb0bb..c27f3348 100644 --- a/packages/supabase_flutter/example/pubspec.yaml +++ b/packages/supabase_flutter/example/pubspec.yaml @@ -17,7 +17,7 @@ dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^1.0.4 + flutter_lints: ^3.0.1 flutter: uses-material-design: true diff --git a/packages/supabase_flutter/pubspec.yaml b/packages/supabase_flutter/pubspec.yaml index 6172e085..a688e350 100644 --- a/packages/supabase_flutter/pubspec.yaml +++ b/packages/supabase_flutter/pubspec.yaml @@ -26,7 +26,7 @@ dev_dependencies: dart_jsonwebtoken: ^2.4.1 flutter_test: sdk: flutter - flutter_lints: ^2.0.2 + flutter_lints: ^3.0.1 path: ^1.8.3 platforms: diff --git a/packages/supabase_flutter/test/widget_test_stubs.dart b/packages/supabase_flutter/test/widget_test_stubs.dart index 7f638a60..fc3c4789 100644 --- a/packages/supabase_flutter/test/widget_test_stubs.dart +++ b/packages/supabase_flutter/test/widget_test_stubs.dart @@ -10,7 +10,7 @@ import 'package:supabase_flutter/supabase_flutter.dart'; import 'utils.dart'; class MockWidget extends StatefulWidget { - const MockWidget({Key? key}) : super(key: key); + const MockWidget({super.key}); @override State createState() => _MockWidgetState(); @@ -127,6 +127,7 @@ void mockAppLink({ const StandardMethodCodec().encodeSuccessEnvelope(initialLink), (ByteData? data) {}, ); + return null; }, ); } diff --git a/packages/yet_another_json_isolate/pubspec.yaml b/packages/yet_another_json_isolate/pubspec.yaml index 2661e0b0..745967ea 100644 --- a/packages/yet_another_json_isolate/pubspec.yaml +++ b/packages/yet_another_json_isolate/pubspec.yaml @@ -10,5 +10,5 @@ dependencies: async: ^2.8.0 dev_dependencies: - lints: ^2.1.1 + lints: ^3.0.0 test: ^1.16.0