- Added support for formData in jQuery adapter
- Add data to jQuery error rejections
- Updated jQuery adapter to enforce root host in urls when calling resource endpoints
- Remove addition of
status
property to response in request adapter to prevent collision with resources named status.
- Adding custom LinkMissingError for when a known option is missing its link.
- Fixes issue where a missing link error could not be handled as a promise rejection.
Fix AMD path to URITemplate
Correct an issue with case sensitivity regarding urijs dependency
Expose followResourceLink to API
- Update request adapter to reject request promise on status codes >= 400
- Include status code as part of rejected promise for request adapter
- Added status code to halon error
- Add jscs and jshint to build
- Updated jQuery adapter to pass error argument instead of jqXHR arg to rejection handler
- jQuery adapter now conditionally stringifies JSON data based on if the request is a
POST
,PATCH
, orPUT
- jQuery adapter now will JSON stringify data and add
application/json
Content-Type when data is present. If data is already a string it will be left alone.
- Changed
start
toconnect
which now returns a promise - Changed onReady/onReject callbacks to simple
on
event handlers - Changed automatic connection behavior to opt-in (vs. opt-out)
- Removed
_actions
property from top level and resource instances - Request adapter should include the correct content-type header
- Don't throw errors on empty responses (204s for example are valid, empty body responses)
- Request adapter should not send empty JSON body
- Add support for submitting arrays as the body of an action
- Bug fix - don't check empty body for starting { in request adapter
- Attempting to follow a
knownOption
that does not actually exist after the initialOPTIONS
call should throw an error - Setting
defaultAdapter
now works - Removed version from README. Set machina version to 1.x
- Add
onRejected
handler for managing connectivity issues - Add support for custom headers at client and request level
- Add support for query parameters
- Add support for request
- Add the ability to submit forms/uploads in request
- Update README adapters section
- Bug #6 - allow halon to handle resource list responses
- Bug #8 - relative roots shouldn't throw an exception
Initial release