Skip to content

Releases: mfcochauxlaberge/jsonapi

v0.21.0

08 Oct 21:15
9808dd5
Compare
Choose a tag to compare

Breaking changes

  • Remove imposed pagination strategy on SimpleURL and URL

Bug fixes

  • Consider links when marshaling

And some other little changes...

v0.20.0

24 Jun 12:13
edd72ac
Compare
Choose a tag to compare
v0.20.0 Pre-release
Pre-release

Breaking changes

  • Remove support for Go 1.12

Improvements

  • Add Copier interface

And some very minor changes...

v0.19.0

06 Jan 06:25
eabe5dc
Compare
Choose a tag to compare
v0.19.0 Pre-release
Pre-release

Breaking changes

  • Remove Get/SetToOne/Many methods from the Resource interface
  • Remove Attr and Rel from the Resource interface
  • Remove SetID method from the Resource interface
  • Remove GetID from the Resource interface

Improvements

  • Add Schema.AddTwoWayRel method
  • Add Meta struct with some helper methods
  • Add support for meta values in resource object

Bug fixes

  • Clarify pointer/struct difference in Wrap and fix behavior
  • Fix NewRequest so it doesn't ignore query params
  • Stop generating UUID in NewError

And other smaller changes...

v0.18.1

15 Mar 15:07
Compare
Choose a tag to compare
v0.18.1 Pre-release
Pre-release

Improvements

  • Return zero value when value is null (and nullable) in UnmarshalToType

Bug fixes

  • Interpret "null" instead of "nil" as nil in UnmarshalToType

And other very small changes, maybe...

v0.18.0

07 Mar 17:48
Compare
Choose a tag to compare
v0.18.0 Pre-release
Pre-release

Improvements

  • Normalize names of attribute types (eb7e7ce)
    This might break something if raw strings are used to identify attribute types instead of the proper constants.
  • More tests
  • Slightly better documentation

And other smaller changes...

v0.17.0

18 Jan 15:49
Compare
Choose a tag to compare
v0.17.0 Pre-release
Pre-release

Breaking changes

  • Redefine Rel.String (the generated name of relationships is now different)

Improvements

  • Improve unmarshaling in identifiers
  • Get rid of the github.com/mitchellh/copystructure dependency
  • Avoid including attributes and relationships members if empty

And other negligible details...

v0.16.2

05 Dec 03:03
Compare
Choose a tag to compare
v0.16.2 Pre-release
Pre-release
  • Remove error when unmarshaling document without data member

This fix is not perfect. The top-level data member can be missing, but there needs to be an errors or a meta member. The current behavior is just not strict enough by allowing some payloads that do not respect the JSON:API specification.

There is an issue to fix this.

v0.16.1

30 Nov 12:05
Compare
Choose a tag to compare
v0.16.1 Pre-release
Pre-release
  • Add many examples
  • Add some tests
  • Fix bug when unmarshaling filter query in NewSimpleURL
  • Rewrite description in README.md
  • Polish filtering implementation
  • Add more linting rules

And other small details...

v0.16.0

10 Nov 22:33
Compare
Choose a tag to compare
v0.16.0 Pre-release
Pre-release
  • Add UnmarshalPartialResource
  • Refactor un/marshaling tools
  • Rename Rel.Inverse to Rel.Invert
  • Add Rel.String
  • Improve relationship normalization
  • Remove Resource.Validate
  • Remove MarshalIdentifiers
  • Refactor CopyType to Type.Copy
  • Improve test suite

And as always, other small fixes.

v0.15.0

14 Oct 18:32
Compare
Choose a tag to compare
v0.15.0 Pre-release
Pre-release
  • Panic if getting/setting non-relationship field
  • Use %q instead of %s in error messages
  • Ignore NewFunc in Type.Equal
  • Add attribute type []byte
  • Make SoftResource.Get not return relationships
  • Update golangci-lint
  • Add support for Go 1.13
  • Improve README.md
  • Add a lot of test cases

And some other small changes, as always.