From e5dbcde69b0e2f3d62c2d567a5b5d18962373852 Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Thu, 28 Aug 2025 14:51:00 +0400 Subject: [PATCH 1/2] docs: Fix links in README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2b04986..2b23373 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,5 @@ Also, large parts of the [documentation][documentation] have been ported from th [when.js]: https://github.com/cujojs/when [Brian Cavalier]: https://github.com/briancavalier [reactphp/promise]: https://github.com/reactphp/promise +[Wiki]: https://github.com/cujojs/when/wiki +[API docs]: https://github.com/cujojs/when/blob/master/docs/api.md From 4d5482e5b7a55b7394571fdcaf9a596520bd3776 Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Thu, 28 Aug 2025 15:22:36 +0400 Subject: [PATCH 2/2] docs(readme): Optimize version changelog by grouping common improvements --- README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2b23373..158c813 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,22 @@ A lightweight implementation of [CommonJS Promises/A][CommonJS Promises/A] for PHP. > [!NOTE] -> This is a fork of [reactphp/promise][reactphp/promise] with the following improvements: -> - PHP 8.1+ -> - `declare(strict_types=1);` in all the PHP files +> This is a fork of [reactphp/promise][reactphp/promise]. +> +> Improvements over original reactphp/promise: +> +> - PHP 8.1+ compatibility +> - `declare(strict_types=1);` in all PHP files > - `@yield` annotation in the PromiseInterface -> - Replaces `react/promise` v3 -> - Make rejection handler reusable. `error_log()` is still used by default. +> +> Version 3.x specific: +> - Replaces `react/promise` v3 in Composer +> - Rejection handler is reusable now. `error_log()` is still used by default. > - Removed `exit(255)` from RejectionPromise. +> +> Version 2.x specific: +> - Replaces `react/promise` v2 in Composer +> - Enhanced type annotations ## Install