Releases: lucacorti/jsonapi_plug
Releases · lucacorti/jsonapi_plug
2.0.2
What's Changed
- Fix minor typos in README.md by @camatcode in #102
- Bug Fix: Change
unsupported_content_typetounsupported_media_typeby @camatcode in #103 - Fix elixir 1.19 compilation warnings and update test matrix by @lucacorti
New Contributors
- @camatcode made their first contribution in #102
Full Changelog: 2.0.1...2.0.2
2.0.1
- Allow included resources in patch for now.
Contributors: @davidgarra92
2.0.0
JSONAPIPlug 2.0 has moved to a protocol based approach to resource definition.
This is the result of a big refactoring, cleaning up internals and providing a more
stable foundation for the library moving forward. This means there are a number of
breaking changes that require changes to applications using JSONAPIPlug.
See the upgrade guide in the docs for detailed upgrade instructions from 1.0.
JSONAPIPlug.Resourceis now a protocol instead of a behaviour.
Using structs as resource data is now mandatory.- Moved
pathoption fromJSONAPI.ResourcetoJSONAPIPlug.Plug. - Passing functions to
JSONAPIPlug.Resourceattributeserialize
anddeserializeto customize attribute value serialization and
deserialization has been replaced byJSONAPIPlug.Resource.Attribute. - Generating per-resource
JSON:APIlinks and meta withJSONAPIPlug.Resource
callbacks has been replaces by theJSONAPIPlug.Resource.Linksand
JSONAPIPlug.Resource.Metaprotocols. - Removed
linksoption toJSONAPIPlug.API. Resource links are always generated. - Moved the Phoenix render function to a component module in the library, this can
be added to the phoenixMyAppWebmodule and imported in the phoenix_json.ex
module viause MyAppWeb, :jsonapias per phoenix conventions. - Enforce
client_generated_idsoption. This prevents sending ids in resources and
included resources whenclient_generated_idsis turned off. If you were sending
ids to support resource creation with included atomically, this is now supported
by sendingJSON:API 1.1lidin relationships and included resources. This
is supported even though the reported jsonapi vesion is still1.0because the
library still doesn't have fullJSON:API 1.1support. Onlylidis supported.
Contributors: @lucacorti @treere
1.0.7
1.0.6
- Fix deserialization of many relationships (@lucacorti, @alexgolasibill)