Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
lindyhopchris committed Mar 9, 2024
2 parents d8e7936 + 6ddd450 commit 2312a11
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 94 deletions.
17 changes: 14 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@ All notable changes to this project will be documented in this file. This projec

## Unreleased

## [1.0.0] - 2024-03-09

### 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

- New `FailedResultException` for throw result objects that have not succeeded.
- New `FailedResultException` for throwing result objects that have not succeeded.

### Changed

Expand Down Expand Up @@ -74,7 +84,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 +142,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

0 comments on commit 2312a11

Please sign in to comment.