Skip to content

Commit f18dd01

Browse files
authored
Update dependencies across all packages, require Dart 2.17 (#290)
Allows us to use pkg:lints v2 Cleaned up now redundant lints Bumped pkg:shelf_router_generator to latest analyzer Regenerated CI script
1 parent ca731ab commit f18dd01

File tree

22 files changed

+167
-255
lines changed

22 files changed

+167
-255
lines changed

.github/workflows/dart.yml

Lines changed: 113 additions & 213 deletions
Large diffs are not rendered by default.

analysis_options.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,12 @@ linter:
1111
- always_declare_return_types
1212
- avoid_unused_constructor_parameters
1313
- cancel_subscriptions
14-
- depend_on_referenced_packages
1514
- directives_ordering
16-
- library_private_types_in_public_api
1715
- lines_longer_than_80_chars
1816
- literal_only_boolean_expressions
1917
- missing_whitespace_between_adjacent_strings
2018
- no_adjacent_strings_in_list
21-
- no_leading_underscores_for_library_prefixes
22-
- no_leading_underscores_for_local_identifiers
2319
- no_runtimeType_toString
24-
- null_check_on_nullable_type_parameter
2520
- omit_local_variable_types
2621
- package_api_docs
2722
- prefer_relative_imports
@@ -31,9 +26,5 @@ linter:
3126
- type_annotate_public_apis
3227
- unawaited_futures
3328
- unnecessary_await_in_return
34-
- unnecessary_constructor_name
3529
- unnecessary_lambdas
36-
- unnecessary_late
37-
- unnecessary_null_aware_assignments
38-
- unnecessary_nullable_for_final_variable_declarations
3930
- use_super_parameters

pkgs/shelf/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Add Response.unauthorized() constructor
44
* Add `poweredByHeader` argument to `serve`, `serveRequests`, and
55
`handleRequest`.
6+
* Require Dart >= 2.17
67

78
## 1.3.2
89

pkgs/shelf/lib/src/shelf_unmodifiable_map.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ class ShelfUnmodifiableMap extends UnmodifiableMapView<String, Object> {
4747
/// Returns an empty [ShelfUnmodifiableMap].
4848
const factory ShelfUnmodifiableMap.empty() = _EmptyShelfUnmodifiableMap;
4949

50-
ShelfUnmodifiableMap._(Map<String, Object> source, this._ignoreKeyCase)
51-
: super(source);
50+
ShelfUnmodifiableMap._(super.source, this._ignoreKeyCase);
5251
}
5352

5453
/// A const implementation of an empty [ShelfUnmodifiableMap].

pkgs/shelf/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sdk:
2-
- 2.16.0
2+
- pubspec
33
- dev
44

55
stages:

pkgs/shelf/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: >
44
A model for web server middleware that encourages composition and easy reuse.
55
repository: https://github.com/dart-lang/shelf/tree/master/pkgs/shelf
66
environment:
7-
sdk: ">=2.16.0 <3.0.0"
7+
sdk: '>=2.17.0 <3.0.0'
88

99
dependencies:
1010
async: ^2.5.0
@@ -16,5 +16,5 @@ dependencies:
1616

1717
dev_dependencies:
1818
http: ^0.13.0
19-
lints: ^1.0.0
19+
lints: ^2.0.0
2020
test: ^1.16.0

pkgs/shelf/test/message_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import 'test_util.dart';
1212

1313
class _TestMessage extends Message {
1414
_TestMessage(Map<String, /* String | List<String> */ Object>? headers,
15-
Map<String, Object>? context, Object? body, Encoding? encoding)
16-
: super(body, headers: headers, context: context, encoding: encoding);
15+
Map<String, Object>? context, super.body, Encoding? encoding)
16+
: super(headers: headers, context: context, encoding: encoding);
1717

1818
@override
1919
Message change(

pkgs/shelf_packages_handler/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.2-dev
2+
3+
* Require Dart `2.17`.
4+
15
## 3.0.1
26

37
* Require Dart `2.14`.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: shelf_packages_handler
2-
version: 3.0.1
2+
version: 3.0.2-dev
33
description: A shelf handler for serving a `packages/` directory.
44
repository: https://github.com/dart-lang/shelf/tree/master/pkgs/shelf_packages_handler
55

66
environment:
7-
sdk: '>=2.14.0 <3.0.0'
7+
sdk: '>=2.17.0 <3.0.0'
88

99
dependencies:
1010
path: ^1.8.0
1111
shelf: ^1.0.0
1212
shelf_static: ^1.0.0
1313

1414
dev_dependencies:
15-
lints: ^1.0.0
15+
lints: ^2.0.0
1616
test: ^1.16.0

pkgs/shelf_proxy/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.3-dev
2+
3+
* Require Dart `2.17`.
4+
15
## 1.0.2
26

37
* Update the pubspec `repository` field.

0 commit comments

Comments
 (0)