Skip to content

Commit 71d9e6c

Browse files
authored
v4.2.1 (#101)
1 parent afcf648 commit 71d9e6c

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [4.2.1] - 2020-06-04
10+
### Fixed
11+
- The server library was not exporting `Controller`.
12+
- `ResourceData.toJson()` was not calling the underlying `ResourceObject.toJson()`.
13+
14+
## [4.2.0] - 2020-06-03
815
### Added
916
- Filtering support for collections ([#97](https://github.com/f3ath/json-api-dart/pull/97))
1017

@@ -162,7 +169,8 @@ Most of the changes are **BC-BREAKING**.
162169
### Added
163170
- Client: fetch resources, collections, related resources and relationships
164171

165-
[Unreleased]: https://github.com/f3ath/json-api-dart/compare/4.2.0...HEADER
172+
[Unreleased]: https://github.com/f3ath/json-api-dart/compare/4.2.1...HEAD
173+
[4.2.1]: https://github.com/f3ath/json-api-dart/compare/4.2.0...4.2.1
166174
[4.2.0]: https://github.com/f3ath/json-api-dart/compare/4.1.0...4.2.0
167175
[4.1.0]: https://github.com/f3ath/json-api-dart/compare/4.0.0...4.1.0
168176
[4.0.0]: https://github.com/f3ath/json-api-dart/compare/3.2.2...4.0.0

lib/server.dart

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
library server;
22

3+
export 'package:json_api/src/server/controller.dart';
34
export 'package:json_api/src/server/dart_server.dart';
45
export 'package:json_api/src/server/document_factory.dart';
56
export 'package:json_api/src/server/http_response_converter.dart';

lib/src/document/resource_data.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ResourceData extends PrimaryData {
3737
@override
3838
Map<String, Object> toJson() => {
3939
...super.toJson(),
40-
'data': resourceObject,
40+
'data': resourceObject.toJson(),
4141
};
4242

4343
Resource unwrap() => resourceObject?.unwrap();

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: json_api
2-
version: 4.2.0
2+
version: 4.2.1
33
homepage: https://github.com/f3ath/json-api-dart
44
description: Framework-agnostic implementations of JSON:API Client (Flutter, Web and VM) and Server (VM). Supports JSON:API v1.0 (http://jsonapi.org)
55
environment:

test/e2e/client_server_interaction_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:pedantic/pedantic.dart';
1111
import 'package:test/test.dart';
1212

1313
void main() {
14-
group('Client-Server interation over HTTP', () {
14+
group('Client-Server interaction over HTTP', () {
1515
final port = 8088;
1616
final host = 'localhost';
1717
final routing =

0 commit comments

Comments
 (0)