Releases: mfcochauxlaberge/jsonapi
Releases · mfcochauxlaberge/jsonapi
v0.14.0
- 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
- 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
- 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
- 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
- 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
- Add Request struct
- Remove Collection.Sample
- Set up Travis CI
- Add logo
v0.8.0
- 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
- 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
- Remove Attr.Default
- Update tchek to v0.3.0
- Update module path
v0.5.0
- Upgrade tchek to v0.2.0
- Use myesui/uuid instead of twinj/uuid
- Add NewErrNotImplemented