Skip to content

2.0.0 (2017-07-18)

Compare
Choose a tag to compare
@wopian wopian released this 19 Jul 04:03
· 1623 commits to master since this release
BREAKING CHANGES
  • Attributes have been moved to the parent object

    • data.attributes.canonicalTitle becomes data.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 became characters: {}
    • In 2.x it remains waifu: {}
  • Removing resources has been simplified

    • kitsu.remove('model', { id: 1 }) becomes kitsu.remove('model', 1)
  • header (previously setHeader) has been removed. Identical implementation was already provided
    by headers

    • kitsu.header('key', 'value') becomes kitsu.headers['key'] = 'value'
    • kitsu.headers['key'] returns the header's value (1.x)
Build System / Dependencies
  • update path to test coverage (a167daa4)
Chores
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)
Tests
  • add assertions to ensure async failures (f2f262bf)
  • update deattribute test name (a2b07be1)
  • add tests for util functions (11443d70)