diff --git a/CHANGELOG.md b/CHANGELOG.md index 323503d..3267918 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.5.0 +- Add: Microsoft authentication endpoints (Note that these are not complete!) +- Change: Deprecate getStatus API as it got removed by Mojang +- Change: Move NBT functionality to separate library (same package though) +- Change: Remove deprecated API classes +- Change: Use new profile endpoint for profile queries and update profile API +- Fix: Server modt was invalid (thanks @TheKingDave) +- Fix: Catch auth errors when account has migrated +- Fix: The News endpoint changed + ## 0.4.0 - Add: Dart JS support (NBT, Server ping and packets do not work on JS.) diff --git a/lib/dart_minecraft.dart b/lib/dart_minecraft.dart index c2db2c5..ed9f4e2 100644 --- a/lib/dart_minecraft.dart +++ b/lib/dart_minecraft.dart @@ -1,3 +1,8 @@ +/// The core dart_minecraft library with Mojang, Minecraft +/// and Microsoft APIs. It wraps authentication APIs, content +/// APIs and account management APIs. Furthermore, there are +/// server pinging features to get the status of any +/// Minecraft: Java Edition server. library minecraft; export 'src/exceptions/auth_exception.dart'; diff --git a/lib/dart_nbt.dart b/lib/dart_nbt.dart index dcb4a01..4fac586 100644 --- a/lib/dart_nbt.dart +++ b/lib/dart_nbt.dart @@ -1,3 +1,12 @@ +/// The NBT library for reading and writing the so called +/// "Named Binary Tag" file format. Minecraft world files +/// and other storage files related to Minecraft: Java Edition +/// are stored in this file format. +/// +/// The format allows for compression with gzip or zlib. However, +/// using dart2js will currently lead to exceptions while reading +/// or writing as the platform does not include a implementation +/// of the afformentioned compression algorithmns. library nbt; export 'src/exceptions/nbt_file_read_exception.dart'; diff --git a/lib/src/minecraft_api.dart b/lib/src/minecraft_api.dart index e6bc9ba..901f2f7 100644 --- a/lib/src/minecraft_api.dart +++ b/lib/src/minecraft_api.dart @@ -1,5 +1,5 @@ import 'package:http/http.dart' as http; -import 'package:path/path.dart'; +import 'package:path/path.dart' as path; import 'minecraft/minecraft_news.dart'; import 'minecraft/minecraft_patch.dart'; @@ -57,10 +57,10 @@ String getLibraryUrl(String package, String name, String version, {String? os}) { var jarFileName = os == null ? '$name-$version.jar' : '$name-$version-natives-$os'; - return join(_librariesApi, package, name, version, jarFileName); + return path.join(_librariesApi, package, name, version, jarFileName); } /// Get the resource URL for a given [hash]. String getResourceUrl(String hash) { - return join(_resourcesApi, hash.substring(0, 2), hash); + return path.join(_resourcesApi, hash.substring(0, 2), hash); } diff --git a/pubspec.yaml b/pubspec.yaml index 294f7c3..ba1b01b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,9 @@ name: dart_minecraft description: Utilities for Minecraft and Mojang Web-APIs and reading/writing NBT Files. -version: 0.4.0 +version: 0.5.0 homepage: https://github.com/spnda/dart_minecraft +repository: https://github.com/spnda/dart_minecraft +issue_tracker: https://github.com/spnda/dart_minecraft/issues environment: sdk: '>=2.13.0 <3.0.0' @@ -10,8 +12,8 @@ dependencies: uuid: ^3.0.5 collection: ^1.15.0 http: ^0.13.4 -dev_dependencies: path: ^1.8.1 +dev_dependencies: pedantic: ^1.11.1 test: ^1.20.1