Releases: mfcochauxlaberge/jsonapi
Releases · mfcochauxlaberge/jsonapi
v0.21.0
v0.20.0
Breaking changes
- Remove support for Go 1.12
Improvements
- Add Copier interface
And some very minor changes...
v0.19.0
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
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
v0.17.0
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
- 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
- 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
- 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
- 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.