File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,20 @@ All notable changes to this project will be documented in this file. This projec
5
5
6
6
## Unreleased
7
7
8
+ ## [ 4.0.0] - 2024-03-12
9
+
8
10
### Changed
9
11
10
12
- Package is now licensed under the [ MIT license.] ( ./LICENSE )
11
13
- ** BREAKING** Package now requires Laravel 11.
12
14
- Minimum PHP version is now ` 8.2 ` .
13
15
- 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.
14
22
15
23
### Fixed
16
24
You can’t perform that action at this time.
0 commit comments