Releases: wopian/kitsu
Releases · wopian/kitsu
3.0.2 (2017-10-13)
3.0.1 (2017-10-09)
Chores
- remove unused globals from rollup config (f0e002ba)
3.0.0 (2017-10-09)
BREAKING CHANGES
-
Built in oAuth2 authentication has been removed. Use
client-oauth2
directly (example inauth.js
) -
Option variable for the API URL and version on creating a new instance has changed
apiUrl
is nowbaseURL
apiVer
is nowversion
-
Removed the
compact
option in thewhoAmI
function -
Removed the network failure retry ability (was a built-in feature of
got
not included withaxios
)
Chores
Documentation Changes
New Features
- migrate utils to axios (6a4ea87d)
- migrate whoAmI to axios (e741b0fc)
- migrate update to axios (581805b5)
- migrate remove to axios (3eb7d335)
- migrate fetch to axios (6f255f84)
- migrate create to axios (dbaacfae)
- switch to axios (3cd7e5f8)
Bug Fixes
- fix changing headers (bdab1937)
2.0.4 (2017-08-10)
Documentation Changes
- fix
compliant
typo (95dbdd18)
2.0.3 (2017-07-23)
2.0.2 (2017-07-19)
2.0.1 (2017-07-18)
Documentation Changes
- update package description (61968965)
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)