Skip to content

Commit ba9d550

Browse files
committed
Bump version to 0.5.0
1 parent 96431c5 commit ba9d550

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.5.0
4+
- Add: Microsoft authentication endpoints (Note that these are not complete!)
5+
- Change: Deprecate getStatus API as it got removed by Mojang
6+
- Change: Move NBT functionality to separate library (same package though)
7+
- Change: Remove deprecated API classes
8+
- Change: Use new profile endpoint for profile queries and update profile API
9+
- Fix: Server modt was invalid (thanks @TheKingDave)
10+
- Fix: Catch auth errors when account has migrated
11+
- Fix: The News endpoint changed
12+
313
## 0.4.0
414

515
- Add: Dart JS support (NBT, Server ping and packets do not work on JS.)

lib/dart_minecraft.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/// The core dart_minecraft library with Mojang, Minecraft
2+
/// and Microsoft APIs. It wraps authentication APIs, content
3+
/// APIs and account management APIs. Furthermore, there are
4+
/// server pinging features to get the status of any
5+
/// Minecraft: Java Edition server.
16
library minecraft;
27

38
export 'src/exceptions/auth_exception.dart';

lib/dart_nbt.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/// The NBT library for reading and writing the so called
2+
/// "Named Binary Tag" file format. Minecraft world files
3+
/// and other storage files related to Minecraft: Java Edition
4+
/// are stored in this file format.
5+
///
6+
/// The format allows for compression with gzip or zlib. However,
7+
/// using dart2js will currently lead to exceptions while reading
8+
/// or writing as the platform does not include a implementation
9+
/// of the afformentioned compression algorithmns.
110
library nbt;
211

312
export 'src/exceptions/nbt_file_read_exception.dart';

lib/src/minecraft_api.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:http/http.dart' as http;
2-
import 'package:path/path.dart';
2+
import 'package:path/path.dart' as path;
33

44
import 'minecraft/minecraft_news.dart';
55
import 'minecraft/minecraft_patch.dart';
@@ -57,10 +57,10 @@ String getLibraryUrl(String package, String name, String version,
5757
{String? os}) {
5858
var jarFileName =
5959
os == null ? '$name-$version.jar' : '$name-$version-natives-$os';
60-
return join(_librariesApi, package, name, version, jarFileName);
60+
return path.join(_librariesApi, package, name, version, jarFileName);
6161
}
6262

6363
/// Get the resource URL for a given [hash].
6464
String getResourceUrl(String hash) {
65-
return join(_resourcesApi, hash.substring(0, 2), hash);
65+
return path.join(_resourcesApi, hash.substring(0, 2), hash);
6666
}

pubspec.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: dart_minecraft
22
description: Utilities for Minecraft and Mojang Web-APIs and reading/writing NBT Files.
3-
version: 0.4.0
3+
version: 0.5.0
44
homepage: https://github.com/spnda/dart_minecraft
5+
repository: https://github.com/spnda/dart_minecraft
6+
issue_tracker: https://github.com/spnda/dart_minecraft/issues
57

68
environment:
79
sdk: '>=2.13.0 <3.0.0'
@@ -10,8 +12,8 @@ dependencies:
1012
uuid: ^3.0.5
1113
collection: ^1.15.0
1214
http: ^0.13.4
13-
dev_dependencies:
1415
path: ^1.8.1
16+
dev_dependencies:
1517
pedantic: ^1.11.1
1618
test: ^1.20.1
1719

0 commit comments

Comments
 (0)