Skip to content

Commit bd47c13

Browse files
committed
docs: update changelog and bump version
1 parent a8f30cc commit bd47c13

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CHANGELOG.md

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

66
## Unreleased
77

8+
## [4.0.0] - 2024-03-12
9+
810
### Changed
911

1012
- Package is now licensed under the [MIT license.](./LICENSE)
1113
- **BREAKING** Package now requires Laravel 11.
1214
- Minimum PHP version is now `8.2`.
1315
- Use `assert()` within fillable relation field classes rather as an optimisation.
16+
- [#34](https://github.com/laravel-json-api/eloquent/pull/34) **BREAKING** The soft delete driver now throws an
17+
exception if the model is not successfully soft-deleted. This can happen if a listener or observer on the model
18+
aborts the delete operation. Previously the driver just carried on, which was incorrect. The exception has to be
19+
thrown in this scenario because we are now in an invalid state - what the client requested and what actually
20+
happened does not match up. If developers want to avoid this scenario, they should use authorization or validation
21+
logic so that clients get an error response that explains why the soft delete cannot be fulfilled.
1422

1523
### Fixed
1624

0 commit comments

Comments
 (0)