Releases: spatie/laravel-event-sourcing
5.0.7
What's Changed
- Update introduction.md by @WouterBrouwers in #266
- Update installation-setup.md by @WouterBrouwers in #265
- Update introduction.md by @WouterBrouwers in #264
- Update using-projectors-to-transform-events.md by @WouterBrouwers in #263
- Update using-aggregates-to-make-decisions-based-on-the-past.md by @WouterBrouwers in #262
- Update creating-and-configuring-projectors.md by @WouterBrouwers in #261
- Update thinking-in-events.md by @WouterBrouwers in #260
- Update writing-your-first-reactor.md by @WouterBrouwers in #259
- Update writing-your-first-aggregate.md by @WouterBrouwers in #258
- Update replaying-events.md by @WouterBrouwers in #257
- Update storing-metadata.md by @WouterBrouwers in #256
- fix broken link to the course by @macbookandrew in #253
- Fix urls pointing to previous version by @quintenbuis in #269
- [Docs] Add
EloquentStoredEvent
import to example by @stevebauman in #273 - [Docs] Add missing opening bracket for
Account
model by @stevebauman in #272 - [Docs] Fix wrong operator for onMoneySubtracted by @avosalmon in #279
- Changed cursor() into lazyById() to preserve memory when working with large amount of events by @etahamer in #284
New Contributors
- @WouterBrouwers made their first contribution in #266
- @macbookandrew made their first contribution in #253
- @quintenbuis made their first contribution in #269
- @stevebauman made their first contribution in #273
- @avosalmon made their first contribution in #279
- @etahamer made their first contribution in #284
Full Changelog: 5.0.6...5.0.7
5.0.6
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
- move migrations to default location
5.0.0
-
Add
EloquentStoredEvent::query()->whereEvent(EventA::class, …)
-
Add
EventQuery
-
Add
AggregateEntity
- If you're overriding an aggregate root's constructor, make sure to call
parent::__construct
from it
- If you're overriding an aggregate root's constructor, make sure to call
-
Add command bus and aggregate root handlers
-
Add
Projectionist::fake(OriginalReactor::class, FakeReactor::class)
(#181) -
All event listeners are now registered in the same way: by looking at an event's type hint. This applies to all:
- Aggregate root
apply
methods - Projection listeners
- Reactor listeners
- Event queries
- Aggregate root
-
Moved
Spatie\EventSourcing\Exception\CouldNotPersistAggregate
toSpatie\EventSourcing\AggregateRoots\Exceptions\CouldNotPersistAggregate
-
Moved
Spatie\EventSourcing\Exception\InvalidEloquentSnapshotModel
toSpatie\EventSourcing\AggregateRoots\Exceptions\InvalidEloquentSnapshotModel
-
Moved
Spatie\EventSourcing\Exception\InvalidEloquentStoredEventModel
toSpatie\EventSourcing\AggregateRoots\Exceptions\InvalidEloquentStoredEventModel
-
Moved
Spatie\EventSourcing\Exception\MissingAggregateUuid
toSpatie\EventSourcing\AggregateRoots\Exceptions\MissingAggregateUuid
-
Moved
Spatie\EventSourcing\Exception\InvalidStoredEvent
toSpatie\EventSourcing\StoredEvents\Exceptions\InvalidStoredEvent
-
Dependency injection in handlers isn't supported anymore, use constructor injection instead
-
$storedEvent
and$aggregateRootUuid
are no longer passed to event handler methods. Use$event->storedEventId()
and$event->aggregateRootUuid()
instead. (#180) -
Rename
EloquentStoredEvent::query()->uuid()
toEloquentStoredEvent::query()->whereAggregateRoot()
-
Removed
AggregateRoot::$allowConcurrency
-
Removed
$aggregateVersion
fromStoredEventRepository::persist
-
Removed
$aggregateVersion
fromStoredEventRepository::persistMany
-
Event handlers are no longer called with
app()->call()
(#180) -
$handlesEvents
on Projectors and Reactors isn't supported anymore -
PHP version requirement is now
^8.0
-
Laravel version requirement is now
^8.0