Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ update dependencies and linters #615

Merged
merged 2 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions chopper/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ dependencies:
http: ^1.1.0
logging: ^1.2.0
meta: ^1.9.1
qs_dart: ^1.0.10
qs_dart: ^1.1.0

dev_dependencies:
build_runner: ^2.4.9
build_test: ^2.2.2
build_verify: ^3.1.0
collection: ^1.18.0
coverage: ^1.7.2
coverage: ^1.8.0
data_fixture_dart: ^2.2.0
faker: ^2.1.0
http_parser: ^4.0.2
lints: ^3.0.0
test: ^1.25.4
lints: ^4.0.0
test: ^1.25.5
transparent_image: ^2.0.1
chopper_generator: ">=8.0.0-rc.2 <9.0.0" # will be replaced by ^8.0.0 in the next release
chopper_generator: ^8.0.0

dependency_overrides:
chopper_generator:
Expand Down
2 changes: 2 additions & 0 deletions chopper/test/ensure_build_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@TestOn('vm')
@Timeout(Duration(seconds: 120))
library;

import 'package:build_verify/build_verify.dart';
import 'package:test/test.dart';

Expand Down
4 changes: 2 additions & 2 deletions chopper_built_value/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ dependencies:
http: ^1.1.0

dev_dependencies:
test: ^1.25.4
test: ^1.25.5
build_runner: ^2.4.9
build_test: ^2.2.2
built_value_generator: ^8.9.2
lints: ^3.0.0
lints: ^4.0.0

dependency_overrides:
chopper:
Expand Down
5 changes: 2 additions & 3 deletions chopper_generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: deprecated_member_use

import 'dart:async' show FutureOr;

import 'package:analyzer/dart/constant/value.dart';
Expand Down Expand Up @@ -518,9 +520,7 @@ final class ChopperGenerator
}

static String _factoryForFunction(FunctionTypedElement function) =>
// ignore: deprecated_member_use
function.enclosingElement is ClassElement
// ignore: deprecated_member_use
? '${function.enclosingElement!.name}.${function.name}'
: function.name!;

Expand Down Expand Up @@ -640,7 +640,6 @@ final class ChopperGenerator
_typeChecker(Map).isExactlyType(type) ||
_typeChecker(BuiltMap).isExactlyType(type)) return type;

// ignore: deprecated_member_use
if (generic.isDynamic) return null;

if (_typeChecker(List).isExactlyType(type) ||
Expand Down
2 changes: 2 additions & 0 deletions chopper_generator/lib/src/utils.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: deprecated_member_use

import 'dart:math' show max;

import 'package:analyzer/dart/element/element.dart';
Expand Down
6 changes: 3 additions & 3 deletions chopper_generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ dependencies:
meta: ^1.9.1
source_gen: ^1.5.0
yaml: ^3.1.2
qs_dart: ^1.0.10
qs_dart: ^1.1.0
collection: ^1.18.0

dev_dependencies:
build_runner: ^2.4.9
build_verify: ^3.1.0
http: ^1.1.0
lints: ^3.0.0
test: ^1.25.4
lints: ^4.0.0
test: ^1.25.5

dependency_overrides:
chopper:
Expand Down
2 changes: 2 additions & 0 deletions chopper_generator/test/ensure_build_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@TestOn('vm')
@Timeout(Duration(seconds: 120))
library;

import 'package:build_verify/build_verify.dart';
import 'package:test/test.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// This example uses
/// - https://github.com/google/json_serializable.dart
/// - https://github.com/d-markey/squadron
/// - https://github.com/d-markey/squadron_builder
// This example uses
// - https://github.com/google/json_serializable.dart
// - https://github.com/d-markey/squadron
// - https://github.com/d-markey/squadron_builder

import 'dart:async' show FutureOr;
import 'dart:convert' show jsonDecode;
Expand Down
2 changes: 1 addition & 1 deletion example/lib/json_decode_service.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// This example uses https://github.com/d-markey/squadron_builder
// This example uses https://github.com/d-markey/squadron_builder

import 'dart:async';
import 'dart:convert' show json;
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dev_dependencies:
chopper_generator:
json_serializable: ^6.8.0
built_value_generator: ^8.9.2
lints: ^3.0.0
lints: ^4.0.0
squadron_builder: ^2.4.5

dependency_overrides:
Expand Down