json_api 5.0.0-dev.2 json_api: ^5.0.0-dev.2 copied to clipboard
A framework-agnostic implementations of JSON:API Client and Server. 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.
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.3 - 2020-08-06 #
Fixed #
- Call toJson() on resourceObject when serializing (#84)
3.2.2 - 2020-01-07 #
Fixed #
- Can not decode related resource which is null (#77)
3.2.1 - 2020-01-01 #
Fixed #
- Incorrect URL in the example in the Client documentation (#74)
3.2.0 - 2019-12-30 #
Added #
matchBase
option toPathBasedUrlDesign
.Resource.toIdentifier()
method.
Changed #
- (Server, BC-breaking)
JsonApiController
made generic.
Removed #
- The package does not depend on
collection
anymore.
3.1.0 - 2019-12-19 #
Added #
- (Server) Routing is exposed via
server
library.
Changed #
- (Server, BC-breaking)
Controller
renamed toJsonApiController
. - (Server, BC-breaking)
Response
renamed toJsonApiResponse
.
Fixed #
- (Server) Response classes had
included
member initialized to[]
by default. Now the default isnull
.
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 #
Most of the 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
.- 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.1.0 - 2019-12-04 #
Added #
onHttpCall
hook to enable raw http request/response logging (#60).
2.0.3 - 2019-09-29 #
Fixed #
- Documentation links got broken due to pub.dev update.
2.0.2 - 2019-08-01 #
Fixed #
- Meta members have incorrect type (#54).
2.0.1 - 2019-07-12 #
Fixed #
- Readme example was outdated.
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.
1.0.1 - 2019-04-05 #
Fixed #
- Bumped the dependencies versions due to a bug in
json_api_document
.
1.0.0 - 2019-03-20 #
Changed #
- JSON:API Server moved out
0.6.0 - 2019-03-25 #
Changed #
- JSON:API Document moved out
- Renamed
client.removeToOne(...)
toclient.deleteToOne(...)
0.5.0 - 2019-03-21 #
Changed #
- More BC-breaking changes in the Server
Fixed #
- Location headers were incorrectly generated by Server
Added #
- Related collection pagination
- Async operations support
0.4.0 - 2019-03-17 #
Changed #
- Parsing logic moved out
- Some other BC-breaking changes in the Document
- Huge changes in the Server
Added #
- Compound documents support in Client (Server-side support is still very limited)
Fixed #
- Server was not setting links for resources and relationships
0.3.0 - 2019-03-16 #
Changed #
- Huge BC-breaking refactoring in the Document model which propagated everywhere
Added #
- Resource attributes update
- Resource relationships update
0.2.0 - 2019-03-01 #
Added #
- Improved ResourceController error handling
- Resource creation
- Resource deletion