Skip to content

Commit 650d910

Browse files
committed
Merge tag 'v3.0.0-rc.1' into develop
Move messages to toolkit and introduce command queuer
2 parents 26a390b + b367644 commit 650d910

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file. This projec
55

66
## Unreleased
77

8+
## [3.0.0-rc.1] - 2025-01-12
9+
810
### Added
911

1012
- Commands can now be queued by the presentation and delivery layer via the `CommandQueuer` port. Refer to the command

docs/guide/upgrade.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Upgrade Guide
22

3+
## 2.x to 3.x-rc.x
4+
5+
Upgrade using Composer:
6+
7+
```bash
8+
composer config minimum-stability rc
9+
composer require cloudcreativity/ddd-modules:^3.0
10+
```
11+
12+
### Messages
13+
14+
The message interfaces have been moved to the toolkit namespace. This is to make it clearer that these are part of the
15+
toolkit, not the application or infrastructure layers. It matches the `Result` and `Error` interfaces that are already
16+
in the `Toolkit\Result` namespace. I.e. now the toolkit contains both the input and output interfaces.
17+
18+
This is a quick upgrade if you do a search and replace for the following:
19+
20+
- `Contracts\Application\Messages` => `Contracts\Toolkit\Messages`
21+
22+
### Command Queuing
23+
24+
Previously the command bus had a `queue()` method on it. This has been removed and replaced with a new `CommandQueuer`
25+
interface. This is documented in the [Commands chapter.](./application/commands.md#command-queuer)
26+
27+
The upgrade is relatively easy. You'll need to expose a new `CommandQueuer` driving port. Then wherever in your
28+
presentation and delivery layer that you need to queue a command, import that port instead of the `CommandBus` port.
29+
30+
The documentation provides guidance on how to set up a command queuer port.
31+
332
## 1.x to 2.x
433

534
Upgrade using Composer:

0 commit comments

Comments
 (0)