From 9a3f46766cc20656a821a277b7fdc3d197346d23 Mon Sep 17 00:00:00 2001 From: Christian Loitsch Date: Tue, 24 Feb 2026 22:08:42 +0100 Subject: [PATCH 1/3] fix: reallow mime 2.0.0 fixes issue #272 --- CHANGELOG.md | 4 ++++ pubspec.yaml | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df07495..f44f589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 7.1.0 +* allow mime 2.0.0 and intl up to 0.21.0 + Thanks https://github.com/karelklic + ## 7.0.0 * Major Refactoring: Simplified library structure and standardized exports. - Renamed internal `IR` classes to `Mime`. diff --git a/pubspec.yaml b/pubspec.yaml index 96005eb..762d3cc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: mailer -version: 7.0.0 +version: 7.0.1 description: > Compose and send emails from Dart. Supports file attachments and HTML emails. @@ -13,16 +13,16 @@ dependencies: async: '^2.11.0' crypto: '^3.0.3' logging: '^1.2.0' - intl: '^0.19.0' - mime: '^1.0.5' + intl: '>=0.19.0 <0.21.0' + mime: '>=1.0.5 <3.0.0' path: '^1.8.3' meta: '^1.11.0' punycoder: '^0.2.2' unorm_dart: '^0.3.2' dev_dependencies: - args: '^2.4.2' - test: '^1.25.0' - googleapis_auth: '^1.4.1' - http: '^1.2.0' - lints: '^3.0.0' + args: '^2.7.0' + test: '^1.29.0' + googleapis_auth: '>=1.4.1 <3.0.0' + http: '^1.6.0' + lints: '>=3.0.0 <7.0.0' From ba0a93e1e8462ee8b93791dd5c5c0df769b94c8d Mon Sep 17 00:00:00 2001 From: Christian Loitsch Date: Tue, 24 Feb 2026 22:13:46 +0100 Subject: [PATCH 2/3] fix linter-warnings --- lib/src/core/message.dart | 8 ++++---- test/message_out_test.dart | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/core/message.dart b/lib/src/core/message.dart index 95723d4..c5d89ad 100644 --- a/lib/src/core/message.dart +++ b/lib/src/core/message.dart @@ -49,12 +49,12 @@ class Message { List bccRecipients = []; Iterable
get bccsAsAddresses => _asAddresses(bccRecipients); - /// Allowed values are String, Address, Iterable
, Iterable or - /// DateTime. + /// Allowed values are `String`, `Address`, `Iterable
`, `Iterable` or + /// `DateTime`. /// - /// Iterable is only allowed if all Strings are email-addresses. + /// `Iterable` is only allowed if all Strings are email-addresses. /// - /// If a String contains an @ it is treated like an email-address. + /// If a String contains an `@` it is treated like an email-address. /// /// There is no parsing for name / mail-address pairs! /// Always use Address in this case. (Otherwise we might incorrectly encode diff --git a/test/message_out_test.dart b/test/message_out_test.dart index 2282f7b..3f8af39 100644 --- a/test/message_out_test.dart +++ b/test/message_out_test.dart @@ -1,4 +1,4 @@ -library message_out_test; +library; import 'dart:convert'; import 'dart:io'; From d4d287137dfa6639d9a2949144c26c5a254e3b75 Mon Sep 17 00:00:00 2001 From: Christian Loitsch Date: Tue, 24 Feb 2026 22:15:10 +0100 Subject: [PATCH 3/3] use correct version name --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 762d3cc..6ce166a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: mailer -version: 7.0.1 +version: 7.1.0 description: > Compose and send emails from Dart. Supports file attachments and HTML emails.