Skip to content

Releases: mfcochauxlaberge/jsonapi

v0.14.0

30 Aug 02:21
b8b795f
Compare
Choose a tag to compare
v0.14.0 Pre-release
Pre-release
  • Add NewFunc and New to Type
  • Rename Reflect to BuildType
  • Add NewErrInvalidFieldValueInBody
  • Add NewErrMissingDataMember
  • Add Attr.UnmarshalToType
  • Remove Collection.UnmarshalJSON
  • Add Resources type
  • Implement unmarshaling correctly
  • Make Error.Status a string
  • Add Type.Equal
  • Add Range function
  • Refactor marshaling/unmarshaling and its test suite
  • Add schema-level list of relationships
  • Rename Rel's fields
  • Add Rel.Normalize

And more, of course...

v0.13.0

04 Aug 19:42
7cf451f
Compare
Choose a tag to compare
v0.13.0 Pre-release
Pre-release
  • Remove pagination validation in NewParams
  • Rename CheckType and ReflectType to Check and Reflect
  • Add MustReflect function
  • Add basic test suite for helpers
  • Make page number and size uints
  • Add line length linter and fix related code
  • Clean up URL/Params and add tests
  • Make sure types of the fields are sorted
  • Allow id in list of fields (Params)
  • Add NewErrDuplicateFieldInFieldsParameter
  • Check for duplicates in Params.Fields
  • Improve un/marshaling and add some tests

And more...

v0.12.0

28 Jul 17:49
97c3dec
Compare
Choose a tag to compare
v0.12.0 Pre-release
Pre-release
  • Refactor FilterResource to Filter.IsAllowed
  • Make SoftResource.Type an exported field
  • Leave pagination params at their zero value by default
  • Fix pagination in SoftCollection.Range
  • Include the ID in the sorting rules
  • Remove sorting rules in non-collection URLs
  • Remove error return from RemoveType
  • Remove boolean from Schema.GetType return parameters
  • Remove error return from RemoveAttr and RemoveRel
  • Remove Schema.GetResource
  • Remove NewSoftResource
  • Rename ParseRawURL to NewURLFromRaw
  • Change Document.Included's type to []Resource
  • Add CopyType function with tests
  • Fix bug in Equal function
  • Fix recursive method call in Link.MarshalJSON
  • Make Collection.Type return Type instead of string
  • Rename Collection.Elem to At
  • Rename Collection.Type to Collection.GetType
  • Add golangci-lint to Travis pipeline
  • Remove URL.FullURL
  • Rename NormalizePath to String and fix top comment
  • Fix pagination in URL.String
  • Add URL.UnescapedString

And more very small changes...

v0.11.0

01 Jul 19:26
Compare
Choose a tag to compare
v0.11.0 Pre-release
Pre-release
  • Use testify instead of tchek for tests
  • Improve drastically the filtering implementation
  • Add support for uint64 attribute type
  • Make Resource.GetType return Type instead of string
  • Rename Attr.Null to Attr.Nullable
  • Support filtering in SoftCollection.Range
  • Refactor FilterResource to Filter.IsAllowed
  • Improve the test suite
  • Fix many little bugs...

And other negligible changes...

v0.10.0

11 Jun 03:16
2a52876
Compare
Choose a tag to compare
v0.10.0 Pre-release
Pre-release
  • Add Go versions to Travis and enable modules
  • Rename StrictEqual to EqualStrict
  • Improve logo
  • Improve SoftResource
  • Add SoftCollection struct

And other very small changes...

v0.9.0

28 Apr 15:37
Compare
Choose a tag to compare
v0.9.0 Pre-release
Pre-release
  • Add Request struct
  • Remove Collection.Sample
  • Set up Travis CI
  • Add logo

v0.8.0

22 Apr 23:47
Compare
Choose a tag to compare
v0.8.0 Pre-release
Pre-release
  • Add NewSoftResource
  • Return true in Schema.GetType when the type is found
  • Implement Schema.Check without Registry
  • Remove Type.Default (use NewSoftResource instead)
  • Add Schema.GetResource
  • Fix bug in Schema.GetType
  • Add ReflectType function
  • Remove Registry and Payload structs
  • Add Request struct

v0.7.0

24 Mar 17:12
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release
  • Add Go version in go.mod
  • Migrate to google/uuid for UUIDs
  • Add Equal and StrictEqual
  • Make Attr.Type an int and add constants/helper functions
  • Add ZeroValue helper function
  • Improve equality checking of nil values in Equal
  • Add SoftResource struct
  • Remove Ptr attribute types and use Null instead
  • Return nil when given an unknown type in ZeroValue
  • Rename GetAttrString for GetAttrTypeString
  • Rename ZeroValue for GetZeroValue
  • Use Type in SoftResource
  • Make Type.Fields a method
  • Add Schema struct
  • Add NewSoftResource

And other negligible changes...

v0.6.0

17 Feb 14:18
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release
  • Remove Attr.Default
  • Update tchek to v0.3.0
  • Update module path

v0.5.0

15 Jan 01:42
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release
  • Upgrade tchek to v0.2.0
  • Use myesui/uuid instead of twinj/uuid
  • Add NewErrNotImplemented