From 1c691167171fd9310446649e06bcc006c616db2f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 23 May 2023 01:52:57 +0100 Subject: [PATCH] Release 5.0.0-BETA4 --- changelogs/5.0-beta.md | 19 +++++++++++++++++++ src/VersionInfo.php | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/changelogs/5.0-beta.md b/changelogs/5.0-beta.md index 27eef09a0..c100cfefc 100644 --- a/changelogs/5.0-beta.md +++ b/changelogs/5.0-beta.md @@ -194,3 +194,22 @@ Released 17th May 2023. - `RuntimeBlockMapping` has been renamed to `BlockTranslator`. - Singletons in the `pocketmine\network\mcpe\convert` package have been centralized under `TypeConverter`. In the future, this will be injected where needed, allowing different converters to be used for different sessions (useful for multiversion). - Overriding of serializers and deserializers of items and blocks is now consistently disallowed. Due to the lack of a good reason to allow overriding built-in blocks and items, this is no longer allowed. + +# 5.0.0-BETA4 +Released 23rd May 2023. + +## General +- [`ext-pmmpthread` version 6.0.0](https://github.com/pmmp/ext-pmmpthread/releases/6.0.0) (renamed from `ext-pthreads`) is now required. This version has API changes compared to pthreads v5. Please read the linked changelog for details. +- [`pocketmine/snooze` version 0.5.0](https://github.com/pmmp/Snooze/releases/0.5.0) is now required. +- `pocketmine/classloader` and `pocketmine/log-pthreads` packages have been removed. The relevant classes from these packages are now included in-house in the `pocketmine/thread` namespace. + - `BaseClassLoader` is replaced with `pocketmine\thread\ThreadSafeClassLoader` + - `ThreadedLogger` is replaced by `pocketmine\thread\ThreadSafeLogger` + - `AttachableThreadedLogger` is replaced by `pocketmine\thread\AttachableThreadSafeLogger` + - `ThreadedLoggerAttachment` is replaced by `pocketmine\thread\ThreadSafeLoggerAttachment` + +## Fixes +- Fixed crash on unknown blocks due to late initialization of properties in `UnknownBlock`. + +## API changes +### `pocketmine\scheduler` +- `AsyncTask->setResult()` now works with thread-safe objects. This was previously not possible due to limitations in the `pthreads` extension. diff --git a/src/VersionInfo.php b/src/VersionInfo.php index b89ac4b66..f91a871f0 100644 --- a/src/VersionInfo.php +++ b/src/VersionInfo.php @@ -32,7 +32,7 @@ use function str_repeat; final class VersionInfo{ public const NAME = "PocketMine-MP"; public const BASE_VERSION = "5.0.0-BETA4"; - public const IS_DEVELOPMENT_BUILD = true; + public const IS_DEVELOPMENT_BUILD = false; public const BUILD_CHANNEL = "beta"; private function __construct(){