Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 550 Bytes

upgrading-3.x-to-4.x.md

File metadata and controls

9 lines (5 loc) · 550 Bytes

Upgrading from 3.x to 4.x

requestJson, getJson, getAllJson, postJson, putJson, and deleteJson methods removed

These methods have been fully replaced with there non Json suffixed versions. The new methods set Accept and or Content-Type to application/json by default. To use a custom Accept or Content-Type use either the mimeType or headers options in the request.

Errors Handling changes

Errors returned in promise catchs have a new shape and no longer have a defaultMessage property (see README.md # Error Object Properties).