Skip to content

v4.2.1 #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [4.2.1] - 2020-06-04
### Fixed
- The server library was not exporting `Controller`.
- `ResourceData.toJson()` was not calling the underlying `ResourceObject.toJson()`.

## [4.2.0] - 2020-06-03
### Added
- Filtering support for collections ([#97](https://github.com/f3ath/json-api-dart/pull/97))

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

[Unreleased]: https://github.com/f3ath/json-api-dart/compare/4.2.0...HEADER
[Unreleased]: https://github.com/f3ath/json-api-dart/compare/4.2.1...HEAD
[4.2.1]: https://github.com/f3ath/json-api-dart/compare/4.2.0...4.2.1
[4.2.0]: https://github.com/f3ath/json-api-dart/compare/4.1.0...4.2.0
[4.1.0]: https://github.com/f3ath/json-api-dart/compare/4.0.0...4.1.0
[4.0.0]: https://github.com/f3ath/json-api-dart/compare/3.2.2...4.0.0
Expand Down
1 change: 1 addition & 0 deletions lib/server.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
library server;

export 'package:json_api/src/server/controller.dart';
export 'package:json_api/src/server/dart_server.dart';
export 'package:json_api/src/server/document_factory.dart';
export 'package:json_api/src/server/http_response_converter.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/document/resource_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ResourceData extends PrimaryData {
@override
Map<String, Object> toJson() => {
...super.toJson(),
'data': resourceObject,
'data': resourceObject.toJson(),
};

Resource unwrap() => resourceObject?.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: json_api
version: 4.2.0
version: 4.2.1
homepage: https://github.com/f3ath/json-api-dart
description: Framework-agnostic implementations of JSON:API Client (Flutter, Web and VM) and Server (VM). Supports JSON:API v1.0 (http://jsonapi.org)
environment:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/client_server_interaction_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:pedantic/pedantic.dart';
import 'package:test/test.dart';

void main() {
group('Client-Server interation over HTTP', () {
group('Client-Server interaction over HTTP', () {
final port = 8088;
final host = 'localhost';
final routing =
Expand Down