File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
## [ Unreleased]
8
8
### Changed
9
9
- URL Design matching now respects the base URL
10
+ - Allo null to be returned by error interceptors
10
11
11
12
## [ 8.0.0] - 2024-07-01
12
13
### Added
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import 'package:json_api/src/server/response.dart';
12
12
13
13
/// Creates a middleware that maps server exceptions to HTTP responses.
14
14
Middleware errorConverter ({
15
- Future <Response > Function (MethodNotAllowed )? onMethodNotAllowed,
16
- Future <Response > Function (UnmatchedTarget )? onUnmatchedTarget,
17
- Future <Response > Function (CollectionNotFound )? onCollectionNotFound,
18
- Future <Response > Function (ResourceNotFound )? onResourceNotFound,
19
- Future <Response > Function (RelationshipNotFound )? onRelationshipNotFound,
20
- Future <Response > Function (Object , StackTrace )? onError,
15
+ Future <Response ? > Function (MethodNotAllowed )? onMethodNotAllowed,
16
+ Future <Response ? > Function (UnmatchedTarget )? onUnmatchedTarget,
17
+ Future <Response ? > Function (CollectionNotFound )? onCollectionNotFound,
18
+ Future <Response ? > Function (ResourceNotFound )? onResourceNotFound,
19
+ Future <Response ? > Function (RelationshipNotFound )? onRelationshipNotFound,
20
+ Future <Response ? > Function (Object , StackTrace )? onError,
21
21
}) =>
22
22
middleware (
23
23
onError: (error, trace, _) async => switch (error) {
Original file line number Diff line number Diff line change 1
1
name : json_api
2
- version : 9.0.0-alpha.2
2
+ version : 9.0.0-alpha.3
3
3
homepage : https://github.com/f3ath/json-api-dart
4
4
description : A framework-agnostic implementations of JSON:API Client and Server. Supports JSON:API v1.0 (https://jsonapi.org)
5
5
environment :
You can’t perform that action at this time.
0 commit comments