2.0.0 (2017-07-18)
BREAKING CHANGES
-
Attributes have been moved to the parent object
data.attributes.canonicalTitle
becomesdata.canonicalTitle
-
The relationship name is now used in the
GET
output instead of the relationship type, i.e:- In 1.x, the
waifu
relationship erroneously becamecharacters: {}
- In 2.x it remains
waifu: {}
- In 1.x, the
-
Removing resources has been simplified
kitsu.remove('model', { id: 1 })
becomeskitsu.remove('model', 1)
-
header
(previouslysetHeader
) has been removed. Identical implementation was already provided
byheaders
kitsu.header('key', 'value')
becomeskitsu.headers['key'] = 'value'
kitsu.headers['key']
returns the header'svalue
(1.x)
Build System / Dependencies
- update path to test coverage (a167daa4)
Chores
- add apiVer back (dc6bf3ed)
- add new example to package.json (b3a78fb8)
- remove debugging calls (7f57f736)
- update examples (ae390a88)
- move aliases to top of class (8701af60)
Documentation Changes
- split contributing into seperate file (494f15a4)
- mention existing functionality of kitsu.headers (4ea1c848)
- add 2.0 migration guide (db148b3c)
- add a more complex example (dbc700fb)
- update auth example (b03fcff9)
New Features
Bug Fixes
- link relationship arrays without discarding everything after first (0d76f02e)
- prevent linking relationships twice (71cc4e86)
- correct deserialise implementation for arrays (17965b38)
- properly pass request errors (93c89f67)
- handle relationship arrays (faf2884c)
- move attributes into parent object (80785480)
- use relationship name instead of type for deserialised relationships key (9640f318)
Reverts
- json parse before throwing errors (6fd7962d)