json_api 3.0.0-dev.0
json_api: ^3.0.0-dev.0 copied to clipboard
JSON:API Client for Flutter, Web and VM. Supports JSON:API v1.0 (http://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.
Unreleased #
Added #
- Support for custom non-standard links (#61)
- Client supports
jsonapi
key in outgoing requests. Document.contentType
constant.IdentifierObject.fromIdentifier
factory method
Changed #
Most of this changes are BC-BREAKING.
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
TargetMatcher
changed its signature.
Removed #
- (Server)
ResourceTarget
,CollectionTarget
,RelationshipTarget
classes. QueryParameters
interface.Router
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(...)