From dd731245a56d784ce17d1fb2d3483a6fd4fbf7ae Mon Sep 17 00:00:00 2001 From: DinoLeung Date: Fri, 7 Apr 2023 20:02:06 +0930 Subject: [PATCH] export util classes --- CHANGELOG.md | 4 ++++ lib/util.dart | 24 ++++++++++++++++++++++++ pubspec.yaml | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 lib/util.dart diff --git a/CHANGELOG.md b/CHANGELOG.md index af40453..1257e1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.6 + +- Export util classes, so users can catch http client exceptions + ## 0.5.5 - Fixed typo in response object diff --git a/lib/util.dart b/lib/util.dart new file mode 100644 index 0000000..080a6eb --- /dev/null +++ b/lib/util.dart @@ -0,0 +1,24 @@ +/** + * TeleDart - Telegram Bot API for Dart + * Copyright (C) 2019 Dino PH Leung + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/// Util classes for TeleDart + +library telegram; + +export 'src/util/http_client.dart'; +export 'src/util/time_helper.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 4250124..4d79160 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: teledart description: A Dart library interfacing with the latest Telegram Bot API. -version: 0.5.5 +version: 0.5.6 homepage: https://github.com/DinoLeung/TeleDart issue_tracker: https://github.com/DinoLeung/TeleDart/issues