From 89ba63a66fd2fa35f48600325ce417ee493dc5a6 Mon Sep 17 00:00:00 2001 From: Mattia Date: Thu, 22 Sep 2022 00:29:32 +0200 Subject: [PATCH] Version 1.12.1 (dart analyzer fix, dartfmt) --- CHANGELOG.md | 5 +++++ lib/src/channels/username.dart | 2 +- lib/src/reverse_engineering/pages/search_page.dart | 1 - lib/src/search/search.dart | 2 +- lib/src/search/search_list.dart | 1 - lib/src/videos/closed_captions/closed_caption_manifest.dart | 1 - pubspec.yaml | 4 ++-- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc12c8a..77c83af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.12.1 +- Fix #216 comments api. +- Export `BaseSearchContent`, thanks to @RubinRaithel. +- Updated tests. + ## 1.12.0 - Fix #207: Allow every character to be present in a username. - Fix shorts. Thanks to @prateekmedia. diff --git a/lib/src/channels/username.dart b/lib/src/channels/username.dart index 2df811c..cac7c0e 100644 --- a/lib/src/channels/username.dart +++ b/lib/src/channels/username.dart @@ -28,7 +28,7 @@ class Username with _$Username { const factory Username._( /// User name as string. - final String value, + String value, ) = _Username; /// Returns true if the given username is a valid username. diff --git a/lib/src/reverse_engineering/pages/search_page.dart b/lib/src/reverse_engineering/pages/search_page.dart index 0125755..d9969fe 100644 --- a/lib/src/reverse_engineering/pages/search_page.dart +++ b/lib/src/reverse_engineering/pages/search_page.dart @@ -4,7 +4,6 @@ import 'package:html/parser.dart' as parser; import '../../../youtube_explode_dart.dart'; import '../../extensions/helpers_extension.dart'; import '../../retry.dart'; -import '../../search/base_search_content.dart'; import '../models/initial_data.dart'; import '../models/youtube_page.dart'; diff --git a/lib/src/search/search.dart b/lib/src/search/search.dart index 7d0cfc9..28173c1 100644 --- a/lib/src/search/search.dart +++ b/lib/src/search/search.dart @@ -3,11 +3,11 @@ /// {@category Search} library youtube_explode.search; +export 'base_search_content.dart'; export 'search_channel.dart'; export 'search_client.dart'; export 'search_filter.dart'; export 'search_list.dart'; export 'search_playlist.dart'; export 'search_query.dart'; -export 'base_search_content.dart'; export 'search_video.dart'; diff --git a/lib/src/search/search_list.dart b/lib/src/search/search_list.dart index 2a479e9..7e81c72 100644 --- a/lib/src/search/search_list.dart +++ b/lib/src/search/search_list.dart @@ -5,7 +5,6 @@ import 'package:collection/collection.dart'; import '../../youtube_explode_dart.dart'; import '../extensions/helpers_extension.dart'; import '../reverse_engineering/pages/search_page.dart'; -import 'base_search_content.dart'; /// This list contains search videos. ///This behaves like a [List] but has the [SearchList.nextPage] to get the next batch of videos. diff --git a/lib/src/videos/closed_captions/closed_caption_manifest.dart b/lib/src/videos/closed_captions/closed_caption_manifest.dart index 848d3ae..c4cb44f 100644 --- a/lib/src/videos/closed_captions/closed_caption_manifest.dart +++ b/lib/src/videos/closed_captions/closed_caption_manifest.dart @@ -29,7 +29,6 @@ class ClosedCaptionManifest { } } - bool x(bool autoGen, bool isAuto) { if (!autoGen) { return !isAuto; diff --git a/pubspec.yaml b/pubspec.yaml index 42ba225..b489312 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: youtube_explode_dart description: A port in dart of the youtube explode library. Supports several API functions without the need of Youtube API Key. -version: 1.12.0 +version: 1.12.1 homepage: https://github.com/Hexer10/youtube_explode_dart @@ -22,7 +22,7 @@ dev_dependencies: console: ^4.1.0 freezed: ^2.0.3+1 json_serializable: ^6.2.0 - lint: ^1.8.2 + lint: ^1.10.0 test: ^1.21.1 false_secrets: