json_api 8.1.0
json_api: ^8.1.0 copied to clipboard
A framework-agnostic implementations of JSON:API Client and Server. Supports JSON:API v1.0 (https://jsonapi.org)
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
8.1.0 - 2024-08-29 #
6.0.0 - 2023-09-07 #
5.3.0 - 2022-12-29 #
Added #
- Client MessageConverter class to control HTTP request/response conversion.
5.2.0 - 2022-06-01 #
Added #
- Support for included resources in create and update methods. Author: @kszczek
5.0.0 - 2021-04-21 #
4.3.0 - 2020-07-30 #
4.2.1 - 2020-06-04 #
Fixed #
- The server library was not exporting
Controller
. ResourceData.toJson()
was not calling the underlyingResourceObject.toJson()
.
4.2.0 - 2020-06-03 #
4.1.0 - 2020-05-28 #
Changed #
DartHttp
now defaults to utf8 if no encoding is specified in the response.
4.0.0 - 2020-02-29 #
Changed #
- Everything. This is a major BC-breaking rework which affected pretty much all areas. Please refer to the documentation.
3.2.0 - 2019-12-30 #
3.1.0 - 2019-12-19 #
3.0.0 - 2019-12-17 #
Added #
- Support for custom non-standard links (#61)
- Client supports
jsonapi
key in outgoing requests. Document.contentType
constant.IdentifierObject.fromIdentifier
factory method
Changed #
URLBuilder
was renamed toUrlFactory
.DocumentBuilder
was split intoServerDocumentFactory
andClientDocumentFactory
. Some methods were renamed.- Static
decodeJson
methods were renamed tofromJson
. Identifier.equals
now requires the runtime type to be exactly the same.Link.decodeJsonMap
was renamed tomapFromJson
.- The signature of
TargetMatcher
. - The signature of
Controller
. Server
was renamed toJsonApiServer
.Pagination
was renamed toPaginationStrategy
.
Removed #
- (Server)
ResourceTarget
,CollectionTarget
,RelationshipTarget
classes. QueryParameters
interface.Router
class.Query
class.
2.0.0 - 2019-07-12 #
Changed #
- This package now consolidates the Client, the Server and the Document in one single library.
It does not depend on
json_api_document
andjson_api_server
anymore, please remove these packages from yourpubspec.yaml
. - The min Dart SDK version bumped to
2.3.0
- The Client requires an instance of HttpClient to be passed to the constructor explicitly.
- Both the Document and the Server have been refactored with lots of BREAKING CHANGES. See the examples and the functional tests for details.
- Meta properties are not defensively copied, but set directly. Meta property behavior is unified across the Document model.
Removed #
JsonApiParser
is removed. Use the staticdecodeJson
methods in the corresponding classes instead.
0.6.0 - 2019-03-25 #
Changed #
- JSON:API Document moved out
- Renamed
client.removeToOne(...)
toclient.deleteToOne(...)