Skip to content

Commit

Permalink
Bump version to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Jan 26, 2022
1 parent 96431c5 commit ba9d550
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.)
Expand Down
5 changes: 5 additions & 0 deletions lib/dart_minecraft.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
9 changes: 9 additions & 0 deletions lib/dart_nbt.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
6 changes: 3 additions & 3 deletions lib/src/minecraft_api.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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);
}
6 changes: 4 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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

Expand Down

0 comments on commit ba9d550

Please sign in to comment.