Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: final changes for the 1.0 release #5

Merged
merged 1 commit into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. This projec

## Unreleased

### Removed

- **BREAKING** The following deprecated interfaces have been removed:
- `Bus\CommandInterface` use `Toolkit\Messages\CommandInterface` instead.
- `Bus\QueryInterface` use `Toolkit\Messages\QueryInterface` instead.
- `Bus\DispatchThroughMiddleware` use `Toolkit\Messages\DispatchThroughMiddleware` instead.
- `Infrastructure\Log\ContextProviderInterface` use `Toolkit\Loggable\ContextProviderInterface` instead.

## [1.0.0-rc.2] - 2024-03-06

### Added
Expand Down Expand Up @@ -74,7 +82,8 @@ All notable changes to this project will be documented in this file. This projec
- New `DeferredDispatcher` class for dispatching domain events when not using a unit of work.
- New UUID factory interface and class, that wraps the `ramsey/uuid` factory to return UUID identifiers.
- GUIDs that wrap UUIDs can now be created via the static `Guid::fromUuid()` method.
- New `SetupBeforeDispatch` and `TearDownAfterDispatch` bus middleware, that can be used either to setup (and optionally
- New `SetupBeforeDispatch` and `TearDownAfterDispatch` bus middleware, that can be used either to set up (and
optionally
tear down) application state around the dispatching of a message, or to just do tear down work.
- The `EventBus` namespace now has a working implementation for publishing integration events.
- Can now provide a closure to the `ListOfErrorsInterface::first()` method to find the first matching error.
Expand Down Expand Up @@ -131,7 +140,7 @@ All notable changes to this project will be documented in this file. This projec
- All constructor arguments for the `Toolkit\Result\Error` object are now optional. This allows named arguments to be
used when creating an error object.
- The `Toolkit\Result\Error` object can now accept only a code, previously it had to have a message.
- The following interfaces no longer extend the log `ContextProviderInterface`. Instead classes only need to implement
- The following interfaces no longer extend the log `ContextProviderInterface`. Instead, classes only need to implement
that log interface if they need to customise how that class is logged.
- `Bus\MessageInterface`
- `Infrastructure\Queue\QueueableInterface`
Expand Down
21 changes: 0 additions & 21 deletions src/Bus/CommandInterface.php

This file was deleted.

21 changes: 0 additions & 21 deletions src/Bus/DispatchThroughMiddleware.php

This file was deleted.

21 changes: 0 additions & 21 deletions src/Bus/QueryInterface.php

This file was deleted.

21 changes: 0 additions & 21 deletions src/Infrastructure/Log/ContextProviderInterface.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Unit/Bus/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace CloudCreativity\Modules\Tests\Unit\Bus;

use CloudCreativity\Modules\Bus\CommandInterface;
use CloudCreativity\Modules\Toolkit\Messages\CommandInterface;

class TestCommand implements CommandInterface
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Bus/TestCommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace CloudCreativity\Modules\Tests\Unit\Bus;

use CloudCreativity\Modules\Bus\DispatchThroughMiddleware;
use CloudCreativity\Modules\Toolkit\Messages\DispatchThroughMiddleware;
use CloudCreativity\Modules\Toolkit\Result\Result;
use CloudCreativity\Modules\Toolkit\Result\ResultInterface;

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Bus/TestQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace CloudCreativity\Modules\Tests\Unit\Bus;

use CloudCreativity\Modules\Bus\QueryInterface;
use CloudCreativity\Modules\Toolkit\Messages\QueryInterface;

class TestQuery implements QueryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Bus/TestQueryHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace CloudCreativity\Modules\Tests\Unit\Bus;

use CloudCreativity\Modules\Bus\DispatchThroughMiddleware;
use CloudCreativity\Modules\Toolkit\Messages\DispatchThroughMiddleware;
use CloudCreativity\Modules\Toolkit\Result\Result;
use CloudCreativity\Modules\Toolkit\Result\ResultInterface;

Expand Down
5 changes: 2 additions & 3 deletions tests/Unit/Infrastructure/Log/ResultContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace CloudCreativity\Modules\Tests\Unit\Infrastructure\Log;

use BackedEnum;
use CloudCreativity\Modules\Infrastructure\Log\ContextProviderInterface as DeprecatedContextProviderInterface;
use CloudCreativity\Modules\Infrastructure\Log\ResultContext;
use CloudCreativity\Modules\Toolkit\Identifiers\IdentifierInterface;
use CloudCreativity\Modules\Toolkit\Loggable\ContextProviderInterface;
Expand All @@ -25,11 +24,11 @@
/**
* @extends ResultInterface<null>
*/
interface ResultWithContext extends ResultInterface, DeprecatedContextProviderInterface
interface ResultWithContext extends ResultInterface, ContextProviderInterface
{
}

interface ErrorWithContext extends ErrorInterface, DeprecatedContextProviderInterface
interface ErrorWithContext extends ErrorInterface, ContextProviderInterface
{
}

Expand Down