From 1387e930e8180a5ea23a077a98a289d37a8678bb Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 24 Jan 2024 14:01:37 -0800 Subject: [PATCH 1/2] Update to latest lints, require Dart 3.2 --- .github/workflows/test-package.yml | 2 +- CHANGELOG.md | 8 ++++---- analysis_options.yaml | 8 +------- pubspec.yaml | 4 ++-- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index 9a52ddb..e3f985f 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - sdk: [3.0.0, dev] + sdk: [3.2, dev] steps: # These are the latest versions of the github actions; dependabot will # send PRs to keep these up-to-date. diff --git a/CHANGELOG.md b/CHANGELOG.md index 0700349..20d15d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,11 @@ ## 1.0.5-wip -* Update video/mp4 mimeType lookup by header bytes. -* Add image/heic mimeType lookup by header bytes. -* Add image/heif mimeType lookup by header bytes. +* Update `video/mp4` mimeType lookup by header bytes. +* Add `image/heic` mimeType lookup by header bytes. +* Add `image/heif` mimeType lookup by header bytes. * Add m4b mimeType lookup by extension. * Add `text/markdown` mimeType lookup by extension. -* Require Dart 3.0.0. +* Require Dart 3.2.0. ## 1.0.4 diff --git a/analysis_options.yaml b/analysis_options.yaml index 4119557..44b61cf 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,4 +1,4 @@ -# https://dart.dev/guides/language/analysis-options +# https://dart.dev/tools/analysis#the-analysis-options-file include: package:dart_flutter_team_lints/analysis_options.yaml analyzer: @@ -13,28 +13,22 @@ linter: - avoid_classes_with_only_static_members - avoid_private_typedef_functions - avoid_redundant_argument_values - - avoid_returning_null_for_future - avoid_returning_this - avoid_unused_constructor_parameters - avoid_void_async - cancel_subscriptions - - comment_references - join_return_with_assignment - literal_only_boolean_expressions - missing_whitespace_between_adjacent_strings - no_adjacent_strings_in_list - no_runtimeType_toString - package_api_docs - - prefer_const_constructors - prefer_const_declarations - prefer_expression_function_bodies - prefer_final_locals - - prefer_relative_imports - - test_types_in_equals - unnecessary_await_in_return - unnecessary_breaks - unnecessary_raw_strings - use_if_null_to_convert_nulls_to_bools - use_raw_strings - use_string_buffers - - use_super_parameters diff --git a/pubspec.yaml b/pubspec.yaml index 3dd77f9..d17cdca 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,8 +6,8 @@ description: >- repository: https://github.com/dart-lang/mime environment: - sdk: ^3.0.0 + sdk: ^3.2.0 dev_dependencies: - dart_flutter_team_lints: ^1.0.0 + dart_flutter_team_lints: ^2.0.0 test: ^1.16.0 From fd4592c83cf2333d253da47b702baf356e6a13d5 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 24 Jan 2024 14:10:12 -0800 Subject: [PATCH 2/2] and prepare to publish --- CHANGELOG.md | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20d15d9..2e2c131 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.0.5-wip +## 1.0.5 * Update `video/mp4` mimeType lookup by header bytes. * Add `image/heic` mimeType lookup by header bytes. diff --git a/pubspec.yaml b/pubspec.yaml index d17cdca..c09f00e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: mime -version: 1.0.5-wip +version: 1.0.5 description: >- Utilities for handling media (MIME) types, including determining a type from a file extension and file contents.